/*
 * EdelSchweiz, identité « Bascule », refonte « touche de jaune ».
 * Valeurs reprises des maquettes (design-refonte/maquettes) et de
 * tokens.css. Blanc, noir, gris clair, une seule police, des filets fins.
 * Le jaune sert au fond des boutons d'action et à la ligne Bascule, rien
 * d'autre. Pas de dégradé, d'ombre portée, de coin arrondi ni de photo.
 * Les règles d'un composant pour petit écran sont écrites juste après lui.
 */

@font-face {
    font-family: "Host Grotesk";
    src: url("/assets/fonts/HostGrotesk-Variable.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --es-ink: #141414;
    --es-muted: #5C5C5C;
    --es-line: #E3E3E0;
    --es-surface: #F6F6F4;
    --es-white: #FFFFFF;
    --es-signal: #F4C300;
    --es-signal-survol: #E5B600;
    --es-on-dark-muted: #C9C9C6;
    --es-field-line: #8A8A86;

    --es-font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
    --es-h1: clamp(44px, 6.6vw, 92px);
    --es-h1-page: clamp(40px, 5.6vw, 80px);
    --es-h2: clamp(30px, 3.4vw, 46px);
    --es-body: 17px;
    --es-lead: 19px;
    --es-small: 15px;
    --es-label: 14px;

    --es-maxw: 1240px;
    --es-gutter: clamp(20px, 4vw, 48px);
    --es-section-y: 96px;
    --es-section-court: 72px;
    --es-entete: 76px;
}

/* Base. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--es-white); color: var(--es-ink); font-family: var(--es-font); font-size: var(--es-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--es-ink); }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; }
button, input, select, textarea { font-family: inherit; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--es-ink); outline-offset: 3px; }
.appel-final :focus-visible { outline-color: var(--es-white); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--es-ink); color: var(--es-white); padding: 12px 16px; }
.evitement:focus { left: 16px; top: 16px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
mark.a-completer { background: none; color: var(--es-muted); box-shadow: inset 0 -1px 0 var(--es-muted); padding: 0; font-size: inherit; }

/* Mise en page : conteneur, sections, schéma filet + titre à gauche + contenu à droite. */
.conteneur { width: 100%; max-width: var(--es-maxw); margin: 0 auto; padding-left: var(--es-gutter); padding-right: var(--es-gutter); }
.section { padding-top: var(--es-section-y); padding-bottom: var(--es-section-y); }
.section-courte { padding-top: var(--es-section-court); padding-bottom: var(--es-section-court); }
.bloc { box-shadow: inset 0 1px 0 var(--es-line); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 40px 64px; }
.bloc-tete { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.bloc-corps { flex: 2.2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.fond-gris { background: var(--es-surface); }

/* Typographie. */
.surtitre { font-size: var(--es-label); font-weight: 500; color: var(--es-muted); }
.titre-section { font-size: var(--es-h2); line-height: 1.08; letter-spacing: -0.022em; font-weight: 500; max-width: 14ch; }
.titre-large { max-width: 16ch; }
.chapeau { font-size: var(--es-lead); line-height: 1.55; color: var(--es-muted); max-width: 50ch; }
.texte-intro { font-size: 21px; line-height: 1.55; max-width: 60ch; }
.texte-tete { font-size: 16px; line-height: 1.55; color: var(--es-muted); max-width: 36ch; }
.texte-doux { font-size: var(--es-body); color: var(--es-muted); max-width: 52ch; }
.note { font-size: 13px; line-height: 1.55; color: var(--es-muted); max-width: 90ch; }
.note a { color: var(--es-muted); text-underline-offset: 3px; }
.petit { font-size: var(--es-label); color: var(--es-muted); }
.facultatif { font-size: var(--es-label); font-weight: 400; color: var(--es-muted); }

/* Boutons : tous les boutons d'action ont le fond jaune. */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; background: var(--es-signal); color: var(--es-ink); font: 500 16px/1.2 var(--es-font); text-align: center; text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: background-color 0.2s ease; }
.bouton:hover { background: var(--es-signal-survol); }
.bouton-petit { min-height: 44px; padding: 0 16px; font-size: 15px; }
.bouton-grand { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* Action secondaire : un lien souligné, jamais un deuxième bouton. */
.lien-action, .lien-fleche { font-size: 16px; font-weight: 500; color: var(--es-ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
button.lien-action { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; font-family: var(--es-font); }
.lien-action:hover, .lien-fleche:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Options et onglets : cadre fin, élément choisi en noir. */
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--es-white); color: var(--es-ink); box-shadow: inset 0 0 0 1px var(--es-line); border: 0; border-radius: 0; font: 500 15px/1.2 var(--es-font); text-align: left; text-decoration: none; cursor: pointer; transition: box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.option:hover { box-shadow: inset 0 0 0 1px var(--es-ink); }
.option[aria-selected="true"], .option[aria-pressed="true"], .option[aria-current="true"] { background: var(--es-ink); color: var(--es-white); box-shadow: none; }

/* Listes à filets. */
.liste-filets { list-style: none; padding: 0; }
.liste-filets > li { padding: 16px 0; box-shadow: inset 0 1px 0 var(--es-line); font-size: 16px; line-height: 1.55; max-width: 72ch; }
.liste-tirets { list-style: none; padding: 0; }
.liste-tirets > li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; box-shadow: inset 0 1px 0 var(--es-line); font-size: 17px; }
.liste-tirets > li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--es-ink); transform: translateY(-5px); }

/* Grilles d'éléments à filet (chiffres, étapes, offres). */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 240px), 100%), 1fr)); gap: 48px 32px; }
.element { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--es-line); }
.element h3 { font-size: 20px; line-height: 1.25; font-weight: 500; }
.element p { font-size: var(--es-small); color: var(--es-muted); max-width: 40ch; }
.element-numero { font-size: var(--es-label); color: var(--es-muted); }

/* En-tête du site. */
.bandeau-test { background: var(--es-ink); color: var(--es-white); text-align: center; padding: 6px 16px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.entete { position: sticky; top: 0; z-index: 50; background: var(--es-white); box-shadow: inset 0 -1px 0 var(--es-line); }
.entete-interieur { max-width: var(--es-maxw); margin: 0 auto; padding: 14px var(--es-gutter); min-height: var(--es-entete); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.marque { display: flex; align-items: center; color: var(--es-ink); padding: 5px 0; }
.logo { display: block; height: 20px; width: auto; }
.nav-principale ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; list-style: none; padding: 0; }
.nav-principale a { font-size: 15px; color: var(--es-ink); text-decoration: none; padding: 6px 0; }
.nav-principale a:hover, .nav-principale a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.entete-actions { display: flex; align-items: center; gap: 24px; }
.langues { display: flex; gap: 12px; list-style: none; padding: 0; }
.langues a { display: inline-block; padding: 6px 0; font-size: 13px; font-weight: 400; color: var(--es-muted); text-decoration: none; }
.langues a[aria-current="true"] { font-weight: 600; color: var(--es-ink); }
.langues a:hover { color: var(--es-ink); }
.menu-mobile { display: none; position: relative; }
.menu-mobile summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; box-shadow: inset 0 0 0 1px var(--es-ink); font-size: 15px; font-weight: 500; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { background: var(--es-ink); color: var(--es-white); }
.menu-mobile nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 40px)); background: var(--es-white); box-shadow: inset 0 0 0 1px var(--es-ink); padding: 8px 20px 20px; z-index: 60; }
.menu-mobile ul { list-style: none; padding: 0; }
.menu-mobile nav > ul > li > a { display: block; padding: 14px 0; box-shadow: inset 0 -1px 0 var(--es-line); font-size: 17px; color: var(--es-ink); text-decoration: none; }
.menu-mobile .bouton { width: 100%; margin-top: 16px; }
.menu-mobile .langues { margin-top: 16px; gap: 20px; }
.menu-mobile .langues a { font-size: 15px; }
@media (max-width: 1100px) {
    .nav-principale, .entete-actions { display: none; }
    .menu-mobile { display: block; }
}

/* Pied de page. */
.pied { box-shadow: inset 0 1px 0 var(--es-line); }
.pied-interieur { max-width: var(--es-maxw); margin: 0 auto; padding: 64px var(--es-gutter) 48px; display: flex; flex-direction: column; gap: 64px; }
.pied-colonnes { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.pied-marque { flex: 1.4 1 280px; display: flex; flex-direction: column; gap: 20px; color: var(--es-ink); }
.pied-marque .logo { height: 18px; }
.pied-marque p { font-size: var(--es-small); color: var(--es-muted); max-width: 34ch; }
.pied-colonne { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; font-size: var(--es-small); }
.pied-colonne .surtitre { margin-bottom: 6px; font-weight: 400; }
.pied-colonne ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pied-colonne a { color: var(--es-ink); text-decoration: none; }
.pied-colonne a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--es-muted); }
.pied-langues { display: flex; gap: 6px; list-style: none; padding: 0; }
.pied-langues a { color: var(--es-muted); text-decoration: none; }
.pied-langues a[aria-current="true"] { color: var(--es-ink); font-weight: 600; }
.pied-langues li + li::before { content: "·"; margin-right: 6px; }

/* En-tête des pages intérieures. */
.entete-page { max-width: var(--es-maxw); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--es-gutter) 56px; display: flex; flex-direction: column; gap: 24px; }
.entete-page h1, .titre-page { font-size: var(--es-h1-page); line-height: 1.02; letter-spacing: -0.032em; font-weight: 500; max-width: 13ch; }
.entete-page .actions { margin-top: 8px; }

/* Ouverture de l'accueil. */
.ouverture { max-width: var(--es-maxw); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--es-gutter) 72px; display: flex; flex-direction: column; gap: 40px; }
.ouverture-titre { font-size: var(--es-h1); line-height: 1; letter-spacing: -0.034em; font-weight: 500; max-width: 12ch; }
.ouverture-bas { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.ouverture-texte { font-size: var(--es-lead); line-height: 1.55; max-width: 46ch; }

/* Ligne « Bascule » : le dessin du logo en grand, sous le titre de l'accueil. */
.bascule-cadre { padding-top: 24px; }
.bascule { position: relative; height: 44px; }
.bascule span, .bascule svg { position: absolute; display: block; }
.bascule-bas { left: 0; bottom: 0; width: calc(64% - 11.7px); height: 5px; background: var(--es-signal); }
.bascule-filet-bas { left: calc(64% - 11.7px); right: 0; bottom: 2px; height: 1px; background: var(--es-ink); }
.bascule-filet-haut { left: 0; top: 2px; width: calc(64% + 11.7px); height: 1px; background: var(--es-ink); }
.bascule-haut { left: calc(64% + 11.7px); right: 0; top: 0; height: 5px; background: var(--es-signal); }
.bascule svg { left: calc(64% - 13.7px); top: 0; width: 27.4px; height: 44px; max-width: none; }

/* Bandeau des prix sous la ligne Bascule. */
.bande-prix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); column-gap: 24px; }
.bande-prix > div { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 24px 0; box-shadow: inset 0 1px 0 var(--es-line); }
.bande-prix dt { font-size: var(--es-label); color: var(--es-muted); }
.bande-prix dd { font-size: 20px; font-weight: 500; }

/* Chiffres clés. */
.chiffres { --min: 240px; }
.chiffre-valeur { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.chiffres .element p { font-size: 16px; max-width: 34ch; }

/* Six familles de risques : liste à filets numérotée, détail au clic. */
.risques { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); column-gap: 32px; align-items: start; }
.risque { box-shadow: inset 0 1px 0 var(--es-line); }
.risque summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: baseline; padding: 20px 0; }
.risque summary::-webkit-details-marker { display: none; }
.risque-numero { flex: none; width: 24px; font-size: var(--es-label); color: var(--es-muted); }
.risque-titre { flex: 1; font-size: 22px; line-height: 1.25; font-weight: 500; }
.risque-plus { position: relative; flex: none; width: 14px; height: 14px; align-self: center; }
.risque-plus::before, .risque-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--es-ink); transition: transform 0.25s ease; }
.risque-plus::after { transform: rotate(90deg); }
.risque[open] .risque-plus::after { transform: none; }
.risque summary:hover .risque-titre { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.risque-detail { padding: 0 0 20px 40px; display: flex; flex-direction: column; gap: 10px; font-size: var(--es-small); color: var(--es-muted); }
.risque-offres strong { display: block; font-weight: 500; color: var(--es-ink); }

/* Une journée sans préparation : options, puis tableau heure par heure. */
.journee-onglets { display: flex; flex-direction: column; gap: 32px; }
.journee-panneau { display: flex; flex-direction: column; gap: 32px; outline: none; }
.journee-panneau[hidden] { display: none; }
.journee-onglets.actifs .journee-titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.journee-titre { font-size: 20px; font-weight: 500; }
.journee-contexte { font-size: var(--es-lead); line-height: 1.55; max-width: 60ch; }
.frise-ligne { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 20px 0; box-shadow: inset 0 1px 0 var(--es-line); }
.frise-entete { padding: 0 0 12px; box-shadow: none; font-size: var(--es-label); color: var(--es-muted); }
.frise-entete .frise-col-avec { color: var(--es-ink); font-weight: 500; }
.frise-etapes { list-style: none; padding: 0; }
.frise-heure { font-size: var(--es-small); font-weight: 500; }
.frise-sans, .frise-avec { font-size: 16px; line-height: 1.55; max-width: 40ch; }
.frise-sans { color: var(--es-muted); }
.frise-etiquette { display: none; font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.frise-soir { padding: 24px 0; box-shadow: inset 0 1px 0 var(--es-ink); }
.frise-etape { transition: opacity 0.5s ease; }
.frise-attente .frise-etape:not(.passee) { opacity: 0.25; }
.journee-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.journee-pied .note { max-width: 60ch; }
@media (max-width: 640px) {
    .frise-ligne { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .frise-entete { display: none; }
    .frise-etiquette { display: block; }
}

/* Quatre offres sur fond gris. */
.section-pile { display: flex; flex-direction: column; gap: 48px; }
.offres-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.offres-tete > div { display: flex; flex-direction: column; gap: 16px; }
.offres-tete .texte-tete { max-width: 34ch; }
.offres-grille { --min: 250px; }
.carte-offre { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; box-shadow: inset 0 2px 0 var(--es-ink); }
.carte-offre-nom { font-size: var(--es-label); color: var(--es-muted); }
.carte-offre h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; min-height: 2.4em; }
.carte-offre-texte { font-size: var(--es-small); line-height: 1.55; color: var(--es-muted); max-width: 40ch; }
.carte-offre-prix { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 8px; }
.carte-offre-prix strong { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.carte-offre-prix span { font-size: var(--es-label); color: var(--es-muted); }
.carte-offre .lien-action { font-size: var(--es-small); text-underline-offset: 4px; }

/* Bloc final sur fond noir. */
.appel-final { background: var(--es-ink); color: var(--es-white); }
.appel-final-interieur { max-width: var(--es-maxw); margin: 0 auto; padding: 112px var(--es-gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.appel-final-interieur > div { display: flex; flex-direction: column; gap: 20px; }
.appel-final h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
.appel-final p { font-size: var(--es-lead); line-height: 1.5; color: var(--es-on-dark-muted); max-width: 40ch; }
.appel-final .lien-action { color: var(--es-white); }

/* Page résultat. */
.resultat-grille { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.reco-colonne { flex: 2.2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.reco { box-shadow: inset 0 0 0 1px var(--es-ink); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; }
.reco-secondaire { box-shadow: inset 0 0 0 1px var(--es-line); }
.reco-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.reco-tete > div { display: flex; flex-direction: column; gap: 10px; }
.reco-tete h2, .reco-prix strong { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.022em; font-weight: 500; }
.reco-tete .reco-prix { align-items: flex-end; text-align: right; gap: 4px; }
.reco-prix span { font-size: var(--es-label); color: var(--es-muted); }
.reco-texte { font-size: var(--es-lead); line-height: 1.55; max-width: 56ch; }
.reco-liste { display: flex; flex-direction: column; gap: 6px; }
.reco-note { font-size: var(--es-small); color: var(--es-muted); max-width: 60ch; }
.vos-reponses { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.vos-reponses dl > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; box-shadow: inset 0 1px 0 var(--es-line); }
.vos-reponses dt { font-size: 13px; color: var(--es-muted); }
.vos-reponses dd { font-size: var(--es-small); font-weight: 500; }
.autres-offres a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; padding: 20px 0; box-shadow: inset 0 1px 0 var(--es-line); text-decoration: none; color: var(--es-ink); }
.autres-offres a > span { display: flex; flex-direction: column; gap: 4px; }
.autres-offres a > span:last-child { align-items: flex-end; text-align: right; }
.autres-offres strong { font-size: 20px; font-weight: 500; }
.autres-offres .accroche, .autres-offres .complement { color: var(--es-muted); }
.autres-offres .accroche { font-size: var(--es-small); }
.autres-offres .complement { font-size: var(--es-label); }
.autres-offres a:hover strong { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Questionnaire. */
.questionnaire { max-width: 820px; }
.jauge-questionnaire { position: sticky; top: var(--es-entete); z-index: 5; background: var(--es-white); padding: 16px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.jauge-etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; }
.jauge-etapes li { position: relative; padding-top: 10px; font-size: var(--es-label); color: var(--es-muted); box-shadow: inset 0 1px 0 var(--es-line); }
.jauge-etapes li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--es-ink); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.jauge-etapes li.faite::after { transform: scaleX(1); }
.jauge-etapes li.active { color: var(--es-ink); }
.jauge-etapes li.active::after { transform: scaleX(var(--part, 0.5)); }
.jauge-texte { font-size: var(--es-label); color: var(--es-muted); }
.formulaire { display: flex; flex-direction: column; }
.question { border: 0; margin: 0; padding: 32px 0; min-width: 0; box-shadow: inset 0 1px 0 var(--es-line); }
.question legend, .question-libelle { float: left; width: 100%; padding: 0; margin: 0 0 24px; font-size: var(--es-h2); line-height: 1.08; letter-spacing: -0.022em; font-weight: 500; text-wrap: balance; }
.question legend + *, .question-libelle + * { clear: both; }
.question .facultatif { font-size: var(--es-label); letter-spacing: 0; }
.question-numero { display: none; }
.choix { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.choix-pastille { position: relative; margin: 0; cursor: pointer; }
.choix-pastille input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix-pastille span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; background: var(--es-white); box-shadow: inset 0 0 0 1px var(--es-line); font-size: 15px; font-weight: 500; line-height: 1.3; transition: box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.choix-pastille:hover span { box-shadow: inset 0 0 0 1px var(--es-ink); }
.choix-pastille input:checked + span { background: var(--es-ink); color: var(--es-white); box-shadow: none; }
.choix-pastille input:focus-visible + span { outline: 2px solid var(--es-ink); outline-offset: 3px; }
.pas-a-pas .question { display: none; box-shadow: none; padding-top: 24px; }
.pas-a-pas .question.courante { display: block; animation: apparition 0.3s ease both; }
.etapes-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--es-line); }
.pas-a-pas [data-envoi] { display: none; }
.pas-a-pas.derniere [data-envoi] { display: flex; padding-top: 24px; }
.pas-a-pas.derniere [data-suivant] { display: none; }
@media (max-width: 640px) {
    .jauge-etapes li { font-size: 0; }
    .jauge-etapes li.active { font-size: 13px; white-space: nowrap; }
}

/* Champs de formulaire. */
.champ { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 0; min-width: 0; }
label { font-size: var(--es-small); font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], select, textarea { display: block; width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px var(--es-field-line); background: var(--es-white); font: 400 17px var(--es-font); color: var(--es-ink); -webkit-appearance: none; appearance: none; }
textarea { padding: 14px; min-height: 160px; line-height: 1.55; resize: vertical; }
select { max-width: 440px; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--es-ink); outline-offset: 0; }
::placeholder { color: var(--es-muted); opacity: 1; }
.champs-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 24px; }
.aide { font-size: var(--es-label); color: var(--es-muted); }
.aide a { color: var(--es-muted); }
.erreur-champ { clear: both; font-size: var(--es-small); font-weight: 500; color: var(--es-ink); padding-left: 12px; box-shadow: inset 2px 0 0 var(--es-ink); margin: 0 0 12px; }
.en-erreur input, .en-erreur select, .en-erreur textarea { box-shadow: inset 0 0 0 2px var(--es-ink); }
.champ-valable input:not([type="checkbox"]), .champ-valable textarea { box-shadow: inset 0 0 0 1px var(--es-ink); }
.alerte, .flash { box-shadow: inset 0 0 0 1px var(--es-ink); padding: 16px 20px; margin-bottom: 24px; font-size: var(--es-small); }
.flash { max-width: var(--es-maxw); margin: 16px auto 0; }
.case-a-cocher { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.case-a-cocher .erreur-champ { flex-basis: 100%; }
.case-a-cocher input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--es-ink); flex: none; }
.case-a-cocher label { flex: 1; font-weight: 400; }
.formulaire .actions { padding-top: 16px; }
.formulaire-etroit { max-width: 720px; }

/* Offres et tarifs. */
.prix-offre { display: flex; flex-direction: column; gap: 4px; }
.prix-offre strong { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.prix-offre span { font-size: var(--es-label); color: var(--es-muted); }
.formules { --min: 260px; }
.formules .carte-offre h3 { min-height: 0; }
.encadre { box-shadow: inset 2px 0 0 var(--es-ink); padding: 4px 0 4px 16px; font-size: var(--es-small); max-width: 60ch; }
.mentions { display: flex; flex-direction: column; gap: 12px; font-size: var(--es-small); color: var(--es-muted); max-width: 72ch; }

/* Tableaux. */
.tableau { width: 100%; border-collapse: collapse; font-size: var(--es-small); }
.tableau caption { text-align: left; font-size: var(--es-label); color: var(--es-muted); padding-bottom: 8px; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; box-shadow: inset 0 1px 0 var(--es-line); font-weight: 400; }
.tableau thead th { font-size: var(--es-label); color: var(--es-muted); box-shadow: none; padding-top: 0; }
.tableau tbody th { font-weight: 500; }
.tableau .nombre { text-align: right; white-space: nowrap; padding-right: 0; }
.tableau .petit { display: block; }
@media (max-width: 640px) {
    .tableau-modules thead { display: none; }
    .tableau-modules tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 0; box-shadow: inset 0 1px 0 var(--es-line); }
    .tableau-modules tbody th, .tableau-modules tbody td { padding: 0; box-shadow: none; }
    .tableau-modules tbody td:not(.nombre) { grid-column: 1 / -1; grid-row: 2; color: var(--es-muted); }
    .tableau-modules td.nombre { grid-column: 2; grid-row: 1; }
}

/* Comparateur des offres. */
.comparateur-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparateur { min-width: 1040px; table-layout: fixed; }
.comparateur thead td { width: 220px; }
.comparateur thead th { font-size: var(--es-small); font-weight: 500; color: var(--es-ink); vertical-align: bottom; padding-bottom: 12px; }
.comparateur thead th a { text-decoration: none; }
.comparateur thead th a:hover { text-decoration: underline; text-underline-offset: 4px; }
.comparateur th[scope="row"], .comparateur thead td { position: sticky; left: 0; background: var(--es-white); z-index: 1; }
.comparateur .absent { color: var(--es-muted); }
.montant-tableau { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.unite-tableau { display: block; font-size: 13px; color: var(--es-muted); }
.coche { width: 16px; height: 16px; fill: none; stroke: var(--es-ink); stroke-width: 2; }
.comparateur .colonne-active { background: var(--es-surface); }
.comparateur-indice { display: none; font-size: var(--es-label); color: var(--es-muted); }
@media (max-width: 760px) {
    .comparateur { min-width: calc(140px + 6 * 150px); }
    .comparateur thead td, .comparateur th[scope="row"] { width: 140px; font-size: var(--es-label); }
    .comparateur th[scope="row"] { box-shadow: inset 0 1px 0 var(--es-line), 1px 0 0 var(--es-line); }
    .comparateur-indice { display: block; }
}

/* Accordéons (questions fréquentes). */
.accordeons { display: flex; flex-direction: column; }
.accordeon { box-shadow: inset 0 1px 0 var(--es-line); }
.accordeon summary { position: relative; list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 20px; line-height: 1.3; font-weight: 500; }
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::before, .accordeon summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 2px; background: var(--es-ink); transition: transform 0.25s ease; }
.accordeon summary::after { transform: rotate(90deg); }
.accordeon[open] summary::after { transform: none; }
.accordeon p { padding: 0 0 24px; color: var(--es-muted); max-width: 64ch; }

/* Actualités, articles, glossaire, lettre. */
.articles { --min: 280px; }
.article-carte { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--es-line); }
.article-carte h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; }
.article-carte h2 a { text-decoration: none; }
.article-carte h2 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.article-carte p { font-size: var(--es-small); color: var(--es-muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--es-label); color: var(--es-muted); }
.article-meta a { color: var(--es-muted); }
.texte-article { display: flex; flex-direction: column; gap: 20px; }
.sources-titre { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; padding-top: 24px; box-shadow: inset 0 1px 0 var(--es-line); margin-top: 24px; }
.sources { padding-left: 20px; font-size: var(--es-small); }
.termes-article > div { padding: 14px 0; box-shadow: inset 0 1px 0 var(--es-line); }
.termes-article dt a { font-weight: 500; }
.termes-article dd { font-size: var(--es-small); color: var(--es-muted); margin-top: 4px; }
.glossaire-groupe { scroll-margin-top: 96px; }
.glossaire-lettre { font-size: var(--es-h2); line-height: 1; font-weight: 500; letter-spacing: -0.022em; }
.glossaire-terme { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px 32px; padding: 20px 0; box-shadow: inset 0 1px 0 var(--es-line); scroll-margin-top: 96px; }
.glossaire-terme dt { font-size: 20px; line-height: 1.3; font-weight: 500; }
.glossaire-terme dd { display: flex; flex-direction: column; gap: 10px; font-size: 16px; max-width: 60ch; }
.glossaire-terme:target dt { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.glossaire-lies { font-size: var(--es-label); color: var(--es-muted); }
.glossaire-lies span { color: var(--es-ink); font-weight: 500; margin-right: 6px; }
.invitation-lettre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding: 32px 0 0; box-shadow: inset 0 1px 0 var(--es-ink); margin-top: 48px; }
.invitation-lettre > div { display: flex; flex-direction: column; gap: 8px; }
.invitation-lettre h2 { font-size: 23px; line-height: 1.2; font-weight: 500; }
.invitation-lettre p { font-size: var(--es-small); color: var(--es-muted); max-width: 52ch; }

/* À propos : fiche de l'entreprise. */
.fiche > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 4px 32px; padding: 14px 0; box-shadow: inset 0 1px 0 var(--es-line); }
.fiche dt { font-size: var(--es-label); color: var(--es-muted); }
.fiche dd { font-size: 16px; }
.texte-colonne { display: flex; flex-direction: column; gap: 16px; max-width: 64ch; }

/* Textes juridiques : une colonne de 72 caractères. */
.texte-legal { display: flex; flex-direction: column; gap: 16px; }
.texte-legal h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; padding-top: 24px; margin-top: 16px; box-shadow: inset 0 1px 0 var(--es-line); }
.texte-legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Comptes de l'équipe et pages d'erreur. */
.cle-totp { font-size: 22px; letter-spacing: 0.08em; font-weight: 500; word-break: break-all; }
.detail-technique { overflow-x: auto; background: var(--es-surface); padding: 16px; font-size: 13px; }

/* Apparitions au défilement : un fondu discret. */
@keyframes apparition { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.a-venir { opacity: 0; transform: translateY(12px); }
.apparu { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* Transitions de page en fondu. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.15s ease both fondu-sortie; }
::view-transition-new(root) { animation: 0.25s ease both fondu-entree; }
@keyframes fondu-sortie { to { opacity: 0; } }
@keyframes fondu-entree { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    @view-transition { navigation: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .a-venir { opacity: 1; transform: none; }
    .frise-attente .frise-etape:not(.passee) { opacity: 1; }
}

/* Petits écrans : seulement ce que les grilles souples ne règlent pas seules. */
@media (max-width: 640px) {
    :root { --es-section-y: 72px; --es-section-court: 56px; }
    .bloc { gap: 24px; }
    .actions .bouton { flex: 1 1 100%; }
    .ouverture { gap: 32px; }
    .reco-tete .reco-prix { align-items: flex-start; text-align: left; }
    .autres-offres a > span:last-child { align-items: flex-start; text-align: left; }
    .appel-final-interieur { padding-top: 80px; padding-bottom: 80px; }
    .appel-final .bouton { width: 100%; }
}

/* Accueil : étapes et « Pour les entreprises suisses ». */
.etapes { --min: 230px; gap: 40px 32px; list-style: none; padding: 0; }
.suisse { display: flex; flex-direction: column; gap: 8px; }
.liste-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); column-gap: 32px; }
.liste-deux > li { font-size: var(--es-small); padding: 12px 0; }
@media (max-width: 640px) { .frise-lecteur { display: none; } }
.pied-marque .logo, .marque .logo { align-self: flex-start; }
.resultat { padding-bottom: var(--es-section-y); }
.etapes-resultat { --min: 200px; }

/* Colonnes étroites : questionnaire, formulaires, comptes. */
.conteneur-etroit > *, .questionnaire-section > * { max-width: 820px; }
.texte-legal > *, .texte-article > * { max-width: 72ch; }
.questionnaire-section { padding-top: 0; }
.section-compte { padding-top: clamp(48px, 7vw, 96px); padding-bottom: var(--es-section-y); display: flex; flex-direction: column; gap: 24px; }
.section-compte .titre-compte { font-size: var(--es-h1-page); line-height: 1.02; letter-spacing: -0.032em; font-weight: 500; max-width: 13ch; }
#comparer .bloc { margin-bottom: 32px; }
.comparateur-note { margin-top: 16px; }
.comparateur-indice { margin-bottom: 8px; }
.conditions { --min: 200px; }

/* ===== Fluidité ===== */

/* En-tête qui s'efface en descendant et revient en remontant. */
.entete { transition: transform 0.3s ease; }
.entete.cachee { transform: translateY(-100%); }
.jauge-questionnaire { transition: top 0.3s ease; }
body:has(.entete.cachee) .jauge-questionnaire { top: 0; }

/* Repère bref sur la section atteinte par un lien. */
@keyframes repere-section { 0% { box-shadow: inset 0 2px 0 var(--es-ink); } 70% { box-shadow: inset 0 2px 0 var(--es-ink); } 100% { box-shadow: inset 0 1px 0 var(--es-line); } }
.section-ciblee .bloc { animation: repere-section 1.6s ease both; }

/* Journée : les trois scénarios occupent la même place, passage en fondu. */
.journee-onglets.actifs .journee-panneaux { display: grid; }
.journee-onglets.actifs .journee-panneau { grid-area: 1 / 1; transition: opacity 0.35s ease, visibility 0s linear 0s; }
.journee-onglets.actifs .journee-panneau[hidden] { display: flex; visibility: hidden; opacity: 0; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
.journee-onglets:not(.actifs) .journee-panneaux { display: flex; flex-direction: column; gap: 48px; }

/* Menu sur téléphone : ouverture en douceur. */
@keyframes menu-ouverture { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-mobile[open] nav { animation: menu-ouverture 0.22s ease both; }

/* Bouton d'envoi en cours. */
.bouton[aria-busy="true"] { cursor: progress; opacity: 0.75; }

/* Ouverture et fermeture douces (risques, questions fréquentes). */
.risque-detail, .accordeon p { overflow: hidden; }

/* ===== « Votre plan, page par page » : le PCA se déplie au défilement ===== */
.pca-scene { box-shadow: inset 0 1px 0 var(--es-line); }
.pca-collant { padding: var(--es-section-y) 0; }
.pca-grille { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.pca-texte { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.pca-tete { display: flex; flex-direction: column; gap: 16px; }
.pca-chiffres { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.pca-chiffre { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--es-line); }
.pca-valeur { font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; font-variant-numeric: tabular-nums; }
.pca-legende { font-size: 16px; line-height: 1.5; color: var(--es-muted); max-width: 30ch; }
.pca-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.pca-compteur { display: none; font-size: var(--es-label); color: var(--es-muted); font-variant-numeric: tabular-nums; }
.pca-document { flex: 1.2 1 420px; min-width: 0; width: 100%; height: auto; max-height: 560px; overflow: visible; }
.pca-page { transform-box: view-box; transform-origin: 320px 208px; }
.pca-feuille { fill: var(--es-white); stroke: var(--es-ink); stroke-width: 1.2; }
.pca-ligne { fill: var(--es-line); }
.pca-titre-page { font: 500 13px var(--es-font); fill: var(--es-ink); }
.pca-numero-page { font: 400 11px var(--es-font); fill: var(--es-muted); text-anchor: end; }
/* Document déplié, sans script : chaque page à sa place dans l'éventail. */
.pca-page[data-page="0"] { transform: translate(-170px, 18px) rotate(-14deg); }
.pca-page[data-page="1"] { transform: translate(-102px, 6px) rotate(-8.5deg); }
.pca-page[data-page="2"] { transform: translate(-34px, 0) rotate(-3deg); }
.pca-page[data-page="3"] { transform: translate(34px, 0) rotate(3deg); }
.pca-page[data-page="4"] { transform: translate(102px, 6px) rotate(8.5deg); }
.pca-page[data-page="5"] { transform: translate(170px, 18px) rotate(14deg); }

/* Avec le script : scène collée à l'écran, pilotée par le défilement. */
.pca-actif { height: 460vh; height: 460svh; }
.pca-actif .pca-collant { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0; overflow: hidden; }
.pca-actif .pca-chiffres { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 13rem; }
.pca-actif .pca-chiffre { grid-area: 1 / 1; box-shadow: none; padding-top: 0; opacity: 0; transform: translateY(24px); transition: opacity 0.45s ease, transform 0.45s ease; }
.pca-actif .pca-chiffre.active { opacity: 1; transform: none; }
.pca-actif .pca-valeur { font-size: clamp(72px, 11vw, 168px); letter-spacing: -0.045em; }
.pca-actif .pca-legende { font-size: var(--es-lead); max-width: 28ch; color: var(--es-ink); }
.pca-actif .pca-compteur { display: block; }
.pca-actif .pca-page { transition: none; }
.pca-page.active .pca-feuille { stroke-width: 2; }
@media (max-width: 760px) {
    .pca-actif .pca-grille { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 16px; }
    .pca-actif .pca-texte { flex: none; gap: 16px; }
    .pca-actif .pca-tete .titre-section { font-size: 26px; }
    .pca-actif .pca-chiffres { min-height: 9.5rem; }
    .pca-actif .pca-valeur { font-size: 72px; }
    .pca-actif .pca-legende { font-size: 16px; }
    .pca-actif .pca-document { flex: none; max-height: 34svh; }
}
.pca-page .pca-titre-page, .pca-page .pca-numero-page, .pca-page .pca-ligne { transition: opacity 0.3s ease; }
.pca-page.pca-vierge .pca-titre-page, .pca-page.pca-vierge .pca-numero-page, .pca-page.pca-vierge .pca-ligne { opacity: 0; }

/* Seule photographie du site : le drapeau suisse. */
.photo-suisse-image { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 640px) { .photo-suisse-image { aspect-ratio: 4 / 3; } }

/* ===== Page Drones : quadricoptère au trait ===== */
.drone line { stroke: var(--es-ink); stroke-width: 6; stroke-linecap: butt; }
.drone-corps { fill: var(--es-white); stroke: var(--es-ink); stroke-width: 1.5; }
.drone-camera { fill: var(--es-white); stroke: var(--es-ink); stroke-width: 1.5; }
.drone-objectif { fill: var(--es-ink); }
.drone-voyant { fill: var(--es-ink); }
.drone-garde { fill: none; stroke: var(--es-line); stroke-width: 1.5; }
.drone-pales rect { fill: var(--es-ink); }
.drone-moyeu { fill: var(--es-white); stroke: var(--es-ink); stroke-width: 1.5; }
.drone-trajet { fill: none; stroke: var(--es-muted); stroke-width: 1; stroke-dasharray: 4 6; opacity: 0; }
.drone-bras, .drone-appareil { transform-box: view-box; transform-origin: 320px 210px; }
.drone-pales { transform-box: fill-box; transform-origin: center; }
@keyframes helice { to { transform: rotate(360deg); } }
.drone.tourne .drone-pales { animation: helice 0.18s linear infinite; }
.drone.tourne .drone-pale-croisee { opacity: 0.35; }
.legende-photo { margin-top: 10px; font-size: 13px; color: var(--es-muted); }

/* ===== Pages Risques : objets en perspective, animés au défilement ===== */
.objet { --e0: 1; --e1: 1; --e2: 1; --e3: 1; overflow: visible; }
.objet polygon, .objet rect, .objet circle, .objet ellipse, .objet path, .objet line { stroke: var(--es-ink); stroke-width: 1.2; stroke-linejoin: round; }
.objet .face-h, .objet .fond-blanc { fill: var(--es-white); }
.objet .face-g { fill: var(--es-surface); }
.objet .face-d { fill: var(--es-line); }
.objet .fond-encre, .objet .voyant { fill: var(--es-ink); }
.objet .fond-gris { fill: var(--es-line); stroke: none; }
.objet .fond-gris-fonce { fill: #CFCFCB; }
.objet .trait, .objet .seuil, .objet .flux, .objet .empreinte { fill: none; }
.objet g, .objet polygon { transform-box: view-box; }
.objet .principal { transform: translateY(calc((1 - var(--e0)) * 12px)); }

/* Serveur. */
.objet .tiroir { fill: var(--es-white); }
.objet .tiroir-eteint { fill: var(--es-ink); stroke: none; }
.objet .tiroir-0 { opacity: clamp(0, calc(var(--e1) - clamp(0, calc(var(--e3) * 4 - 3), 1)), 1); }
.objet .tiroir-1 { opacity: clamp(0, calc(var(--e1) - clamp(0, calc(var(--e3) * 4 - 2), 1)), 1); }
.objet .tiroir-2 { opacity: clamp(0, calc(var(--e1) - clamp(0, calc(var(--e3) * 4 - 1), 1)), 1); }
.objet .tiroir-3 { opacity: clamp(0, calc(var(--e1) - clamp(0, calc(var(--e3) * 4), 1)), 1); }
.objet .cadenas-ecran { opacity: clamp(0, calc(var(--e1) - var(--e3)), 1); }
.objet .cadenas-ecran rect, .objet .cadenas-ecran path { stroke: var(--es-white); stroke-width: 2; fill: none; }
.objet .disque { opacity: var(--e2); transform: translate(calc((var(--e2) - 1) * 70px), calc((var(--e2) - 1) * 10px)); }
.objet .flux { stroke-dasharray: 4 5; opacity: clamp(0, calc(var(--e3) * (1 - var(--e3)) * 4), 1); }

/* Clé et porte. */
.objet .passage { fill: var(--es-ink); }
.objet .porte { transform-box: fill-box; transform-origin: 0% 100%; transform: skewY(calc(var(--e3) * -18deg)) scaleX(calc(1 - var(--e3) * 0.5)); }
.objet .barre { fill: var(--es-ink); opacity: clamp(0, calc(var(--e1) - var(--e3)), 1); }
.objet .cle-1 { opacity: calc(1 - var(--e0)); transform: translateY(calc(var(--e0) * 20px)); }
.objet .cle-2 { opacity: var(--e2); transform: translate(calc((1 - var(--e2)) * 140px - var(--e3) * 150px), calc(var(--e3) * -70px)); }
.objet .carnet { opacity: var(--e3); transform: translateY(calc((1 - var(--e3)) * -30px)); }

/* Immeuble. */
.objet .fenetre { fill: var(--es-white); }
.objet .mercure { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(calc(0.2 + var(--e0) * 0.8)); }
.objet .eau { opacity: clamp(0, calc(var(--e1) * 0.9 - var(--e3) * 0.9), 1); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--e1)); }
.objet .eau polygon { fill: var(--es-line); }
.objet .portable { transform: translate(calc(var(--e2) * 120px), calc(var(--e2) * 92px)); }
.objet .secours { opacity: var(--e3); transform: translateY(calc((1 - var(--e3)) * -60px)); }

/* Tapis de colis. */
.objet .colis-1, .objet .colis-2 { transform: translate(calc(var(--e0) * 52px + var(--e3) * 52px), calc(var(--e0) * 30px + var(--e3) * 90px)); }
.objet .tapis-b { transform-box: fill-box; transform-origin: 0% 50%; transform: translate(calc(var(--e1) * 8px), calc(var(--e1) * 30px)) rotate(calc(var(--e1) * 7deg)); }
.objet .colis-3 { opacity: calc(1 - var(--e1) * 0.7); }
.objet .tapis-c { opacity: var(--e2); transform: translateY(calc((1 - var(--e2)) * 30px)); }

/* Pièces et calendrier. */
.objet .piece-0, .objet .piece-1 { opacity: 1; }
.objet .piece-2 { opacity: clamp(0, calc(6 - var(--e1) * 6 + clamp(0, calc(var(--e3) * 2), 1)), 1); }
.objet .piece-3 { opacity: clamp(0, calc(5 - var(--e1) * 6 + clamp(0, calc(var(--e3) * 2 - 1), 1)), 1); }
.objet .piece-4 { opacity: clamp(0, calc(4 - var(--e1) * 6), 1); }
.objet .piece-5 { opacity: clamp(0, calc(3 - var(--e1) * 6), 1); }
.objet .piece-6 { opacity: clamp(0, calc(2 - var(--e1) * 6), 1); }
.objet .piece-7 { opacity: clamp(0, calc(1 - var(--e1) * 6), 1); }
.objet .seuil { stroke-width: 2; stroke-dasharray: 8 6; transform-box: fill-box; transform-origin: 0% 50%; transform: scaleX(var(--e2)); }
.objet .feuille-0 { opacity: clamp(0, calc(1 - var(--e0) * 3), 1); }
.objet .feuille-1 { opacity: clamp(0, calc(2 - var(--e0) * 3), 1); }

/* Dossier et cadenas. */
.objet .ligne-doc { fill: var(--es-line); stroke: none; }
.objet .feuillet { transform: translate(calc((var(--e1) - var(--e2)) * 110px), calc((var(--e1) - var(--e2)) * -50px)); opacity: clamp(0, calc(var(--e1) * 1.5), 1); }
.objet .anse { stroke-width: 6; transform: translateY(calc((1 - var(--e2)) * -16px)); }
.objet .tampon { opacity: var(--e3); transform: translateY(calc((1 - var(--e3)) * -90px)); }
.objet .empreinte { stroke-width: 2; opacity: clamp(0, calc(var(--e3) * 2 - 1), 1); }

/* Page principale : une carte par famille. */
.familles { --min: 280px; }
.famille { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--es-line); text-decoration: none; color: var(--es-ink); }
.objet-vignette { width: 100%; height: auto; aspect-ratio: 640 / 420; margin-bottom: 8px; transition: transform 0.4s ease; }
.famille:hover .objet-vignette { transform: translateY(-4px); }
.famille-titre { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; }
.famille:hover .famille-titre { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.famille-texte { font-size: var(--es-small); color: var(--es-muted); }
.drone-vignette .drone-bras-trait { stroke-width: 6; }
.drone-vignette .drone-garde { fill: none; stroke: var(--es-line); }
.navigation-risques { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; box-shadow: inset 0 1px 0 var(--es-line); }
.risque-detail .lien-action { font-size: var(--es-small); align-self: flex-start; }
.entete-page .surtitre a { color: var(--es-muted); }
/* Mots à la place des chiffres : plus petits pour tenir sur une ligne. */
.pca-actif .pca-valeur.pca-mot { font-size: clamp(48px, 6.4vw, 96px); letter-spacing: -0.035em; }
@media (max-width: 760px) {
    .pca-actif .pca-valeur { font-size: clamp(44px, 16vw, 72px); }
    .pca-actif .pca-valeur.pca-mot { font-size: clamp(36px, 11vw, 56px); }
}
.pourquoi { --min: 200px; }
.element-fort { box-shadow: inset 0 2px 0 var(--es-ink); }

/* Carte de départ. */
.carte-liste > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 16px; max-width: none; }
.carte-risque { font-size: 20px; font-weight: 500; text-decoration: none; }
.carte-risque:hover { text-decoration: underline; text-underline-offset: 5px; }
.carte-action { grid-column: 2; color: var(--es-muted); }

/* Impression de la carte de départ et de la fiche réflexe : le contenu seul. */
@media print {
    .entete, .pied, .bandeau-test, .actions, .evitement, .fiche-offerte, .appel-final { display: none !important; }
    body.imprime-carte main > *:not(.carte-depart) { display: none !important; }
    .section, .section-courte { padding-top: 16px; padding-bottom: 16px; }
    a { text-decoration: none; }
}
.fiche-gestes > li { max-width: none; }
.fiche-gestes .element-numero { display: inline-block; width: 24px; }
.fiche-a-remplir dd { min-height: 28px; box-shadow: inset 0 -1px 0 var(--es-muted); }
@media print { .fiche-a-remplir dd { min-height: 32px; } }

/* Logo en tête des documents imprimés. */
.logo-document { display: none; }
@media print {
    .logo-document { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: 16px; box-shadow: inset 0 -1px 0 var(--es-ink); font-size: 12px; color: var(--es-muted); }
    .logo-document .logo { height: 18px; color: var(--es-ink); }
    body.imprime-carte main > .carte-depart { display: block !important; }
}
/* Questions et réponses (page « Votre client vous demande un plan »). */
.questions-reponses > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 6px 32px; padding: 18px 0; box-shadow: inset 0 1px 0 var(--es-line); }
.questions-reponses dt { font-size: 18px; line-height: 1.35; font-weight: 500; }
.questions-reponses dd { color: var(--es-muted); font-size: 16px; }
.document-imprimable { display: flex; flex-direction: column; gap: 32px; max-width: 900px; }
.document-entete { display: flex; flex-direction: column; gap: 16px; }
/* Exemple de plan : filigrane discret, visible aussi à l'impression. */
.document-exemple { position: relative; }
.filigrane { position: absolute; top: 24px; right: var(--es-gutter); font-size: var(--es-label); font-weight: 500; color: var(--es-muted); box-shadow: inset 0 0 0 1px var(--es-line); padding: 4px 10px; }
.exemple-sous-titre { font-size: 20px; line-height: 1.3; font-weight: 500; }
