* {
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  display: flex;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
:root {
  --rouge: #ea392a;
  --orange: #ffa114;
  --orange1: #ffc773;
  --jaune: #ffd99f;
  --jauneSNCF: #fbbf24;
  --vert: #10ac84;
  --bleu: #0abde3;
  --bleu-1: #bcbddc;
  --blanc: #ededed;
  --noirSNCF: #182200;
  --brun: brown;
  --left-gap: 8px;
  --circle-size: 16px;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  display: flex;
  overflow: hidden;
}
h1,
h2,
h3,
h4,
h5 {
  line-height: 1.1;
}
.iframeContMax,
.pictL,
.pictLa,
.question,
.station-scale,
.timer {
  position: relative;
}
.ADS-SEL,
.ADS-SEL:hover,
.AsiOption,
.locG,
.mon-burger {
  cursor: pointer;
}
.btnCom,
.btnS,
.inter-titre,
.titresArrets,
.uppercase {
  text-transform: uppercase;
}
#sortable,
li {
  list-style: none;
}
.btnSt,
.float-right,
.supInfo {
  float: right;
}
#tooltip,
.dot:hover::after {
  max-width: 250px;
  white-space: normal;
}

@font-face {
  font-family: "Special_Elite";
  src: url("../font/Special_Elite/SpecialElite-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Affiche une police de secours le temps du chargement */
}

.num,
.tpsArret,
.tpsArretFin {
  font-family: monospace;
}

.blockquote,
.exercise-context,
.italic {
  font-style: italic;
}

.container {
  font-optical-sizing: auto;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  height: 100dvh;
  background: linear-gradient(#1c243a, #121a2c);
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: 90px 1fr 50px;
  grid-template-areas: "header header" "aside main" "suite suite";
  color: #fff;
}

.aside,
.header,
.main {
  margin-top: 1rem;
}

.header {
  grid-area: header;
  background: #020024;
}
.headMess {
  font-family: "Indie Flower", cursive, sans-serif;
  font-size: clamp(1em, 3vw, 3em);
  font-weight: 700;
  color: var(--brun);
  margin-left: 1em;
  line-height: 1;
}
.aside {
  grid-area: aside;
  grid-row: 2/4;
}

.main {
  grid-area: main;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #ffd700 #1e3d72;
}

.btnCom,
.btnS,
.contCartes,
.infobox,
.jobCarte,
.tabsChrono {
  overflow: hidden;
}

.suite {
  grid-area: suite;
  margin: 0 auto;
  width: 90%;
  height: 60px;
}

.licence img {
  height: 42px;
  float: left;
}

.barreFoot {
  max-width: 100%;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.icoMail{
  font-size: 2em;
  margin-left: 1em;
  line-height: 1;
}
.icoMail a {
 border-style: none;
}
.headerQR {
  display: flex;
  align-items: center;
  background: var(--jauneSNCF);
  height: 80px;
}
.qrCode {
  margin-left: 0.5rem;
}
.num,
.pictL,
.pictLa {
  width: 16px;
  z-index: 1;
}


.station-container {
  background: 0 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  margin: 12px 0 0 8px;
}

.station-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90%;
  padding-left: var(--left-gap);
}

.num,
.scale-point {
  align-items: center;
  display: flex;
}

.station-scale::before {
  content: "";
  position: absolute;
  left: calc(var(--left-gap) + (var(--circle-size) / 2));
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #3498db, #2980b9);
}

.scale-point {
  gap: 4px;
  opacity: 0.4;
}

.scale-point.in-path {
  opacity: 1;
}

.scale-point.completed {
  opacity: 0.4;
}

.num {
  justify-content: center;
  height: 16px;
  background: rgba(52, 152, 219);
  border-radius: 50%;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.AsiOption,
.questAsi {
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scale-point.active .num {
  background: linear-gradient(145deg, #43a047, #66bb6a);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
  transform: scale(1.1);
}

.tpsArret {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.tpsArretFin {
  font-size: 12px;
  color: rgba(91, 99, 247);
}

.flex-titre {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 3rem;
}

.pictL,
.pictLa {
  height: auto;
  object-fit: contain;
}

.a-T-Gare {
  font-size: 1em;
  padding: 0.6rem 0.8em;
  text-align: center;
  background-color: #3730a3;
  border-radius: 10px;
  color: #00c6ff;
}

.a-T-Titre {
  font-family: "Indie Flower", cursive, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw + 0.7rem, 1.9rem);
  letter-spacing: 2px;
  color: #ffd05a;
  text-shadow: 0 0 8px rgba(255, 208, 90, 0.5);
  margin: 0;
}
.a-T-SousT {
  font-family: "Indie Flower", cursive, sans-serif;
  font-size: clamp(0.5em, 1vw, 1.2em);
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(52, 152, 219);
  text-shadow: 0 0 8px rgba(255, 208, 90, 0.5);
  margin: 0;
  text-align: right;
}
#barre_Pseudo,
.indie {
  font-family: "Indie Flower", cursive;
}

.ratio-4x3 {
  padding-top: calc(3 / 4 * 100%);
}

.ratio-16x9 {
  padding-top: calc(9 / 16 * 100%);
}

.ratio-21x9 {
  padding-top: calc(9 / 21 * 100%);
}

.iframeContMax {
  width: 100%;
  max-width: 740px;
  aspect-ratio: 16/9;
  margin: auto;
  border-radius: 10px;
}

.iframeContMax iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
  left: 0;
  top: 0;
}
.iframeFrise {
  width: 100%;
  height: 80vh;
  border: none;
}
.main::-webkit-scrollbar {
  width: 8px;
}

.main::-webkit-scrollbar-track {
  background: #1e3d72;
  border-radius: 10px;
}

.main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, gold, #ffb347);
  border-radius: 10px;
  border: 2px solid #1e3d72;
}

.main::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffb347, gold);
}

.indie {
  font-size: 1rem;
  line-height: 1.2;
}

h1,
h2,
h3 {
  color: #fefedf;
}

.fs-5,
.fs-6,
h5,
h6,
li,
ol,
p,
ul {
  line-height: 1.3;
}

.fs-1,
h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}
/* Titres & tailles fluides optimisées */

.fs-2,
h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.4rem);
}

.fs-3,
h3 {
  font-size: clamp(1.35rem, 2vw + 0.7rem, 1.9rem);
}

.fs-4,
h4 {
  font-size: clamp(1.2rem, 1.8vw + 0.5rem, 1.5rem);
}

.fs-5,
h5 {
  font-size: clamp(1.05rem, 1.5vw + 0.35rem, 1.25rem);
}

.fs-6,
h6 {
  font-size: clamp(0.95rem, 1.2vw + 0.3rem, 1.05rem);
}
.fs-7 {
  font-size: clamp(0.5rem, 1.2vw + 0.3rem, 1.05rem);
}
.question,
h1 {
  line-height: 1;
}

.petit-texte {
  font-size: 1.08rem;
}

li,
ol,
p,
ul {
  font-size: clamp(1rem, 1vw + 0.2rem, 1.1rem);
}

.puces-orange li:before,
.selectArea li:before {
  content: "\2022";
  color: orange;
  margin-right: 0.5rem;
}

.puces-orange li {
  color: #fff;
  margin-left: 1rem;
}

.justify,
p {
  text-align: justify;
}

#barre_Pseudo,
.bloc-avat,
.info-item,
.inter-titre,
.page h1,
.sourceCentre,
.statP-item,
.swipeRes,
.text-center {
  text-align: center;
}

.barreLigne {
  max-width: 960px;
  margin: 0 auto;
  border-bottom: dashed 1px var(--jauneSNCF);
}

#barre_Pseudo {
  color: #aaa;
  font-size: 3rem;
}

.stat-item-QR {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label-Score {
  font-size: 6px;
  font-weight: 700;
}

.info-compact {
  width: 40%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 5px;
  background: linear-gradient(180deg, #caddfb 0, #003e9f 100%);
  border-radius: 10px;
}

.info-compact.visible {
  display: flex;
}

.info-item label {
  display: block;
  font-size: 8px;
  color: #666;
  margin-bottom: 10px;
}

.info-item {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: rgb(2, 18, 88);
}

.bouton-c {
  display: flex;
  justify-content: flex-end;
  max-width: 960px;
  margin: 4rem auto 2rem;
}

.section {
  display: none;
  padding: 20px;
  color: #fff;
  animation: 0.5s fadeIn;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
}

.contChrono.active,
.section.active {
  display: block;
}

.bordBot {
  border-bottom: 8px dashed #ffa114;
}

.bord {
  border: 1px dashed #ffa114;
  border-radius: 10px;
  padding: 0.8rem;
}

.bord3 {
  border: 3px dashed #ffa114;
  padding: 0.5rem;
}

.titresArrets {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #060606;
  background: linear-gradient(#ffa114, #ffde75);
}

.inter-titre {
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--jauneSNCF);
  margin: 0.5em 0 8px;
  font-weight: 500;
  width: 100%;
}

.q-q-num,
.question {
  font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.4rem);
}

.q-number,
.q-q-num,
.question,
.strong,
.timer,
strong {
  font-weight: 700;
}

.question {
  display: flex;
  align-items: center;
  font-family: "Indie Flower", cursive;
  background: linear-gradient(90deg, #0f172a 0, #273657 100%);
  color: #ffb400;
  margin: 0.3em 0 1em;
  padding: 0.3em 0.5em 0.3em 1em;
  width: 100%;
  border-radius: 0 12px 12px 0;
  animation: 0.4s ease-in-out slideIn;
}

.ADS-SEL,
.game-element,
.grid-3L,
.grid-header h1,
.question-area,
.sect1-item,
.tabChrono,
.timer {
  text-align: center;
}

.question::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: linear-gradient(to bottom, #00c6ff, #0096c7);
  border-radius: 12px 0 0 12px;
}

.question span {
  text-shadow: 0 0 4px rgba(255, 180, 0, 0.4);
}

.q-number {
  background: #fc0;
  color: #111;
  border-radius: 50%;
  padding: 0.2em 0.5em;
  margin-right: 0.5em;
}

.q-q-num {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  color: #00c6ff;
  margin-right: 0.2em;
}

.questAsi {
  background: #fff8e1;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
}

.questAsi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #2d3436;
  margin-bottom: 1em;
}

.questAsi-header h3 {
  margin: 0;
  flex: 1;
  font-size: 1.6em;
  color: #6c5ce7;
}

.questAsi-number {
  background: #6c5ce7;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.AsiOptions {
  display: grid;
  gap: 1rem;
}

.AsiOption {
  background: #f8f9fa;
  border: 2px solid #3b2f2f;
  border-radius: 8px;
  color: #000414;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.AsiOption:hover,
.j7errs:hover {
  background: #f0e6d2;
  border-color: #000621;
  transform: translateX(5px);
}
.AsiOption.selected,
.j7errs.j7errSelected {
  background: var(--jauneSNCF);
  color: #000;
  border: 4px dashed black;
  font-size: 1.3em;
}

.AsiOption input {
  opacity: 0;
  position: absolute;
}

.AsiOption-label {
  cursor: pointer;
  flex: 1;
}

.encart-bleu {
  margin-top: 15px;
  padding: 15px 20px;
  color: #0a0a0a;
  border-left: 8px solid #667eea;
  border-radius:0 10px 10px 0;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.encart-bleu span {
  font-weight: 600;
  color: #764ba2;
}

.rep-oua,
.rep-plouf {
  margin: 1em 0;
  background: #d3f9d8;
  padding: 0.5rem;
  border-radius: 10px;
}

.rep-oua {
  border: 2px solid #51cf66;
  color: #2b8a3e;
}

.rep-plouf {
  border: 2px solid #ff6b6b;
  color: #c92a2a;
}

.timer {
  font-family: "Roboto Mono", monospace;
  font-size: clamp(1.35rem, 2vw + 0.7rem, 1.9rem);
  background: #111;
  color: var(--jauneSNCF);
  border: 2px solid #fc0;
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
  min-width: 60px;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.5);
  margin: 10px 0;
  letter-spacing: 2px;
}

.tick,
.ticks {
  position: absolute;
  pointer-events: none;
}

.grid-header {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 80px;
}

.mon-burger {
  display: block;
  border: 2px solid green;
  padding: 5px 5px 0;
  margin: 0.2em;
  border-radius: 0.43rem;
  background-color: rgba(10, 10, 10, 0.8);
}

.mon-burger .bur1,
.mon-burger .bur2,
.mon-burger .bur3 {
  display: block;
  width: 44px;
  height: 8px;
  margin-bottom: 8px;
}

.mon-burger .bur1,
.mon-burger .bur3 {
  border-bottom: var(--jaune) 8px dashed;
}

.mon-burger .bur2 {
  background: #c6dbef;
}

.mon-burger:hover .bur1,
.mon-burger:hover .bur3 {
  background-color: #08306b;
}

.mon-burger:hover .bur2 {
  transform-origin: left center;
  transform: scaleX(0.75);
  transition: transform 0.4s ease-in-out;
}

.grid-header h1 {
  flex: 1;
  margin: 0;
}

a {
  color: #6cb8ff;
}

a,
a:active,
a:focus,
a:hover {
  color: #6cb8ff;
  text-decoration: none;
}
a:link img,
a:visited img,
img {
  border-style: none;
}


.strong,
strong {
  color: orange;
}

.hidden {
  display: none !important;
}

.inv {
  visibility: hidden;
}

.gridCartePos {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 1em;
  gap: 1em;
}

.ADS-SEL:hover,
.locG:hover {
  transform: scale(1.08);
}

.grid-3L {
  display: grid;
  grid-template-columns: 1fr 8fr 1fr;
  gap: 1rem;
}

.cardGare {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre horizontalement les enfants */
  justify-content: space-between; /* Répartit l'espace entre le haut et le bas */
  height: 100%; /* Assurez-vous que .cardGare a une hauteur définie */
  min-height: 300px; /* Ajustez selon vos besoins */
  width: 100%; /* Largeur au choix */
  padding: 8px;
  border: 2px solid #666;
  background: linear-gradient(180deg, #1b2035 0, #0a0e1a 100%);
  border-radius: 10px;
}

.cardGare:hover,
.gal280:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.cartePos {
  width: 100%; /* Ou une largeur fixe */
  object-fit: cover; /* Pour conserver les proportions de l'image */
  margin-bottom: 10px; /* Espace sous l'image */
}

.indice {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.indice .bleu,
.indice .orange,
.indice .jaune,
.indice strong {
  display: inline;
  vertical-align: baseline;
}

.microSelGare {
  width: 100%;
  margin-top: auto; /* Pousse le bloc vers le bas */
  display: flex;
  justify-content: space-around; /* Répartit les icônes horizontalement */
  padding: 10px 0;
}

.microSelGare .text-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.bleu {
  color: var(--bleu);
}

.bgBleu {
  background: var(--bleu);
}

.orange {
  color: var(--orange);
}

.bgOrange {
  background: var(--orange);
}

.bgQuest {
  background: #fff8e1;
}

.noir {
  color: var(--noirSNCF);
}

.brun {
  color: var(--brun);
}
.bgJaune {
  background: var(--jauneSNCF);
}
.jaune {
  color: var(--jaune);
}

.vert {
  color: var(--vert);
}
.ACARS {
  margin: 1rem 0 2rem;
}
/* .ACARS {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.ACARS img {
  max-width: 240px;
  height: auto;
} */

.ADS-SEL {
  width: 100%;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  transition: 0.3s;
  border: 6px solid #fff;
  border-radius: 18px;
}

.ADS-SEL:hover {
  border: 6px solid #00af00;
}

.ADS-SEL.correct {
  border: 6px solid #28a745;
}

.ADS-SEL.wrong {
  border: 6px solid #dc3545;
}

.ADS-txt {
  font-family: Special_Elite;
  font-size: 2rem;
  color: var(--brun);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btnCom,
.infoScore,
code {
  font-family: "Courier New", monospace;
}

.locG {
  max-width: 70px;
  border-radius: 4px;
  transition: transform 0.2s;
}

.btnS,
.tabChrono {
  cursor: pointer;
  transition: 0.3s;
}

.selGare {
  outline: 4px dashed var(--jauneSNCF);
  outline-offset: 3px;
}

.tabsChrono {
  display: flex;
  background: #333;
  border-radius: 8px 8px 0 0;
}

.tabChrono {
  flex: 1;
  padding: 12px;
  color: #fff;
  font-weight: 500;
}

.tabChrono:hover {
  background: #444;
}

.tabChrono.active {
  background: #555;
  box-shadow: inset 0 -3px 0 #ffd36a;
}

.contChrono {
  display: none;
  padding: 20px;
  background: #002c58;
  border-radius: 0 0 8px 8px;
}

.range-container {
  background: #fff;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 650px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.range-container h3 {
  margin: 0 0 25px;
  color: #0f1a2b;
  text-align: center;
  font-size: 1.1em;
}

.exercice label,
.range-container label {
  display: block;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 5px;
  cursor: pointer;
}

.slider-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 15px 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  accent-color: #ffcc00;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #e8e8e8 0, #e8e8e8 100%);
  outline: 0;
  margin: 10px 0;
  cursor: pointer;
  -webkit-appearance: none;
  transition: 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  outline: 0;

  background: linear-gradient(135deg, #ffd36a 0, #ffb84d 100%);
  cursor: grab;
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}

.range-cont input[type="range"]::-webkit-slider-thumb {
  margin-top: -12px;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(255, 211, 106, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
  background: linear-gradient(135deg, #ffca3a 0, #ff9f1c 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd36a 0, #ffb84d 100%);
  cursor: grab;
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(255, 211, 106, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
  background: linear-gradient(135deg, #ffca3a 0, #ff9f1c 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ticks {
  inset-inline: 0;
  top: 100%;
  height: 28px;
}

.tick {
  top: -26px;
  white-space: nowrap;
  font-size: 1.2rem;
}

#sortable li,
#timerSect1,
.btnCom {
  position: relative;
}

datalist {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0 2px;
}

datalist option {
  display: flex;
  justify-content: center;
  width: 20px;
}

#sortable li,
.btnS {
  align-items: center;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  width: 100%;
  padding: 8px 12px;
  background: #111;
  color: #eee;
  border: 1px solid #555;
  border-radius: 4px;
  font-size: 1.8rem;
}

input[type="number"]:focus {
  outline: 0;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btnArretC {
  height: 70px;
  margin-right: 1rem;
}
.btnArretC:hover {
 cursor: pointer;
}
.btnS {
  display: inline-flex;
  justify-content: space-between;
  gap: 8px;
  max-width: 260px;
  background: var(--jauneSNCF);
  border: 4px solid transparent;
  border-radius: 6px;
  color: var(--noirSNCF);
}

.btnSi img {
  height: 48px;
  display: block;
  margin-top: -8px;
}

.btnSt {
  font-size: 1.3rem;
  margin-top: 6px;
}

.btnSa {
  font-size: 1.8rem;
  transition: transform 0.3s;
}

.btnAffRes,
.btnBleu {
  cursor: pointer;
  transition: 0.3s;
}

.btnS:hover {
  transform: translateY(-2px);
  border-top: 4px dashed var(--noirSNCF);
  border-bottom: 4px dashed var(--noirSNCF);
  box-shadow: var(--hover-shadow);
}

.btnS:hover .btnSa {
  transform: translateX(6px);
}

.btnS:focus-visible {
  outline: #0056b3 solid 3px;
  outline-offset: 2px;
}

.btnS:active {
  animation: 0.3s bounce;
}

.btnAffRes {
  padding: 14px 35px;
  margin-top: 25px;
  background: linear-gradient(135deg, #ffd36a 0, #ffca3a 100%);
  color: #0f1a2b;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 17px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 10px rgba(255, 211, 106, 0.3);
}

.btnAffRes:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 211, 106, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.btnAffRes:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(255, 211, 106, 0.3);
}

.btnAffRes:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btnBleu {
  background: linear-gradient(135deg, #3b82f6 0, #1e40af 100%);
  color: #fff;
  border: 1px solid rgba(147, 197, 253, 0.2);
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  font-weight: 600;
  margin: 8px;
}

.btnBleu:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btnBleu:active {
  transform: translateY(-1px);
}

.btnBleu:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

#zoneVilles > div,
.btnCom,
.game-element,
.lunes:hover,
.satItem {
  cursor: pointer;
}

.btnCom {
  width: 100%;
  margin: 0.2rem auto;
  background: #fc0;
  border: none;
  border-radius: 12px;
  color: #0a0a0a;
  font-size: 4em;
  font-weight: 700;
  letter-spacing: 1px;
  transition: 0.1s;
}

.btnCom:hover {
  background: var(--orange1);
  transform: translateY(-2px);
}

.sect1-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #1e293b 0, #334155 100%);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

#qBox,
.question-area {
  flex-direction: column;
}

.sect1-item {
  color: #fff;
}

.sect1-label {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 8px;
  color: #94a3b8;
}

.statSect1color {
  font-weight: 700;
  color: #60a5fa;
}

.warnMess5sec {
  color: #ff6b35;
}

#qBox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-element {
  display: block;
  background: linear-gradient(135deg, #3b82f6 0, #1e40af 100%);
  color: #fff;
  padding: 12px;
  border-radius: 15px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(147, 197, 253, 0.2);
  width: 80%;
  max-width: 400px;
  margin: 1rem auto;
  font-size: 1.2rem;
}

.game-element:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  border-color: rgba(147, 197, 253, 0.4);
}

.game-element:active {
  transform: translateY(-2px);
}

.question-area {
  width: 100%;
  background: #fff8e1;
  border-radius: 20px;
  padding: 40px;
  min-height: 220px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.1);
  gap: 12px;
  color: #00040a;
  line-height: 1.8;
  margin-bottom: 20px;
}

.encartGris,
.infoScore {
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.intro-message {
  animation: 1s fadeIn;
}

#timerSect1 {
  font-size: 4rem;
}

#timerSect1.pulse {
  animation: 0.5s pulse;
}

#scoreTotal {
  font-size: clamp(1.35rem, 2vw + 0.7rem, 1.9rem);
  text-align: center;
  font-family: monospace;
  font-weight: 700;
  border-radius: 10px;
}

.infoScore {
  display: block;
  background: linear-gradient(145deg, #2c3e50, #34495e);
  color: #f1c40f;
  font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.4rem);
  padding: 12px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 -3px 6px rgba(0, 0, 0, 0.6);
  letter-spacing: 2px;
  min-width: 120px;
  transition: transform 0.2s, background 0.3s;
  margin: 1rem 0;
}

.cadreTuto h2,
.titre-quiz {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.infoScoreDetail {
  font-size: 0.8em;
  opacity: 0.6;
}

.encartGris {
  padding: 1rem;
  background: rgba(30, 40, 60, 0.8);
  color: #d3f9d8;
  margin: 1rem 0 1.5rem;
  font-family: monospace;
  font-size: clamp(1.2rem, 1.8vw + 0.5rem, 1.5rem);
}

.inputADS,
table.tftable {
  font-family: "Courier New", Courier, monospace;
}

.encartGris span {
  color: #bce30a;
}

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

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

.show {
  display: block;
  animation: 0.5s slideIn;
  opacity: 1;
  transform: scale(1);
}

.trophy {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: 1s infinite bounce;
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
    transform: translateY(0);
  }

  40% {
    transform: scale(0.95);
  }

  70% {
    transform: scale(1.05);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pop {
  to {
    transform: scale(1);
  }
}

.game-container {
  padding: 25px;
}

.stats-bar {
  flex-direction: column;
  gap: 15px;
}

#formTrain {
  opacity: 1;
  transform: scale(1);
}

#displayTimer.warning {
  font-size: 2rem;
  margin: 1rem 2rem;
  color: #ff6b35;
  animation: 1s infinite pulse;
}

.warnMess {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b35 0, #f7931e 100%);
  color: #fff;
  padding: 15px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  font-size: 18px;
  font-weight: 700;
  z-index: 9999;
  display: none;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

@keyframes cartoonMove {
  0% {
    transform: translateX(-5%) scale(0);
    opacity: 0;
  }

  10% {
    transform: translateX(-60%) scale(1.2);
    opacity: 1;
  }

  20% {
    transform: translateX(-40%) scale(1);
  }

  40% {
    transform: translateX(120vw) scale(1);
  }

  60% {
    transform: translateX(-120vw) scale(1);
    opacity: 0;
  }

  80% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: translateX(-5%) scale(1);
    opacity: 1;
  }
}

.range-container {
  padding: 20px 15px;
}

.range-values {
  font-size: 15px;
  padding: 15px;
}

.range-values span {
  font-size: 17px;
}

.quizGare {
  max-width: 1060px;
  margin: 0 auto;
}

.tabloADS {
  width: 100%;
  margin: 0 auto;
  background: #001;
  text-align: center;
}

.drg-val {
  width: auto;
  object-fit: contain;
}

.tabloADS td,
.tabloADS th {
  padding: 3px;
  width: 8%;
}

.tabloADSFont {
  font-size: 8px;
  font-weight: 700;
  color: orange;
  text-transform: uppercase;
}

.inputADS {
  font-size: 10px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
}

.controls button {
  flex: 1;
  padding: 10px;
  min-height: 45px;
  border: 1px solid #555;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.mode-buttons {
  display: flex;
  gap: 10px;
}

.controls button:hover {
  background: #ddd;
}

#sortable {
  padding: 0;
  margin: 0;
}

#sortable li {
  margin: 4px 0;
  display: flex;
  justify-content: center;
  height: 60px;
}

.drg-val {
  height: 100%;
  display: block;
  margin: 0;
}

.drag-sol-picto {
  display: block;
  margin: 2px 0;
}

.hint-badge-CO2 {
  position: absolute;
  top: 10px;
  right: 60px;
  background: #222;
  color: #fff;
  border-radius: 50%;
  padding-top: 12px;
  width: 42px;
  height: 42px;
  font-size: 0.8rem;
  text-align: center;
  pointer-events: none;
  z-index: 20;
  transform: scale(0);
  animation: 0.14s forwards pop;
}

#sortable li.dragging {
  opacity: 0.5;
  opacity: 0.6;
  border: 1px dashed #999;
}

#sortable li.correct {
  background: #c6f6c6;
  transition: background 0.6s;
}

#sortable li.wrong {
  background: #f6c6c6;
  transition: background 0.6s;
}

.hint-badge {
  display: inline-block;
  background: #444;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 50%;
  padding: 2px 6px;
  margin-left: 6px;
}

/* Trésor */
.qTresTxt {
  display: flex;
  align-items: center;
  text-align: center;
  max-width: 90%;
  height: 10rem;
  text-transform: uppercase;
  font-size: 1rem;
  color: #e7ffc3;
  margin: 1rem auto;
}

.lunes:hover {
  background-color: #fff;
  box-shadow: 0 0 60px 30px #fff, 0 0 100px 60px #f0f, 0 0 140px 90px #0ff;
}

.carte-wrapper.active {
  cursor: crosshair;
}

#tresorCarte {
  position: relative;
}
#carteTresor {
  display: block;
  width: 100%;
  height: auto;
  position: relative; 
}

#messTresorFinal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 2000;
  pointer-events: none; /* ✓ Déjà bon */
  display: none;
}
.crosshair {
  position: absolute;
  background: rgba(255, 0, 0, 0.7);
  pointer-events: none;
  display: none;
}

#crosshairH {
  width: 100%;
  height: 2px;
  top: 0;
  left: 0;
}

#crosshairV {
  width: 2px;
  height: 100%;
  top: 0;
  left: 0;
}

.carte-coords {
  position: absolute;
  top: 7px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  font-family: monospace;
  border-radius: 4px;
  pointer-events: none; /* Très important : n'intercepte pas le clic ! */
  z-index: 999;
}

.carte-debug {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid red;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1000;
    display: none;/* Par défaut caché */
}

/* Fin carte au trésrgb(0, 72, 255)*/

.focusAnimatiorgba(0, 255, 110, 0.2)
  animation: 2s infinite focusAnimation;
}

table.tftable {
  border-collapse: collapse;
  margin: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 23px;
  text-align: center;
}

.cadreTuto h2,
.j7errs {
  font-family: monospace;
}

.tftable thead {
  font-size: 13px;
  text-align: center;
  color: #00ce00;
}

.tftable td,
.tftable th {
  width: 26px;
  position: relative;
  padding: 3px;
  border: 1px solid gray;
  color: #faa000;
}

.highlight-row td {
  background: #ffe7a0 !important;
}

.highlight-col {
  background: #fff0c4 !important;
}

.highlight-col:hover {
  cursor: cell;
}

#tsrInd2 {
  display: none;
  background: #dfffd8;
  color: #333;
  padding: 10px;
  border-radius: 10px;
  width: fit-content;
  margin: 15px auto;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

td.clicked {
  animation: 0.4s pulse;
}
.no-click {
  pointer-events: none;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    background: #fff7d1;
  }

  50% {
    transform: scale(1.2);
    background: #ffd95a;
  }

  100% {
    transform: scale(1);
    background: #fff;
  }
}

#satSelector {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#zoneVilles > div {
  padding: 0.8rem;
  height: 3rem;
  border: 2px solid #333;
  border-radius: 8px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--brun);
  transition: 0.15s;
}

.satItem {
  text-align: center;
  margin: 10px;
  transition: transform 0.2s;
}

.jobCarte img,
.satItem img {
  width: 100%;
}

.satItem:hover {
  transform: scale(1.15);
}

.satItem.active img {
  filter: drop-shadow(0 0 8px gold);
}
/* Prompts */

.grid-prompt {
  display: grid;
  gap: 1em;
  grid-template-columns: 1fr 1fr;
}

.exoPromptCont {
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  color: #333;
}

.zone-P {
  background: white;
  border-radius: 10px;
  padding: 20px;
  min-height: 300px;
  border: 2px dashed #ddd;
}

.zone-title-P {
  font-weight: bold;
  margin-bottom: 15px;
  color: #667eea;
  font-size: 1.1rem;
}

.source-zone-P {
  border-color: var(--jauneSNCF)
};

.target-zone-P {
  border-color: #10b981;
}

.exo-P-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.exo-P-title {
  font-size: 1.5rem;
  color: #667eea;
  font-weight: bold;
}

.exo-P-context {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: clamp(1.2rem, 1.8vw + 0.5rem, 1.5rem);
  font-style: italic;
  color: #555;
}

.prompt-fragment {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 8px;
  cursor: move;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt-fragment:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.prompt-fragment.dragging {
  opacity: 0.5;
}

.p-Stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  color: white;
}

.p-Stats-item {
  text-align: center;
}

.p-Stats-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 5px;
}

.p-Stats-value {
  font-size: 2rem;
  font-weight: bold;
}

.feedPrompt {
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  display: none;
}

.feedPrompt.show {
  display: block;
  animation: slideIn 0.4s ease;
}

.feedPrompt.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.feedPrompt.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.legend {
  border-radius: 10px;
}

.legend {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-item {
  align-items: center;
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  padding: 0.8em;
  border-radius: 8px;
}

.legend-icon {
  font-size: 1.2rem;
}

.fragment-icon {
  font-size: 1.2rem;
  min-width: 25px;
}

.fragment-icon {
  font-size: 1.2rem;
  min-width: 25px;
}

.fragment-type-1 {
  background: #feedde;
  color: #00040a;
}

.fragment-type-2 {
  background: #fdbe85;
}

.fragment-type-3 {
  background: #fd8d3c;
}

.fragment-type-4 {
  background: #e6550d;
  color: #cce0ff;
}

.fragment-type-5 {
  background: #a63603;
}

/* SWAP */
:root {
  --card-width: 300px;
  --card-height: 450px;
}

.swapSwap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.swapContainer {
  width: 90%;
  max-width: var(--card-width);
  margin-bottom: 1rem;
  margin-top: 2rem; /* Ajout d'une marge supérieure */
}

.swapFrame {
  position: relative;
  width: var(--card-width);
  height: var(--card-height);
  margin: 0 auto;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.swapCard {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: grab;
  user-select: none;
  touch-action: none; /* Essentiel pour la gestion des pointeurs */
  transform: translate(0, 0) rotate(0deg);
}

.swapCard:last-child {
  /* Mettre la dernière carte au-dessus des autres */
  z-index: 10;
}

.is-like {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
  pointer-events: none; /* Permet de cliquer/toucher à travers */
}

/* .is-like.like {
  color: #16a34a;

}

.is-like.nope {
  color: #dc2626;

  transform: translate(-50%, -50%) rotate(12deg);
} */
.swipeRes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 1rem auto;
}

.cocheVrai,
.cocheFaux {
  font-size: 1.5rem;
  padding: 0 0.25rem;
}

.cocheVrai {
  color: #10b981;
}
.cocheFaux {
  color: #ef4444;
}
/* Fin SWAP*/

.gal280 input[type="radio"] {
  display: none;
}

.swapCard,
.swapCard .is-like {
  position: absolute;
  height: 60%;
  width: 60%;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.swapCard .is-like {
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  font-weight: 700;
  width: 100%;
  height: 100%;
}

.swapCard .is-like.like {
  color: green;
  transform: rotate(-10deg);
  background: rgba(0, 128, 0, 0.1);
}

.swapCard .is-like.nope {
  color: red;
  transform: rotate(10deg);
  background: rgba(255, 0, 0, 0.1);
}

.swapCard .bottom {
  width: 100%;
  min-height: 5%;
  background: linear-gradient(to top, #00000080, #00000000);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-left: 7%;
  font-weight: 400;
  position: absolute;
  bottom: 0;
  box-sizing: border-box;
}

.column-2,
.j7errs {
  align-items: center;
}

.swapCard .bottom .title > span:first-child {
  font-size: 2em;
  font-weight: 700;
  margin-right: 0.2em;
}

.swapCard .bottom .title > span:nth-child(2) {
  font-size: clamp(13px, 1.5em, 25px);
}

.swapCard .bottom .title > span:nth-child(2) > b {
  font-size: 0.6em;
  margin-right: 0.2em;
}

.swapCard .bottom .info {
  margin: 3% 0 0 2%;
  font-size: clamp(10px, 1.1em, 20px);
}

.bloc-avat {
  margin: 2rem 0;
}

.cocheFaux,
.cocheVrai {
  font-size: 1em;
}

.cocheVrai {
  color: #82d800;
}

.cocheFaux {
  color: #ff4d00;
}

@media (min-width: 380px) {
  .swapCard,
  .swapCard .is-like {
    height: 70%;
    width: 70%;
  }

  .cocheFaux,
  .cocheVrai {
    font-size: 1.2em;
  }
}

@media (min-width: 540px) {
  .swapCard,
  .swapCard .is-like {
    height: 80%;
    width: 80%;
  }

  .cocheFaux,
  .cocheVrai {
    font-size: 1.5em;
  }
}

@media (min-width: 740px) {
  .swapCard,
  .swapCard .is-like {
    height: 90%;
    width: 90%;
  }
  .prompt-fragment {
    padding: 12px 15px;
  }

  .cocheFaux,
  .cocheVrai {
    font-size: 2em;
  }
}

@media (min-width: 960px) {
  .swapCard,
  .swapCard .is-like {
    height: 100%;
    width: 100%;
  }

  .cocheFaux,
  .cocheVrai {
    font-size: 1.6em;
  }
}

#formTrain.hidden,
#tooltip .crosshair,
.dot:hover::after {
  pointer-events: none;
}

.dot,
.gal-pictos > div,
.pictoIA,
.radioQuest input[type="radio"],
.voilier {
  position: relative;
}

/* Pailles en queue */

.contBird {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: none;
  pointer-events: none;
}

.contBird.active {
  display: block;
}

.bird,
.birdClic {
  width: 88px;
  height: 125px;
  background-size: auto 100%;
  animation: fly-cycle 1s steps(10) infinite;
  position: relative;
  pointer-events: none;
  will-change: transform;
}

.bird {
  background-image: url("../img/ill/bird-cells-new.svg");
}

.birdClic {
  background-image: url("../img/ill/bird-cells-new-white1.svg");
  position: fixed;
  z-index: 100;
  display: none;
  pointer-events: none;
}

.contBird.mode-chasse .bird {
  cursor: crosshair;
  pointer-events: auto;
}

.contBird.mode-chasse .bird::after {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: scale(0.7);
  will-change: opacity, transform;
  transition: opacity 0.2s, transform 0.2s;
}

.contBird.mode-chasse .bird:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Conteneurs des oiseaux */
.bird-container {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}

/* Animations des oiseaux */
.bird-container--one {
  animation: fly-right 15s linear infinite;
}

.bird-container--two {
  animation: fly-right 16s linear infinite 1s;
  top: 30%;
  left: -15%;
  transform: scale(0.5) translateX(-15vw);
}

.bird-container--three {
  animation: fly-right 14.6s linear infinite 9.5s;
  top: 10%;
  left: -5%;
  transform: scale(0.4) translateX(-5vw);
}

.bird-container--four {
  animation: fly-right 16s linear infinite 10.25s;
  top: 50%;
  left: -20%;
  transform: scale(0.6) translateX(-20vw);
}

@keyframes bird-fly-away {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(120vw) scale(0.5);
    opacity: 0.3;
  }
}

.birdClic.flying-away {
  animation: fly-cycle 1s steps(10) infinite, bird-fly-away 5s ease-in forwards;
}

/* Animations */

@keyframes fly-cycle {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -880px 0;
  }
}

.bird.flash {
  filter: brightness(2.4);
}

.bird.flash-off {
  filter: brightness(1);
  transition: filter 0.4s;
}

/* --- Animations --- */

/* Animation de déplacement - Utilisation de la syntaxe standard */
@keyframes fly-right {
  0% {
    transform: translateX(-10vw) scale(0.3);
  }
  20% {
    transform: translateX(20vw) scale(1);
  }
  100% {
    /* Utilisation des variables CSS pour un défilement complet si nécessaire. */
    transform: translateX(120vw) scale(0.7);
  }
}

/*  AFP */
.j7errs {
  display: flex;
  justify-content: center;
  font-size: 1.2em;
  text-align: center;
  height: 80px;
  padding: 6px;
  margin: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #070707;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.cadreTuto-content,
.pseudo {
  font-family: "Indie Flower", cursive;
}

.j7errs:hover {
  transform: scale(1.03);
  background: #f1f1f1;
}
.m-1 {
  margin: 0.5rem;
}
.m-2 {
  margin: 0.8rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 0.8rem;
}
.mr-4 {
  margin-right: 1rem;
}
.mr-5 {
  margin-right: 1.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-3 {
  margin-left: 0.8rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-5 {
  margin-left: 2rem;
}

.mt-3 {
  margin-top: 1rem;
}

.w-10 {
  max-width: 10%;
}

.w-20 {
  max-width: 20%;
}

.w-40 {
  max-width: 40%;
}

.w-50 {
  max-width: 50%;
}

.w-80 {
  width: 80%;
}

.w-100 {
  width: 100%;
  height: auto;
}
.bigJi {
  background: #000;
  font-size: 2.5rem !important;
  line-height: 1;
  vertical-align: middle;
  padding: 0.1em;
  border-radius: 6px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
  display: grid;
}

.grid-3 {
  grid-gap: 1rem;
  margin-bottom: 20px;
}

.auto-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.auto-grid-center {
  display:flex;
  gap: 1rem;
  align-items: center; 
  justify-content: center;
}
.auto-grid-260 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.column-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  justify-items: center;
}

.grid-2-3,
.grid-2-3-3,
.grid-3-5 {
  gap: 1.5rem;
  display: grid;
}

.microSelGare {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.grid-2 .ratio-16x9 {
  grid-column: 1/-1;
}

.grid-2 iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 12px;
  display: block;
}
.encartCO2 {
  background-color: #0f0127;
  padding: 1em;
  border-radius: 10px;
  max-width: 90%;
  margin: 0 auto;
}
.grid-CO2 {
  display: grid;
  grid-template-columns: 9fr 1fr;
}
.drag-sol-picto {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin: 4px 0;
}
#messageCO2 {
  font-weight: 600;
  margin: 1rem 0;
  text-align: center;
  font-size: 1.1rem;
  min-height: 30px;
  transition: opacity 0.4s;
}

.grid-2-3-3 {
  grid-template-columns: 1fr;
}

.grid-2-3 {
  grid-template-columns: 2fr 3fr;
}

.grid-3-5 {
  grid-template-columns: 3fr 5fr;
}

.grid-2-5 {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 30px;
}

.titre-quiz {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(0.5rem, 1.2vw + 0.3rem, 1.05rem);
  font-weight: 700;
  color: var(--jauneSNCF);
  background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
  border: 4px solid var(--jauneSNCF);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 0 6px rgba(255, 255, 255, 0.2);
  color: #fff;
}

.blockquote {
  padding-left: 1em;
  color: rgba(135, 206, 250, 0.9);
  font-size: 1.6rem;
  font-weight: lighter;
}

.gallerie {
  color: #060606;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 0.8rem;
}

#formTrain {
  transition: opacity 0.5s, transform 0.5s;
}

#formTrain.hidden {
  opacity: 0;
  transform: scale(0.9);
}

.gal280 {
  width: 100%;
  max-width: 280px;
  border: 2px solid #3b2f2f;
  border-radius: 12px;
  background: #fff8e1;
  padding: 1rem;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.w-30 {
  max-width: 30%;
}

.gal280 label {
  display: flex;
  align-items: center;
  margin: 0.6rem 0;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border: 2px solid #3b2f2f;
  border-radius: 8px;
  background: #fdfcf7;
  transition: 0.3s;
  font-size: 0.8rem;
  position: relative;
}

.gal280 label::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #3b2f2f;
  border-radius: 50%;
  margin-right: 8px;
  background: #fff;
  transition: 0.3s;
  flex-shrink: 0;
}

.cadreTuto h2,
.radioQHover {
  align-items: center;
  display: flex;
}

.gal280 label:hover {
  background: #f0e6d2;
  transform: scale(1.02);
}

.gal280 input[type="radio"]:checked + label {
  background: #3b2f2f;
  color: #fff;
  font-weight: 700;
}

.gal280 input[type="radio"]:checked + label::before {
  background: #3ccf4e;
  border-color: #2a8f38;
  box-shadow: 0 0 5px #3ccf4e;
}

.gal280 h4 {
  margin: 0 0 0.8rem;
  color: #3b2f2f;
  font-size: 0.95rem;
  line-height: 1.3;
}

.col {
  display: grid;
  gap: 20px;
}

.colonne-2 {
  column-count: 2;
  column-gap: 10px;
}

.colonne-6 {
  column-count: 6;
  column-gap: 10px;
}

.encart,
.encartExos {
  padding: 1rem 1rem 2rem 1rem;
  background: rgba(30, 40, 60, 0.8);
  border-radius: 12px;
  margin: 1rem 0 1.5rem;
}

.encartExos {
  border: 6px dashed var(--jauneSNCF);
}

.encartExos h2 {
  font-size: 2rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--jauneSNCF);
}

.encartExos h4 {
  text-align: left;
  font-size: 1.2rem;
}

.encartExos p {
  line-height: 1.2;
}

.encart-blanc {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
}

.encart-jaune {
  background: #fff8e1;
  border-radius: 12px;
  margin: 15px 0;
  padding: 1px 18px;
}

.supInfo {
  font-size: 12px;
  color: #bfbfbf;
  max-width: 60%;
}

.cadreTuto {
  background: #1e283c;
  border: 5px solid #333;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.cadreTuto h2 {
  font-size: 1rem;
  color: #222;
  background: var(--jauneSNCF);
  border-radius: 0.8rem;
  padding: 0.2rem 0.5rem;
  font-weight: 700;
}

.radioQuest input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border: 4px solid #4ade80;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  transition: 0.2s ease-in-out;
}

.radioQuest input[type="radio"]:checked {
  background-color: #4ade80;
  border-color: #2f8b51;
}

.radioQuest input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #001355;
  border-radius: 2px;
}

.radioQHover {
  transition: transform 0.15s;
  color: #000414;
}

.radioQHover:hover {
  transform: scale(1.02);
  cursor: pointer;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 18px auto;
}

.search-container input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-container input[type="text"]:focus {
  outline: 0;
  border-color: #6b3fa0;
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.15);
}

.search-container .search-btn {
  padding: 10px 16px;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  background-color: #6b3fa0;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.15s;
}

.search-container .search-btn:hover {
  background-color: #542f7a;
}

.search-container .search-btn:active {
  transform: scale(0.96);
}

.cadreTuto-content {
  margin-top: 10px;
  font-size: 1.2rem;
  line-height: 1.1;
  margin-left: 0.6rem;
}

.finalMap {
  margin: 2rem auto;
  max-width: 100%;
  text-align: center;
  font-size: 1.5rem;
}

.align-left,
.mode .t0 {
  text-align: left;
}

.finalMap input {
  width: 90%;
  padding: 10px;
  font-size: 1.2rem;
  border-radius: 6px;
  border: none;
  margin-top: 15px;
  margin-bottom: 2rem;
}

.highlight {
  background: #00695c;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 8px;
}

.badgeBleu {
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: #0af;
  border-radius: 50%;
  flex-shrink: 0;
}

.encart p {
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
}

.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

.rounded {
  border-radius: 6px;
}

.pictoIA {
  right: 4rem;
  top: -2rem;
}

.img-QR {
  max-width: 72px;
  height: auto;
  background-color: #fff;
  border: 5px solid #dee2e6;
  border-radius: 6px;
}

.text-center {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.center-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.source,
.sourceCentre,
.sourceGauche {
  display: block;
  font-style: italic;
  font-size: 1rem;
  color: #d3d3d3;
  margin-top: 0.5em;
}

.source {
  text-align: right;
}

.space-20 {
  padding-top: 20px;
}

.space-30 {
  padding-top: 30px;
}

.space-40 {
  padding-top: 40px;
}

.space-50 {
  padding-top: 50px;
}

.space-80 {
  padding-top: 80px;
}

.space-100 {
  padding-top: 100px;
}

.mode .t0 {
  left: 0;
  transform: translateX(0);
}

.mode .t1 {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.mode .t2 {
  left: 100%;
  transform: translateX(-100%);
  text-align: right;
}

.mode .t0::before,
.temps .t0::before {
  left: 0;
  transform: none;
}

.mode .t2::before,
.temps .t4::before {
  left: 100%;
  transform: none;
}

.temps .t0 {
  left: 0;
  transform: translateX(0);
}

.temps .t1 {
  left: 25%;
  transform: translateX(-50%);
}

.dot:hover::after,
.temps .t2 {
  left: 50%;
  transform: translateX(-50%);
}

.temps .t3 {
  left: 75%;
  transform: translateX(-50%);
}

.temps .t4 {
  left: 100%;
  transform: translateX(-100%);
}

.sliderInfo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  background: rgba(34, 197, 94, 0.25);
  border: 1.5px solid #22c55e;
  border-radius: 8px;
  backdrop-filter: blur(3px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.25);
  transition: background 0.25s, transform 0.25s;
}

.speed-btn {
  background: #242424;
  border-radius: 10px;
  transition: 0.2s;
  margin: 8px;
  padding: 0 1rem;
  font-size: 3rem;
}

.dot,
.repCarte {
  transition: 0.3s;
}

.speed-btn:hover {
  background: var(--jauneSNCF);
  cursor: pointer;
  transform: scale(1.05);
}

.speed-btn.active {
  border: 3px solid orange;
}

.grid-speed-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
}

.range-cont {
  margin-top: 2rem;
}

.fade-in {
  opacity: 0;
  animation: 0.5s forwards fadeIn;
}

.quiz-repCarte {
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: var(--jaune);
}

.gridRepCarte {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.repCarte {
  background: #f7fafc;
  font-weight: 500;
  color: #4a5568;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.repCarte:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.repCarte img {
  max-width: 100%;
  height: auto;
}

.repCarteProg {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 20px;
}

.dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbd5e0;
  cursor: help;
}

.dot.active {
  background: #667eea;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.dot.correct {
  background: #48bb78;
}

.dot.wrong {
  background: #f56565;
}

.dot:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 25px;
  background: #2d3748;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  z-index: 10;
}

@keyframes bounceCorrect {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shakeWrong {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

@keyframes fadeIn {
  from {
    transform: translateY(20px);
    opacity: 0;
    transform: scale(0.9);
  }

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

#tooltip {
  position: fixed;
  background: #222;
  color: #f5f5f5;
  font-family: "Indie Flower", cursive, sans-serif;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  z-index: 10000;
}

.toolBtnRight {
  display: block;
  margin-left: auto;
}

.repCarte,
.select-job {
  display: flex;
  cursor: pointer;
}

.select-job {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1260px;
  width: 100%;
}

.jobCarte {
  width: 140px;
  border: 6px solid transparent;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.jobCarte img:hover {
  background: var(--jaune);
  border: 6px dashed #000;
}

.jobCarte.blurred img {
  filter: blur(3px) brightness(0.7);
}

.jobCarte.selectJob img {
  border: 3px solid #007bff;
  border-radius: 6px;
  transform: scale(1.05);
}

.jobCarte.blurred:hover img {
  filter: none;
}

#IDqestCarte {
  transition: opacity 0.3s;
}

.repCarte {
  font-size: 1.2rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  border: 4px dashed #888;
  border-radius: 10px;
  padding: 8px;
}

.repCarte:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
  color: var(--jauneSNCF);
}

.lectCarteYes {
  background: #32cd32;
  border-color: #48bb78;
  color: #22543d;
  animation: 0.5s bounceCorrect;
}

.lectCarteNo {
  background: #f50202;
  border-color: #f56565;
  color: #742a2a;
  animation: 0.5s shakeWrong;
}

.selected {
  border: 6px dashed orange;
}

.avat-name {
  width: 60%;
  padding: 15px 20px 5px;
  border: 2px solid #fc0;
  border-radius: 10px;
  font-size: 1.6rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 2rem;
  background: #fff;
  color: #1c1c1c;
}

.avat-name:focus {
  outline: 0;
  border-color: #6495ed;
  box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.3);
}

.avat-name::placeholder {
  color: #999;
  font-style: italic;
  text-align: center;
  font-size: 2.5rem;
}

.avatImg {
  width: 64px;
  height: auto;
  margin-left: 1rem;
  border-radius: 10px;
}

.pseudo {
  font-size: 2rem;
}

.train-anim {
  animation: 2.5s ease-in-out forwards cartoonMove;
}

@media (min-width: 768px) {
  header {
    font-size: 12px;
  }

  .barreFoot {
    gap: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .a-T-texte {
    font-size: 1.8em;
  }

  .info-item label {
    font-size: 10px;
  }

  .modale-section {
    padding: 30px;
    max-width: 90%;
    min-width: 80%;
    position: relative;
  }

  .tabloADSFont {
    font-size: 18px;
  }

  .inputADS {
    font-size: 20px;
  }

  .grid-12 {
    display: grid;
    grid-gap: 6px;
    grid-template-columns: repeat(12, 1fr);
  }

  .grid-2,
  .grid-3,
  .gridCartePos {
    grid-template-columns: 1fr 1fr;
            gap: 1em;
  }

  .grid-2-3-3 {
    display: grid;
    grid-template-columns: 3fr 5fr;
    gap: 1.5rem;
  }

  .grid-phare {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
  }

  .titre-quiz {
    font-size: 2rem;
  }
  .titre-quiz {
    padding: 1rem 2rem;
    margin: 1rem auto 2rem;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  .barreFoot {
    gap: 4rem;
    margin: 10px 0;
  }

  .grid-2,
  .grid-3 {
    gap: 1.5rem;
    display: grid;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }

  .grid-2-3-3 {
    display: grid;
    grid-template-columns: 3fr 5fr 5fr;
    gap: 0.5rem;
  }

  .gridCartePos {
    grid-template-columns: repeat(3, 1fr);
  }

  .titre-quiz {
    font-size: 2.4rem;
  }
}

.infoPhare {
  max-width: 280px;
  background: #f8fbff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  line-height: 1.4;
}

.infoPhare .section-header {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.infoPhare .title {
  background: #d7edff;
  font-size: 2em;
  color: #2b7bbd;
  font-weight: 700;
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.infoPhare img {
  background: #fff;
  text-align: center;
  padding: 10px;
  margin: 1em auto;
  max-width: 90%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.infoPhare .caption {
  font-size: 11px;
  color: #666;
  margin: -2px auto 12px;
  text-align: center;
}

.infoPhare .section-header {
  background: #d7edff;
  color: #0b4470;
  padding: 8px 10px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.infoPhare .sectPhare {
  padding: 10px;
}

.infoPhare dl {
  margin: 0;
}

.infoPhare dt {
  float: left;
  clear: left;
  width: 110px;
  font-weight: 600;
  margin-bottom: 6px;
}

.infoPhare dd {
  margin: 0 0 6px 115px;
  font-size: 12px;
  color: #666;
}
/* Fin Phare */
.exercice {
  background: linear-gradient(135deg, #f5f7fa 0, #c3cfe2 100%);
  padding: 20px;
  border-radius: 8px;
}

.exercice h2 {
  color: rgba(0, 0, 0, 0.9);
}

.exercice p {
  color: rgba(0, 0, 0);
}

.val {
  min-width: 60px;
  font-weight: 700;
  color: #048;
  text-align: center;
}

input[type="checkbox"] {
  margin-right: 10px;
}

.question-block {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  border: 2px solid #e0e0e0;
  transition: 0.3s;
}

.option-osint,
.reset-btn {
  background: #fff;
  transition: 0.3s;
  cursor: pointer;
}

.question-block.answered {
  border-color: #667eea;
}

.question-block.correct {
  border-color: #28a745;
  background: #d4edda;
}

.question-block.incorrect {
  border-color: #dc3545;
  background: #f8d7da;
}

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.question-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #ddd;
  flex-shrink: 0;
}

.question-text {
  flex: 1;
  color: #333;
  line-height: 1.6;
}

.options-osint {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.option-osint {
  color: #001;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.option-osint:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.option-osint.selected {
  border: 4px dashed black; /* Pointillés noirs */
  background-color: var(--jauneSNCF); /* Fond jaune */
  padding: 2px;
}

.option-osint.correct {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

.option-osint.incorrect {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

.option-osint img {
  max-width: 100%;
  border-radius: 5px;
}

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

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

.reset-btn {
  color: #667eea;
  border: 2px solid #fff;
  padding: 10px 30px;
  font-size: 1em;
  border-radius: 50px;
  margin-top: 15px;
  font-weight: 700;
}

.resultOSINT {
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.reset-btn:hover {
  background: 0 0;
  color: #fff;
}

.resultOSINT {
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  color: #fff;
  font-size: 2.5em;
  font-weight: 700;
  margin-top: 30px;
  display: none;
}

.btn-center,
.gallerie,
.galleriePhares,
.signal-round {
  display: flex;
}

.flash {
  filter: brightness(2);
  transform: scale(1.05);
}

.incorrect {
  filter: drop-shadow(0 0 20px red);
}

.signal-round {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #34495e;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.btn-center,
.galleriePhares,
svg {
  margin-top: 20px;
}

.phare-img,
svg {
  border-radius: 10px;
}

.signal-round.flash {
  background: #f39c12;
  box-shadow: 0 0 30px #f39c12, 0 0 60px #f39c12;
  transform: scale(1.05);
}

.signal-symbol {
  font-size: 4em;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transition: 0.2s;
}

.phare-img,
.teatcher,
.voilier {
  transition: 0.3s;
}

#signalInfo {
  font-size: 1.3em;
  color: #2c3e50;
  font-weight: 600;
  margin: 15px 0;
}

.btn-center {
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

#btnStartSignal {
  background: linear-gradient(135deg, #000414 0, #34495e 100%);
  color: #fff;
}

#btnStartSignal:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#btnReplaySignal {
  background: #34495e;
  color: #fff;
}

#btnReplaySignal:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

#instructions {
  text-align: center;
  font-size: 1em;
  color: #495057;
  margin: 40px auto 20px;
  font-weight: 500;
}

#hauteur,
.bonus-message,
.highlight,
.val-special {
  font-weight: 700;
}

.galleriePhares {
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.light-ill {
  flex: 0 0 auto;
}

.phare-img {
  width: 80px;
  height: 100px;
  object-fit: contain;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  padding: 5px;
  background: #fff;
}

.phare-img:hover {
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.phare-img.phare-correct {
  animation: 0.6s correctPulse;
}

.phare-img.phare-wrong {
  animation: 0.6s wrongShake;
}
.gallerie {
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.phare-correct {
  filter: drop-shadow(0 0 26px limegreen) saturate(1.2);
  transform: translateY(-4px);
}

.phare-wrong {
  opacity: 0.32;
  filter: grayscale(1) contrast(0.8);
  transform: none;
}

.voilier {
  left: 20px;
  bottom: 20px;
}

code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
}

svg {
  background: #cce0ff;
}

#hauteur {
  color: #048;
  font-size: 3rem;
}

.float-left {
  float: left;
}

.grid-2-4-2 {
  display: grid;
  grid-template-columns: 2fr 4fr 2fr;
  gap: 1.5rem;
}

.teatcher {
  max-width: 80px;
  height: auto;
  margin-bottom: 1rem;
  transform: scale(1.02);
}

h4 {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: clamp(1rem, 3vw, 1.3rem);
}

.gal-pictos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  justify-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
}

.gal-pictos > div {
  cursor: pointer;
  transition: transform 0.2s;
}

.gal-pictos > div:hover {
  transform: scale(1.1);
}

.pictoDr {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.3s;
}

.pictoDr.active {
  filter: grayscale(0%) brightness(1);
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

.zone-jeu {
  width: 100%;
  margin: 2rem auto;
}

.case,
.piece {
  width: 96px;
  height: 68px;
}

.pieces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  min-height: 120px;
}

.piece {
  object-fit: cover;
  border-radius: 6px;
  cursor: grab;
  transition: 0.2s;
  border: 2px solid rgba(74, 74, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.piece:hover {
  transform: scale(1.05);
  border-color: rgba(74, 74, 255, 0.6);
}

.piece:active {
  cursor: grabbing;
  transform: scale(1.08);
}

.piece.invisible {
  opacity: 0.2;
}

.fleche {
  display: inline-block;
  transform: rotate(-20deg);
  margin-left: 5px;
  animation: 1s infinite alternate clignote;
}

.grille {
  display: grid;
  grid-template-columns: repeat(5, 96px);
  grid-template-rows: repeat(4, 68px);
  gap: 2px;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.case {
  border: 2px dashed rgba(74, 74, 255, 0.4);
  background: rgba(255, 255, 255, 0.02);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.case.over {
  background: rgba(74, 74, 255, 0.3);
  transform: scale(1.05);
  border-style: solid;
}

.case .piece {
  width: 100%;
  height: 100%;
  border: none;
}

.case.correct {
  background-color: rgba(0, 255, 102, 0.2);
  border: 3px solid #0f6;
  animation: 0.5s correctPulse;
}

.case.incorrect {
  background-color: rgba(255, 68, 68, 0.2);
  border: 3px solid #f44;
  animation: 0.5s wrongShake;
}

.case.empty {
  border-color: rgba(255, 165, 0, 0.4);
}

.highlight {
  border: 2px solid #00b7ff !important;
  box-shadow: 0 0 20px rgba(0, 183, 255, 0.5);
  animation: 1s infinite alternate pulse;
}

#zoneQuestDrone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5em 0;
  padding: 0.8rem;
  border-radius: 10px;
}

#zoneQuestDrone img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h2 {
    font-size: 1.8em;
  }

  .phare-img {
    width: 80px;
    height: 100px;
  }

  .signal-round {
    width: 120px;
    height: 120px;
  }

  .signal-symbol {
    font-size: 3em;
  }

  .gal-pictos {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }

  .pictoDr {
    width: 50px;
    height: 50px;
  }

  .case,
  .piece {
    width: 77px;
    height: 54px;
  }

  .grille {
    grid-template-columns: repeat(5, 77px);
    grid-template-rows: repeat(4, 54px);
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }

  .case,
  .piece {
    width: 58px;
    height: 41px;
  }

  .grille {
    grid-template-columns: repeat(5, 58px);
    grid-template-rows: repeat(4, 41px);
  }

  .gal-pictos {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }

  .pictoDr {
    width: 40px;
    height: 40px;
  }
}

@keyframes clignote {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

@keyframes correctPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes wrongShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

@keyframes focusAnimation {
  0%,
  100% {
    filter: blur(1px);
    transform: scale(1);
  }

  50% {
    filter: blur(0px);
    transform: scale(1.1);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
}

@keyframes fadeOutDown {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
}

.fadeOutDown {
  animation: 0.6s forwards fadeOutDown;
}

@keyframes masqueQuest {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
    display: none;
  }
}

.masqueQuest {
  animation: 0.6s forwards masqueQuest;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.fadeIn {
  animation: 0.8s forwards fadeIn;
}

.bonus-message {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(76, 175, 80, 0.9);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.8rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  animation: 0.5s popBonus;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.bonus-message.fade-out {
  animation: 0.6s forwards fadeOut;
}

/* Conteneur central */
#globalMessage {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
}

/* Message générique */
.global-msg {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 1.7rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  animation: popIn 0.4s ease-out;
  display: inline-block;
}

/* Couleurs */
.global-msg.success {
  background: rgba(76, 175, 80, 0.9);
}
.global-msg.warning {
  background: rgba(255, 193, 7, 0.9);
}
.global-msg.error {
  background: rgba(244, 67, 54, 0.9);
}
.global-msg.info {
  background: rgba(33, 150, 243, 0.9);
}

/* Disparition */
.global-msg.fade-out {
  animation: fadeOut 0.7s forwards;
}

/* Animations */
@keyframes popIn {
  0% {
    transform: scale(0.5) translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes popBonus {
  0% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
  }

  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

@keyframes vanishPirate {
  0% {
    filter: blur(0px);
    opacity: 1;
    transform: scale(1) rotate(0);
  }

  40% {
    filter: blur(3px);
    opacity: 0.8;
    transform: scale(1.05) rotate(2deg);
  }

  70% {
    filter: blur(8px);
    opacity: 0.4;
    transform: scale(0.9) rotate(-3deg);
  }

  100% {
    filter: blur(20px);
    opacity: 0;
    transform: scale(0.5) rotate(15deg);
  }
}

.vanishPirate {
  animation: 2.5s forwards vanishPirate;
}

.indiceTresorTxt {
  display: grid;
  grid-gap: 1rem;
  margin-bottom: 20px;
  grid-template-columns: 1fr 1fr 1fr;
}

.fade-out {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.9);
  transition: 0.35s;
}

.appear {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.2);
  animation: 0.5s forwards appearAnim;
}

@keyframes appearAnim {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: scale(1.3);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.val-special {
  color: #ff5722;
}

.cell-anim {
  transition: color 0.4s, filter 0.4s, opacity 0.4s;
}

.blur {
  filter: blur(3px);
  opacity: 0.6;
}

.highlight {
  color: #f63 !important;
}

/* RESUME SCORE TOTAL */
.headTotal {
  display: flex;
  align-items: center;
  min-height: 3rem;
}
/* Bloc récapitulatif */
.recap-points {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* Une ligne du tableau */
.recap-ligne {
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  padding: 0.35rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recap-ligne:last-child {
  border-bottom: none;
}

/* Styles internes */
.recap-lieu {
  font-weight: 700;
  color: #9bd;
}

.recap-titre {
  font-style: italic;
  opacity: 0.9;
}

.recap-score {
  font-weight: bold;
  color: #9fdd9f;
}

/* Totaux */
.total-final {
  margin-top: 1.2rem;
  font-size: 2rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.total-pondere {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  color: #e0d37e;
}
.scoreFinalPond {
  max-width: 50%;
  border: 5px solid orange;
  border-radius: 12px;
  margin: 1.5rem auto;
  padding: 2rem;
  font-size: 4rem;
  color: #fcf0a2;
}
.encartEnvoiScore {
  padding: 20px;
  border: 2px dashed #d1b97a;
  background: #0e1625;
  border-radius: 12px;
  width: 95%;
  margin: 20px auto;
  color: white;
  font-family: "Courier New", monospace;
}

.bloc-titre {
  background: #f2c63d;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 3px;
  text-shadow: 1px 1px 0 #fff3c2;
  margin-bottom: 20px;
}

.label-info {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 10px;
  display: block;
  color: #f7f7f7;
}

#codeInput {
  width: 260px;
  padding: 12px 15px;
  font-size: 1.8rem;
  border-radius: 8px;
  border: 2px solid #ffdf7f;
  background: #fffef5;
  color: #222;
  font-weight: bold;
  letter-spacing: 2px;
  transition: 0.25s;
}
#codeInput:focus {
  outline: none;
  border-color: #ffd000;
  box-shadow: 0 0 8px #ffd000;
}

.button-go {
  display: inline-block;
  text-align: center;
  font-weight: 700;
  background: #0a1e3a;
  color: #ffd045;
  border: 2px solid #ffd045;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 2rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.25s;
  text-transform: uppercase;
}
.button-go:hover {
  transform: translateY(-3px);
  background: #112a4f;
  box-shadow: 0 0 10px #ffd04599;
}

.point-de-suite {
  display: flex;
  align-items: center;
  width: 100%;
  white-space: nowrap;
}

.ps-G {
  margin-right: 10px;
}

.ps-Dots {
  flex-grow: 1;
  border: none;
  border-top: 1px dotted #fc0;
  margin: 0 10px;
}

.ps-D {
  margin-left: 10px;
}
/* Tablo recap */
    .fs-2,
    h2 {
        font-size: clamp(1.75rem, 3vw + .8rem, 2.5rem);
    }

    .fs-3,
    h3 {
        font-size: clamp(1.5rem, 2.5vw + .6rem, 2rem);
    }

    .fs-4,
    h4 {
        font-size: clamp(1.25rem, 2vw + .5rem, 1.75rem);
    }

    /*     .fs-2,h2{font-size:clamp(1.75rem,3vw+.8rem,2.5rem)}
.fs-3,h3{font-size:clamp(1.5rem,2.5vw+.6rem,2rem)}
.fs-4,h4{font-size:clamp(1.25rem,2vw+.5rem,1.75rem)} */

.table-wrapper {
            overflow-x: auto;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
          .recapParcours {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
            color: brown;
        }

        .recapParcours th,
        .recapParcours td {
            padding: 10px;
            text-align: center;
            border: 1px solid #ddd;
        }
#recapParcours tr {
    border-left:4px solid #cce4ff;
    transition: border-left 0.12s ease-out, background 0.12s ease-out;
}

#recapParcours tr:hover {
    background: #f4f8ff;
    border-left: 4px solid #c5c7ca;
}
        .recapParcours thead tr:first-child th {
            background-color: #667eea;
            color: white;
            font-weight: bold;
        }

        .recapParcours thead tr:nth-child(2) th {
            background-color: #8899f0;
            color: white;
        }

        .recapParcours tbody tr:hover {
            background-color: #f0f0ff;
        }

       .tabloThcol1, 
.recapParcours td:first-child, 
.recapParcours td:nth-child(2) {
    position: sticky;
    left: 0;
    background: white;
    z-index: 10;
}


    .tabloThcol1,
    .abloThcol2,
    .tabloThcol3,
    .tabloThco4 {
        white-space: nowrap;
        text-align: center;
    }

    .tabloThcol1 {
        background-color: #f2f2f2;
    }

    .tabloThcol2 {
        background-color: #f2f2f2;
    }
 .tabloThcol3 {
            background-color: #f9f9f9;
            font-weight: bold;
        }

        .tabloThcol4 {
            background-color: #e6f7ff;
        }

    .confTabCenter {
        text-align: center;
    }
    #openOverlayBtn {
    background: #0077cc;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,.3);
    z-index: 9999;
     animation: fadeIn 0.3s;
}
@keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
#tableOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    overflow-y: auto;
    z-index: 9998;
     animation: fadeIn 0.3s;
}
#tableOverlay.show {
    opacity: 1;
}
#tableOverlayContent {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 95vw;
    box-shadow: 0 0 20px rgba(0,0,0,.4);
}

#closeOverlayBtn {
margin-left: auto;
    display: block;
    background: #cc0000;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 15px;
}
@media (max-width: 700px) {
    #recapParcours {
        font-size: 0.78rem;
    }
    #recapParcours th, #recapParcours td {
        padding: 4px;
    }
}