/* Ichimai, page d'attente. Couleurs et polices : ichimai-tokens.css (copié tel quel de la charte C). Aucune couleur en dur ici. */
@font-face { font-family: 'Sora'; font-weight: 400; font-display: swap; src: url('/fonts/sora-400.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('/fonts/sora-600.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-display: swap; src: url('/fonts/sora-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/fonts/barlow-800.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('/fonts/barlow-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 400; font-display: swap; src: url('/fonts/dm-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 500; font-display: swap; src: url('/fonts/dm-mono-500.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; background: var(--anthracite); color: var(--pierre);
  font-family: var(--police); font-size: 16px; line-height: 1.55;
  min-height: 100dvh; display: flex; flex-direction: column;
}
.colonne { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px; }
header.colonne { padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: 8px; }
.logo { display: block; height: 40px; width: auto; }
main { flex: 1; padding-bottom: 40px; }
a { color: var(--creme); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--creme); outline-offset: 3px; }

.repere { font-family: var(--police-repere); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cendre); margin: 0; }
h1, h2 { font-family: var(--police-titre); font-weight: 800; text-transform: uppercase; color: var(--creme); margin: 0; line-height: .94; }
h1 { font-size: clamp(46px, 15vw, 76px); margin: 14px 0 12px; }
h2 { font-size: 30px; margin: 0 0 12px; }
.signature { font-weight: 600; color: var(--creme); font-size: 18px; margin: 0 0 14px; }
.intro { margin: 0 0 24px; }

/* Capture du classeur */
.capture { margin: 32px 0 0; display: flex; justify-content: center; }
.capture img { display: block; width: min(100%, 300px); height: auto; border-radius: 22px; border: 1px solid var(--ardoise); }
.capture .emplacement {
  width: min(100%, 300px); aspect-ratio: 9 / 16; border-radius: 22px; border: 1.5px dashed var(--etat-manquante-bord);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  color: var(--cendre); font-family: var(--police-repere); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
[hidden] { display: none !important; }

/* Compteur */
.compteur { background: var(--charbon); border: 1px solid var(--ardoise); border-radius: 18px; padding: 18px 18px 16px; margin: 0 0 28px; }
.compteur .ligne { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; min-height: 52px; }
.compteur .grand { font-family: var(--police-titre); font-weight: 800; font-size: 52px; line-height: 1; color: var(--creme); font-variant-numeric: tabular-nums; }
.compteur .unite { font-family: var(--police-titre); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; color: var(--pierre); margin-right: 4px; }
.compteur .vide { height: 52px; width: 70%; background: var(--ardoise); border-radius: 10px; opacity: .5; }
.paliers { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ardoise); display: grid; gap: 6px; }
.paliers li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.paliers .repere { color: var(--pierre); }

/* Formulaire */
form { display: grid; gap: 16px; margin: 0 0 8px; }
.champ label, .champ .etiquette { display: block; font-weight: 600; color: var(--creme); font-size: 15px; margin-bottom: 6px; }
.champ .aide { font-weight: 400; color: var(--cendre); }
input[type=email], input[type=text] {
  width: 100%; height: 54px; border-radius: 14px; border: 1px solid var(--ardoise-2); background: var(--charbon);
  color: var(--creme); font: inherit; font-size: 16px; padding: 0 16px;
}
input::placeholder { color: var(--cendre); }
input[type=email]:focus, input[type=text]:focus { border-color: var(--creme); outline: none; }
.combo { position: relative; }
.combo input { padding-right: 48px; }
.combo .effacer { position: absolute; right: 4px; top: 4px; width: 46px; height: 46px; border: 0; background: none; color: var(--cendre); font-size: 22px; cursor: pointer; border-radius: 12px; }
.liste {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface-2); border: 1px solid var(--ardoise-2); border-radius: 14px; max-height: 280px; overflow-y: auto;
}
.liste li { padding: 12px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; color: var(--creme); }
.liste li .repere { color: var(--cendre); }
.liste li[aria-selected=true], .liste li:hover { background: var(--ardoise); }
.liste .rien { color: var(--cendre); cursor: default; }
.case { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.case input { width: 26px; height: 26px; margin: 0; accent-color: var(--creme); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bouton {
  height: 54px; border-radius: 14px; border: 0; background: var(--bouton-fond); color: var(--bouton-texte);
  font: 700 16px var(--police); cursor: pointer; width: 100%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 20px;
}
.bouton[disabled] { opacity: .55; cursor: default; }
.bouton.second { height: 50px; background: transparent; border: 1px solid var(--ardoise); color: var(--pierre); font-weight: 600; font-size: 15px; }
.erreur { margin: 0; color: var(--creme); font-size: 15px; padding-left: 14px; border-left: 3px solid var(--alerte); }
.petit { font-size: 13px; color: var(--cendre); margin: 0; }
.merci { background: var(--charbon); border: 1px solid var(--ardoise); border-radius: 18px; padding: 22px 20px; }
.merci p { margin: 0 0 10px; }
.merci p:last-child { margin: 0; }

/* Pages courtes et carte de membre */
.page { padding-top: 16px; }
.page h1 { font-size: clamp(40px, 12vw, 60px); }
.page h2 { margin-top: 28px; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }
.numero-membre { font-family: var(--police-titre); font-weight: 800; color: var(--creme); text-transform: uppercase; font-size: clamp(44px, 14vw, 68px); line-height: .95; margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.carte-apercu { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 9 / 16; margin: 0 auto 20px; border-radius: 20px; background: var(--charbon); }
.actions { display: grid; gap: 12px; }

footer { border-top: 1px solid var(--ardoise); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--cendre); }
footer .colonne { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--pierre); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.note { margin-top: 14px; }
