/* Orle Edge · Site public · Page d'urgence « Attaque en cours ? » (urgence.html, 03/12/2026).
   Montée par monte-page.py avec site-pages.css (champs, cartes, accordéons, surtitres) puis cette feuille.
   Uniquement des jetons de site.css ; les visuels sont des morceaux réels de la console (images/urgence-*.webp,
   outils/cap-urgence.mjs), affichés à leur largeur ou réduits, jamais agrandis. */

[data-page="urgence"] { --u-tete-h1: clamp(36px, 3.7cqw, 50px); }

/* Passe « tranchant » : l'étiquette commune de site.css (Geist Mono, capitales espacées, sans pastille).
   site-pages.css, chargée après site.css, en redonne une ancienne version (13 px, numéro en pastille) : on la remet ici. */
[data-page="urgence"] .o-sur { display: inline-block; margin: 0; font: 500 11px/1.2 var(--o-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--o-bleu-texte); }
[data-page="urgence"] .o-sur .n { margin-right: 10px; padding: 0; background: none; font: inherit; color: var(--o-texte-3); }

/* ---------- Premier écran : titre | texte et boutons ; le bas du titre tombe sur le bas des boutons ---------- */
.u-tete { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px 64px; align-items: end; padding-top: 88px !important; }
.u-tete h1 { margin: 18px 0 0; max-width: 17ch; font: var(--o-titre-graisse) var(--u-tete-h1)/1.05 var(--o-titre); font-stretch: var(--o-titre-largeur); letter-spacing: -.035em; color: var(--o-texte); text-wrap: balance; }
.u-chapo { max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--o-texte-2); text-wrap: pretty; }
.u-tete-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Sections ---------- */
.u-bloc { margin-top: 128px; scroll-margin-top: 16px; }
.u-bloc .o-bloc-tete { margin-bottom: 20px; }

/* Étapes numérotées : le texte à gauche, le morceau de console à droite */
.u-etapes { margin: 0; padding: 0; list-style: none; }
.u-etape { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: center; padding: 44px 0; border-top: 1px solid var(--o-filet); }
.u-etape:last-child { border-bottom: 1px solid var(--o-filet); }
.u-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--o-r-2); background: var(--o-voile); box-shadow: inset 0 0 0 1px var(--o-filet);
  font: 500 13px/1 var(--o-mono); color: var(--o-texte-2); transition: background-color var(--o-moyen) var(--o-courbe), color var(--o-moyen) var(--o-courbe), box-shadow var(--o-moyen) var(--o-courbe); }
.u-etape:hover .u-n { background: var(--o-bleu-pale); color: var(--o-bleu-texte); box-shadow: inset 0 0 0 1px var(--o-orle); }
.u-etape-t h3 { margin-top: 18px; max-width: 24ch; font: var(--o-titre-graisse) 23px/1.2 var(--o-titre); font-stretch: var(--o-titre-largeur); letter-spacing: -.02em; color: var(--o-texte); text-wrap: balance; }
.u-etape-t > p:not(.u-geste) { margin-top: 12px; max-width: 50ch; font-size: 15.5px; line-height: 1.62; color: var(--o-texte-2); text-wrap: pretty; }
.u-geste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--o-texte-3); }
.u-geste kbd { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: var(--o-r-1); background: var(--o-ctrl); box-shadow: inset 0 0 0 1px var(--o-ctrl-bord);
  font: 470 12.5px/1 var(--o-texte-f); color: var(--o-texte); white-space: nowrap; }
.u-geste .o-souligne { font-size: 14px; }

/* Le cadre d'un morceau de console : surface en aplat et arête fine (couleurs du 04/12 : aucun fond teinté) */
.u-vis { margin: 0; min-width: 0; }
.u-vis-c { position: relative; isolation: isolate; height: var(--hv, 420px); overflow: hidden; border-radius: var(--o-r-3);
  background: var(--o-surface); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
.u-vis-c::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--o-arete-haut), var(--o-arete-flanc) 35%, var(--o-arete-flanc) 75%, var(--o-arete-bas));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.u-vis-c img { position: absolute; top: 32px; left: 32px; width: min(calc(var(--w) * 1px), calc(100% - 32px)); max-width: none; height: auto; border-radius: 10px 0 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--hv, 420px) - 150px), transparent calc(var(--hv, 420px) - 40px)); mask-image: linear-gradient(180deg, #000 calc(var(--hv, 420px) - 150px), transparent calc(var(--hv, 420px) - 40px));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 -1px 0 rgba(255, 255, 255, .14), 0 -18px 40px -16px rgba(0, 0, 0, .85);
  transition: transform 420ms var(--o-courbe); }
.u-vis--centre .u-vis-c img { left: 50%; width: min(calc(var(--w) * 1px), calc(100% - 64px)); border-radius: 10px 10px 0 0; transform: translateX(-50%); }
.u-etape:hover .u-vis-c img { transform: translate3d(-4px, -6px, 0); }
.u-etape:hover .u-vis--centre .u-vis-c img { transform: translate3d(-50%, -6px, 0); }
.u-vis figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--o-texte-3); }

/* Panneau en HTML dans le cadre : l'interrupteur du défi */
 .u-vis-c:has(.u-sw) { display: grid; place-items: center; padding: 24px; }
.u-sw { position: relative; z-index: 1; width: min(440px, 100%); padding: 18px 20px 8px; border-radius: 10px; background: var(--o-surface-2); color: var(--o-texte-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 -1px 0 rgba(255, 255, 255, .14), 0 24px 48px -20px rgba(0, 0, 0, .85);
  transition: transform 420ms var(--o-courbe); }
.u-etape:hover .u-sw { transform: translateY(-4px); }
.u-sw-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.u-sw-site { font: 450 12.5px/1 var(--o-mono); color: var(--o-texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-sw-etat { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--o-r-1); background: var(--o-voile); color: var(--o-texte-2); font: 500 11.5px/1 var(--o-texte-f); white-space: nowrap;
  transition: background-color var(--o-moyen) var(--o-courbe), color var(--o-moyen) var(--o-courbe); }
.u-sw-etat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.u-sw.actif .u-sw-etat { background: var(--o-bleu-pale); color: var(--o-bleu-texte); }
.u-sw-ligne { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-block: 1px solid var(--o-filet); }
.u-sw-ligne b { display: block; font: 500 15px/1.3 var(--o-texte-f); color: var(--o-texte); }
.u-sw-ligne span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; }
.u-sw-effets { margin: 0; padding: 6px 0 0; list-style: none; }
.u-sw-effets li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 13px; line-height: 1.35; }
.u-sw-effets li + li { border-top: 1px dashed var(--o-filet); }
.u-sw-effets b { flex: none; font-weight: 500; color: var(--o-texte); text-align: right; transition: color var(--o-moyen) var(--o-courbe); }
.u-sw-effets b.ok { color: var(--o-vert); }
.u-sw.actif [data-u-sw-defi] { color: var(--o-bleu-texte); }
.u-sw .flash { animation: u-flash 700ms var(--o-courbe); }
@keyframes u-flash { 0% { background: var(--o-bleu-pale); } 100% { background: transparent; } }

/* ---------- Les premières minutes : un fil en quatre temps ---------- */
.u-fil { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 16px 0 0; padding: 0; list-style: none; }
.u-fil li { position: relative; padding-top: 30px; }
.u-fil li::before, .u-fil li::after { content: ""; position: absolute; top: 13px; left: 40px; right: -28px; height: 1px; background: var(--o-filet-fort); }
.u-fil li:last-child::before, .u-fil li:last-child::after { right: 0; }
.u-fil li::after { background: var(--o-bleu-texte); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--o-courbe); transition-delay: var(--fd, 0ms); }
.u-fil.vu li::after { transform: scaleX(1); }
.u-fil li:nth-child(2) { --fd: 250ms; } .u-fil li:nth-child(3) { --fd: 500ms; } .u-fil li:nth-child(4) { --fd: 750ms; }
.u-fil-n { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--o-r-2); background: var(--o-surface-2);
  box-shadow: inset 0 0 0 1px var(--o-filet-fort); font: 500 12.5px/1 var(--o-mono); color: var(--o-texte-2);
  transition: background-color var(--o-moyen) var(--o-courbe), color var(--o-moyen) var(--o-courbe), box-shadow var(--o-moyen) var(--o-courbe); }
.u-fil li:hover .u-fil-n { background: var(--o-bleu-pale); color: var(--o-bleu-texte); box-shadow: inset 0 0 0 1px var(--o-orle); }
.u-fil h3 { margin-top: 14px; font: var(--o-titre-graisse) 18px/1.25 var(--o-titre); font-stretch: var(--o-titre-largeur); letter-spacing: -.015em; color: var(--o-texte); }
.u-fil p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--o-texte-2); text-wrap: pretty; }


/* ---------- Questions : section commune .o-faq (site.css) ---------- */
.o-faq.u-bloc { padding-block: 0; }

/* ---------- Tablette ---------- */
@container (max-width: 1100px) {
  .u-etape { gap: 28px 40px; }
  .u-fil { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .u-fil li:nth-child(2)::before, .u-fil li:nth-child(2)::after { right: 0; }
}

/* ---------- Téléphone ---------- */
@container (max-width: 900px) {
  .u-tete { grid-template-columns: 1fr; align-items: start; padding-top: 44px !important; gap: 18px; }
  .u-tete h1 { margin-top: 14px; font-size: 34px; }
  .u-tete-act { margin-top: 20px; }
  .u-tete-act .o-btn { flex: 1 1 auto; } /* le choix « Protéger tout de suite » reste dans le cadre */
  .u-bloc { margin-top: 88px; }
  .u-etape { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .u-etape-t h3 { font-size: 21px; }
  .u-etape-t > p:not(.u-geste) { font-size: 15px; }
  .u-vis-c { height: min(var(--hv, 420px), 360px); }
  .u-vis-c img, .u-vis--centre .u-vis-c img { top: 20px; left: calc(max(20px, calc((100% - var(--w) * .8px) / 2)) + var(--decal, 0px)); width: calc(var(--w) * .8px); transform: none; border-radius: 10px 0 0 0;
    -webkit-mask-image: linear-gradient(180deg, #000 200px, transparent 330px); mask-image: linear-gradient(180deg, #000 200px, transparent 330px); }
  .u-etape:hover .u-vis-c img, .u-etape:hover .u-vis--centre .u-vis-c img { transform: none; }
   .u-vis-c:has(.u-sw) { height: auto; padding: 20px 14px; }
  .u-sw { padding-inline: 16px; }
  .u-fil { grid-template-columns: 1fr; gap: 28px; }
  .u-fil li { padding: 0 0 0 46px; }
  .u-fil li::before, .u-fil li::after { top: 36px; bottom: -22px; left: 13px; right: auto; width: 1px; height: auto; }
  .u-fil li::after { transform: scaleY(0); transform-origin: top; }
  .u-fil.vu li::after { transform: scaleY(1); }
  .u-fil li:last-child::before, .u-fil li:last-child::after { display: none; }
  .u-fil h3 { margin-top: 3px; } /* iOS ne zoome pas à la saisie */
  
}

@media (prefers-reduced-motion: reduce) {
  .u-n, .u-fil-n, .u-vis-c img, .u-sw, .u-sw-etat, .u-sw-effets b { transition: none; }
  .u-etape:hover .u-vis-c img, .u-etape:hover .u-sw { transform: none; }
  .u-etape:hover .u-vis--centre .u-vis-c img { transform: translateX(-50%); }
  .u-fil li::after { transition: none; transform: none; }
  .u-sw .flash { animation: none; }
}
.u-bloc:focus, .u-tete:focus { outline: none; }
