/* ============================================================
   Nestor (nestor.html) : la page du produit, à plat, hors de l'immeuble.
   Une feuille à elle seule : la police et les jetons du site (main.css,
   section 1), rien d'autre. Aucun style en ligne dans la page : la
   politique de sécurité du contenu les refuse.
   Les mouvements ne jouent qu'en « prefers-reduced-motion: no-preference » ;
   ceux qui suivent le défilement (animation-timeline) ne jouent que là où le
   navigateur les connaît, sinon tout est posé d'emblée.
   ============================================================ */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------
   1. Jetons : ceux du site, clair puis sombre. Le script pose data-theme
   (le choix du panneau d'accessibilité du site, sinon le système) ; sans
   script, la préférence du système suffit.
   ------------------------------------------------------------ */
:root {
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --panel: #000000;
    --panel-ink: #f5f5f7;
    --panel-mute: #a1a1a6;
    --panel-rule: rgb(255 255 255 / 0.14);
    --ink: #1d1d1f;
    --mute: #636366;
    --rule: #d2d2d7;
    --bord-controle: #86868b;
    --accent: #14345f;
    --accent-hover: #1d477f;
    --accent-clair: #1d6fd1;   /* la fin du dégradé du titre : 4,9 contre le blanc */
    --sur-accent: #ffffff;
    --vif: #2997ff;            /* la seule lumière vive du site : la voix de Nestor */
    --vif-doux: #e8f2ff;       /* le fond de ce que dit Nestor */
    --rouge: #d70015;
    --card: #ffffff;
    --verre: rgb(255 255 255 / 0.82);
    --halo: rgb(41 151 255 / 0.16);
    --ombre: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 40px rgb(0 0 0 / 0.08);
    --ombre-haute: 0 2px 6px rgb(0 0 0 / 0.06), 0 24px 60px rgb(0 0 0 / 0.16);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
    --cadre: 1120px;
    --etroit: 720px;
    --gouttiere: max(20px, env(safe-area-inset-left));
    --section: clamp(4.5rem, 10vw, 8rem);
    --r: 20px;
    --entree: cubic-bezier(0.05, 0.7, 0.1, 1);
    color-scheme: light;
}
html[data-theme="dark"] {
    --bg: #000000;
    --bg-alt: #111112;
    --panel: #161617;
    --ink: #f5f5f7;
    --mute: #98989d;
    --rule: #38383a;
    --accent: #8fb0e8;
    --accent-hover: #a9c4f0;
    --accent-clair: #5ab0ff;
    --sur-accent: #000000;
    --vif-doux: #0d2742;
    --rouge: #ff6961;
    --card: #1c1c1e;
    --verre: rgb(28 28 30 / 0.82);
    --halo: rgb(41 151 255 / 0.22);
    --ombre: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 40px rgb(0 0 0 / 0.5);
    --ombre-haute: 0 2px 6px rgb(0 0 0 / 0.4), 0 24px 60px rgb(0 0 0 / 0.6);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --bg: #000000;
        --bg-alt: #111112;
        --panel: #161617;
        --ink: #f5f5f7;
        --mute: #98989d;
        --rule: #38383a;
        --accent: #8fb0e8;
        --accent-hover: #a9c4f0;
        --accent-clair: #5ab0ff;
        --sur-accent: #000000;
        --vif-doux: #0d2742;
        --rouge: #ff6961;
        --card: #1c1c1e;
        --verre: rgb(28 28 30 / 0.82);
        --halo: rgb(41 151 255 / 0.22);
        --ombre: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 40px rgb(0 0 0 / 0.5);
        --ombre-haute: 0 2px 6px rgb(0 0 0 / 0.4), 0 24px 60px rgb(0 0 0 / 0.6);
        color-scheme: dark;
    }
}

/* Sous ?lang=en, le script cache la page jusqu'à la fin de la traduction : jamais le français une image puis l'anglais.
   Il retire la classe quoi qu'il arrive, et l'animation la rend visible d'elle-même au bout d'une seconde si le script
   s'arrêtait en route. */
html.n-traduction body { visibility: hidden; animation: n-montrer 0s 1s forwards; }
@keyframes n-montrer { to { visibility: visible; } }

/* ------------------------------------------------------------
   2. Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg { display: block; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

.skip-link {
    position: absolute; left: var(--gouttiere); top: -100px; z-index: 30;
    padding: 12px 18px; border-radius: 10px;
    background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.n-cadre { max-width: var(--cadre); margin: 0 auto; padding: 0 var(--gouttiere); }

.n-surtitre {
    font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}

/* Le logo : une onde dans un carré arrondi, la voix de Nestor */
.n-logo { flex: none; width: 30px; height: 30px; }
.n-logo rect { fill: var(--ink); }
.n-logo path { stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; fill: none; }

/* ------------------------------------------------------------
   3. En-tête : collé en haut sur grand écran, en verre dépoli, avec la barre
   de lecture dessous (là où le navigateur suit le défilement)
   ------------------------------------------------------------ */
.n-entete { position: relative; z-index: 20; border-bottom: 1px solid var(--rule); background: var(--bg); }
.n-entete-ligne { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; row-gap: 4px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.n-marque { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.n-nom { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.035em; }
.n-pastille {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--mute);
}
.n-pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vif); box-shadow: 0 0 0 3px var(--halo); }
.n-langues { display: flex; }
.n-langues a, .n-maison {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
    font-size: 0.875rem; color: var(--mute); text-decoration: none;
}
.n-langues a[aria-current] { color: var(--ink); font-weight: 600; }
.n-langues a:hover, .n-maison:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 821px) {
    .n-entete { position: sticky; top: 0; }
    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .n-entete { background: var(--verre); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
    }
}
.n-entete::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, var(--accent-clair), var(--vif));
    transform: scaleX(0); transform-origin: left;
}
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        .n-entete::after { animation: n-lecture linear both; animation-timeline: scroll(root); }
    }
}
@keyframes n-lecture { to { transform: scaleX(1); } }

/* ------------------------------------------------------------
   4. Boutons et petits éléments communs
   ------------------------------------------------------------ */
.n-bouton {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
    border: 0; border-radius: 999px; background: var(--accent); color: var(--sur-accent);
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    box-shadow: 0 6px 20px rgb(20 52 95 / 0.25);
    transition: background-color 160ms ease, transform 160ms var(--entree), box-shadow 160ms ease;
}
.n-bouton:hover { background: var(--accent-hover); color: var(--sur-accent); transform: translateY(-1px); box-shadow: 0 10px 28px rgb(20 52 95 / 0.32); }
.n-bouton:active { transform: scale(0.98); }
.n-bouton:disabled { opacity: 0.6; cursor: progress; transform: none; }
.n-bouton--petit { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; box-shadow: none; }

.n-lien-fort {
    display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 6px;
    font-weight: 600; color: var(--ink); text-decoration: none;
}
.n-lien-fort::after {
    content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0;
    transform: rotate(135deg) translate(-2px, 2px); transition: transform 200ms var(--entree);
}
.n-lien-fort:hover { color: var(--accent); }
.n-lien-fort:hover::after { transform: rotate(135deg) translate(0, 0); }

/* Les petites assurances, cochées */
.n-garanties { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9375rem; font-weight: 500; }
.n-garanties li { display: inline-flex; align-items: center; gap: 10px; }
.n-garanties li::before {
    content: ""; flex: none; width: 6px; height: 11px; margin: 0 4px 3px;
    border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.n-garanties--colonne { flex-direction: column; gap: 12px; font-size: 1.0625rem; }

/* L'onde : la voix de Nestor, sept barres */
.n-onde { flex: none; display: flex; align-items: center; gap: 3px; width: 26px; height: 22px; }
.n-onde span { flex: 1; height: 40%; border-radius: 2px; background: var(--vif); transform-origin: center; }
.n-onde span:nth-child(2), .n-onde span:nth-child(6) { height: 65%; }
.n-onde span:nth-child(3), .n-onde span:nth-child(5) { height: 90%; }
.n-onde span:nth-child(4) { height: 100%; }
.n-onde--grande { width: 64px; height: 44px; gap: 5px; }

.n-icone { flex: none; width: 22px; height: 22px; fill: var(--rouge); }

/* La tête d'un résumé : l'application (SMS ou courriel), puis le titre */
.n-sms-tete { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--mute); }
.n-sms-app {
    display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 6px;
    background: #30d158; color: #00320f; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.n-resume .n-sms-app, .n-flottant--sms .n-sms-app, .n-scene-sms .n-sms-app { box-shadow: 0 2px 8px rgb(48 209 88 / 0.35); }
#appel-artisan .n-sms-app { background: var(--accent); color: var(--sur-accent); box-shadow: none; }

/* ------------------------------------------------------------
   5. L'accroche : le texte, la photo, et l'appel raconté en trois cartes
   ------------------------------------------------------------ */
.n-heros { position: relative; isolation: isolate; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); overflow-x: clip; }
/* derrière : une grille fine qui s'efface, et le halo bleu de la voix */
.n-heros::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        radial-gradient(ellipse 50% 60% at 78% 40%, var(--halo), transparent 70%),
        linear-gradient(var(--rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 100% 100%, 56px 56px, 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
    opacity: 0.55;
}
.n-heros-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.n-heros-texte .n-surtitre { margin-bottom: 1.25rem; }
.n-heros h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.n-heros h1 > span { display: block; }
.n-h1-suite {
    color: var(--accent);
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-clair) 70%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    padding-bottom: 0.06em;
}
.n-chapeau { margin-top: 1.5rem; max-width: 38ch; font-size: clamp(1.125rem, 1.9vw, 1.3125rem); line-height: 1.5; color: var(--mute); }
.n-appel { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.n-note { margin-top: 1rem; font-size: 0.875rem; color: var(--mute); }

.n-heros-visuel { position: relative; margin: 0; max-width: 440px; justify-self: end; width: 100%; }
.n-heros-visuel picture { border-radius: 28px; overflow: hidden; box-shadow: var(--ombre-haute); background: var(--bg-alt); }
.n-heros-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.n-heros-visuel figcaption { margin-top: 14px; text-align: center; font-size: 0.8125rem; color: var(--mute); }

.n-flottant {
    position: absolute; z-index: 1;
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border: 1px solid var(--rule); border-radius: 16px;
    background: var(--verre); box-shadow: var(--ombre-haute);
    -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    font-size: 0.875rem; line-height: 1.3;
}
.n-flottant strong { display: block; font-weight: 700; }
.n-flottant small { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.n-flottant--manque { top: 7%; left: -44px; }
.n-flottant--nestor { top: 40%; right: -36px; }
.n-flottant--sms { bottom: 11%; left: -56px; display: block; width: 264px; padding: 14px 16px 16px; }
.n-flottant--sms dl, .n-resume dl, .n-scene-sms dl { display: grid; gap: 6px; margin: 10px 0 0; }
.n-flottant--sms dl > div, .n-resume dl > div, .n-scene-sms dl > div { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 8px; }
.n-flottant--sms dt, .n-resume dt, .n-scene-sms dt { color: var(--mute); }
.n-flottant--sms dd, .n-resume dd, .n-scene-sms dd { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------
   6. Les métiers : deux rangées
   ------------------------------------------------------------ */
.n-defile { padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow-x: clip; }
.n-defile-titre { margin-bottom: 1.5rem; text-align: center; font-size: 0.9375rem; font-weight: 600; color: var(--mute); }
.n-defile-piste { display: grid; gap: 10px; max-width: var(--cadre); margin: 0 auto; padding: 0 var(--gouttiere); }
.n-defile-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.n-defile-liste li {
    padding: 8px 18px; border: 1px solid var(--rule); border-radius: 999px;
    font-size: 1rem; font-weight: 600; white-space: nowrap;
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .n-defile-piste { max-width: none; padding: 0; gap: 0.15em; font-size: clamp(2.25rem, 6vw, 5rem); }
        .n-defile-liste { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: n-glisser linear both; animation-timeline: view(); }
        .n-defile-liste--retour { animation-name: n-glisser-retour; }
        .n-defile-liste li {
            padding: 0 0.4em; border: 0; border-radius: 0; font-size: 1em; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15;
        }
        .n-defile-liste li + li::before { content: "·"; margin-right: 0.8em; color: var(--vif); }
        .n-defile-liste--retour li { color: var(--mute); }
    }
}
/* d'un bord à l'autre : la rangée finit alignée sur le bord droit de l'écran, quelle que soit sa longueur */
@keyframes n-glisser { from { transform: translateX(0); } to { transform: translateX(calc(100vw - 100%)); } }
@keyframes n-glisser-retour { from { transform: translateX(calc(100vw - 100%)); } to { transform: translateX(0); } }

/* ------------------------------------------------------------
   7. Les sections
   ------------------------------------------------------------ */
.n-section { padding: var(--section) 0; }
.n-section--alt { background: var(--bg-alt); }
.n-section h2, .n-bande h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; }
.n-tete { max-width: var(--etroit); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.n-tete .n-surtitre { margin-bottom: 1rem; }
.n-tete p:not(.n-surtitre) { margin-top: 1.125rem; font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--mute); }
.n-grand { margin-top: 1.25rem; font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); line-height: 1.5; color: var(--mute); }

/* Le problème : trois situations, trois appels manqués */
.n-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.n-situation { position: relative; margin: 0; }
.n-situation picture { border-radius: var(--r); overflow: hidden; background: var(--bg-alt); }
.n-situation img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 900ms var(--entree); }
.n-situation:hover img { transform: scale(1.04); }
.n-situation figcaption { margin-top: 16px; color: var(--mute); }
.n-situation figcaption strong { display: block; margin-bottom: 2px; font-size: 1.1875rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.n-toast {
    position: absolute; top: 16px; left: 16px;
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px;
    background: var(--verre); box-shadow: var(--ombre);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    font-size: 0.8125rem; font-weight: 700;
}
.n-toast-point { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); }

/* L'angle : la bande noire du site, et le chemin d'un appel */
.n-bande { position: relative; padding: var(--section) 0; background: var(--panel); color: var(--panel-ink); overflow: hidden; }
.n-bande::before {
    content: ""; position: absolute; inset: auto -10% -40% -10%; height: 80%; pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(41 151 255 / 0.22), transparent 70%);
}
.n-bande .n-cadre { position: relative; }
.n-bande .n-surtitre { color: var(--vif); }
.n-bande .n-tete p:not(.n-surtitre), .n-bande .n-grand { color: var(--panel-mute); }

.n-schema {
    list-style: none; margin: 0; padding: 0; view-timeline-name: --schema;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 0.55fr) minmax(0, 1.1fr) minmax(70px, 0.55fr) minmax(0, 1fr); align-items: center;
}
.n-noeud {
    display: grid; justify-items: center; gap: 6px; padding: 28px 18px; text-align: center;
    border: 1px solid var(--panel-rule); border-radius: var(--r); background: rgb(255 255 255 / 0.04);
}
.n-noeud strong { margin-top: 8px; font-size: 1.125rem; }
.n-noeud > span:last-child { font-size: 0.9375rem; color: var(--panel-mute); }
.n-noeud-icone { width: 40px; height: 40px; fill: none; stroke: var(--panel-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.n-noeud--nestor { padding: 36px 20px; border-color: rgb(41 151 255 / 0.55); background: rgb(41 151 255 / 0.08); box-shadow: 0 0 0 6px rgb(41 151 255 / 0.06), 0 0 60px rgb(41 151 255 / 0.25); }
.n-noeud--nestor strong { font-size: 1.375rem; }
.n-lien-schema { display: grid; justify-items: center; gap: 10px; padding: 0 6px; text-align: center; }
.n-lien-schema small { font-size: 0.75rem; line-height: 1.35; color: var(--panel-mute); }
.n-trait { position: relative; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--panel-rule) 0 6px, transparent 6px 12px); }
.n-trait::after {
    content: ""; position: absolute; inset: 0; transform-origin: left;
    background: linear-gradient(90deg, rgb(41 151 255 / 0.2), var(--vif)); box-shadow: 0 0 12px var(--vif);
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .n-trait::after { animation: n-remplir linear both; animation-timeline: --schema; animation-range: cover 25% cover 40%; }
        .n-lien-schema:nth-child(4) .n-trait::after { animation-range: cover 40% cover 55%; }
    }
}
@keyframes n-remplir { from { transform: scaleX(0); } }

/* Comment ça marche : les étapes à gauche, la scène à droite */
.n-scenario-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(2.5rem, 6vw, 5rem); }
.n-etapes { list-style: none; margin: 0; padding: 0; }
.n-etape { padding: 28px 0 32px; border-top: 1px solid var(--rule); }
.n-etape h3, .n-etape-num { transition: color 400ms ease; }
.n-etape:last-child { border-bottom: 1px solid var(--rule); }
.n-etape-num { display: block; margin-bottom: 14px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.n-etape h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 750; letter-spacing: -0.03em; }
.n-etape p { margin-top: 0.75rem; max-width: 34ch; font-size: 1.125rem; color: var(--mute); }

.n-scene {
    position: relative; overflow: hidden; display: grid; align-content: center;
    min-height: 460px; padding: 28px 24px; border-radius: 32px;
    background: var(--panel); color: var(--panel-ink); box-shadow: var(--ombre-haute);
}
.n-scene::before {
    content: ""; position: absolute; inset: -30% -30% auto; height: 70%; pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(41 151 255 / 0.28), transparent 70%);
}
.n-scene-etat { position: relative; display: grid; align-content: start; gap: 14px; }
.n-scene-etat + .n-scene-etat { margin-top: 36px; }
.n-scene-titre { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; color: var(--panel-mute); }
.n-scene-num {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--vif); color: #00142b; font-size: 0.8125rem; font-weight: 800;
}
.n-scene-etat--1 { justify-items: center; text-align: center; }
.n-scene-etat--1 .n-scene-titre { justify-self: stretch; }
.n-sonnerie { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 22px 0 8px; }
.n-sonnerie svg { position: relative; width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: #30d158; fill: #ffffff; }
.n-anneau { position: absolute; inset: 0; border: 2px solid rgb(48 209 88 / 0.5); border-radius: 50%; }
.n-scene-grand { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.n-scene-petit { font-size: 0.9375rem; color: var(--panel-mute); font-variant-numeric: tabular-nums; }
.n-scene-relais {
    margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
    border: 1px solid rgb(41 151 255 / 0.5); background: rgb(41 151 255 / 0.12); font-size: 0.875rem; font-weight: 600;
}
.n-bulle-scene { max-width: 88%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: rgb(255 255 255 / 0.1); font-size: 0.9375rem; line-height: 1.45; }
.n-bulle-scene:not(.n-bulle-scene--nestor) { justify-self: end; border-radius: 18px 18px 6px 18px; background: rgb(255 255 255 / 0.18); }
.n-bulle-scene--nestor { background: rgb(41 151 255 / 0.2); border: 1px solid rgb(41 151 255 / 0.45); }
.n-scene-voix { justify-self: center; margin-top: 12px; }
.n-scene-sms { margin-top: 18px; padding: 16px 18px 18px; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 16px 50px rgb(0 0 0 / 0.5); }
.n-scene-sms dl { font-size: 0.9375rem; }

/* Avec le script, sur grand écran : la scène reste en vue et ne montre que l'étape lue ; les autres étapes passent au
   gris du site (lisible : on change la couleur, jamais l'opacité, pour garder le contraste) */
@media (min-width: 821px) {
    html.n-js .n-etape { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
    html.n-js .n-etape:not(.est-active) h3, html.n-js .n-etape:not(.est-active) .n-etape-num { color: var(--mute); }
    html.n-js .n-scene-colonne { position: relative; }
    html.n-js .n-scene { position: sticky; top: max(96px, calc(50vh - 230px)); }
}
html.n-js .n-scene-etat { display: none; margin-top: 0; }
html.n-js .n-scene[data-etat="1"] .n-scene-etat--1,
html.n-js .n-scene[data-etat="2"] .n-scene-etat--2,
html.n-js .n-scene[data-etat="3"] .n-scene-etat--3 { display: grid; }
/* petit écran en mouvement réduit : rien ne s'enchaîne, les trois états sont posés l'un sous l'autre */
html.n-js .n-scene.est-tout .n-scene-etat { display: grid; }
html.n-js .n-scene.est-tout .n-scene-etat + .n-scene-etat { margin-top: 36px; }

/* Les deux appels d'exemple */
.n-onglets { display: inline-flex; gap: 4px; margin-bottom: 28px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--rule); }
.n-onglets[hidden] { display: none; }
.n-onglets button {
    min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none;
    color: var(--mute); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 200ms ease, color 200ms ease;
}
.n-onglets button:hover { color: var(--ink); }
.n-onglets button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.n-appel-exemple { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
.n-appel-exemple + .n-appel-exemple { margin-top: 56px; }
.n-appel-exemple[hidden] { display: none; }
.n-appel-titre { grid-column: 1 / -1; font-size: 1.25rem; font-weight: 700; }
html.n-js .n-appel-titre { display: none; }
.n-transcription { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.n-replique { display: grid; justify-items: end; gap: 6px; }
.n-replique p {
    max-width: 85%; padding: 14px 18px; border-radius: 22px 22px 6px 22px;
    background: var(--card); border: 1px solid var(--rule); line-height: 1.5;
}
.n-replique--nestor { justify-items: start; }
.n-replique--nestor p { border-radius: 22px 22px 22px 6px; background: var(--vif-doux); border-color: transparent; }
.n-qui { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.n-replique--nestor .n-qui { color: var(--accent); }
.n-replique--nestor .n-qui::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vif); }
.n-resume {
    position: sticky; top: 100px; padding: 20px 22px 22px; border-radius: var(--r);
    background: var(--card); border: 1px solid var(--rule); box-shadow: var(--ombre-haute);
}
.n-resume dl { font-size: 0.9375rem; }
.n-resume dl > div { padding-top: 8px; border-top: 1px solid var(--rule); }
.n-rejouer-ligne { margin-top: 24px; }
.n-rejouer {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
    border: 1px solid var(--bord-controle); border-radius: 999px; background: var(--bg);
    color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.n-rejouer:hover { border-color: var(--ink); }
.n-rejouer[hidden] { display: none; }

/* Le jeu d'un appel (script) : la réplique attend, puis la personne parle (une onde près du nom), puis le texte se
   déroule. Les places sont gardées d'avance : rien ne saute sous les yeux. Seule l'opacité cache : un lecteur d'écran
   lit tout l'appel d'emblée. */
.n-replique.est-attente, .n-resume.est-attente { opacity: 0; }
.n-replique.est-parle p { opacity: 0; }
.n-replique.est-parle .n-qui::after {
    content: ""; width: 22px; height: 12px;
    background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
    animation: n-vibrer 260ms ease-in-out infinite alternate;
}
.n-replique.est-dit p { animation: n-derouler 800ms ease-out both; }
.n-resume.est-dit { animation: n-surgir 600ms var(--entree) both; }
@keyframes n-vibrer { from { transform: scaleY(0.35); } }
@keyframes n-derouler {
    from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
.n-replique.est-dit p {
    -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-position: 0 0; mask-position: 0 0;
}

/* Pour qui : deux cartes, deux photos */
.n-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.n-carte {
    overflow: hidden; border-radius: var(--r); background: var(--card); border: 1px solid var(--rule);
    transition: transform 400ms var(--entree), box-shadow 400ms ease;
}
.n-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-haute); }
.n-carte img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.n-carte-texte { padding: clamp(1.5rem, 3vw, 2.25rem); }
.n-carte h3 { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.025em; }
.n-carte p { margin-top: 0.75rem; color: var(--mute); }
.n-carte .n-carte-exemples { margin-top: 1.125rem; padding-top: 1.125rem; border-top: 1px solid var(--rule); font-size: 0.9375rem; font-weight: 600; color: var(--ink); }

/* Transparence : la phrase que Nestor dit vraiment, en grand */
.n-bande--citation { text-align: center; }
.n-bande--citation .n-cadre { max-width: 960px; }
.n-bande--citation h2 { margin-top: 1rem; }
.n-citation { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.n-citation p {
    font-size: clamp(1.75rem, 4.6vw, 3.4rem); font-weight: 750; line-height: 1.15; letter-spacing: -0.035em;
    color: var(--panel-ink);
    background: linear-gradient(90deg, #f5f5f7 20%, #7cc0ff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.n-bande--citation .n-grand { max-width: 40ch; margin-inline: auto; }
.n-deux-points { list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; }
.n-deux-points li { display: grid; gap: 4px; padding: 22px 24px; border: 1px solid var(--panel-rule); border-radius: var(--r); background: rgb(255 255 255 / 0.04); }
.n-deux-points strong { font-size: 1.125rem; }
.n-deux-points span { color: var(--panel-mute); }

/* Où en est Nestor : deux jalons sur une ligne, puis des faits vérifiables */
.n-jalons { list-style: none; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; position: relative; }
.n-jalons::before { content: ""; position: absolute; top: 7px; left: 7px; right: 0; height: 2px; background: linear-gradient(90deg, var(--vif), var(--rule) 55%); }
.n-jalon { position: relative; display: grid; align-content: start; gap: 6px; padding-top: 36px; }
.n-jalon::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--bord-controle); }
.n-jalon--actuel::before { background: var(--vif); border-color: var(--vif); box-shadow: 0 0 0 6px var(--halo); }
.n-jalon-quand { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.n-jalon strong { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.025em; }
.n-jalon > span:last-child { max-width: 36ch; color: var(--mute); }

.n-faits { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.n-faits > div { padding: 22px 24px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }
.n-faits dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.n-faits dd { margin: 8px 0 0; font-size: 1.0625rem; font-weight: 600; }
.n-faits dd a { display: flex; align-items: center; width: fit-content; min-height: 44px; font-weight: 500; }

/* Questions : la tête à gauche, les réponses à droite */
.n-faq-grille { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.n-faq { border-top: 1px solid var(--rule); }
.n-faq details { border-bottom: 1px solid var(--rule); }
.n-faq summary {
    position: relative; display: block; padding: 22px 48px 22px 0; min-height: 44px;
    font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none;
}
.n-faq summary::-webkit-details-marker { display: none; }
.n-faq summary::before, .n-faq summary::after {
    content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; border-radius: 1px;
    background: var(--ink); transition: transform 300ms var(--entree);
}
.n-faq summary::after { transform: rotate(90deg); }
.n-faq details[open] summary::after { transform: rotate(0deg); }
.n-faq summary:hover { color: var(--accent); }
.n-faq details p { padding: 0 48px 24px 0; color: var(--mute); }

/* ------------------------------------------------------------
   8. La liste d'attente
   ------------------------------------------------------------ */
.n-liste { position: relative; overflow: hidden; }
.n-liste::before {
    content: ""; position: absolute; right: -10%; top: 10%; width: 60%; height: 80%; pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--halo), transparent 70%);
}
.n-liste-grille { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.n-liste-argument h2 { margin-top: 1rem; }
.n-liste-argument > p:not(.n-surtitre) { margin-top: 1.125rem; font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--mute); }
.n-formulaire-carte { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 28px; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--ombre-haute); }

.n-champs { display: grid; gap: 22px; }
.n-champ { display: grid; gap: 8px; }
.n-champ label, .n-choix legend { font-weight: 600; }
.n-opt { font-weight: 400; color: var(--mute); }
.n-champ input {
    width: 100%; min-height: 52px; padding: 0 16px;
    border: 1px solid var(--bord-controle); border-radius: 12px;
    background: var(--bg); color: var(--ink); font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.n-champ input:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--halo), 0 0 0 1px var(--accent); }
.n-choix { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.n-choix legend { padding: 0; margin-bottom: 10px; }
/* chaque choix est une pastille : le bouton radio la couvre entière (cible tactile pleine), invisible, et la pastille
   montre l'état coché et le focus */
.n-choix label {
    position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
    border: 1px solid var(--bord-controle); border-radius: 999px; background: var(--bg);
    cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.n-choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.n-choix label:hover { border-color: var(--ink); }
.n-choix label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 600; }
.n-choix label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.n-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.n-formulaire .n-bouton { margin-top: 6px; width: 100%; }
.n-statut:not(:empty) { margin-top: 18px; font-weight: 600; }
.n-statut.est-erreur { color: #b3261e; }
html[data-theme="dark"] .n-statut.est-erreur { color: #ff8a80; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .n-statut.est-erreur { color: #ff8a80; } }
.n-mentions { margin-top: 18px; font-size: 0.875rem; color: var(--mute); }

/* inscrit : les champs s'effacent, le message prend leur place */
.n-formulaire.est-inscrit .n-champs { display: none; }
.n-formulaire.est-inscrit .n-statut { margin-top: 0; font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 700; color: var(--ink); }

/* Sans script, le Worker renvoie sur une ancre de la page : le message de l'ancre se montre */
.n-retour { display: none; margin-bottom: 1.5rem; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--bg-alt); font-weight: 600; }
.n-retour:target { display: block; }
.n-retour--erreur { border-left-color: #b3261e; }

/* ------------------------------------------------------------
   9. Pied
   ------------------------------------------------------------ */
.n-pied { padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--mute); }
.n-pied-grille { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 40px; }
.n-pied-marque { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.n-pied-marque .n-logo { width: 24px; height: 24px; }
.n-pied-liens { display: flex; flex-wrap: wrap; gap: 0 22px; }
.n-pied-liens a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); }
.n-pied-liens a:hover { color: var(--ink); }

/* ------------------------------------------------------------
   10. Mouvement : l'arrivée, l'appel du héros, la scène, l'apparition au
   défilement. Rien ne boucle sans fin : chaque mouvement a un nombre de tours.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .skip-link { transition: top 200ms ease; }

    /* l'accroche entre ligne à ligne */
    .n-entree { animation: n-monter 800ms var(--entree) both; }
    .n-entree:nth-child(2) { animation-delay: 80ms; }
    .n-entree:nth-child(3) { animation-delay: 160ms; }
    .n-entree:nth-child(4) { animation-delay: 240ms; }
    .n-entree:nth-child(5) { animation-delay: 300ms; }
    .n-entree:nth-child(6) { animation-delay: 360ms; }

    /* la photo se pose, puis l'appel se raconte : il sonne, Nestor parle, le résumé arrive */
    .n-heros-visuel picture { animation: n-poser-photo 1100ms var(--entree) both; }
    .n-flottant { animation: n-surgir 650ms var(--entree) both; }
    .n-flottant--manque { animation-delay: 600ms; }
    .n-flottant--manque .n-icone { animation: n-sonner 600ms ease-in-out 900ms 2; }
    .n-flottant--nestor { animation-delay: 1500ms; }
    .n-flottant--nestor .n-onde span { animation: n-parler 340ms ease-in-out 1700ms 10 alternate; }
    .n-flottant--nestor .n-onde span:nth-child(2n) { animation-delay: 1800ms; }
    .n-flottant--nestor .n-onde span:nth-child(3n) { animation-delay: 1880ms; }
    .n-flottant--sms { animation-delay: 2700ms; }

    /* Ce qui suit attend d'être vu : le script pose est-vu sur le bloc (.n-revele) quand il entre à l'écran. */
    /* les situations : l'appel manqué tombe sur chaque photo et clignote trois fois */
    .n-situation.est-vu .n-toast-point { animation: n-pulser 1s ease-out 400ms 3; }

    /* la bande : Nestor parle quelques secondes */
    .n-schema.est-vu .n-onde--grande span { animation: n-parler 360ms ease-in-out 300ms 10 alternate; }
    .n-schema.est-vu .n-onde--grande span:nth-child(2n) { animation-delay: 420ms; }
    .n-schema.est-vu .n-onde--grande span:nth-child(3n) { animation-delay: 500ms; }

    /* la scène : chaque état rejoue son entrée quand il s'affiche */
    .n-scene-etat > * { animation: n-surgir 500ms var(--entree) both; }
    .n-scene-etat > :nth-child(2) { animation-delay: 120ms; }
    .n-scene-etat > :nth-child(3) { animation-delay: 700ms; }
    .n-scene-etat > :nth-child(4) { animation-delay: 1300ms; }
    .n-scene-etat > :nth-child(5) { animation-delay: 1700ms; }
    .n-scene-voix .n-onde span { animation: n-parler 340ms ease-in-out 900ms 12 alternate; }
    .n-scene-voix .n-onde span:nth-child(2n) { animation-delay: 1000ms; }
    .n-scene-voix .n-onde span:nth-child(3n) { animation-delay: 1080ms; }
    .n-anneau { animation: n-onde-sonnerie 1.6s ease-out 3 both; }
    .n-anneau:nth-child(2) { animation-delay: 0.5s; }
    .n-anneau:nth-child(3) { animation-delay: 1s; }

    .n-jalons.est-vu .n-jalon--actuel::before { animation: n-pulser-bleu 1.4s ease-out 300ms 3; }
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .n-revele { animation: n-reveler linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
        .n-trio .n-revele:nth-child(2) { animation-range: entry 8% entry 63%; }
        .n-trio .n-revele:nth-child(3) { animation-range: entry 16% entry 71%; }
        .n-toast { animation: n-tomber linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
        .n-heros-photo { animation: n-parallaxe linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    }
}
@keyframes n-monter { from { opacity: 0; transform: translateY(18px); } }
@keyframes n-surgir { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes n-poser-photo { from { transform: translateY(24px) scale(0.97); } }
@keyframes n-reveler { from { opacity: 0; transform: translateY(40px); } }
@keyframes n-tomber { from { opacity: 0; transform: translateY(-14px) scale(0.92); } }
@keyframes n-parallaxe { to { transform: scale(1.08) translateY(4%); } }
@keyframes n-parler { to { transform: scaleY(0.3); } }
@keyframes n-sonner { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(14deg); } }
@keyframes n-pulser { 0% { box-shadow: 0 0 0 0 rgb(215 0 21 / 0.55); } 100% { box-shadow: 0 0 0 10px rgb(215 0 21 / 0); } }
@keyframes n-pulser-bleu { 0% { box-shadow: 0 0 0 0 rgb(41 151 255 / 0.6); } 100% { box-shadow: 0 0 0 14px rgb(41 151 255 / 0); } }
@keyframes n-onde-sonnerie { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }

/* ------------------------------------------------------------
   11. Écrans moyens et petits, impression
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .n-flottant--manque { left: -16px; }
    .n-flottant--nestor { right: -16px; }
    .n-flottant--sms { left: -24px; }
}
@media (max-width: 820px) {
    .n-heros-grille, .n-scenario-grille, .n-faq-grille, .n-liste-grille { grid-template-columns: minmax(0, 1fr); }
    .n-heros-visuel { justify-self: center; max-width: 420px; margin-top: 8px; }
    .n-flottant--manque { top: 5%; left: -8px; }
    .n-flottant--nestor { top: 30%; right: -8px; }
    .n-flottant--sms { bottom: 4%; left: -8px; width: min(264px, 82%); }
    .n-trio { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 460px; }
    .n-schema { grid-template-columns: minmax(0, 1fr); justify-items: stretch; max-width: 420px; }
    .n-lien-schema { grid-template-columns: 2px minmax(0, 1fr); justify-items: start; align-items: center; gap: 16px; padding: 0 0 0 calc(50% - 1px); text-align: left; }
    .n-trait { width: 2px; height: 56px; background: repeating-linear-gradient(180deg, var(--panel-rule) 0 6px, transparent 6px 12px); }
    .n-trait::after { transform-origin: top; background: linear-gradient(180deg, rgb(41 151 255 / 0.2), var(--vif)); }
    @keyframes n-remplir { from { transform: scaleY(0); } }
    .n-scene-colonne { max-width: 460px; }
    .n-scene { min-height: 400px; }
    .n-appel-exemple { grid-template-columns: minmax(0, 1fr); }
    .n-resume { position: static; }
    .n-cartes, .n-deux-points, .n-jalons, .n-faits { grid-template-columns: minmax(0, 1fr); }
    .n-jalons::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--vif), var(--rule) 55%); }
    .n-jalon { padding: 0 0 0 40px; }
}
@media (max-width: 600px) {
    .n-entete-ligne { column-gap: 8px; }
    .n-bouton--petit { display: none; }
    .n-maison { flex-basis: 100%; min-height: 36px; padding-left: 0; }
    .n-appel .n-bouton { width: 100%; }
    .n-replique p { max-width: 94%; }
    .n-onglets { display: flex; }
    .n-onglets button { flex: 1; padding: 0 12px; font-size: 0.9375rem; }
    .n-flottant { padding: 10px 12px; gap: 10px; font-size: 0.8125rem; }
    .n-flottant--sms { padding: 12px 14px 14px; }
    .n-flottant--sms dl { font-size: 0.8125rem; }
    .n-defile-liste li { font-size: 0.9375rem; }
}
@media (max-width: 360px) {
    .n-flottant--nestor small { display: none; }
    .n-flottant--sms dl > div { grid-template-columns: 4.8em minmax(0, 1fr); }
}
@media print {
    .skip-link, .n-langues, .n-appel, .n-formulaire, .n-pied, .n-onglets, .n-rejouer-ligne, .n-defile { display: none !important; }
    .n-entete { position: static; }
    .n-bande, .n-section--alt, .n-scene { background: none; color: inherit; box-shadow: none; }
    .n-flottant { display: none; }
}
