:root {
  --lueur: #00ffc2;
  --lueur-claire: #5cffd8;
  --lueur-sombre: #00c99a;
  --sol: #151d24;
  --sol-2: #1a242c;
  --coffre: #1e2932;
  --coffre-vif: #243139;
  --joint: #2c3a45;
  --joint-2: #3d4f5c;
  --encre: #ffffff;
  --encre-2: #e5e7eb;
  --encre-3: #8a9aa6;
  --arrondi: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--sol);
  color: var(--encre-2);
}

body.gaine {
  font-family: "Exo 2", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

a { color: var(--lueur-claire); }
img { max-width: 100%; height: auto; }

.levier-nav { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.fascia {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 18px;
  background: rgba(13, 13, 13, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--joint);
}

.fascia-marque {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--encre);
  text-decoration: none;
  letter-spacing: -.01em;
}

.fascia-menu { margin-left: 22px; }
.fascia-menu ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fascia-menu a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--encre-2);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.fascia-menu a:hover,
.fascia-menu a:focus { color: var(--encre); border-bottom-color: var(--joint-2); }

.fascia-outils {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.poussoir-nav {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.poussoir-nav span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--encre-2);
}

.btn-entrer,
.btn-jouer {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s, transform .18s, box-shadow .18s, background .18s;
}

.btn-entrer {
  border: 1px solid var(--lueur);
  background: transparent;
  color: var(--lueur);
}
.btn-entrer:hover { background: color-mix(in srgb, var(--lueur) 12%, transparent); color: var(--lueur); }

.btn-jouer {
  border: none;
  background: linear-gradient(135deg, var(--lueur), var(--lueur-sombre));
  color: #06170d;
}
.btn-jouer:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--lueur) 35%, transparent);
  color: #06170d;
}

.cloison {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  z-index: 45;
  width: 232px;
  padding: 18px 12px 32px;
  overflow-y: auto;
  background: var(--sol-2);
  border-right: 1px solid var(--joint);
}
.cloison .famille {
  margin: 18px 0 6px;
  padding: 0 12px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--encre-3);
}
.cloison .famille:first-child { margin-top: 0; }
.cloison a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--arrondi);
  background: var(--coffre);
  font-size: .84rem;
  font-weight: 500;
  color: var(--encre-2);
  text-decoration: none;
}
.cloison a:hover,
.cloison a[aria-current="page"] {
  background: var(--coffre-vif);
  border-color: var(--joint);
  color: var(--encre);
}
.cloison a .pastille {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lueur);
  opacity: .55;
}

.voile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  z-index: 40;
  background: rgba(0, 0, 0, .45);
}

body.gaine #cadre { margin-left: 232px; min-height: calc(100vh - 64px); }

.foyer {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.foyer h1 {
  margin: 8px 0 16px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--encre);
}
.foyer h2 {
  margin: 38px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--joint);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--encre);
  scroll-margin-top: 80px;
}
.foyer p {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--encre-2);
}
.foyer-chapo { font-size: 1.1rem; color: var(--encre); }
.encart {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--joint-2);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, .04);
}
.encart p:last-child { margin-bottom: 0; }
.cachet-maj {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 26px;
  padding: 14px 16px;
  border: 1px solid var(--joint);
  border-radius: 12px;
  background: var(--sol-2);
  font-size: .88rem;
  color: var(--encre-3);
}
.cachet-maj b { display: block; color: var(--encre-2); }
.zone-top {
  width: min(1080px, calc(100vw - 232px - 40px));
  margin: 8px 0 6px 50%;
  transform: translateX(-50%);
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
}
.zone-top iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: none;
  border-radius: 12px;
}
.cta-apres-top { margin-top: 22px; }
.garde-jeu {
  margin: 34px 0 10px;
  padding: 20px;
  border: 1px solid var(--joint);
  border-radius: 14px;
  background: var(--sol-2);
}
.garde-jeu p { margin: 0 0 10px; font-size: .9rem; line-height: 1.65; color: var(--encre-3); }
.garde-jeu p:last-child { margin-bottom: 0; }

.gradin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 96px;
  background: var(--sol-2);
  border-top: 1px solid var(--joint);
  text-align: center;
}
.gradin-menus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}
.gradin-menus a {
  font-size: .86rem;
  color: var(--encre-2);
  text-decoration: none;
}
.gradin-menus a:hover { color: var(--lueur); text-decoration: underline; }
.gradin-carte {
  width: min(720px, 100%);
  margin: 16px 0 8px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--joint);
  color: var(--encre-2);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.gradin-titre {
  margin: 0 0 2px;
  font-weight: 800;
  font-size: 15px;
  color: var(--encre);
}
.gradin-rubrique { margin: 0 0 10px; color: var(--encre-3); font-size: 12px; }
.gradin-coord { margin: 0 0 6px; }
.gradin-coord a { color: var(--encre-2); }
.gradin-loc { margin: 12px 0 8px; font-size: 12px; color: var(--encre-3); }
.gradin-loc a { color: var(--encre-2); }
.gradin-plan {
  margin: 12px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--joint);
  background: var(--coffre);
}
.gradin-plan iframe { display: block; width: 100%; height: 360px; border: 0; }
.gradin-legal {
  max-width: 68ch;
  font-size: .74rem;
  line-height: 1.6;
  color: var(--encre-3);
}
.gradin-copy { font-size: .74rem; color: var(--encre-3); }

.lisse-bas {
  position: fixed;
  left: 232px;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 20px calc(9px + env(safe-area-inset-bottom));
  background: rgba(16, 17, 18, .88);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--joint);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.lisse-bas.vu { display: flex; }
.lisse-txt { font-size: .86rem; color: var(--encre-2); }
.lisse-txt b { display: block; color: var(--encre); }
.lisse-cta { margin: 0; }

@media (max-width: 1024px) {
  .poussoir-nav { display: flex; }
  body.gaine #cadre { margin-left: 0; }
  .lisse-bas { left: 0; }
  .zone-top {
    width: auto;
    margin: 8px 0 6px;
    transform: none;
  }
  .cloison {
    width: 264px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .6);
  }
  .levier-nav:checked ~ .cloison { transform: none; }
  .levier-nav:checked ~ .voile-nav { display: block; }
  .fascia-menu { display: none; }
}

@media (max-width: 600px) {
  .fascia { gap: 8px; padding: 0 12px; }
  .fascia-outils { gap: 6px; }
  .btn-entrer { display: none; }
  .btn-jouer { padding: 9px 13px; font-size: .78rem; }
  .foyer h1 { font-size: 1.55rem; }
  .gradin-plan iframe { height: 260px; }
  .lisse-bas { gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .cloison, .btn-jouer, .lisse-bas { transition: none; }
}

/* --- TABLEAUX DE DONNEES & COMPARATIFS --- */
.tableau-conteneur {
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--joint);
  background: var(--sol-2);
}
.grille-tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  text-align: left;
}
.grille-tableau thead th {
  padding: 14px 16px;
  background: rgba(255, 255, 255, .06);
  border-bottom: 1px solid var(--joint);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--encre);
  white-space: nowrap;
}
.grille-tableau td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--joint);
  color: var(--encre-2);
  vertical-align: top;
  line-height: 1.55;
}
.grille-tableau tbody tr:last-child td {
  border-bottom: 0;
}
.grille-tableau tr:hover td {
  background: rgba(255, 255, 255, .02);
}
.badge-vert {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--lueur) 15%, transparent);
  border: 1px solid var(--lueur);
  color: var(--lueur);
  font-size: .78rem;
  font-weight: 700;
}

/* --- FICHES OPERATEURS & VISUELS --- */
.volet-vue {
  margin: 18px 0 14px;
}
.volet-vue img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  border: 1px solid var(--joint);
  border-radius: 12px;
  background: var(--coffre);
}
.volet-vue figcaption {
  margin-top: 8px;
  font-size: .82rem;
  color: var(--encre-3);
  font-style: italic;
}

/* --- ETAPES DU GUIDE DE DEPOT --- */
.etapes-guide {
  list-style: none;
  counter-reset: etape-cpt;
  margin: 24px 0;
  padding: 0;
}
.etapes-guide li {
  position: relative;
  counter-increment: etape-cpt;
  margin-bottom: 16px;
  padding: 18px 20px 18px 64px;
  border: 1px solid var(--joint);
  border-radius: 12px;
  background: var(--sol-2);
}
.etapes-guide li::before {
  content: counter(etape-cpt);
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lueur);
  color: #06170d;
  font-weight: 800;
  font-size: .95rem;
}
.etapes-guide h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--encre);
}
.etapes-guide p {
  margin: 0;
  font-size: .94rem;
  color: var(--encre-2);
}

/* --- FAQ & ACCORDEONS --- */
.qr-bloc {
  margin-bottom: 16px;
  padding: 20px 24px;
  border-left: 3px solid var(--lueur);
  border-radius: var(--arrondi);
  background: var(--sol-2);
}
.qr-bloc h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--encre);
}
.qr-bloc p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.68;
  color: var(--encre-2);
}

.foyer h3 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--encre);
}
.foyer h4 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--encre);
}
.foyer ul, .foyer ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--encre-2);
  line-height: 1.7;
}
.foyer li { margin-bottom: 7px; }
.foyer strong { color: var(--encre); }
.foyer code {
  padding: 2px 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
  font-size: .88em;
  color: var(--lueur-claire);
}

