/* TRE13E — styles globaux. Palette : noir #0B0A0A, blanc cassé #F4F0E8,
   bordeaux #6E1626, doré #C8A35A / #E6CC8E. Police du site : Outfit.
   Polices des pages de la carte (fidèles au PDF) : Sora, Poppins (tarifs barber). */
:root {
  --ink: #0B0A0A;
  --ink-2: #121010;
  --paper: #F4F0E8;
  --bordeaux: #6E1626;
  --gold: #C8A35A;
  --gold-light: #E6CC8E;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: 'Outfit', system-ui, sans-serif; overflow-x: clip; }
a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; }
*:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) { .hide-sm { display: none !important; } }
@media (min-width: 861px) { .show-sm { display: none !important; } }

/* ---------- Chapitres ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 40px; padding: 0 16px; border: 1px solid rgba(200,163,90,0.4); background: transparent; color: var(--paper); font-family: inherit; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--ink-2); border-color: var(--gold); }

/* ---------- Livre piloté par le défilement ---------- */
.book-track { position: relative; }
.book-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 16px 0 20px; }
.book-wrap { position: relative; margin: 14px auto 0; width: min(100%, 760px, calc((100vh - 290px) * 1.2355)); }
.book--wide .book-wrap { width: min(100%, 1320px, calc((100vh - 290px) * 2.471)); }
.book-board { position: absolute; left: -12px; right: -12px; top: -14px; bottom: -16px; background: linear-gradient(135deg, #5A111F, #3E0B15); border-radius: 6px; box-shadow: 0 40px 80px rgba(0,0,0,0.6); transition: left .25s, right .25s; }
.book-stage { position: relative; width: 100%; aspect-ratio: 1170 / 947; perspective: 3600px; perspective-origin: 50% 50%; touch-action: pan-y; cursor: grab; }
.book-stage:active { cursor: grabbing; }
.book--wide .book-stage { aspect-ratio: 2340 / 947; }

.slot { position: absolute; top: 0; height: 100%; }
.slot--left { left: 0; width: 50%; box-shadow: -6px 0 0 #E8E1D3, -9px 2px 0 #CFC7B6, 0 10px 30px rgba(0,0,0,0.4); }
.slot--right { left: 0; width: 100%; box-shadow: 6px 0 0 #E8E1D3, 9px 2px 0 #CFC7B6, 0 10px 30px rgba(0,0,0,0.4); }
.book--wide .slot--right { left: 50%; width: 50%; }
.slot__spine { position: absolute; inset: 0; pointer-events: none; }
.slot__spine--left { background: linear-gradient(270deg, rgba(0,0,0,0.45), rgba(0,0,0,0) 14%); }
.slot__spine--right { background: linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0) 14%); }
.cast { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.cast--left { background: linear-gradient(270deg, rgba(0,0,0,0.75), rgba(0,0,0,0.15) 70%); }
.cast--right { background: linear-gradient(90deg, rgba(0,0,0,0.75), rgba(0,0,0,0.15) 70%); }

/* La feuille qui tourne : 5 bandes imbriquées (courbure du papier) */
.leaf { position: absolute; top: 0; left: 0; width: 20%; height: 100%; transform-origin: 0% 50%; transform-style: preserve-3d; z-index: 20; pointer-events: none; will-change: transform; }
.book--wide .leaf { left: 50%; width: 10%; }
.bd { position: absolute; top: 0; left: 100%; width: 100%; height: 100%; transform-origin: 0% 50%; transform-style: preserve-3d; will-change: transform; }
.leaf__face { position: absolute; top: 0; bottom: 0; left: 0; right: -0.6px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf__face--back { transform: rotateY(180deg); }
.leaf__slice { position: absolute; top: 0; width: 500%; }
.leaf__blank { position: absolute; inset: 0; background: #141212; }
.shf, .shb { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* Une page de la carte (proportions exactes du PDF) */
.menu-page { position: relative; width: 100%; aspect-ratio: 1170 / 947; container-type: inline-size; overflow: hidden; background: #0E0D0D; user-select: none; }
.menu-page__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.book-controls { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(200,163,90,0.6); background: transparent; color: var(--gold-light); display: grid; place-items: center; cursor: pointer; }
.round-btn--gold { border: 0; background: var(--gold); color: var(--ink-2); }
.sound-btn { height: 44px; padding: 0 16px; margin-left: 8px; border: 1px solid rgba(244,240,232,0.25); background: transparent; color: rgba(244,240,232,0.85); font-family: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* Formulaires fidélité */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #3A3434; }
.field input { height: 48px; padding: 0 14px; border: 1px solid rgba(18,16,16,0.25); font-family: inherit; font-size: 16px; color: #121010; background: #FBF9F5; }
.btn-primary { height: 54px; border: 0; background: var(--bordeaux); color: #FFFFFF; font-family: inherit; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Menu hamburger (téléphone et tablette) ---------- */
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(200,163,90,0.6); background: transparent; color: var(--gold-light); cursor: pointer; padding: 0; }
.site-menu { position: fixed; top: 69px; left: 0; right: 0; bottom: 0; z-index: 49; background: #0B0A0A; overflow-y: auto; padding: 28px 24px 40px; display: flex; flex-direction: column; animation: menu-in .22s ease-out; }
.site-menu a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(200,163,90,0.18); font-size: 26px; font-weight: 300; letter-spacing: -0.01em; }
.site-menu a span { color: #C8A35A; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; min-width: 26px; }
.site-menu a[aria-current="page"] { color: var(--gold-light); font-weight: 500; }
.site-menu__foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(244,240,232,0.7); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 861px) { .site-menu { display: none !important; } }
nav a[aria-current="page"] { color: var(--gold-light); }

/* ---------- Page Cercle TRE13E ---------- */
.faq details { border-bottom: 1px solid rgba(18,16,16,0.15); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #6E1626; font-weight: 300; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: #3A3434; max-width: 760px; }

/* ---------- Portail Wi-Fi (hotspot MikroTik) ---------- */
.wifi { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; isolation: isolate; }
.wifi-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.wifi-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: 0.7; animation: wifi-zoom 22s ease-out both; }
.wifi-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,10,10,0.35) 0%, rgba(11,10,10,0.8) 48%, #0B0A0A 100%); }
.wifi-bg::after { content: ""; position: absolute; z-index: 1; right: -220px; top: -240px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(110,22,38,0.65), rgba(110,22,38,0) 70%); }
@keyframes wifi-zoom { from { transform: scale(1.08); } to { transform: none; } }
.wifi-shell { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: calc(36px + env(safe-area-inset-top)) 16px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-content: start; }
@media (min-width: 940px) { .wifi-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 72px; padding: 72px 32px; align-content: center; align-items: center; } }

.wifi-intro { display: flex; flex-direction: column; gap: 22px; animation: wifi-rise .7s ease-out both; }
.wifi-kicker { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; color: var(--gold-light); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; }
.wifi-kicker i { width: 5px; height: 5px; background: var(--bordeaux); transform: rotate(45deg); flex: 0 0 auto; }
.wifi-logo { width: min(420px, 78%); height: auto; display: block; }
.wifi-title { margin: 0; font-weight: 200; font-size: clamp(40px, 6.4vw, 92px); line-height: 0.95; letter-spacing: -0.03em; }
.wifi-title span { font-weight: 800; color: var(--gold-light); }
.wifi-lead { margin: 0; max-width: 520px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: rgba(244,240,232,0.82); font-weight: 300; }
.wifi-lead strong { font-weight: 600; color: var(--paper); white-space: nowrap; }
@media (max-width: 939px) { .wifi-logo { width: min(300px, 70%); } }

.wifi-panel { animation: wifi-rise .7s .12s ease-out both; }
.wifi-card { background: var(--paper); color: var(--ink-2); padding: 30px 24px; border-top: 3px solid var(--bordeaux); box-shadow: 0 40px 90px rgba(0,0,0,0.55); }
@media (min-width: 520px) { .wifi-card { padding: 36px; } }
.wifi-step { display: flex; flex-direction: column; gap: 18px; }
.wifi-step__head { display: flex; flex-direction: column; gap: 6px; }
.wifi-step__head h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.wifi-step__head p { margin: 0; color: #5A5252; font-size: 15px; line-height: 1.5; }
.wifi-eyebrow { color: var(--bordeaux); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600; }
.wifi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 12px; }
.wifi-prefix { display: grid; place-items: center; padding: 0 14px; border: 1px solid rgba(18,16,16,0.25); border-right: 0; background: #EFE9DF; font-size: 15px; }
.wifi-code { height: 60px !important; font-size: 28px !important; letter-spacing: 0.5em; text-align: center; }
.wifi-error { margin: 0; color: #8E1B2E; font-size: 14px; line-height: 1.45; }
.wifi-legal { margin: 0; font-size: 12px; line-height: 1.5; color: #6A6262; }
.wifi-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wifi-links button { height: 44px; border: 0; padding: 0; background: transparent; color: var(--bordeaux); font-family: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }

.wifi-pass { position: relative; overflow: hidden; aspect-ratio: 1.586; background: #0E0D0D; color: var(--paper); border-radius: 16px; border: 1px solid rgba(200,163,90,0.5); box-shadow: 0 24px 50px rgba(18,16,16,0.35); padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; animation: wifi-pass .8s cubic-bezier(.2,.8,.2,1) both; }
.wifi-pass__glow { position: absolute; right: -40px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(110,22,38,0.75), rgba(110,22,38,0) 70%); }
.wifi-pass__top, .wifi-pass__bottom { position: relative; display: flex; justify-content: space-between; gap: 14px; }
.wifi-pass__top { align-items: center; }
.wifi-pass__top img { height: 30px; width: auto; }
.wifi-pass__top span { font-size: 11px; letter-spacing: 0.3em; color: var(--gold-light); font-weight: 600; }
.wifi-pass__bottom { align-items: flex-end; }
.wifi-pass__label { font-size: 11px; letter-spacing: 0.2em; color: rgba(244,240,232,0.6); text-transform: uppercase; }
.wifi-pass__name { font-size: 19px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wifi-pass__points { font-size: 30px; font-weight: 700; line-height: 1; color: var(--gold-light); white-space: nowrap; }
.wifi-pass__qr { flex: 0 0 auto; background: #FFFFFF; padding: 6px; border-radius: 6px; line-height: 0; }
.wifi-pass__qr img { width: 84px; height: 84px; display: block; }
.wifi-pass__points small { font-size: 13px; font-weight: 500; color: rgba(244,240,232,0.7); }
.wifi-wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.wifi-wallet { height: 56px; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wifi-wallet img { width: auto; display: block; }
.wifi-wallet--google { border: 1px solid #DADCE0; border-radius: 10px; padding: 0 12px; background: #FFFFFF; }
.wifi-continue { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border: 1px solid rgba(18,16,16,0.3); color: var(--ink-2); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.wifi-ios { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #EFE9DF; }
.wifi-ios p { margin: 0; font-size: 14px; line-height: 1.5; color: #3A3434; }
button.wifi-continue { background: transparent; font-family: inherit; cursor: pointer; width: 100%; }
.wifi-continue:hover { color: var(--bordeaux); border-color: var(--bordeaux); }

.wifi-foot { border-top: 1px solid rgba(200,163,90,0.22); background: rgba(11,10,10,0.7); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; font-size: 13px; color: rgba(244,240,232,0.7); }
.wifi-foot b { color: var(--gold); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; margin-right: 10px; }
@keyframes wifi-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wifi-pass { from { opacity: 0; transform: translateY(18px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wifi-bg img, .wifi-intro, .wifi-panel, .wifi-pass { animation: none; } }
.wifi-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wifi-badges__apple { height: 46px; width: auto; display: block; }
.wifi-badges__google { display: inline-flex; align-items: center; height: 46px; padding: 0 10px; background: #FFFFFF; border: 1px solid #DADCE0; border-radius: 10px; }
.wifi-badges__google img { height: 28px; width: auto; display: block; }
.wifi-badges__text { font-size: 14px; color: rgba(244,240,232,0.75); }
@media (max-width: 939px) { .wifi-badges__apple, .wifi-badges__google { height: 40px; } .wifi-badges__google img { height: 24px; } }

/* Univers de l'accueil : toute la carte mène à la page de l'univers ; ses liens restent cliquables. */
.univers-card__link { position: absolute; inset: 0; z-index: 1; }
.univers-card > div:last-child { z-index: 2; pointer-events: none; }
.univers-card > div:last-child a { pointer-events: auto; }
.univers-card img { transition: transform .6s ease; }
.univers-card:hover img { transform: scale(1.03); }
