* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Poppins", Sans-serif;
}

section {
  padding: 50px 20px;
  width: 100%;
}

.conteneur-standard {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.fond-gris {
  background: linear-gradient(
    to bottom,
    #fff 0%,
    #eff2f5 75px,
    #eff2f5 calc(75% - 15px),
    #fff 100%
  );
}

.fond-blanc {
  background-color: #fff;
}

h1,
h2 {
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1em;
  color: #222;
  margin: 0 0 30px;
  position: relative;
}

h1 {
  font-size: 45px;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h1::after,
h2::after {
  content: "";
  display: block;
  width: 200px;
  height: 3px;
  background-color: #9d4edd;
  margin: 10px auto 0;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3em;
  margin: 0 0 20px;
}

.titre-page {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  color: #3c096c;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  position: relative;
  z-index: 10;
}

.bouton,
.bouton-secondaire {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition:
    background-color 0.3s,
    transform 0.2s;
  border: none;
}

.bouton {
  background-color: #5a189a;
  color: #fff;
}

.bouton:hover {
  background-color: #9d4edd;
  transform: scale(1.05);
}

.bouton-secondaire {
  padding: 12px 25px;
  background-color: #f8f9fa;
  color: #5a189a;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.bouton-secondaire:hover,
.bouton-decouvrir:hover {
  background-color: #5a189a;
  color: #fff;
  transform: translateY(-2px);
}

.bouton-recherche,
.bouton-formulaire,
.bouton-postuler {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border-radius: 8px;
  background-color: #5a189a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border: none;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.bouton-recherche {
  width: auto;
  background-color: #5a189a;
}

.bouton-formulaire {
  margin-top: 10px;
  background-color: #512499;
}

.bouton-postuler {
  font-weight: 700;
}

.bouton-recherche:hover,
.bouton-formulaire:hover {
  background-color: #3c096c;
  transform: translateY(-2px);
}

.bouton-postuler:hover {
  background: #3c096c;
}

.bouton-retour-suppression {
  display: inline-block;
  background-color: #5a189a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color 0.3s,
    transform 0.3s;
}

.bouton-retour-suppression:hover {
  background-color: #3c096c;
  transform: translateY(-2px);
}

.bouton-retour-formulaire {
  display: block;
  text-align: center;
  margin: 20px 0;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    color 0.3s,
    transform 0.3s;
}

.bouton-retour-formulaire:hover {
  color: #5a189a;
  transform: translateY(-2px);
}

.page-detail-offre .bouton-retour {
  display: inline-block;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: 0.3s;
}

.page-detail-offre .bouton-retour:hover {
  color: #5a189a;
  transform: translateX(-5px);
}

.bouton-action {
  font-size: 1.1rem;
  padding: 5px;
  text-decoration: none;
  transition: transform 0.2s;
}

.bouton-action:hover {
  transform: scale(1.2);
}

.bouton-action.voir {
  color: #3498db;
}

.bouton-action.modifier {
  color: #5a189a;
}

.bouton-action.supprimer {
  color: #dc3545;
}

.bouton-edition {
  padding: 5px 15px;
  font-size: 12px;
}

.bouton-decouvrir {
  background: #fff;
  border: 1px solid #333;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.bouton-decouvrir:hover {
  box-shadow: 0 5px 15px #5a189a4d;
}

.bouton-favori {
  position: absolute;
  right: 25px;
  top: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 5px;
  color: #e0aaff;
  transition:
    transform 0.2s,
    color 0.2s;
}

.bouton-favori svg {
  width: 28px;
  height: 28px;
}

.bouton-favori:hover {
  transform: translateY(-5%) scale(1.1);
  color: #9d4edd;
}

.bouton-favori.actif {
  color: #9d4edd;
}

.bouton-favori.actif svg {
  fill: #9d4edd;
}

.bouton-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 700;
}

.bouton-page.actif {
  background-color: #5a189a;
  color: #fff;
}

.page-precedente,
.page-suivante {
  width: auto;
  padding: 0 15px;
}

.en-tete-site {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 4px 6px #0000000d;
  height: 80px;
  width: 100%;
}

.en-tete-site .conteneur-en-tete {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.en-tete-site .logo img {
  height: 50px;
  width: auto;
  display: block;
}

.en-tete-site .navigation-principale {
  display: none;
}

.en-tete-site .navigation-principale.ouvert {
  display: flex;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: #fff;
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 4px 6px #0000001a;
  z-index: 999;
}

.en-tete-site .navigation-principale ul {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
}

.en-tete-site .navigation-principale a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  text-align: center;
}

.en-tete-site .navigation-principale a::after,
.pied-de-page-site .navigation-pied-de-page a::after {
  display: block;
  content: attr(data-text);
  font-weight: 700;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.pied-de-page-site .navigation-pied-de-page a::after {
  font-weight: 600;
}

.en-tete-site .navigation-principale a:hover,
.en-tete-site .navigation-principale a.actif {
  color: #5a189a;
  font-weight: 700;
}

.en-tete-site .navigation-principale a.actif {
  border-bottom: 2px solid #5a189a;
  padding-bottom: 4px;
}

.en-tete-site .bouton {
  display: none;
  padding: 15px 25px;
  border-radius: 4px;
  font-size: 14px;
}

.en-tete-site .menu-burger {
  cursor: pointer;
  width: 30px;
}

.en-tete-site .menu-burger span {
  display: block;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  border-radius: 3px;
}

.navigation-principale.ouvert .mobile-cta .bouton {
    display: inline-block;
    color: #fff;
}

.pied-de-page-site {
  background-color: #240046;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: auto;
}

.pied-de-page-site .conteneur-pied-de-page {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.pied-de-page-site .logo-pied-de-page img {
  height: 75px;
  width: auto;
  padding: 12px;
  background: #ffffffe6;
  border-radius: 12px;
  box-shadow:
    0 0 20px #e0aaff99,
    0 0 5px #fffc inset;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pied-de-page-site .logo-pied-de-page img:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 30px #e0aaffcc,
    0 0 10px #ffffffe6 inset;
}

.pied-de-page-site .navigation-pied-de-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.pied-de-page-site .navigation-pied-de-page a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
}

.pied-de-page-site .navigation-pied-de-page a:hover {
  color: #fff;
  text-shadow: 0 0 10px #e0aaff80;
  font-weight: 600;
}

.pied-de-page-site .mentions-legales-bas {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  border-top: 1px solid #ffffff1a;
  padding-top: 20px;
  font-size: 13px;
  color: #c77dff;
}

.pied-de-page-site .mentions-legales-bas a {
  color: #c77dff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.pied-de-page-site .mentions-legales-bas a:hover {
  color: #e0aaff;
  text-decoration: underline;
}

.carrousel-conteneur-principal {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background-color: #333;
}

.carrousel-conteneur-principal input[type="radio"] {
  display: none;
}

.carrousel-diapositive {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

#diapo1:checked
  ~ .carrousel-liste-diapositives
  .carrousel-diapositive:nth-child(1),
#diapo2:checked
  ~ .carrousel-liste-diapositives
  .carrousel-diapositive:nth-child(2),
#diapo3:checked
  ~ .carrousel-liste-diapositives
  .carrousel-diapositive:nth-child(3) {
  opacity: 1;
  z-index: 1;
}

.carrousel-diapositive img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.carrousel-diapositive:first-child img {
  filter: brightness(0.4);
}

.contenu-sur-image {
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0 15px;
}

.contenu-sur-image h1,
.contenu-sur-image h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px #000000b3;
  color: #fff;
  font-weight: 700;
}

.contenu-sur-image h1::after,
.contenu-sur-image h2::after {
  display: none;
}

.contenu-sur-image p {
  font-size: 1rem;
  margin-bottom: 25px;
}

.fleche-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0006;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  border-radius: 50%;
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.fleche-navigation:hover {
  background-color: #5a189a;
}

.fleche-navigation.gauche {
  left: 10px;
}

.fleche-navigation.droite {
  right: 10px;
}

#diapo1:checked ~ .fleche1,
#diapo2:checked ~ .fleche2,
#diapo3:checked ~ .fleche3 {
  display: flex;
}

.carrousel-indicateurs {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicateur-point {
  height: 12px;
  width: 12px;
  background-color: #ffffff80;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
}

#diapo1:checked ~ .carrousel-indicateurs .indicateur-point:nth-child(1),
#diapo2:checked ~ .carrousel-indicateurs .indicateur-point:nth-child(2),
#diapo3:checked ~ .carrousel-indicateurs .indicateur-point:nth-child(3) {
  background-color: #5a189a;
  transform: scale(1.2);
}

/* CARROUSEL INFINI DES PARTENAIRES : https://blog.logto.io/fr/animation-de-carrousel-defilement-infini-css */

.carousel-partenaires {
  margin: 20px auto 0;
  padding: 0;
  max-width: 100%; /* Permet de prendre toute la largeur */
  height: 80px; /* Ta hauteur d'origine */
  overflow: hidden;
  display: flex;
  background: #fff;
  align-items: center;
}

.carousel-partenaires .card {
  flex: 0 0 auto; /* chaque carte garde sa taille naturelle */
}

.card {
  width: 150px; /* Ta largeur d'origine pour les logos */
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* J'ajoute juste la taille des images pour éviter qu'elles débordent */
.card img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.group {
  display: flex;
  gap: 60px; /* L'espacement entre les logos */
  padding-right: 60px; /* Doit être exactement égal au gap ! */
  will-change: transform;
  animation: scrolling 20s linear infinite; /* Ralenti un peu pour plus de lisibilité */
}

.carousel-partenaires::before,
.carousel-partenaires::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 2;
}

/*L’animation @keyframes scrolling fait glisser un élément horizontalement de sa position normale vers la gauche de sa largeur totale.
Au début (0%), l’élément est à sa place, et à la fin (100%), il est complètement déplacé vers la gauche grâce à transform: translateX(-100%).
En l’appliquant à un carousel avec animation: scrolling … infinite, on obtient un défilement continu des éléments, donnant l’impression d’un
flux infini de logos.*/

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* FIN DU CARROUSEL INFINI DES PARTENAIRES */

.carousel-stats {
  height: auto;
  padding: 20px 0; 
}

.carousel-stats .card-stat {
  width: 250px;
  height: auto;
  text-align: center;
}

.carte-offre,
.carte-entreprise,
.valeur-carte,
.carte-resume-laterale,
.colonne-contenu-principal,
.carte-succes-suppression,
.carte-profil > * {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px #0000000d;
}

.carte-offre,
.valeur-carte,
.carte-entreprise {
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.carte-offre:hover {
  transform: translateY(-3px);
  border-color: #9d4edd;
}

.valeur-carte:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px #5a189a26;
  border-bottom: 4px solid #5a189a;
}

.carte-offre {
  padding: 25px;
  position: relative;
}

.en-tete-offre {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.en-tete-offre h2 {
  margin: 0;
  color: #3c096c;
  font-size: 1.25rem;
  text-align: left;
  text-transform: none;
  font-weight: 600;
  line-height: 1.3em;
}

.en-tete-offre h2::after {
  display: none;
}

.offre-lieu {
  font-weight: 700;
  color: #5a189a;
}

.offre-duree,
.badge-contrat,
.badge-info {
  display: inline-block;
  background: #f4f4f4;
  color: #333;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 6px;
}

.offre-extrait {
  color: #555;
  margin-right: 15%;
  margin-top: 15px;
}

.lien-offre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carte-entreprise {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 8px #0000001a;
}

.logo-entreprise {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.infos-entreprise {
  padding: 15px;
  flex-grow: 1;
}

.nom-entreprise {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.badge-info {
  margin-bottom: 15px;
  transition: 0.2s;
}

.bas-de-carte {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.valeur-carte {
  padding: 30px 25px;
  border-bottom: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.valeur-carte h2 {
  color: #3c096c;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.valeur-carte h2::after {
  width: 50px;
  margin: 10px auto 0;
  border-radius: 2px;
}

.valeur-carte p {
  color: #444;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.carte-succes-suppression {
  padding: 30px 20px;
  text-align: center;
  width: 90%;
  margin: 40px auto;
}

.carte-succes-suppression .cercle-icone {
  width: 70px;
  height: 70px;
  background-color: #d4edda;
  color: #155724;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
}

.carte-succes-suppression h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.carte-succes-suppression h2::after {
  display: none;
}

.carte-succes-suppression p {
  color: #666;
  margin-bottom: 5px;
  line-height: 1.6;
}

.carte-succes-suppression .texte-redirection {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 25px;
  font-style: italic;
}

.conteneur-connexion,
.conteneur-contact {
  width: 90%;
  max-width: 450px;
  margin: 80px auto 20px;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px #0000001a;
  text-align: center;
}

.conteneur-contact {
  max-width: 800px;
  margin-top: 80px;
  margin-bottom: 0;
}

.conteneur-connexion.mode-inscription {
  max-width: 500px;
  margin: 60px auto;
}

.conteneur-connexion .groupe-formulaire,
.conteneur-contact .groupe-formulaire {
  margin-bottom: 20px;
  text-align: left;
  flex: 1;
}

.conteneur-connexion label,
.conteneur-contact label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  text-align: left;
}

.conteneur-connexion input,
.conteneur-contact input,
.conteneur-contact textarea,
.conteneur-connexion select,
.conteneur-contact select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.conteneur-connexion input:focus,
.conteneur-contact input:focus,
.conteneur-contact textarea:focus {
  border-color: #5a189a;
  outline: none;
}

.conteneur-contact textarea {
  resize: vertical;
  min-height: 120px;
}

.conteneur-contact input[type="file"] {
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
}

.conteneur-connexion h2,
.conteneur-contact h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.conteneur-connexion h2::after {
  width: 150px;
}

.conteneur-connexion small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 5px;
  text-align: left;
}

.conteneur-connexion .ligne-formulaire,
.conteneur-contact .ligne-formulaire {
  display: flex;
  flex-direction: column;
}

.bas-de-formulaire-connexion {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  text-align: center;
}

.bas-de-formulaire-connexion p {
  font-size: 14px;
  color: #666;
}

.bas-de-formulaire-connexion a {
  color: #512499;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.bas-de-formulaire-connexion a:hover {
  color: #3c096c;
  text-decoration: underline;
}

.groupe-formulaire .requis {
  color: #dc3545;
  margin-left: 3px;
}

.enveloppe-mot-de-passe {
  position: relative;
}

.bascule-mot-de-passe {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.bascule-mot-de-passe:hover {
  color: #5a189a;
}

.conteneur-contact h3 {
  color: #5a189a;
  margin: 30px 0 20px;
  border-bottom: 2px solid #9d4edd;
  padding-bottom: 10px;
}

.conteneur-contact h3:first-of-type {
  margin-top: 0;
}

.barre-recherche,
.barre-filtres,
.liste-offres,
.conteneur-pagination {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.barre-recherche {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 5px 20px #00000014;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.groupe-recherche {
  display: flex;
  flex-direction: column;
}

.groupe-recherche label {
  font-size: 12px;
  font-weight: 700;
  color: #3c096c;
  margin-bottom: 5px;
}

.groupe-recherche input {
  background-color: #f8f9fa;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.barre-filtres {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-filtres {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.selecteur-filtre {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.selecteur-filtre:hover {
  border-color: #5a189a;
}

.compteur-filtres {
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

.liste-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 20px #0000001a;
  border: 1px solid #eee;
  list-style: none;
  margin: 5px;
  z-index: 100;
  max-height: 250px;
  display: none;
}

.liste-suggestions.actif {
  display: block;
}

.liste-suggestions li {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f9f9f9;
  font-size: 14px;
  color: #333;
  transition: background 0.2s;
}

.liste-suggestions li:last-child {
  border-bottom: none;
}

.liste-suggestions li:hover {
  background-color: #f4f4f4;
  color: #5a189a;
  font-weight: 600;
}

.liste-offres {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.conteneur-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.numeros-page {
  display: flex;
  gap: 8px;
}

.page-detail-offre .grille-detail-offre {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-detail-offre .colonne-contenu-principal,
.page-detail-offre .carte-resume-laterale {
  width : 100%;
  padding: 40px 40px; 
}

.page-detail-offre .bloc-entete-offre {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.page-detail-offre .titre-principal-poste {
  font-size: 1.8rem;
  color: #3c096c;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-detail-offre .ligne-infos-sous-titre {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.page-detail-offre .info-entreprise,
.page-detail-offre .info-ville {
  font-size: 1rem;
  color: #555;
}

.page-detail-offre .bloc-texte-description h3 {
  color: #5a189a;
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-detail-offre .bloc-texte-description p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 15px;
}

.page-detail-offre .bloc-texte-description ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-detail-offre .bloc-texte-description li {
  margin-bottom: 10px;
  color: #444;
  line-height: 1.6;
}

.page-detail-offre .colonne-laterale-infos {
  width: 100%;
}

.page-detail-offre .carte-resume-laterale {
  position: sticky;
  top: 20px;
}

.page-detail-offre .carte-resume-laterale h3 {
  color: #3c096c;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.page-detail-offre .liste-infos-cles {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-detail-offre .item-liste {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.95rem;
}

.page-detail-offre .item-liste:last-child {
  border-bottom: none;
}

.page-detail-offre .etiquette-info {
  color: #777;
}

.page-detail-offre .valeur-info {
  font-weight: 600;
  color: #333;
  text-align: right;
}

.carte-resume-laterale {
  text-align: center;
}

.texte-introduction {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 20px 0;
}

.liste-entreprises {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.contenu-legal {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  color: #444;
}

.contenu-legal article {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.contenu-legal p,
.contenu-legal article p {
  text-align: left;
  line-height: 1.8;
  margin-bottom: 15px;
}

.contenu-legal li {
  line-height: 1.8;
  margin-bottom: 15px;
}

.contenu-legal ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.contenu-legal a {
  color: #c77dff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.contenu-legal a:hover {
  text-decoration: underline;
  color: #9d4edd;
}

.contenu-legal article h2 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  line-height: 1.3em;
  margin: 0 0 20px;
  text-align: left;
  text-transform: none;
}

.contenu-legal article h2::after {
  display: none;
}

.avatar-profil {
  width: 80px;
  height: 80px;
  background: #5a189a;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.menu-profil {
  margin-top: 20px;
  border-top: 1px solid #eee;
  text-align: left;
}

.lien-menu-profil {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #f9f9f9;
  transition: 0.2s;
  font-size: 0.95rem;
}

.lien-menu-profil:hover {
  color: #5a189a;
  padding-left: 15px;
}

.lien-menu-profil.actif {
  color: #5a189a;
  font-weight: 700;
  border-left: 3px solid #5a189a;
  background: #fbfbfb;
}

.lien-menu-profil.danger {
  color: #dc3545;
  margin-top: 10px;
}

.tableau-responsif {
  overflow-x: auto;
  margin-top: 15px;
}

.tableau-personnalise {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.tableau-personnalise th {
  text-align: left;
  padding: 10px;
  color: #666;
  font-size: 0.85rem;
  border-bottom: 2px solid #eee;
}

.tableau-personnalise td {
  padding: 12px 10px;
  border-bottom: 1px solid #f9f9f9;
  color: #333;
  font-size: 0.95rem;
}

.texte-centre {
  text-align: center;
}

.texte-compteur {
  font-weight: 700;
  color: #5a189a;
  font-size: 1rem;
}

.bouton-exploration {
  text-align: center;
  margin-top: 20px;
}

.profil-ecole {
  margin-top: 15px;
}

.offres-sauvegardees {
  margin-bottom: 15px;
  color: #3c096c;
}

.carte-profil {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ligne-bas-offre,
.ligne-bas-entreprise,
.ligne-bas-favoris,
.ligne-bas-candidature,
.ligne-bas-utilisateur {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 10px;
}

.infos-offre-detail,
.infos-entreprise-detail,
.infos-favoris-detail,
.infos-candidature-detail,
.infos-utilisateur-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #555;
}

.actions-offre,
.actions-entreprise,
.actions-utilisateur {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: flex-end;
}

.actions-favoris {
  position: absolute;
  bottom: 15px;
  right: 35px;
  display: flex;
  align-items: center;
}

.offre-entreprise-nom {
  color: #3c096c;
  font-weight: 500;
}

.offre-entreprise-nom i,
.compteur-offres-entreprise i {
  color: #9d4edd;
  margin-right: 5px;
}

.en-tete-offre h2.wishlist-nom-offre {
  margin: 0;
  color: #000000;
  font-size: 1.25rem;
  text-align: left;
  text-transform: none;
  font-weight: 600;
  line-height: 1.3em;
  margin-bottom: 15px;
}

.en-tete-offre h2.wishlist-nom-offre::after {
  display: none;
}

.texte-duree-offre,
.reference-offre,
.compteur-offres-entreprise {
  color: #666;
  font-size: 0.9rem;
}

.separateur-court {
  color: #ccc;
}

.date-candidature {
  color: #9d4edd;
  font-weight: 500;
  font-size: 0.9rem;
}

.promo-utilisateur {
  color: #3c096c;
  background: #f3e5f5;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

#candidatures {
  margin-top: 30px;
}

.valeurs-conteneur {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.entete-entreprise {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-entreprise-detail,
.logo-spacer {
  width: 90px;
  flex-shrink: 0;
}

.logo-entreprise-detail {
  height: 90px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-bottom: 15px;
}

.logo-spacer {
  display: none;
}

@media (min-width: 768px) {
  section {
    padding: 100px 0;
  }

  .conteneur-standard {
    padding: 0 20px;
  }

  .en-tete-site .menu-burger {
    display: none;
  }

  .en-tete-site .navigation-principale {
    display: block;
  }

  .en-tete-site .navigation-principale ul {
    flex-direction: row;
    gap: 30px;
  }

  .en-tete-site .bouton {
    display: inline-block;
  }

  .mobile-cta { display: none; }

  .pied-de-page-site {
    padding: 60px 20px 40px;
  }

  .pied-de-page-site .conteneur-pied-de-page {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .pied-de-page-site .navigation-pied-de-page {
    order: 1;
    text-align: left;
    width: 250px;
  }

  .pied-de-page-site .navigation-pied-de-page ul {
    align-items: flex-start;
  }

  .pied-de-page-site .logo-pied-de-page {
    order: 2;
    align-self: flex-start;
    margin-bottom: 0;
  }

  .pied-de-page-site .mentions-legales-bas {
    order: 3;
    text-align: right;
    align-items: flex-end;
    gap: 15px;
    width: 250px;
    max-width: none;
    border-top: none;
    padding-top: 0;
  }

  .carrousel-conteneur-principal {
    height: 500px;
  }

  .contenu-sur-image h1 {
    font-size: 3.5rem;
  }

  .contenu-sur-image p {
    font-size: 1.2rem;
  }

  .fleche-navigation {
    padding: 15px;
    font-size: 24px;
  }

  .fleche-navigation.gauche {
    left: 20px;
  }

  .fleche-navigation.droite {
    right: 20px;
  }

  .carousel-partenaire {
    height: 100px;
  }
  .card {
    width: 250px;
    height: 100px;
  }
  .card img {
    max-height: 80px;
  }

  .carousel-partenaire::before,
  .carousel-partenaire::after {
    width: 100px;
  }

  .valeurs-conteneur {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
  }

  .valeur-carte {
    flex: 1;
  }

  .barre-recherche {
    flex-direction: row;
    align-items: center;
    border-radius: 50px;
    padding: 8px;
    gap: 0;
  }

  .groupe-recherche {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid #eee;
    position: relative;
  }

  .groupe-recherche:last-of-type {
    border-right: none;
  }

  .groupe-recherche input {
    background-color: transparent;
    padding: 5px 0;
  }

  .bouton-recherche {
    width: auto;
    border-radius: 40px;
    padding: 15px 40px;
    margin: 5px;
  }

  .barre-filtres {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-detail-offre .grille-detail-offre {
    flex-direction: row;
    /*align-items: flex-start;*/
  }

  .page-detail-offre .colonne-sidebar-infos {
    flex: 1;
  }

  .page-detail-offre .colonne-contenu-principal {
    flex: 2;
    padding: 40px 40px; 
  }

  .page-detail-offre .colonne-laterale-infos {
    flex: 1;
  }

  .page-detail-offre .bloc-texte-description h2 {
  color: #5a189a;
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
  text-transform: none;
  font-weight: 600;
}

.carte-resume-sidebar h2 {
  color: #3c096c;
  margin-bottom: 20px;
  margin-top: 0;
  font-size: 1.2rem;
  text-align: center;
  text-transform: none;
  font-weight: 600;
}

.carte-resume-sidebar h2::after {
  display: none;
}

.page-detail-offre .bloc-texte-description h2::after,
.carte-resume-sidebar h2::after {
  display: none;
}

  .conteneur-connexion .ligne-formulaire,
  .conteneur-contact .ligne-formulaire {
    flex-direction: row;
    gap: 20px;
  }

  .conteneur-contact .groupe-formulaire.moitie {
    flex: 1;
  }

  .bouton-retour-formulaire {
    margin-bottom: 30px;
  }

  .ligne-bas-offre,
  .ligne-bas-entreprise,
  .ligne-bas-favoris,
  .ligne-bas-candidature,
  .ligne-bas-utilisateur {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .actions-offre,
  .actions-entreprise,
  .actions-utilisateur {
    width: auto;
  }

  .carte-succes-suppression {
    padding: 40px;
    max-width: 400px;
    margin: 80px auto;
  }

  .carte-succes-suppression .cercle-icone {
    width: 80px;
    height: 80px;
    font-size: 40px;
  }

  .carte-succes-suppression h2 {
    font-size: 1.5rem;
  }

  .entete-entreprise {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .logo-spacer {
    display: block;
  }

  .logo-entreprise {
    margin-bottom: 0;
  }
}

.carrousel-statistiques {
  height: 300px;
  margin: 20px auto 0;
  overflow: hidden;
  position: relative;
  background: white;
  display: flex;
  align-items: center;
}

.piste-carrousel-statistiques {
  display: flex;
  animation: defilement-statistiques 30s linear infinite;
}

.diapositive-statistique {
  height: 280px;
  width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

@keyframes defilement-statistiques {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-320px * 4));
  }
}

.colonne-sidebar-infos {
  width: 100%;
}

.page-detail-offre .carte-resume-sidebar {
  position: static;
  top: auto;
}

.carte-resume-sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px;
}

.liste-infos-cles {
  list-style: none;
  padding: 0;
}

.item-liste {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.85rem;
}

.label-info {
  color: #777;
  flex-shrink: 0;
}

.valeur-info {
  font-weight: 600;
  text-align: right;
}

#alerte{
  color:red;
  padding : 10px;
  font-weight: bold;
  font-size: large;
}

.centre{
  text-align: center;
}

.message-success {
  background-color: #9D4EDD;
  color: #FFFFFF;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: center;
}

.titre-notes {
  font-size: 15px;
  color: #000000;
  margin-top: 5px;
  margin-bottom: 20px;
  font-style: italic;
}

.titre-notes::after {
  display: none;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 32px;
}
.tag-competence {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ede9fe;
    color: #5b21b6;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}
.tag-competence button {
    background: none;
    border: none;
    cursor: pointer;
    color: #5b21b6;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}


.entete-titre-favori {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.entete-titre-favori .titre-principal-poste {
    margin: 0;
    flex: 0 1 auto;
}

.form-favori-detail {
    margin: 0;
    display: flex;
}


.etoiles { 
        display: flex; 
        flex-direction: row-reverse; 
        justify-content: flex-end; 
        gap: 8px; 
        margin: 10px 0; 
    }
    .etoiles input { display: none; }
    .etoiles label { 
        font-size: 2.5rem; 
        color: #ddd; 
        cursor: pointer; 
        transition: color .2s; 
    }
    .etoiles label:hover, 
    .etoiles label:hover ~ label, 
    .etoiles input:checked ~ label { 
        color: #f5a623; 
    }



    .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 32px;
}
.tag-competence {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ede9fe;
    color: #5b21b6;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}
.tag-competence button {
    background: none;
    border: none;
    cursor: pointer;
    color: #5b21b6;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

#fermer-fenetre{
  padding: 12px 30px;
  background-color: #5A189A;
  color: white;
  border: none;
  border-radius: 30px;
  box-shadow: none;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: bolder;
}

#lettre-motivation{
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-top: 20px;
  font-family: sans-serif;
  line-height: 1.6;
}

.infos-lettre {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 6px solid #7B2CBF; 
    padding: 25px 30px;
    margin-bottom: 35px;
    border-radius: 0 12px 12px 0;
}

.infos-lettre p {
    margin: 0;
    font-size: 1.15rem;
    color: #10002B; 
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.infos-lettre p span {
  background-color: #E0AAFF; 
  color: #240046; 
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px; 
  letter-spacing: 0.8px;
  box-shadow: 0 2px 6px rgba(90, 24, 154, 0.2);
  min-width: 100px;
  text-align: center;
  flex-shrink: 0; 
}

#filtrer{
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.bouton-cv{
  color: #e74c3c;
  margin-left: 10px;
}

.bouton-lm{
  color: #3498db;
  margin-left: 10px;
}

.carte-google {
  width: 100%;
  height: 250px;
  border: 0px;
  border-radius: 8px;
}

.cv-frame {
    width: 100%;
    height: 800px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 40px;
    box-sizing: border-box;
}