:root {
  --c-enjeux: #f1e4af;
  --c-terrain: #F6C09A;
  --c-leviers: #739CB0;
  --c-muted: #e9f2f8;
  --bg: #51C6B4;
  --grid: #f4f7fb;
  --label: #4a5568;
  --primary-green: #51C6B4;
  --light-green: #E8F7F8;
  --dark-green: #1D1D1B;
  --text-color-dark: #1D1D1B;
  --text-color-light: #FFFFFF;
  --accent-yellow: #DEFC70;
  --gray-text: #555;
  --border-radius: 8px;
  --text-color-filet: #D1E7E4;
}

#chart {
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Ratio carré */
  position: relative;
  overflow: visible;
  margin: 0 auto;
}

svg {
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
  top: 0;
  left: 0;
}

hr {
  border: none;    
  height: 1px;              
  background-color: #FFF; 
  margin: 0px 0; 
}

.wedge {
  stroke: #fff;
  cursor: pointer;
}

.no-data {
  opacity: 1.3;
}

.tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 10;
  background: #0b1324;
  color: white;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
}

.center-circle {
  fill: none;
  stroke: rgba(255, 0, 0, 0.5);
  stroke-width: 1px;
  stroke-dasharray: 3, 3;
}

/* Quiz styles */
.quiz {
  background-color: #51C6B4;
  margin: 0px auto;
  padding-bottom: 30px
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 0px;
  padding: 20px;
  border-radius: 20px;
  background-color: #487273;
}

.quiz-end {
  height: 50px;
}

.quizlogo {
  padding: 20px;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.quizlogo img {
  max-width: 220px
}

.quizlogo:hover {
  opacity: 0.7; 
}

.titre-quiz {
  text-align: center;
  color: var(--text-color-dark);
  padding: 5px 0px;
  font-size: 2.2em;
  font-weight: 600;
}

.quiz-container p {
  height: 100%;
  text-align: left;
  color: var(--text-color-light);
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.2em;
  padding: 0px 0px 10px 20px;
}

.double-underline {
  text-decoration-line: underline;
  text-decoration-style: double;
  text-decoration-color: inherit; /* Utilise la couleur du texte */
}

.multiple {
  color:#DEFC70;
	font-size: 0.9rem;
	font-style: italic
}

/* Respecte les personnes qui préfèrent moins d’animations */
  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }

  .fade-in {
    opacity: 0;
    animation: fade-in 800ms ease-out 100ms forwards;
  }

  @keyframes fade-in {
    from { opacity: 0; transform: translateY(0px); }
    to   { opacity: 3; transform: translateY(0px); }
  }


.progress-container {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 0px;
}

.progress-bar {
  height: 2px;
  background-color: #DEFC70;
  border-radius: 0px;
  width: 0%;
  transition: width 0.3s;
}

.progress-container.under-title {
  margin-top: 0px;
  margin-bottom: 0px;
}

.progress-container.under-title #progressText {
  display: block;
  text-align: left;
  margin-top: 0px;
  padding: 10px 0 10px 20px;
  font-weight: 600;
}

#progressText .progress-theme {
  /* couleur du thème en inline via JS */
  font-size: 1.4rem;
  padding: 10px 0 20px 0;
}

#progressText .progress-question {
  font-size: 1rem;
  color: #DEFC70;
  position: relative;         /* pour bien placer le pseudo-élément */
  padding-left: 2em;        /* espace pour le carré */
}

/* carré avant le texte */
#progressText .progress-question::before {
  content: "";                /* crée l'élément */
  display: inline-block;
  width: 0.8em;               /* taille du carré */
  height: 0.8em;
  background-color: #DEFC70;  /* couleur du carré */
  position: absolute;
  left: 0px;                    /* collé à gauche du span */
  top: 50%;
  transform: translateY(-50%);/* centré verticalement */
  border-radius: 2px;         /* léger arrondi si souhaité */
}

.question {
  display: none;
  padding: 0px;
  border-bottom: 0px solid #eee;
}

.question.active {
  display: block;
}

.question-title {
  padding: 10px;
  border: 3px solid #fff;
  border-bottom-color: #FFFFFF;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.7em;
}

.segment-enjeux .question-title {
  background-color: #f1f1d9;
  border-radius: 50px;
  text-transform: uppercase;
  text-align: center
}

.segment-terrain .question-title {
  background-color: #F6C09A;
  border-radius: 50px;
  text-transform: uppercase;
  text-align: center
}

.segment-leviers .question-title {
  background-color: #739CB0;
  border-radius: 50px;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.nav-button {
  background-color: var(--accent-yellow);
  color: var(--text-color-dark);
  margin-bottom: 10px;
  padding: 10px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: 500;
  transition: background-color 0.3s ease;
  box-shadow: 4px 2px 0px 0px #000000; /* décalage-x décalage-y flou étendue couleur */
  cursor: pointer
}

.nav-button:hover {
  background-color: #FFFFFF;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0;
}

#prevButton {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s;
}

#prevButton.show {
  visibility: visible;
  opacity: 1;
}

#nextButton, #submitButton {
  margin-left: auto;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
	 max-height: 90vh; /* limite hauteur à 90% de l'écran */
  overflow-y: auto; /* scroll vertical dans la modale */
}

.modal-content {
  background-color: #FFF;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.modal-logo {
  display: block;
  align-content: left;
  text-align: left;
  margin: 20px 0 30px 20px;
  width: 200px;
  animation: none !important;
}

.modal-title {
  text-align: left;
  margin-top: 0;
  padding: 0 20px 0px 20px; 
  font-weight: 600;
  font-size: 1.8em;
  text-transform: uppercase;
}

.modal-Text {
  padding: 0 20px 30px 20px; 
  font-weight: 500;
}

.modal-close {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  padding: 0;
  background: transparent; /* Pas de fond */
  border: none;
}

.modal-close-svg {
  width: 100%;
  height: 100%;
  color: #000000; /* Couleur initiale (rouge) */
  transition: color 0.3s ease;
}

.modal-close-path {
  transform: scale(0.5); /* Ajuste la taille de la croix (0.8 = 80% de la taille originale) */
  transform-origin: center; /* Centre la transformation */
}

.modal-close:hover .modal-close-svg {
  color: #FFF; /* Noir au survol */
}

.download-button {
  display: none;
}

.download-button {
  display: inline-block;
  background-color: var(--accent-yellow);
  color: var(--text-color-dark);
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: 400;
  transition: background-color 0.3s ease;
  box-shadow: 4px 2px 0px 0px #000000; 
  margin: 0px 0 30px 20px;
  cursor: pointer;
}

.download-button:hover {
  background-color: #FFFFFF;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    width: 95%;
    padding: 10px;
  }
  .modal-content {
    width: 95%;
    margin: 20% auto;
  }
}

/* Options styles */
.options input[type="radio"],
.options input[type="checkbox"] {
  display: none;
}

.options label {
  display: flex;
  align-items: center;
  margin: 8px 0;
  padding: 12px 20px;
  border: 1px solid #fff;
  border-radius: 12px;
  cursor: pointer;
  background-color: #487273;
  transition: background-color 0.3s ease;
  position: relative; 
  min-height: 45px; 
  box-sizing: border-box; 
}

.options label:hover {
  background-color: #5F8384;
}

.options label span {
  color: #fff;
  font-size: 1.0rem;
  font-weight: 400;
  padding-left: 35px; 
  line-height: 1.4;
  display: block;
  word-break: break-word;
}

.options input[type="radio"] + span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: transparent;
}

.options input[type="checkbox"] + span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 4px;
  background-color: transparent;
}

/* État coché pour les boutons radio */
.options input[type="radio"]:checked + span::before {
  background-color: #DEFC70;
  border-color: #DEFC70;
}

/* État coché pour les cases à cocher */
.options input[type="checkbox"]:checked + span::before {
  background-color: #DEFC70;
  content: "✔";
  color: #000;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* État coché pour les boutons radio (cercle rempli) */
.options input[type="radio"]:checked + span::before {
  content: "";
}

/* Ajoute un cercle intérieur pour les boutons radio cochés */
.options input[type="radio"]:checked + span::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #000;
}

.legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  font-size: 13px;
}

.sw {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
  transform: translateY(1px);
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--bg);
}

/* --- Animation de flottement pour les images --- */
@keyframes float {
  0% {
    transform: translateY(0px); /* Position initiale */
  }
  50% {
    transform: translateY(-15px); /* Monte de 15px */
  }
  100% {
    transform: translateY(0px); /* Revient à la position initiale */
  }
}
/* --- Fin animation de flottement --- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0px 20px;
}

/* Utility classes */
.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

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

.text-left {
  text-align: left;
}

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* --- Header Section --- */
.header-section {
  background-color: var(--primary-green);
  color: var(--text-color-dark);
  padding: 30px 0 0 0 ;
  /*height: 100vh;*/
}

.ariane {
  margin-left: 50px;
  font-weight: 300;
}

.ariane a {
  color:#FFFFFF;
  text-decoration: none
}

.ariane a:hover {
  color:var(--text-color-dark);
  text-decoration: none
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  padding-top: 0px;
  margin-top: 20px;
}

.header-left {
  flex: 1;
  margin-left: 0px; 
  margin-top: 0px; 
  min-width: 300px;
  max-width: 50%;
}

.header-left .header-text-with-filet {
  border-left: 2px solid var(--text-color-filet); 
  margin-left: 20px; 
  padding-left: 30px;
  padding-right: 20px;
  margin-top: 30px; 
}

.header-right {
  flex: 1;
  min-width: 350px;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-right img {
  max-width: 100%;
  height: auto;
  display: block; /* S'assure que l'image ne laisse pas d'espace sous elle */

  /* --- Lignes à ajouter pour l'animation --- */
  animation: float 5s ease-in-out infinite; /* Applique l'animation */
  /* --- Fin des lignes à ajouter --- */
}


.header-resultatleft {
  flex: 1;
  margin-left: 0px;
  min-width: 300px;
  max-width:100%;
  margin-bottom: 0px;
}


.header-left h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.header-left p {
  font-size: 1.2em;
  margin-bottom: 20px;
  max-width: 500px;
  font-weight: 300;
}

.header-left p strong {
  font-weight: 500;
}

.header-left img {
  max-width:400px;
}

.header-resultatleft h1 {
  padding-top: 20px
}

.header-resultatleft p {
  font-size: 1em;
  margin-bottom: 20px;
  max-width: 450px;
  font-weight: 300;
}

.header-resultatleft p strong {
  font-weight: 500;
}

.header-resultatleft img {
  width:  400px;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.header-resultatleft img:hover {  
  opacity: 0.7; 
}

.header-resultatleft ul strong {
  font-weight: 500;
}

.header-resultatleft ul {
  margin-top: -1.0em;       
  margin-bottom: -1.0em;    
  padding-left: 1.2em;    
  font-size: 1em;        
  font-weight: 300;      
  line-height: 1.6;       
  list-style-type: square;
}

.header-resultatleft li {
  margin-top: 0em;       
  margin-bottom: 0em;
}

.highlighter {
  background: linear-gradient(
    to bottom,
    transparent 0 45%,
    #DEFC70 45% 100%
  );
  background-repeat: no-repeat;  
  background-size: 0% 100%;           
  animation: highlight-sweep 0.5s ease-out forwards;
}

@keyframes highlight-sweep {
  to {
    background-size: 100% 100%;         
  }
}

.btn-start {
  background-color: var(--accent-yellow);
  color: var(--text-color-dark);
  margin-top: 20px;
  margin-bottom: 50px;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: 500;
  transition: background-color 0.3s ease;
  box-shadow: 4px 2px 0px 0px #000000; /* décalage-x décalage-y flou étendue couleur */
  cursor: pointer
}

.btn-start:hover {
  background-color: #FFFFFF;
}

/* --- Mid Section --- */
.mid-section {
            background-color: #FDFEF9;
            padding: 20px 0;
            border-bottom: 0px solid #eee;
        }

        .mid-content {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            align-items: center;
            /* Ajoutez ces marges pour l'espacement comme sur l'image originale */
            margin-top: 40px;
            margin-bottom: 40px;
        }

        .mid-left {
            flex: 1;			
            min-width: 250px; 
        }

        .mid-left img {
            max-width: 90%;
            height: auto;
            display: block;
        }

        .mid-right {
            flex: 1;
            min-width: 300px;
        }

.mid-right h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  color: var(--text-color-dark);
}

.mid-right p {
  font-size: 1.2em;
  color: var(--text-color-dark);
  margin-bottom: 15px;
  font-weight: 300;
}
.mid-right strong {
  font-weight: 500;
}

/* --- Statistics Section --- */
.stats-section {
  /*background: linear-gradient(180deg, #FDFEF9, #51C6B4);*/
  background-color: #51C6B4;
  padding: 60px 0 80px 0;
}

.stats-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  color: var(--text-color-dark);
  margin-bottom: 40px;
  text-align: center;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.stat-card {
	height: 230px;
  background: #FDFEF9;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 7px 7px 10px rgba(0,0,0,0.20);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.3em;
  font-weight: 800;
  color: var(--text-color-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
	text-align: center

}


.stats-cards.animate {
    opacity: 1;
    transform: translateY(0);
}


.stats-cards.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-card p {
  font-size: 1.1em;
  color: #1D1D1D;
  margin-bottom: 10px;
  font-weight: 300;
  line-height: 1.3em
}

.stat-card a {
  font-size: 0.9em;
  color: #1D1D1D;
  font-weight: 500;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1.5px solid #1D1D1B;
  padding-bottom: 2px;
  text-decoration: none
}

.stat-card a:hover {
  color: #51C6B4;
  border-bottom: 1.5px solid #51C6B4;
  padding-bottom: 2px;
}

.stat-card .source {
  font-size: 0.85em;
  color: #487273;
  margin-top: auto; /* Pushes source to bottom */
}

.view-study-link {
  display: inline-block;
  color: #1D1D1B;
  text-decoration: none;
  font-weight: 600;
	font-size: 1.2em;
  border-bottom: 2px solid #1D1D1B;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.view-study-link:hover {
  color: #487273;
  border-color: #487273;
}

.bt-etude {
  display: inline-block;
  color: #1D1D1B;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #1D1D1B;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.bt-etude:hover {
  color: #888;
  border-color: #888;
}

/* --- Footer --- */
.footer-section {
  background-color: var(--dark-green);
  color: var(--text-color-light);
  padding: 0px 0;
  font-size: 0.9em;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}

.footer-inline {
  display: flex;
  align-items: center; /* Aligne les éléments verticalement au centre */
  gap: 0px; /* Espace entre les icônes et le texte */
}

.footer-left {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px
}

.footer-left img {
  height: 60px;
  margin-bottom: 0px;
}

.footer-left p {
  margin-top: 0px;
}

.social-icons {
  margin-top: 0px;
}

.social-icons a {
  color: var(--text-color-light);
  font-size: 1.5em;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-yellow);
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 180px;
  align-items: flex-end; /* Align buttons to the right */
}

.mentions-section {
  background-color: var(--dark-green);
  color: var(--text-color-light);
  padding: 0px 0;
  font-size: 0.9em;
}

.mentions-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}

.mentions {
  margin-bottom: 0px;
  font-size: 0.8em
}

.mentions a {
  color:#FFFFFF
}

.mentions a:hover {
  color:#DEFC70
}

.partners-section {
  padding: 0px 0;
  background-color: #FFFFFF; /* Couleur de fond au choix */
  text-align: center;
}

.partners-logos {
  display: flex;
  justify-content: space-around; /* Espace les logos uniformément */
  align-items: center;
  flex-wrap: wrap; /* Permet le retour à la ligne si nécessaire sur mobile */
  gap: 10px; /* Espace entre les logos */
}

.partner-logo {
  flex: 0 0 auto; /* Empêche les logos de s'étirer */
  max-width: 180px; /* Largeur maximale des logos */
}

.partner-logo img {
  max-width: 60%;
  height: auto;
  transition: all 0.3s ease; /* Animation au survol */
}

.partner-logo img:hover {
  filter: grayscale(100%); /* Retire le filtre en niveaux de gris au survol */
  opacity: 9;
  cursor: pointer;
  transform: scale(1.1);
}

.img-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.img-wrapper img {
  display: block;
  transition: filter 0.3s ease;
}

.etiquette {
  position: absolute;
  bottom: 0;                   /* collée en bas de l'image */
  left: 0;
  width: 50%;
  padding: 0.5em;
  background: #FFF;  /* voile noir semi-transparent */
  color: #1D1D1B;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(100%);  /* cachée en bas */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.img-wrapper:hover img {
  filter: brightness(0.1);
}

.img-wrapper:hover .etiquette {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  position: absolute;
  width:200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  background: #DEFC70;
  color: #1D1D1B;
  padding: 0.6em 0.9em;
  border-radius: 10px;
  font-weight: 400;
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* laisse cliquer l'image */
}

.img-wrapper:hover .badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* pop mention */

.pop {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
	 max-height: 100vh; /* limite hauteur à 90% de l'écran */
  overflow-y: auto; /* scroll vertical dans la modale */
	 padding: 20px;
}

 
.pop-content {
  background: #51C6B4;
 padding: 3rem 2rem 2rem 2rem; /* Plus de padding-top pour laisser de la place à la croix */
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
	max-height: 90vh; /* Limite la hauteur du contenu */
  overflow-y: auto; /* Permet le scroll dans le contenu si nécessaire */
  margin: auto; /* Centre le contenu */
}

.pop.active {
  opacity: 1;
  pointer-events: auto;
}

.pop p {
  font-weight: 300;
	
}

.pop strong {
  font-weight: 500
}


.pop-title {
  text-align: left;
  margin-top: 0;
  padding: 10px 0px 0px 0px; 
  font-weight: 700;
  font-size: 1.8em;
  text-transform: uppercase;
}


.close {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 15px; /* Augmente la distance du haut */
  right: 15px; /* Augmente la distance de la droite */
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  z-index: 10; /* S'assure que la croix est au-dessus du contenu */
}

.close-svg {
  width: 100%;
  height: 100%;
  color: #000000; /* Couleur initiale (rouge) */
  transition: color 0.3s ease;
}

.close-path {
  transform: scale(0.5); /* Ajuste la taille de la croix (0.8 = 80% de la taille originale) */
  transform-origin: center; /* Centre la transformation */
}

.close:hover .modal-close-svg {
  color: #FFF; /* Noir au survol */
}




/* === MEDIA QUERIES === */

/* Tablet Large */
@media (max-width: 1024px) {
  .header-left h1 {
    font-size: 2.5em;
  }
	
	 .mid-right p {
    margin-left: auto;
		 text-align: left;
    margin-right: auto;
  }
   
  .partner-logo {
    flex: 0 0 auto;
    max-width: 140px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .header-left h1 {
    font-size: 2.2em;
  }
  
  .header-content {
    padding-top: 20px;
  }
  
  .header-left, .header-right {
    max-width: 100%;
  }

  .header-left .header-text-with-filet {
    margin-left: 0px;
    border-left: none; 
    padding-left: 0;   
  }

  .header-right {
    /* order: -1; /* Move graphic to top on smaller screens */
    margin-bottom: 40px;
  }

  .mid-content {
    max-height: 100vh
  }		

  .mid-content {
    display: flex;
    flex-wrap: nowrap;
    text-align: left;
	 margin-top: 0px;
    margin-bottom: 0px;
	  gap: 0px;
  }
    .mid-right h2 {
    font-size: 1.9em
  }
  .mid-right {
    flex: 1 1 100%;
    min-width: unset;
  }

  .mid-right {
    border-left: none;
    padding-left: 0;
  }
  
  .mid-right p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-left, .footer-right {
    min-width: unset;
    width: 100%;
  }
  
  .footer-left p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .social-icons {
    margin-top: 30px;
  }
  
  .footer-right {
    align-items: center;
  }
  
  .partner-logo {
    flex: 0 0 auto;
    max-width: 140px;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .header-logo-bar {
    /*flex-direction: column;*/
    gap: 20px;
    border-bottom: none;
    margin-bottom: 20px;
  }

  .header-logo-bar img {
    height: 40px;
    max-width: 100%;
  }
  
  .header-logo-bar .logo-gestes-propres {
    height: 40px;
    align-self: flex-end;
  }

  .header-left h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  
  .header-left p {
    font-size: 1em;
  }
  
 .btn-start {
    padding: 12px 25px;
    font-size: 1.2em;
	 content-align:center
  }
	
  .stats-section h2 {
    font-size: 1.6em;
  }
  
  .stats-cards {
    /*grid-template-columns: none;*/
  }
  
  .stat-card h3 {
    font-size: 1.1em;
  }
  
  .stat-card p {
    font-size: 0.9em;
  }
  
  .footer-left p {
    font-size: 0.85em;
  }

  .partners-logos {
    justify-content: center;
  }
  
  .partner-logo {
    max-width: 120px;
  }

  .footer-right {
    width: 100%;
    align-items: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0px;
  }
  
  .header-right .label {
    padding: 6px 10px;
    font-size: 0.8em;
  }
  
  .titre-quiz {
    font-size: 1.2em;
  }
  
  .question-title {
    padding: 10px;
    border: 3px solid #fff;
    border-bottom-color: #FFFFFF;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: center;
    font-size: 1em;
  }
  
  .header-left {
    flex: 1;
    margin-left: 10px; 
    margin-top: 0px; 
    min-width: 100%;
    max-width: 100%;
  }
	
	
	.header-left img {
  	width:300px;
}
  
  .header-resultatleft {
    flex: 1;
    margin-left: 0px;
    max-width: 100%;
  }
	.header-resultatleft img {
   width:300px;
  }
  
  .stats-section {
    padding: 30px 0 40px 0;
  }
	
	.stat-card {
	height: 200px;
}
	
	.stats-section h3 {
   font-size: 2.2em;
  font-weight: 700;
  }
 
  .mid-section {
    padding: 10px 
  }
  
  .mid-content {
	margin:0px;
    margin-bottom: 30px;
	  flex-wrap :wrap;
  }
	
  .mid-right h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text-color-dark);
}
  .mid-right p {
    font-size: 1em;
  }
	.view-study-link {
	font-size: 1.0em;
	}
	
  .pop {
    align-items: flex-start; /* Aligne le contenu vers le haut */
    padding: 40px 10px 20px 10px; /* Plus de padding-top sur mobile */
  }
  
  .pop-content {
    width: 95%;
    padding: 50px 15px 20px 15px; /* Encore plus de padding-top sur mobile */
    margin-top: 40px; /* Ajoute une marge en haut */
    max-height: calc(100vh - 80px); /* Ajuste la hauteur en tenant compte des marges */
  }
  
  .close {
    top: 10px;
    right: 10px;
    width: 35px; /* Augmente légèrement la taille sur mobile */
    height: 35px;
    background: rgba(255,255,255,0.9); /* Ajoute un fond semi-transparent */
    border-radius: 50%; /* Rend la croix circulaire */
  }
  
  .pop-title {
    margin-top: 10px; /* Ajoute de l'espace après la croix */
  }
	
}
