:root {
  --bordeaux: #5c0f22;      /* provisoire */
  --sombre: #2b0a13;        /* provisoire */
  --encre: #ffffff;
  /* Polices : titres, « 360 », textes */
  --police-titre: Michroma, "Eurostile Extended", "Arial Nova", Arial, sans-serif;
  --police-chiffre: Oxanium, "Arial Nova", Arial, sans-serif;
  --police-texte: Anybody, "Arial Nova", Arial, sans-serif;
  --marge: clamp(16px, 2.4vw, 36px);
  --ombre: 0 0 1px #000, 0 0 2px #000, 0 0 4px #000, 0 0 7px rgb(0 0 0 / .9), 0 0 14px rgb(0 0 0 / .75);
}

* { box-sizing: border-box; }
/* 17 px : les minuscules d'Anybody font alors 10 pixels pile, donc nettes sur un écran ordinaire. Plus petit, ses accents se perdent. */
html, body { margin: 0; background: var(--sombre); color: var(--encre); font: 17px/1.4 var(--police-texte); font-synthesis: none; }
html { scrollbar-color: #6e5960 var(--sombre); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
button, select, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Premier écran : le mur. svh : hauteur fixe sur téléphone, même quand la barre d'adresse se replie. */
.ecran { position: relative; height: 100vh; height: 100svh; }
#mur { position: absolute; inset: 0; overflow: hidden; cursor: pointer; background: var(--sombre) center / cover url("media/depart.jpg"); }
#mur canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
#mur.pret canvas { opacity: 1; }
#mur video.source { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; }
#mur video.secours { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
#mur video.secours.vu { opacity: 1; }

.invisible { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Textes posés sur la vidéo, sans fond : l'ombre, serrée parce que Michroma a des traits fins, garde la lecture possible sur une image claire */
.nom, .liste button { text-shadow: var(--ombre); }
.nom { position: absolute; left: var(--marge); top: var(--marge); margin: 0; font: 400 21px/1.2 var(--police-titre); pointer-events: none; }

/* Bas du mur : le chevron au milieu, juste au-dessus des noms (sur la même ligne, il les toucherait en 1024 et 1440 px) */
.bas { position: absolute; left: var(--marge); right: var(--marge); bottom: calc(var(--marge) - 10px); display: flex; flex-direction: column; pointer-events: none; }
.descendre { order: -1; align-self: center; display: grid; place-items: center; width: 56px; height: 44px; margin-bottom: 2px; color: #fff; pointer-events: auto; }
.descendre svg { width: 30px; height: 16px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 3px rgb(0 0 0 / .9)) drop-shadow(0 0 8px rgb(0 0 0 / .6)); transition: translate .2s; }
.descendre:hover svg { translate: 0 3px; }
.liste { display: flex; gap: 28px; align-items: end; align-items: last baseline; justify-content: space-between; }
.liste ul { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.liste button { pointer-events: auto; border: 0; background: none; padding: 10px 0; min-height: 44px; font-weight: 600; cursor: pointer; text-decoration: none; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.liste button:hover, .liste button[aria-current="true"] { text-decoration-line: underline; }
/* Pause du mur : icône, même ombre que le chevron */
#pause { display: grid; place-items: center; min-width: 44px; padding: 0; color: #fff; }
#pause svg { width: 24px; height: 24px; fill: currentColor; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 3px rgb(0 0 0 / .9)) drop-shadow(0 0 8px rgb(0 0 0 / .6)); transition: scale .15s; }
#pause:hover svg { scale: 1.12; }
.liste ul button { font: 400 15px/1.4 var(--police-titre); }
body[data-noms="texte"] .liste ul button { font: 600 17px/1.4 var(--police-texte); }

/* Curseur rond */
#mur.souris { cursor: none; }
.rond { --x: 50vw; --y: 50vh; position: fixed; left: 0; top: 0; width: 108px; height: 108px; margin: -54px 0 0 -54px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; font: 700 31px/1 var(--police-chiffre); pointer-events: none; opacity: 0; translate: var(--x) var(--y); scale: .45; transition: opacity .16s, scale .22s cubic-bezier(.2, .8, .3, 1); will-change: translate; }
.rond span { translate: 0 .065em; }  /* centre les chiffres d'Oxanium, dessinés un peu haut */
.rond.vu { opacity: 1; scale: 1; }
.rond.appui { scale: .86; }
.rond:focus-visible { opacity: 1; scale: 1; pointer-events: auto; outline-offset: 6px; }
.rond[data-style="contour"] { background: none; color: #fff; box-shadow: inset 0 0 0 3px #fff, inset 0 0 7px 3px rgb(0 0 0 / .6), 0 0 7px rgb(0 0 0 / .65); text-shadow: 0 0 2px #000, 0 0 5px rgb(0 0 0 / .9), 0 0 12px rgb(0 0 0 / .75); }
.rond[data-style="plein"] { background: #e8e8e8; color: #141414; }
.rond[data-style="negatif"] { background: #fff; color: #000; mix-blend-mode: difference; }
@media (hover: none) {
  /* posé au centre du mur, et part avec lui quand la page descend */
  .rond { position: absolute; opacity: 1; scale: 1; pointer-events: auto; left: 50%; top: 50%; translate: none; cursor: pointer; }
}
/* Téléphone en paysage : un peu plus haut, sinon il touche le chevron */
@media (hover: none) and (max-height: 500px) { .rond { top: 44%; } }
@media (prefers-reduced-motion: reduce) { .rond, .descendre svg, #pause svg { transition: none; } }

/* Contact, puis pied de page : les deux remplissent le deuxième écran. */
.contact { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); padding: clamp(56px, 9vh, 120px) var(--marge) 56px; }
.contact h2 { margin: 0 0 12px; font: 400 27px/1.25 var(--police-titre); }
.contact > p { margin: 0 0 32px; max-width: 40em; color: #d8ccd0; }
.formulaire { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; max-width: 980px; }
.champ { display: grid; gap: 8px; align-content: start; min-width: 0; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-weight: 600; }
.champ label span { font-weight: 400; color: #cdbfc4; }
.champ input, .champ textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; border: 1px solid rgb(255 255 255 / .42); border-radius: 0; background: rgb(255 255 255 / .06); }
.champ textarea { resize: vertical; min-height: 9em; line-height: 1.45; }
.champ input:hover, .champ textarea:hover { border-color: rgb(255 255 255 / .7); }
.champ input:focus-visible, .champ textarea:focus-visible { outline-offset: 0; border-color: #fff; }
/* Piège à robots : hors de l'écran, ignoré par le clavier et les lecteurs d'écran */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.envoi button { min-height: 48px; padding: 12px 32px; border: 0; border-radius: 0; background: #fff; color: var(--sombre); font-weight: 700; cursor: pointer; }
.envoi button:hover { background: #e9dfe2; }
.envoi button:disabled { opacity: .6; cursor: progress; }
.envoi .petit { margin: 0; color: #cdbfc4; }
.envoi .petit a { color: inherit; text-underline-offset: 4px; }
#f-etat { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-weight: 600; }
#f-etat[data-ok="non"] { color: #ffd0d8; }
@media (max-width: 760px) { .formulaire { grid-template-columns: minmax(0, 1fr); } }
.pied { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; padding: 12px var(--marge); border-top: 1px solid rgb(255 255 255 / .16); font-size: 15.2px; }
.pied p { margin: 0; }
.pied a { color: inherit; text-underline-offset: 4px; padding: 10px 0; }

/* Pages de texte (mentions légales) */
.haut { padding: var(--marge) var(--marge) 0; }
.marque { font: 400 21px/1.2 var(--police-titre); color: inherit; text-decoration: none; text-underline-offset: 6px; }
.marque:hover { text-decoration: underline; }
.texte { max-width: 46em; padding: clamp(40px, 8vh, 96px) var(--marge) 64px; }
.texte h1 { margin: 0 0 8px; font: 400 27px/1.25 var(--police-titre); }
.texte h2 { margin: 2.2em 0 .7em; font: 400 17px/1.35 var(--police-titre); }
.texte p, .texte dl { margin: 0 0 .8em; }
.texte dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45em 1.4em; }
.texte dt { color: #cdbfc4; }
.texte dd { margin: 0; min-width: 0; }
.texte a { color: inherit; text-underline-offset: 4px; }
.petit { font-size: 15.2px; }
.maj { margin-top: 2.5em !important; color: #cdbfc4; }
@media (max-width: 620px) {
  .texte dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .texte dd { margin-bottom: .6em; }
}

@media (max-width: 620px) {
  .liste { gap: 12px; }
  .liste ul { display: grid; grid-template-columns: 1fr; }
  .liste button { padding: 8px 0; min-height: 40px; text-align: left; }
}
@media (max-width: 360px) {
  .liste ul button { font-size: 14px; }
}
