/* Orion — le site de l'association.
 *
 * Le registre est celui du panel OmniCore, parce que c'est celui qui plait :
 * fond presque noir, champ de couleur ambiant, panneaux de verre depoli,
 * ressort dans chaque mouvement. Mais le visage est celui d'Orion, et pas une
 * copie du panel :
 *
 *   - l'accent n'est pas la menthe des serveurs mais l'orange du chiffon de
 *     sortie, celui qu'on leve quand on est touche. L'olive lui repond pour
 *     tout ce qui est acquis, le rouge pour ce qui tombe a l'eau ;
 *   - les titres sont en condense, pas dans la police du systeme : ca sonne
 *     terrain plutot que logiciel ;
 *   - le fond est un noir legerement vert, pas un noir neutre ;
 *   - les angles sont un peu plus francs.
 *
 * Ce qu'on vient chercher ici tient en une phrase : c'est quand la prochaine
 * sortie, et est-ce que j'y suis. Le premier ecran ne dit que ca — une lentille
 * dont la couleur donne l'etat, le nom de la sortie, la reponse a donner.
 *
 * Police auto-hebergee : la CSP n'autorise que 'self', et une police distante
 * bloquee se remplacerait en silence. Le texte courant, lui, reste dans la
 * police du systeme : c'est la mieux dessinee sur chaque appareil.
 */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/static/fonts/barlow-semi-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --acc-rgb: 255, 122, 47;      /* le chiffon de sortie */
  --olive-rgb: 154, 184, 74;    /* ce qui est acquis */
  --bg: #070907;
  --bg2: #0c0f0c;
  --ink: #f3f5f1;
  --ink2: #a3a79d;
  --dim: #6d7268;
  --line: rgba(255, 255, 255, .08);
  --line-hi: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .035);
  --glass2: rgba(255, 255, 255, .06);
  --acc: #ff7a2f;
  --olive: #9ab84a;
  --red: #ff5f56;
  --orange: #ffab49;

  --titre: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;

  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.2, .9, .3, 1);

  --page: 1000px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-color: #3a3a3e var(--bg); color-scheme: dark; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: rgba(var(--acc-rgb), .3); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Champ de couleur ambiant, tres discret. */
.field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(640px 420px at 50% 20%, rgba(var(--acc-rgb), .05), transparent 70%),
    radial-gradient(760px 520px at 85% 92%, rgba(90, 120, 255, .04), transparent 70%);
}
/* Trame de tissu ripstop, a la limite du visible : c'est ce que porte tout le
   monde sur un terrain, et ca suffit a ne plus ressembler a un panneau de
   serveurs. */
.field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 9px);
}

h1, h2, h3 { font-family: var(--titre); font-weight: 600; letter-spacing: .01em; line-height: 1.15; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; color: var(--ink2); }
p { margin: 0; }

:focus-visible { outline: 2px solid rgba(var(--acc-rgb), .8); outline-offset: 3px; border-radius: 10px; }

.dim { color: var(--dim); }
.petit { font-size: 12.5px; color: var(--dim); line-height: 1.5; }

/* ============ Barre haute ============ */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px 26px;
  animation: fadein .8s both .2s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.wordmark { font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--ink2); transition: color .2s; }
.wordmark:hover { color: var(--ink); }
.top nav { display: flex; gap: 8px; margin-left: auto; font-size: 12.5px; }
.top nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--ink2);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all .2s;
}
.top nav a:hover { color: var(--ink); border-color: var(--line-hi); transform: translateY(-1px); }
.top nav a[aria-current="page"] {
  color: #ffc79f;
  background: rgba(var(--acc-rgb), .14);
  border-color: rgba(var(--acc-rgb), .45);
  box-shadow: 0 0 14px rgba(var(--acc-rgb), .16);
}
.top nav svg, .wordmark svg {
  width: 13px; height: 13px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titre); font-size: 15px; letter-spacing: .02em; }
.wordmark svg { width: 15px; height: 15px; color: var(--acc); }
.whoami { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); }
.whoami form { display: contents; }

.icobtn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink2);
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all .2s;
}
.icobtn:hover { color: var(--ink); border-color: var(--line-hi); transform: scale(1.06); }

/* ============ Structure ============ */

main { position: relative; z-index: 1; max-width: var(--page); margin: 0 auto; padding: 10px 26px 100px; }
section { margin-top: 52px; }

.rang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btns { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

/* ============ L'orbe ============ */
/* Sa couleur donne l'etat d'un coup d'oeil, comme celle d'un serveur sur le
   panel : menthe quand la sortie est ouverte, orange quand elle est pleine,
   rouge quand elle est annulee, grise quand elle est passee. */

/* Une lentille de protection oculaire, pas une bulle : le reflet du haut est
   une bande large, comme sur un ecran de masque, et la teinte donne l'etat. */
.orb {
  display: block;
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .09);
  background:
    radial-gradient(58% 24% at 36% 19%, rgba(255, 255, 255, .4), transparent 72%),
    radial-gradient(circle at 68% 76%, rgba(var(--olive-rgb), .5), transparent 62%),
    radial-gradient(circle at 50% 48%, #22300f, #080c05 78%);
  box-shadow:
    inset 0 -14px 30px rgba(0, 0, 0, .6),
    inset 0 8px 20px rgba(255, 255, 255, .05),
    0 0 52px rgba(var(--olive-rgb), .2);
  margin: 0 auto 26px;
  animation:
    orbin 1.1s var(--ease-pop) both .1s,
    breathe 4.5s ease-in-out 1.2s infinite,
    flotte 6.5s ease-in-out 1.2s infinite alternate;
}
.orb.pleine {
  background:
    radial-gradient(58% 24% at 36% 19%, rgba(255, 255, 255, .38), transparent 72%),
    radial-gradient(circle at 68% 76%, rgba(255, 171, 73, .55), transparent 62%),
    radial-gradient(circle at 50% 48%, #3a2810, #140d04 78%);
  box-shadow: inset 0 -14px 30px rgba(0, 0, 0, .6), 0 0 52px rgba(255, 171, 73, .2);
}
.orb.morte {
  background:
    radial-gradient(58% 24% at 36% 19%, rgba(255, 255, 255, .34), transparent 72%),
    radial-gradient(circle at 68% 76%, rgba(255, 95, 86, .5), transparent 62%),
    radial-gradient(circle at 50% 48%, #3a1512, #120605 78%);
  box-shadow: inset 0 -14px 30px rgba(0, 0, 0, .6), 0 0 52px rgba(255, 95, 86, .18);
}
.orb.eteinte { filter: grayscale(.85) brightness(.62); animation-duration: 1.1s, 9s, 6.5s; }

/* Anneau de visee autour de l'orbe : la graduation tourne lentement, et
   quatre traits marquent les axes. C'est ce qui fait la difference entre une
   bulle de serveur et une optique. */
.orb::before {
  content: "";
  position: absolute;
  inset: -19px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--acc-rgb), .3);
  animation: tourne 26s linear infinite;
}
.orb::after {
  content: "";
  position: absolute;
  inset: -19px;
  color: rgba(var(--acc-rgb), .55);
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 1px 13px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 1px 13px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 13px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 50% / 13px 1px no-repeat;
}
.orb.pleine::before { border-color: rgba(255, 171, 73, .3); }
.orb.pleine::after { color: rgba(255, 171, 73, .55); }
.orb.morte::before { border-color: rgba(255, 95, 86, .3); }
.orb.morte::after { color: rgba(255, 95, 86, .5); }

@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes orbin { from { transform: scale(0); } 68% { transform: scale(1.09); } 86% { transform: scale(.985); } to { transform: scale(1); } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.022; } }
@keyframes flotte { from { translate: 0 0; } to { translate: 0 -11px; } }

/* ============ La une ============ */

.une { text-align: center; padding: 30px 0 8px; }
/* Le surtitre garde la police du systeme, en clair et tres espace : c'est le
   contraste avec le condense du titre qui fait la signature. */
.surtitre {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 400;
  letter-spacing: .4em;
  text-indent: .4em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 26px;
  animation: rise .8s var(--ease-out) both .3s;
}
.une h1 {
  margin-top: 30px;
  font-size: clamp(34px, 6vw, 48px);
  letter-spacing: .005em;
  text-transform: uppercase;
  animation: rise .8s var(--ease-out) both .55s;
}
.une .sous {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--dim);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  animation: rise .8s var(--ease-out) both .68s;
}
.une .sous b { color: var(--ink2); font-weight: 500; }
.une .rep { margin-top: 30px; animation: rise .8s var(--ease-out) both .8s; }
.une .gens { margin-top: 26px; animation: rise .8s var(--ease-out) both .9s; }
.une-photo { max-width: 620px; margin: 32px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); animation: rise .8s var(--ease-out) both .95s; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; } }

/* ============ Les trois reponses ============ */

.rep { display: inline-flex; padding: 3px; border-radius: 10px; gap: 3px; background: var(--glass); border: 1px solid var(--line); }
.rep form { display: contents; }
.rep button {
  padding: 9px 20px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  background: transparent;
  transition: all .2s;
}
.rep button:hover:not(:disabled) { color: var(--ink); }
.rep button:active:not(:disabled) { transform: scale(.97); }
.rep button:disabled { opacity: .35; cursor: not-allowed; }
.rep button.on { color: #eef3e2; background: rgba(var(--olive-rgb), .22); box-shadow: inset 0 0 0 1px rgba(var(--olive-rgb), .5); }
.rep button.on.non { color: var(--ink); background: var(--glass2); box-shadow: inset 0 0 0 1px var(--line-hi); }

/* ============ Visages ============ */

.gens { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tetes { display: flex; }
.tete {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: -9px;
  border: 2px solid var(--bg);
  background: linear-gradient(160deg, #2a2a30, #17171b);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink2);
  transition: transform .3s var(--ease-pop);
}
.tete:first-child { margin-left: 0; }
.tetes:hover .tete { transform: translateY(-3px); }

/* ============ Boutons ============ */

.b {
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  background: var(--glass2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.b:hover { color: var(--ink); border-color: var(--line-hi); transform: translateY(-1px); }
.b:active { transform: scale(.97); }
.b.acc {
  color: #1a0a02;
  font-weight: 600;
  border: none;
  background: linear-gradient(180deg, #ff8f4d, #ec6a1c);
  box-shadow: 0 6px 20px rgba(var(--acc-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.b.acc:hover { filter: brightness(1.08); color: #1a0a02; }
.b.nu { background: transparent; border-color: transparent; }
.b.nu:hover { background: var(--glass); border-color: var(--line); }
.b.bad { color: #ffb3ae; border-color: rgba(255, 95, 86, .3); }
.b.bad:hover { border-color: rgba(255, 95, 86, .55); background: rgba(255, 95, 86, .08); }
.b:disabled { opacity: .4; cursor: not-allowed; }

/* ============ Cartes et panneaux ============ */

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 13px; }

.carte, .panneau {
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: 18px;
}
.carte { display: flex; flex-direction: column; transition: all .3s var(--ease-out); }
a.carte:hover { transform: translateY(-4px); border-color: var(--line-hi); background: var(--glass2); box-shadow: 0 18px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07); }
.carte.eteinte { opacity: .5; }

.carte .tete-carte { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--dim); }
.carte h3 { margin: 9px 0 4px; font-size: 18px; color: var(--ink); letter-spacing: .01em; }
.carte .lieu { font-size: 12.5px; color: var(--dim); }
.carte .pied { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--dim); }

.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--dim); display: inline-block; }
.dot.on { background: var(--olive); box-shadow: 0 0 9px rgba(var(--olive-rgb), .7); }
.dot.mid { background: var(--orange); box-shadow: 0 0 9px rgba(255, 171, 73, .6); }
.dot.off { background: var(--red); box-shadow: 0 0 9px rgba(255, 95, 86, .5); }

.chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink2);
  background: var(--glass);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip.on { color: #d5e6a4; background: rgba(var(--olive-rgb), .15); border-color: rgba(var(--olive-rgb), .5); }
.chip.bad { color: #ffb3ae; background: rgba(255, 95, 86, .1); border-color: rgba(255, 95, 86, .35); }

.vide {
  border: 1px dashed var(--line-hi);
  border-radius: 16px;
  padding: 46px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}
.vide p { max-width: 44ch; margin: 0 auto 16px; }

.erreur, .ok {
  padding: 11px 14px;
  font-size: 12.5px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.erreur { background: rgba(255, 95, 86, .09); border: 1px solid rgba(255, 95, 86, .35); color: #ffb3ae; }
.ok { background: rgba(var(--olive-rgb), .1); border: 1px solid rgba(var(--olive-rgb), .38); color: #d5e6a4; }

/* ============ Jauge ============ */

.jauge { display: block; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); margin-top: 12px; overflow: hidden; }
.jauge i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7e9c37, var(--olive));
  box-shadow: 0 0 12px rgba(var(--olive-rgb), .4);
  transform-origin: left center;
  animation: remplir 1s .3s var(--ease-out) both;
}
/* Plus une place : bandes obliques, comme le ruban qui ferme une zone. */
.jauge.pleine i {
  background: repeating-linear-gradient(-45deg, var(--orange) 0 6px, #5c3a10 6px 12px);
  box-shadow: 0 0 12px rgba(255, 171, 73, .3);
}
@keyframes remplir { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============ Colonnes et listes ============ */

.trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; }
.trois ul { list-style: none; margin: 12px 0 0; }
.trois li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.trois li:last-child { border-bottom: 0; }
.mot { display: block; font-size: 11.5px; color: var(--dim); }

/* ============ Sondages ============ */

.choix {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  transition: background .18s;
}
.choix:hover { background: rgba(255, 255, 255, .04); }
.choix input { accent-color: var(--acc); width: 17px; height: 17px; flex: none; }

.opt { padding: 11px 0; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 13.5px; }
.opt-tete .voix { color: var(--dim); font-size: 12px; white-space: nowrap; }
.opt .jauge i { background: rgba(255, 255, 255, .18); box-shadow: none; }
.opt.mene .jauge i, .opt.mien .jauge i { background: linear-gradient(90deg, #7e9c37, var(--olive)); box-shadow: 0 0 12px rgba(var(--olive-rgb), .4); }

/* ============ Formulaires ============ */

.champs { display: grid; gap: 18px; }
.champs > label { display: block; font-size: 12px; color: var(--ink2); }
.aide { display: block; font-size: 11.5px; color: var(--dim); margin-top: 3px; font-weight: 400; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }

input[type="text"], input[type="tel"], input[type="date"], input[type="number"],
input[type="datetime-local"], input[type="file"], textarea, select {
  width: 100%;
  margin-top: 7px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(var(--acc-rgb), .5);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .1);
}
input::placeholder, textarea::placeholder { color: #5a5a60; }
textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
input[type="file"] { padding: 9px 12px; font-size: 12.5px; color: var(--ink2); }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; }
/* iOS zoome sur tout champ sous 16px */
@media (max-width: 767px) { input, textarea, select { font-size: 16px; } }

.case { display: flex; align-items: flex-start; gap: 12px; }
.case input { accent-color: var(--acc); width: 17px; height: 17px; margin-top: 2px; flex: none; }
.case label { font-size: 12.5px; color: var(--ink2); line-height: 1.5; }
.case a { color: var(--acc); }

.etape { margin-top: 34px; }
.etape > h2 { margin-bottom: 16px; }

.dossier dt { font-size: 11.5px; color: var(--dim); }
.dossier dd { font-size: 13.5px; color: var(--ink); font-weight: 500; margin-bottom: 14px; }
.dossier dd.rouge { color: #ffb3ae; }

details.plier { margin-top: 34px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); overflow: hidden; }
details.plier > summary {
  cursor: pointer;
  padding: 13px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
}
details.plier > summary::-webkit-details-marker { display: none; }
details.plier > summary::before { content: '▸'; color: var(--dim); transition: transform .2s; display: inline-block; }
details.plier[open] > summary::before { transform: rotate(90deg); }
details.plier > summary:hover { color: var(--ink); }
details.plier > *:not(summary) { padding: 0 16px 18px; }
details.plier[open] > *:not(summary) { animation: rise .4s var(--ease-out) both; }

/* ============ Tableau ============ */

.roule { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.tableau th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--dim); padding: 0 18px 10px 0; border-bottom: 1px solid var(--line); }
.tableau td { padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink2); }
.tableau td strong { color: var(--ink); font-weight: 600; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tbody tr { transition: background .2s; }
.tableau tbody tr:hover { background: rgba(255, 255, 255, .03); }
.tableau .mineur { color: #ffb3ae; }

/* ============ Porte d'entree ============ */

.porte {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 30px 20px;
}
.porte .carte-entree {
  width: min(360px, 92vw);
  padding: 32px 30px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center;
  animation: rise .7s var(--ease-out) both .18s;
}
.porte .orb { width: 74px; height: 74px; margin: 0; }
.porte h1 { font-size: 24px; text-transform: uppercase; letter-spacing: .04em; }
.porte .sub { color: var(--dim); font-size: 12.5px; margin: 6px 0 22px; }
.porte .b { width: 100%; justify-content: center; padding: 13px; font-size: 15px; border-radius: 11px; }

/* ============ Pied ============ */

footer {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  padding: 26px;
  font-size: 11.5px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

/* ============ Premiere connexion ============ */
/* Le seul moment ou la page de la fiche est un evenement : la visee se
   referme sur la lentille, un halo part, et la coche se trace. */

.accueille { text-align: center; padding: 22px 0 30px; }
.accueille .orb { margin: 0 auto 28px; }
.accueille h1 {
  font-size: clamp(30px, 5.5vw, 42px);
  text-transform: uppercase;
  animation: rise .8s var(--ease-out) both .95s;
}
.accueille .sous {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--dim);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  animation: rise .8s var(--ease-out) both 1.1s;
}
.accueille .sous b { color: var(--ink2); font-weight: 500; }

.orb.verrou {
  animation:
    orbin 1s var(--ease-pop) both .1s,
    breathe 4.5s ease-in-out 1.8s infinite,
    flotte 6.5s ease-in-out 1.8s infinite alternate,
    halo 1.7s .55s ease-out 1;
}
/* `scale` plutot que `transform` : l'anneau continue de tourner pendant que
   la visee se referme. */
.orb.verrou::before { animation: tourne 26s linear infinite, viser 1s var(--ease-out) both .3s; }
.orb.verrou::after { animation: viser 1s var(--ease-out) both .3s; }

@keyframes viser { from { scale: 2.4; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes halo {
  from { box-shadow: inset 0 -14px 30px rgba(0, 0, 0, .6), 0 0 0 0 rgba(var(--olive-rgb), .45); }
  to { box-shadow: inset 0 -14px 30px rgba(0, 0, 0, .6), 0 0 0 70px rgba(var(--olive-rgb), 0); }
}

.coche {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #eef5dd;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(var(--olive-rgb), .85));
}
.coche path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: tracer .55s 1.05s var(--ease-out) forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }

/* ============ Apparition au defilement ============ */
/* `data-anim` n'est pose que par le script : sans JavaScript rien n'est
   cache, et un filet decouvre tout au bout de trois secondes si l'observateur
   ne rend jamais la main. */

[data-anim] .monte { opacity: 0; }
[data-anim] .monte.vu { animation: rise .7s var(--ease-out) both; }
[data-anim] .monte.vu:nth-child(2) { animation-delay: .06s; }
[data-anim] .monte.vu:nth-child(3) { animation-delay: .12s; }
[data-anim] .monte.vu:nth-child(4) { animation-delay: .18s; }
[data-anim] .monte.vu:nth-child(5) { animation-delay: .24s; }
[data-anim] .monte.vu:nth-child(6) { animation-delay: .3s; }

/* ============ Telephone ============ */

@media (max-width: 767px) {
  .top { padding: 14px 18px; gap: 12px; flex-wrap: wrap; row-gap: 10px; }
  .top nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 18px; font-size: 13px; }
  .whoami { margin-left: auto; }
  .whoami .nom { display: none; }
  main { padding: 6px 18px 70px; }
  section { margin-top: 40px; }
  .une { padding: 18px 0 4px; }
  .orb { width: 108px; height: 108px; }
  .rep { display: flex; width: 100%; }
  .rep form { display: flex; width: 100%; gap: 3px; }
  .rep button { flex: 1; padding: 10px 4px; }
  .grille { grid-template-columns: 1fr; }
  .roule { margin: 0 -18px; padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-anim] .monte { opacity: 1; }
}
