/* Site public et écran d'accueil en style « Fanzine » (DA du HUD choisie le 24/10/2026) : chargé APRÈS site.css.
   Impression risographie : papier noir (Nuit) ou crème (Clair), encres rose fluo, bleu et jaune, léger décalage de
   calage, trame de points, coins presque droits, titres en Bricolage Grotesque, étiquettes en DM Mono.
   Le thème suit le réglage du jeu (theme-boot.js) ; sans JavaScript, c'est la version Nuit. Tout reste rangé sous
   `.site` (et l'écran de chargement) pour ne rien changer à l'interface du jeu. */

@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('/fonts/dm-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('/fonts/dm-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }

/* encres (mêmes valeurs que hud-fanzine.css) puis jetons de site.css redirigés vers elles (:root, comme site.css) */
:root {
  --paper: #1d1b26; --paper-2: #26232f; --page: #14121b; --ink: #f4efe4; --ink-soft: #c7c0b2;
  --pink: #ff5fae; --blue: #5b8cff; --yellow: #ffd84a; --noir: #14121b; --misreg: 3px 3px 0 var(--pink);
  --trame: radial-gradient(circle, rgba(255, 95, 174, 0.38) 1.1px, transparent 1.4px) 0 0 / 6px 6px;
  --f-bouton: var(--yellow); --f-bouton-hover: #ffe172; --f-bouton-texte: var(--noir); --f-titre: var(--ink); --f-filet: rgba(244, 239, 228, 0.16);
  --nuit: var(--page); --nuit-2: var(--paper); --nuit-3: var(--paper-2);
  --carte: var(--paper); --carte-bord: var(--ink); --creme: var(--ink); --creme-carte: var(--paper);
  --lavande: var(--yellow); --lavande-vive: var(--yellow); --lavande-claire: var(--ink-soft);
  --texte: var(--ink); --texte-doux: var(--ink-soft); --encre: var(--noir); --rose-live: var(--pink);
  --titre: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
  --police: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}
html:root[data-theme='clair'] {
  --paper: #f5f0e5; --paper-2: #ece5d6; --page: #e6dfcf; --ink: #1f1d3a; --ink-soft: #46436a;
  --pink: #ff4f9e; --blue: #2f5bd9; --yellow: #ffd23f;
  --trame: radial-gradient(circle, rgba(255, 79, 158, 0.45) 1.1px, transparent 1.4px) 0 0 / 6px 6px;
  --f-bouton: var(--blue); --f-bouton-hover: #2449b8; --f-bouton-texte: #fffaf0; --f-titre: var(--blue); --f-filet: rgba(31, 29, 58, 0.16);
}

/* ---------------------------------------------------------------- base */
html:has(body.site), body.site, body.on-landing, html[data-theme] body.on-landing { background: var(--page); }
.site { background: var(--page); color: var(--ink); }
.site h1, .site h2, .site h3 { font-weight: 800; letter-spacing: -0.015em; }
.site :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.site ::selection { background: var(--yellow); color: var(--noir); }
.site-evitement { border-radius: 3px; border: 2px solid var(--ink); background: var(--yellow); color: var(--noir); }

/* ---------------------------------------------------------------- en-tête : bandeau imprimé */
.site-tete { border-bottom: 2px solid var(--ink); box-shadow: 0 3px 0 var(--pink); background: var(--paper); }
.logo-coeur { fill: var(--pink); }
.logo-brin path { stroke: var(--paper); }
.logo-nom { font-weight: 800; text-transform: uppercase; font-size: 1.22rem; line-height: .92; letter-spacing: -0.02em; }
.site-nav a { color: var(--ink-soft); font-family: var(--mono); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { height: 4px; border-radius: 0; background: var(--pink); }
.tete-live { border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; box-shadow: 2px 2px 0 var(--blue); }
.tete-live[data-etat="live"] { border-color: var(--ink); background: var(--pink); color: #fff; box-shadow: 2px 2px 0 var(--yellow); }
.tete-live[data-etat="live"] .live-point { background: #fff; }
.tete-live .live-point, .live-point { border-radius: 0; background: var(--ink-soft); }
@keyframes pouls { 50% { opacity: .35; } }
/* téléphone en live : « En live » + « Rejoindre » en capitales mono ne tenaient pas et poussaient le menu hors de l'écran.
   Le pavé rose et son point clignotant disent déjà « en live » : il ne reste que « Rejoindre », et le menu garde sa place. */
@media (max-width: 520px) {
  .site-tete { gap: 10px; }
  .site-burger { flex: none; }
  .site-tete .tete-live { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .tete-live[data-etat="live"] { gap: 6px; padding: 0 3px 0 8px; }
  .tete-live[data-etat="live"] .lt-court { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* toujours lu par les lecteurs d'écran */
  .tete-live .live-rejoindre { padding: 0 8px; letter-spacing: .02em; }
}
@media (max-width: 360px) {
  .site-tete { gap: 8px; }
  .site-logo { gap: 7px; }
  .logo-ico { width: 38px; height: 38px; }
  .logo-nom { font-size: 1.05rem; }
  .site-burger { width: 40px; }
  .tete-live[data-etat="live"] { gap: 5px; padding: 0 3px 0 6px; }
  .tete-live .live-rejoindre { padding: 0 6px; font-size: .7rem; letter-spacing: 0; }
}
.site-cnx { border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: var(--misreg); font-weight: 800; }
.site-cnx:hover { background: var(--yellow); color: var(--noir); }
.site-cnx:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink); }
.site-burger, .site-menu-fermer { border-radius: 3px; color: var(--ink); }
.site-burger:hover { background: var(--paper-2); }

/* menu du téléphone : page de zine, onglet en aplat jaune */
.site-menu { background: var(--trame), var(--page); background-size: 6px 6px, auto; }
.site-menu-tete { border-bottom: 2px solid var(--ink); }
.site-menu a { border-radius: 3px; color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; border: 2px solid transparent; }
.site-menu a .ico { color: var(--ink); }
.site-menu a .chevron { color: var(--ink-soft); }
.site-menu a:hover { background: var(--paper); border-color: var(--ink); }
.site-menu a[aria-current="page"] { background: var(--yellow); color: var(--noir); border-color: var(--ink); box-shadow: var(--misreg); }
.site-menu-compte { border-top: 2px solid var(--ink); }

/* ---------------------------------------------------------------- boutons : aplat d'encre, calage rose */
.btn-principal { border: 2px solid var(--ink); border-radius: 3px; background: var(--f-bouton); color: var(--f-bouton-texte); font-weight: 800; box-shadow: 4px 4px 0 var(--pink); }
.btn-principal:hover { background: var(--f-bouton-hover); }
.btn-principal:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pink); }
.appel .btn-principal { color: var(--f-bouton-texte); }
.btn-twitch { border: 2px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 var(--pink); }
.btn-twitch .ico { border-radius: 2px; }
.btn-twitch:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pink); }
.btn-rond { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 var(--pink); }
.lien-bouton { color: var(--ink-soft); }
.note-twitch { color: var(--ink-soft); font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.5; }
.note-twitch .twitch { border-radius: 2px; background: var(--blue); color: #fff; }
.site-erreur { border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--pink); }
.live-etat { border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; }
.live-etat[data-etat="live"] .live-point { background: var(--pink); box-shadow: none; }
.live-rejoindre { border: 2px solid var(--ink); border-radius: 2px; background: var(--yellow); color: var(--noir); font-family: var(--mono); font-weight: 500; text-transform: uppercase; }

/* ---------------------------------------------------------------- ciel : petites étoiles imprimées, sans lueur */
.etoile { border-radius: 0; background: var(--yellow); box-shadow: none; transform: rotate(45deg); width: 6px; height: 6px; }
.etoile.e2, .etoile.e4, .etoile.e6, .etoile.e8, .etoile.e9 { width: 4px; height: 4px; background: var(--pink); }
.etoile.e11, .etoile.e12, .etoile.e14 { background: var(--blue); }
@keyframes scintille { 0%, 100% { opacity: .25; transform: rotate(45deg) scale(.7); } 50% { opacity: 1; transform: rotate(45deg) scale(1.15); } }
.lune svg { filter: none; }
.lune::after { content: none; }

/* ---------------------------------------------------------------- accueil */
.hero h1 { font-size: clamp(2.4rem, .6rem + 3.6vw, 5.4rem); line-height: 1.04; text-transform: uppercase; letter-spacing: -0.03em; color: var(--f-titre); text-shadow: 3px 3px 0 var(--pink); }
.surligne { color: var(--noir); background: var(--yellow); padding: 0 .12em; margin-left: -.04em; text-shadow: none; box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: 4px 4px 0 var(--blue); }
.hero .intro { color: var(--ink-soft); text-shadow: none; font-weight: 500; }
.hero .actions { margin-top: 38px; }
.hero .cnx-test { border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); box-shadow: 4px 4px 0 var(--blue); }
.hero .cnx-test input, .cnx-test input { border: 2px solid var(--ink); border-radius: 3px; background: var(--page); color: var(--ink); }
.cnx-badge { border-radius: 2px; background: var(--yellow); color: var(--noir); font-family: var(--mono); font-weight: 500; text-transform: uppercase; }
.hero .cnx-test .fin { color: var(--ink-soft); }
/* le texte s'arrête avant la photo de la place (même largeur que dans site.css) */
.hero { --place-w: min(54vw, calc((100svh - var(--tete-h) - 100px) * 1.0155), 1240px); }
@media (min-width: 901px) { .hero-texte { width: calc(100vw - var(--place-w) - max(var(--marge), calc((100vw - var(--large)) / 2)) - 48px); } }
/* la place : imprimée comme une photo collée dans le zine (cadre d'encre, calage rose, trame décalée) */
.place { border: 2px solid var(--ink); border-radius: 3px; background: radial-gradient(90% 70% at 60% 10%, #1a2160, #0e133a 70%); box-shadow: 8px 8px 0 var(--pink); overflow: hidden; }
.place::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(180deg, rgba(14, 19, 58, 0), rgba(14, 19, 58, .55)); pointer-events: none; }
.hero::before { content: ""; position: absolute; z-index: 0; right: calc(max(var(--marge), calc((100vw - var(--large)) / 2)) - 22px); bottom: 2px; width: var(--place-w); aspect-ratio: 1308 / 1288; background: var(--trame); pointer-events: none; }
.etiquette-place { position: absolute; z-index: 4; left: 14px; top: 14px; padding: 5px 9px; border: 2px solid var(--ink); border-radius: 2px; background: var(--yellow); color: var(--noir); font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--blue); }

/* ---------------------------------------------------------------- pied de page */
.site-pied { border-top: 2px solid var(--ink); background: var(--paper); color: var(--ink-soft); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; }
.site-pied nav a:hover { color: var(--ink); }
.pied-raccourcis { color: var(--ink); }
.pied-ligne::before, .pied-legal::after, .pied-legal::before { background: var(--f-filet); }
.ambiance { border: 2px solid var(--ink); border-radius: 2px; color: var(--ink); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.ambiance:hover { color: var(--noir); background: var(--yellow); border-color: var(--ink); }

/* ---------------------------------------------------------------- pages secondaires : cartes et images cadrées */
.tete-page .intro, .lecture-tete .intro, .erreur .intro { color: var(--ink-soft); }
.tete-page h1, .lecture-tete h1, .erreur h1, .cnx-carte h1 { text-transform: uppercase; letter-spacing: -0.03em; line-height: .98; color: var(--f-titre); text-shadow: 3px 3px 0 var(--pink); }
.bloc > h2, .moment h2 { text-transform: uppercase; letter-spacing: -0.02em; }
.carte, .cl-day, .lecture-bloc, .faq-item { border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); box-shadow: 4px 4px 0 var(--pink); }
.carte.texte h3 .ico, .pastille { border-radius: 3px; border: 2px solid var(--ink); background: var(--yellow); color: var(--noir); }
.puces li::before { border-radius: 0; background: var(--pink); }
.num { border-radius: 2px; border: 2px solid var(--ink); background: var(--yellow); color: var(--noir); font-family: var(--mono); font-weight: 500; }
.lien-suite a, .lecture-retour a, .appel a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.appel .btn-principal { text-decoration: none; }
.legende { color: var(--ink-soft); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; }
/* illustrations : plus de fondu, une photo cadrée avec calage bleu */
.tete-illus, .illus-salon .tete-illus, .illus-appart .tete-illus, .erreur-illus, .illus-large img, .moment img, .etapes img {
  -webkit-mask-image: none; mask-image: none; border: 2px solid var(--ink); border-radius: 3px; box-shadow: 6px 6px 0 var(--blue);
}
.apercu-salle { border: 2px solid var(--ink); border-radius: 3px; background: var(--paper-2); box-shadow: 4px 4px 0 var(--blue); }
.salles p { color: var(--ink-soft); }
.voir-tout { border: 2px solid var(--ink); border-radius: 3px; color: var(--ink); font-family: var(--mono); font-weight: 500; text-transform: uppercase; font-size: .8rem; box-shadow: var(--misreg); }
.voir-tout:hover { background: var(--yellow); color: var(--noir); }
.cl-date, .cl-count { font-family: var(--mono); font-weight: 500; text-transform: uppercase; color: var(--ink-soft); }
.cl-item strong { color: var(--ink); }
.cl-item p { color: var(--ink-soft); }
.cl-tag { border-radius: 2px; border: 1.5px solid var(--ink); background: var(--yellow); color: var(--noir); font-family: var(--mono); font-weight: 500; text-transform: uppercase; }
.cl-tag.ameliore { background: var(--blue); color: #fff; }
.cl-tag.corrige { background: var(--pink); color: #fff; }
/* FAQ */
.faq-q button { color: var(--ink); }
.faq-q button:focus-visible { border-radius: 2px; }
.faq-item:has(button[aria-expanded="true"]) { background: var(--paper); border-color: var(--ink); box-shadow: 4px 4px 0 var(--blue); }
.faq-item:has(button[aria-expanded="true"]) .faq-q button { color: var(--noir); background: var(--yellow); border-bottom: 2px solid var(--ink); }
.faq-item:has(button[aria-expanded="true"]) .faq-r { color: var(--ink); }
.faq-item:has(button[aria-expanded="true"]) .faq-r a { color: var(--ink); text-decoration-color: var(--pink); }
.faq-lanterne { display: none; }
.faq-bas { display: none; }
/* connexion : l'entrée devient une photo cadrée, la carte une fiche imprimée posée dessus */
.cnx-entree { -webkit-mask-image: none; mask-image: none; border: 2px solid var(--ink); border-radius: 3px; box-shadow: 8px 8px 0 var(--blue); }
.cnx-carte { border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 var(--pink); }
.cnx-carte h1 { color: var(--f-titre); }
.cnx-carte .fin, .cnx-chargement, .cnx-carte .lien-bouton { color: var(--ink-soft); }
.cnx-carte .site-erreur { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.cnx-liens { color: var(--ink); font-family: var(--mono); font-size: .8rem; text-transform: uppercase; }
/* lecture : règlement, CGU, confidentialité */
.lecture-bloc p { color: var(--ink); }
.a-completer { border: 2px dashed var(--ink); border-radius: 3px; background: var(--paper-2); color: var(--ink); }
.a-completer strong { color: var(--ink); }
.erreur .code { font-family: var(--mono); text-transform: uppercase; color: var(--ink-soft); }
.erreur .code span { height: 2px; background: var(--pink); }

/* écran de chargement de l'application : même papier que le site */
#screen-loading.loading { background: var(--page); color: var(--ink); }
#screen-loading .chargement-logo { color: var(--ink); }
#screen-loading .logo-coeur { fill: var(--pink); }
#screen-loading .logo-brin path { stroke: var(--page); }
#screen-loading .logo-brin path:first-child { stroke: var(--ink); }
#screen-loading .loading-title { font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; text-shadow: 2px 2px 0 var(--pink); }

/* ---------------------------------------------------------------- tablette et téléphone */
@media (max-width: 900px) {
  .hero::before { display: none; }
  .place { width: calc(100% - 2 * var(--marge)); max-width: 760px; margin: 34px auto 0; align-self: center; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2rem, .9rem + 6vw, 3.2rem); }
  .surligne { box-shadow: 3px 3px 0 var(--blue); }
  .hero .note-twitch { font-size: .72rem; }
  .place { width: calc(100% - 2 * var(--marge) - 6px); max-width: none; margin: 30px var(--marge) 34px; box-shadow: 6px 6px 0 var(--pink); }
  .site-pied { font-size: .72rem; }
  .cnx-carte { box-shadow: 5px 5px 0 var(--pink); }
}

/* ---------------------------------------------------------------- accueil, nouvelle DA (11/11/2026) : le donjon en grande
   photo, puis trois vitrines (Taverne, Galerie des Géodes, chambre). Proposition « Fanzine et vitrine » choisie par Guillaume. */
.hero { --vit-h: clamp(120px, 19vh, 190px); --place-w: min(50vw, calc((100svh - var(--tete-h) - 150px - var(--vit-h)) * 1.173), 1040px);
  min-height: calc(100svh - var(--tete-h) - 96px - var(--vit-h)); }
.place.place-da { width: var(--place-w); aspect-ratio: 1056 / 900; bottom: 30px; background: #09070f; box-shadow: 8px 8px 0 var(--pink), 14px 14px 0 var(--blue); transform: rotate(.6deg); }
.place.place-da::after { display: none; }
.place.place-da .place-fond { object-fit: cover; }
.hero::before { aspect-ratio: 1056 / 900; bottom: 8px; }
.vitrines { --g: max(var(--marge), calc((100vw - var(--large)) / 2 + var(--marge))); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px);
  padding: 6px max(var(--marge), calc((100vw - var(--large)) / 2)) 30px var(--g); }
.vitrine { position: relative; display: block; height: clamp(120px, 19vh, 190px); overflow: hidden; border: 2px solid var(--ink); border-radius: 3px; background: #09070f; box-shadow: 5px 5px 0 var(--yellow); }
.vitrine img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vitrine span { position: absolute; left: 8px; bottom: 8px; padding: 5px 9px; border-radius: 2px; background: var(--noir); color: #fff; font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.vitrine:hover img, .vitrine:focus-visible img { transform: scale(1.05); }
.vitrine:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .place.place-da { width: calc(100% - 2 * var(--marge) - 8px); max-width: 760px; margin: 34px auto 0; transform: none; bottom: auto; }
  .vitrines { padding: 34px var(--marge) 30px; }
}
@media (max-width: 760px) {
  .place.place-da { margin: 30px var(--marge) 0; box-shadow: 6px 6px 0 var(--pink), 10px 10px 0 var(--blue); }
  .vitrines { grid-template-columns: 1fr; gap: 16px; padding-right: calc(var(--marge) + 6px); }
  .vitrine { height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .vitrine img { transition: none; } }
