/* Initialisation des marges de tous les élements html*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Définition des variables du documents*/
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --background-color: rgba(215, 210, 255, 0.151);
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 5px 25px rgba(171, 174, 185, 0.356);
  --titre-color: rgb(141, 49, 184);
}

body {
  font-family: Arial, sans-serif;
}

/* BEGIN DARK THEME */
:root {
  --page-bg: #ffffff;
  --surface-bg: #ffffff;
  --surface-bg-soft: #f0f0f0;
  --link-color: #0066cc;
}

html[data-theme="dark"] {
  --text-color: #e6ebf5;
  --light-bg: #171c26;
  --background-color: rgba(97, 111, 153, 0.2);
  --white: #11161f;
  --border-color: #2c3445;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --titre-color: #8fb6ff;
  --page-bg: #0b0f17;
  --surface-bg: #11161f;
  --surface-bg-soft: #171c26;
  --link-color: #89b4ff;
}

body {
  background: var(--page-bg);
  color: var(--text-color);
}

.theme-toggle {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}



.theme-toggle__track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #c9d0db;
  position: relative;
  transition: background-color 0.25s ease;
}

.theme-toggle__thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.theme-toggle__label {
  font-weight: 600;
}

.theme-toggle[aria-checked="true"] .theme-toggle__track {
  background: #4d7cff;
}

.theme-toggle[aria-checked="true"] .theme-toggle__thumb {
  transform: translateX(20px);
}

.theme-toggle:focus-visible {
  outline: 2px solid #4d7cff;
  outline-offset: 2px;
}

html[data-theme="dark"] .scroll-container {
  background: var(--surface-bg);
}

html[data-theme="dark"] #toggleLink {
  color: var(--link-color);
  background: var(--surface-bg-soft);
}

html[data-theme="dark"] #toggleLink:hover {
  background: #212838;
}

html[data-theme="dark"] .submenu {
  background: var(--surface-bg);
  border-color: var(--border-color);
}

html[data-theme="dark"] .submenu a:hover {
  background: var(--surface-bg-soft);
}

html[data-theme="dark"] .cardContent,
html[data-theme="dark"] .containerQuizz,


html[data-theme="dark"] .score-track {
  background: var(--surface-bg);
  border-color: var(--border-color);
}

html[data-theme="dark"] .chiffreIA p,
html[data-theme="dark"] .introQuizz,
html[data-theme="dark"] .score-bars h3,
html[data-theme="dark"] .score-label,
html[data-theme="dark"] .cardContent p,
html[data-theme="dark"] .cardContent ul {
  color: var(--text-color);
}
html[data-theme="dark"] .score-bars,
html[data-theme="dark"] .zone-section,
html[data-theme="dark"] .containerChiffre .carte {
  background-color: #162033;
  color: var(--text-color);
}

html[data-theme="dark"] .checkbox-label:hover {
  background-color: rgba(137, 180, 255, 0.2);
}

html[data-theme="dark"] .zone-section:hover {
  border-left: 3px solid #89b4ff;
}

html[data-theme="dark"] .nav {
  background-color: var(--surface-bg);
}

html[data-theme="dark"] .nav-list a:hover {
  background-color: var(--surface-bg-soft);
}
/* END DARK THEME */

/*messages défilants*/
.defil {
  width: 100%;
  min-height: 20vh;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.scroll-container {
  background: rgb(255, 255, 255);
  flex: 1;
  display: flex;
  overflow: hidden;
  align-items: center;
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 5;
}

.scroll-line {
  display: flex;
  white-space: nowrap;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.scroll-left {
  animation-name: scrollLeft;
  animation-duration: 60s;
}

.scroll-right {
  animation-name: scrollRight;
  animation-duration: 60s;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.message {
  display: flex;
  align-items: center;
  max-width: 800px;
  height: auto;
  background: linear-gradient(
    135deg,
    rgba(77, 5, 128, 0.8) 0%,
    rgba(85, 66, 253, 0.8) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 5px 10px;
  margin: 0 15px;
  border-radius: 25px;
  font-size: clamp(0.9em, 2vw, 1.4em);
  font-weight: 400;
  line-height: 1.3;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 5;
}

.message::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(125, 27, 206, 0.778);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
  z-index: 0;
}

.message:hover {
  cursor: pointer;
  transform: translateY(-4px) scale(1.03);
}

.message:hover::before {
  opacity: 1;
}

.message__text {
  position: relative;
  z-index: 2;
}

/* Styles des popups */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.popup-contenu {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 40, 0.98),
    rgba(40, 20, 60, 0.98)
  );
  margin: 10% auto;
  padding: 40px;
  border: 2px solid rgba(138, 43, 226, 0.6);
  border-radius: 20px;
  width: 85%;
  max-width: 700px;
  box-shadow:
    0 25px 80px rgba(138, 43, 226, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: white;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-contenu h2 {
  color: rgba(138, 43, 226, 1);
  margin-top: 0;
  font-size: 1.8em;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.popup-contenu p {
  line-height: 1.6;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
}

.fermer {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  float: right;
  font-size: 36px;
  font-weight: bold;
  line-height: 20px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all 0.3s;
}

.fermer:hover {
  color: rgba(138, 43, 226, 1);
  transform: rotate(90deg);
  background: transparent;
  border: none;
}

.fermer:focus {
  outline: none; /*évite le cadre autour de la croix de fremeture des popup*/
}

/* apparition au scroll */
/* ----------------------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  min-height: 120px;
  transform: translateY(40px);
  transition:
    opacity 1.2s ease-out,
    transform 0.9s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
}

.reveal.is-visible {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 80%;
  margin: 18px auto;
  padding: 28px 36px;
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(135deg, #4d0580 0%, #5542fd 60%, #00d4ff 100%);
  border-radius: 16px;
}

.reveal.is-visible h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.4px;
}

/* Afficher/masquer le bandeau de défilement */
/* ----------------------------------------------------------------------------------------- */

#toggleLink {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 15px;
  background: #f0f0f0;
  border-radius: 5px;
  display: inline-block;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

#toggleLink:hover {
  background: #e0e0e0;
}

.cache {
  display: none !important;
}

/* ----------------------------------------------------------------------------------------- */
/* Header */
/* ----------------------------------------------------------------------------------------- */

.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  /*le header reste collé lors du scroll*/
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

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

/* Menu Burger */
.burger {
  display: none;
  /*caché par défaut*/
  flex-direction: column;
  /* 3 span en colonne*/
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.burger.active span:nth-child(1) {
  /* quand Javascript ajoute la classe active à la classe burger*/
  transform: rotate(45deg) translate(8px, 8px);
  /* rotation du 1er span*/
}

.burger.active span:nth-child(2) {
  opacity: 0;
  /* On masque le ée span*/
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  /* rotation du 3e span*/
}

/* Navigation */
.nav-list {
  display: flex;
  /* les li sont alignés horizontalement*/
  list-style: none;
  /* supprime les puces*/
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  /* pas de soulignement des liens*/
  color: var(--text-color);
  font-weight: 505;
  transition: color 0.4s;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--secondary-color);
}

/* Position relative pour le menu item */
.menu-item {
  position: relative;
}

/* Flèche indicateur */
.arrow {
  font-size: 0.8em;
  margin-left: 5px;
  transition: transform 0.3s ease;
  display: inline-block;
}

/* Sous-menu - Mode Desktop */
.submenu {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 10px 0;
  z-index: 1000;
  margin-top: 5px;
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.3s ease;
}

.submenu a:hover {
  background: #f0f0f0;
}

/* Afficher le sous-menu quand actif */
.menu-item.active .submenu {
  display: block;
}

/* Rotation de la flèche */
.menu-item.active .arrow {
  transform: rotate(180deg);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  object-fit: cover;
}

/* ----------------------------------------------------------------------------------------- */
/* Hero Section : bandeau*/
/* ----------------------------------------------------------------------------------------- */

.hero {
  height: 50vh;
  /*hauteur proportionnelle (40 % de la fenêtre*/
  min-height: 250px;
  max-height: 600px;
  position: relative;
  box-shadow: 0 5px 10px rgb(54, 66, 109);
}

.container {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  background-image: url("Images/Bannière.webp");
  background-size: cover;
  /*l'image remplit tous l'espace*/
  background-position: center;
  background-repeat: no-repeat;
}

.hero .ContainerTitre {
  display: flex;
  position: absolute;
  z-index: 10;
  top: 30%;
  left: 30%;
  align-items: center;
}

.hero img {
  height: 200px;
  object-fit: cover;
}

.textContainer {
  display: flex;
  flex-direction: column;
}

.ContainerTitre .titre {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.747);
}

.ContainerTitre .sousTitre {
  margin-top: 10px;
  margin-left: 30px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.747);
}

/* Overlay pour fermer le menu : elle jette un voile noir sur la page qd le menu burger est ouvert*/
.overlay {
  display: none;
  /* cette div reste invisible*/
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* ----------------------------------------------------------------------------------------- */
/* Main */
/* ----------------------------------------------------------------------------------------- */

/*Intro*/
/* ----------------------------------------------------------------------------------------- */
.intro {
  max-width: 1200px;
  /*Espace de la colonne centrale pour plus de visibilité*/
  margin: 30px auto;
  /*centre horizontalement dans son conteneur.*/
  padding: 10px 20px 20px 20px;
  /*marge interne de 40 en haut et bas et 20 sur les cotés*/
  background-color: var(--background-color);
  border-radius: 20px;
}

.intro p {
  line-height: 1.7;
  /* Interligne confortable */
  margin-bottom: 1em;
  /* Espace entre les paragraphes */
  color: var(--text-color);
  font-size: clamp(1rem, 1vw, 2rem);
}

/* Sommaire*/
/* ----------------------------------------------------------------------------------------- */
.sommaire {
  max-width: 1200px;
  /*Espace de la colonne centrale pour plus de visibilité*/
  margin: 0 auto;
  /*centre horizontalement dans son conteneur.*/
  padding: 10px 20px;
  /*marge interne de 10 en haut et bas et 20 sur les cotés*/
}

.sommaire h2 {
  margin-bottom: 30px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--titre-color);
  border-left: 6px solid var(--titre-color);
  padding-left: 10px;
}

.axes {
  display: flex;
align-items: stretch;
}

.containerAxe {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cardImage {
  width: 100%;
  height: 140px;
}

.cardImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.cardContent {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  padding: 10px 10px;
  border: 2px solid rgba(128, 128, 128, 0.247);
  border-radius: 0 0 10px 10px;
  transition: border-color 0.3s ease;
}

.cardContent h3 {
  margin: 10px 10px;
}

.cardContent p {
  color: var(--text-color);
  margin: 10px 10px;
}

.cardContent ul {
  margin-left: 30px;
  color: var(--text-color);
  line-height: 1.7;
}

.lien {
  color: rgb(104, 202, 206);
  font-weight: bold;
  font-size: clamp(12px, 2vw, 14px);
  margin: 10px 10px;
  margin-top: auto;
  padding-left: 110px;
  transition: all 0.3s ease;
}

.containerAxe:hover {
  transform: translateY(-7px);
  box-shadow: 0 5px 25px rgba(120, 142, 241, 0.644);
}

.containerAxe:hover .cardContent {
  border-color: #a564e2;
}

.containerAxe:hover .lien {
  color: #a564e2;
  transform: translateX(30px);
}

/* L'IA en chiffre */
/* ----------------------------------------------------------------------------------------- */
.chiffreIA {
  max-width: 1200px;
  /*Espace de la colonne centrale pour plus de visibilité*/
  margin: 0 auto;
  /*centre horizontalement dans son conteneur.*/
  padding: 10px 20px;
  /*marge interne de 40 en haut et bas et 20 sur les cotés*/
}

.chiffreIA h2 {
  margin-bottom: 30px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--titre-color);
  border-left: 6px solid var(--titre-color);
  padding-left: 10px;
}

.chiffreIA p {
  margin-bottom: 20px;
  font-size: clamp(1rem, 0.8vw, 1.5rem);
}

.containerCarteChiffre {
  margin-bottom: 20px;
}

.containerCarteChiffre h3 {
  margin-bottom: 20px;
  margin-left: 5px;
  color: rgb(76, 65, 236);
  text-decoration: underline;
}

.containerChiffre {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.containerChiffre .carte {
  background-color: var(--background-color);
  padding: 10px 30px 30px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 18px;
  color: #333;
  position: relative;
}

.containerChiffre .carte::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: #3498db;
  transition: width 0.3s ease;
}

.containerChiffre .carte:hover::after {
  width: 100%;
}

.containerChiffre .carte h3 {
  margin-bottom: 10px;
  color: #3498db;
}

.carte .chiffre {
  line-height: 1.7;
}


/* ----------------------------------------------------------------------------------------- */
/* Quizz */
/* ----------------------------------------------------------------------------------------- */
.containerQuizz {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 10px 20px;
  border-radius: 10px;
}

.quizz h1 {
  margin-bottom: 30px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--titre-color);
  border-left: 6px solid var(--titre-color);
  padding-left: 10px;
}

.introQuizz {
  color: var(--text-color);
  margin-bottom: 30px;
  font-size: 16px;
  font-size: clamp(1rem, 0.8vw, 1.5rem);
}

#quizForm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.zone-section {
  margin-bottom: 35px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: var(--background-color);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.zone-section:hover {
  border-left: 3px solid #3498db;
  transform: translateY(-2px);
}

.zone-title {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.zone-confort {
  color: #3498db;
  border-color: #3498db;
}

.zone-resistance {
  color: #e74c3c;
  border-color: #e74c3c;
}

.zone-exploration {
  color: #f39c12;
  border-color: #f39c12;
}

.zone-action {
  color: #27ae60;
  border-color: #27ae60;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  font-size: 18px;
  transition: background-color 0.2s;
}

.checkbox-label:hover {
  background-color: #d2b9fa8d;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 12px;
  margin-top: 3px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-label span {
  flex: 1;
}

/* NOUVEAU : Container des résultats avec animation */
.result-container {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  display: none;
}

.result-container.visible {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* NOUVEAU : Graphique à barres */
.score-bars {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: none; /* Caché par défaut */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.score-bars.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.score-bars h3 {
  color: #333;
  margin-bottom: 25px;
  font-size: 22px;
}

.score-bar {
  margin-bottom: 20px;
}

.score-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #555;
}

.score-track {
  height: 30px;
  background: #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.score-fill {
  height: 100%;
  border-radius: 15px;
  transition:
    width 1s ease,
    box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: white;
  font-weight: bold;
  font-size: 14px;
  width: 0%;
}

.score-fill.winner {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.8);
  }
}

.score-fill.confort {
  background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
}
.score-fill.resistance {
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}
.score-fill.exploration {
  background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}
.score-fill.action {
  background: linear-gradient(90deg, #27ae60 0%, #229954 100%);
}

/* ANCIEN STYLE : Carte de profil améliorée */
.result {
  margin-top: 40px;
  padding: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.result::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
}

.result h3 {
  font-size: 24px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.result-content {
  font-size: 18px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.result-content strong {
  display: block;
  font-size: 28px;
  margin-bottom: 15px;
  text-align: center;
}

.profile-icon {
  font-size: 60px;
  margin-bottom: 20px;
  text-align: center;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reset-btn {
  margin-top: 20px;
  padding: 12px 24px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.empty-message {
  margin-top: 20px;
  padding: 20px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*---------------------------------------------*/
/* Footer*/
/*---------------------------------------------*/

footer {
  background: linear-gradient(135deg, #33405e 0%, #231549 100%);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 40px;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: #4cc9f0;
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section p {
  line-height: 1.6;
  color: #b8c1ec;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b8c1ec;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #4cc9f0;
  transform: translateX(5px);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-text {
  font-size: 1.5em;
  font-weight: bold;
  color: #4cc9f0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #b8c1ec;
  font-size: 0.9em;
  margin: 5px;
}

.footer-credits {
  margin-top: 10px;
  font-size: 0.85em;
  color: #8892b6;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(76, 201, 240, 0.1);
  border-radius: 50%;
  color: #4cc9f0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2em;
}

.social-link:hover {
  background: #4cc9f0;
  color: #1a1a2e;
  transform: translateY(-3px);
}

/*---------------------------------------------*/
/* RESPONSIVE STYLES */
/*---------------------------------------------*/

/* Tablettes (max 1024px) */
@media screen and (max-width: 1024px) {
  .nav-list {
    gap: 20px;
  }

  .nav-list a {
    font-size: 14px;
  }

  .hero {
    height: 30vh;
    /*hauteur proportionnelle (30 % de la fenêtre*/
  }

  .hero .ContainerTitre {
    display: flex;
    position: absolute;
    z-index: 10;
    top: 30%;
    left: 10%;
    align-items: center;
    width: 90%;
    /* Évite les débordements */
  }
}

/* Tablettes portrait et grands mobiles (max 768px) */
@media screen and (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 80px;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-list a {
    display: block;
    padding: 20px 30px;
    font-size: 16px;
  }

  .nav-list a:hover {
    background-color: var(--light-bg);
  }

  .menu-item {
    position: static;
    /* Annule le position relative */
  }

  .submenu {
    position: static;
    /* Annule le position absolute */
    background: rgba(0, 0, 0, 0.05);
    border: none;
    box-shadow: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin-top: 10px;
    min-width: auto;
  }

  .submenu a {
    padding: 8px 0;
  }

  .submenu a:hover {
    background: transparent;
    opacity: 1;
  }

  .scroll-container {
    min-height: 60px;
  }

  .message {
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 20px;
    max-width: 90vw;
  }

  .popup-contenu {
    width: 90%;
    padding: 30px 20px;
    margin: 20% auto;
  }

  .hero {
    height: 20vh;
  }

  .hero .ContainerTitre {
    display: flex;
    position: absolute;
    z-index: 10;
    top: 30%;
    left: 10%;
    align-items: center;
    width: 90%;
    /* Évite les débordements */
  }

  .ContainerTitre .titre {
    font-size: 2rem;
  }

  .hero img {
    height: 100px;
    /* Réduit la taille du logo */
  }

  .axes {
    flex-direction: column;
  }

  .containerAxe {
    width: 90%;
    max-width: 300px;
    margin: 15px auto;
  }

  .cardImage,
  .cardContent {
    width: 100%;
  }

  .containerChiffre {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .containerChiffre .carte {
    padding: 20px;
    min-height: 150px;
  }

  #quizForm {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer {
    padding: 40px 0 20px;
  }
}

@media (max-width: 600px) {
  .containerQuizz {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }

  .zone-title {
    font-size: 18px;
  }
}

/* Mobiles (max 480px) */
@media screen and (max-width: 480px) {
  .containerHeader {
    padding: 0 15px;
  }

  .nav {
    width: 80%;
  }

  .hero {
    height: 20vh;
  }

  .message {
    padding: 8px 15px;
    margin: 0 8px;
    border-radius: 15px;
  }

  .popup-contenu {
    width: 95%;
    padding: 25px 15px;
    margin: 25% auto;
  }
}

/* Très petits mobiles (max 360px) */
@media screen and (max-width: 360px) {
  .nav {
    width: 85%;
  }

  .hero {
    height: 20vh;
  }
}
