/* H&C — page 404 (`404.html`, servie pour toute adresse inconnue). Se charge après fiche.css et apropos.css (`.ex`).
   2026-10-16 — l'utilisateur a choisi la piste 1 « Le rideau entrouvert » parmi les six
   (planche : captures/404/planche-404.jpg).

   Une seule section `.nf` : nuit + projecteur sur rail, d'aplomb au centre, deux pans de rideau sur les bords.
   Dans l'ordre : le grand « 404 » `.nf__n` (éclairé), le titre `.nf__h` (`.stitle`), une phrase, la recherche
   `.nf__search`, les quatre liens `.nf__links`, la ligne du prochain événement `.nf__ev`, puis, pour la maquette
   seulement, la note `.ex`. Le pied de page `.coda` suit.

   Les pans de rideau s'écartent à l'arrivée (≲ 1,5 s). Sans JS : tout est visible.
   ≤ 760 px : pans plus étroits, liens sur deux colonnes, ligne d'événement sur deux lignes. */

:root { --nf-soft: rgb(255 255 255 / 0.78); }

/* ---------- communs ---------- */
.nf :is(a, button, input):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nf :where(ul) { margin: 0; padding: 0; list-style: none; }
.nf__h:focus { outline: 0; }
:where(.nf button) { font: inherit; color: inherit; cursor: pointer; }

/* ---------- la section ---------- */
.nf {
  --rig-x: 50%;
  --rig-y: 12px;
  --rig-w: 76px;
  --rig-tilt: 0deg;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-bottom: clamp(48px, 5vw, 80px);
}
.nf .cone { --spread: 20deg; --throw: 860px; }

/* les deux pans de rideau : même texture que la hero, assombrie, coins intérieurs arrondis en bas */
.nf__cl {
  position: absolute;
  inset-block: 0;
  z-index: 0;
  width: clamp(64px, 21vw, 320px);
  background: url(../img/v4/rideau-1200.webp) center / cover;
  pointer-events: none;
  animation: nf-open 1.5s var(--ease-out) backwards;
}
.nf__cl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 10 20 / 0.58), rgb(5 10 20 / 0.72)); }
.nf__cl--l { left: 0; border-radius: 0 0 clamp(56px, 10vw, 140px) 0; }
.nf__cl--r { right: 0; border-radius: 0 0 0 clamp(56px, 10vw, 140px); scale: -1 1; --from: -42%; }
.nf__cl--l { --from: 42%; }
@keyframes nf-open { from { translate: var(--from) 0; } }

.nf__in {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 1.5vw, 18px);
  width: 100%;
  text-align: center;
}

/* le grand « 404 », éclairé par le projecteur */
.nf__n {
  margin: 0;
  font-size: clamp(7.5rem, 17vw, 13.5rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 0 64px rgb(255 255 255 / 0.28);
  font-variant-numeric: tabular-nums;
}
.nf__h { margin: 0.2em -0.5em -0.24em; max-width: 26ch; font-size: clamp(1.9rem, 3.8vw, 2.9rem); text-align: center; }
.nf .fb__lead { margin: 0; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--nf-soft); }

/* la recherche : une barre blanche, un rond jaune à droite */
.nf__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 580px);
  height: 62px;
  margin-top: clamp(6px, 1.2vw, 14px);
  padding: 0 8px 0 26px;
  border-radius: 34px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
}
.nf__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
}
.nf__input::placeholder { color: rgb(22 33 61 / 0.55); opacity: 1; text-overflow: ellipsis; }
.nf .nf__input:focus-visible { outline: 0; }  /* l'anneau jaune est sur toute la barre (:focus-within) */
.nf__search:focus-within { box-shadow: 0 10px 30px rgb(0 0 0 / 0.25), 0 0 0 3px var(--gold); }
.nf__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  transition: background-color 0.25s, transform 0.3s var(--ease-out);
}
.nf__go:hover { background: var(--gold-strong); transform: rotate(-10deg); }
.nf__go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.nf__hint { max-width: 58ch; margin: -4px 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--gold); }
.nf__hint[hidden] { display: none; }

/* les quatre liens : pastilles translucides, rond jaune + flèche (pas de contour) */
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 2px; }
.nf__lk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 8px 0 22px;
  border-radius: 26px;
  background: rgb(255 255 255 / 0.13);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s;
}
.nf__lk:hover { background: rgb(255 255 255 / 0.22); }
.nf__lk i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); transition: transform 0.3s var(--ease-out); }
.nf__lk:hover i { transform: rotate(-10deg); }
.nf__lk i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* le prochain événement : une ligne, cliquable */
.nf__ev {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-top: clamp(6px, 1vw, 12px);
  padding: 6px 14px;
  border-radius: 14px;
  color: var(--nf-soft);
  font-size: 1.0625rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.25s;
}
.nf__ev small { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.nf__ev b { font-weight: 500; color: #fff; }
.nf__ev u { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.nf__ev:hover { background: rgb(255 255 255 / 0.08); }

/* maquette : la note */
.nf__ex { max-width: 76ch; margin-top: clamp(14px, 2vw, 26px); }
.nf__ex b { font-weight: 500; color: rgb(255 255 255 / 0.74); }

/* ---------- tablette et mobile ---------- */
@media (max-width: 760px) {
  .nf { --rig-w: 60px; }
  .nf .cone { --spread: 26deg; --throw: 680px; }
  .nf__n { font-size: clamp(6rem, 31vw, 8.5rem); }
  .nf__search { height: 56px; padding-left: 20px; }
  .nf__input { font-size: 1rem; }
  .nf__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 420px; }
  .nf__lk { display: flex; width: 100%; justify-content: space-between; padding-left: 16px; font-size: 0.9375rem; white-space: normal; line-height: 1.15; }
  .nf__ev { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .nf__cl { animation: none; }
  .nf__go, .nf__lk i { transition: none; }
}
