/*
  Feuille du site Creator Ventures, habillage « Cabinet » (15/11/2026, décision D20).
  Sur le modèle des sites de référence (references/analyse.md, captures du 15/11) : un bandeau d'ouverture noir
  avec un rayonnage d'archives dessiné au trait, puis des bandes pleine largeur qui alternent blanc et gris clair ;
  dans les bandes, des cartes, des étapes en frise, des questions en grille ; un appel final sur laiton ;
  un pied en trois colonnes. La forme vient de sections.py (classes bloc-*), le texte ne change pas.
  Police locale (OFL 1.1, licence dans /polices/) : Inter (marque, titres, texte) ; Fraunces retirée en D25.
  Contrastes nuit (D25, mesurés par outils/contrastes) : voir DESIGN.md. Anciens contrastes papier : #121212/blanc 18,7 ; /#f3f2ee 16,7 ; discret #5a5a57/blanc 6,9, /#f3f2ee 6,2 ;
  lien lu #6b5234/blanc 7,3, /#f3f2ee 6,5 ; #f4f2ec/noir #0f0f0f 17,1 ; #bdbbb4/noir 10,0 ; laiton #c9ad84/noir 8,9 ;
  noir #0f0f0f sur laiton 8,9.
*/

@font-face { font-family: "Inter"; src: url("/polices/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Repli ajusté sur Inter (mesuré sur Arial). */
@font-face { font-family: "Inter repli"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 106.95%; ascent-override: 90.58%; descent-override: 22.55%; line-gap-override: 0%; }

:root {
  /* D25, maquette E2 « Nuit, calculateur en tête » validée par Théo le 15/11/2026 : fond nuit, cartes à bord fin,
     titres en Inter très gras, laiton clair pour l'accent. « encre » est le texte clair, « blanc » la surface des cartes.
     Contrastes (WCAG) : #f5f5f5 sur #0a0a0a 18,1 ; sur #141414 17,0 ; #a3a3a3 sur #0a0a0a 8,1, sur #141414 7,6 ;
     laiton #e2c07d sur #0a0a0a 11,4, sur #141414 10,7 ; #0a0a0a sur laiton 11,4. */
  --encre: #f5f5f5;
  --blanc: #141414;
  --fond: #0a0a0a;
  --discret: #a3a3a3;
  --visite: #e8d3a8;
  --filet: #2a2a2a;
  --gris-clair: #0a0a0a;
  --noir: #0a0a0a;
  --sur-noir: #f5f5f5;
  --sur-noir-discret: #a3a3a3;
  --filet-noir: #2a2a2a;
  --laiton: #e2c07d;
  --focus: var(--encre);
  --serif: "Inter", "Inter repli", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Inter repli", "Helvetica Neue", Arial, sans-serif;
  --colonne: 44rem;
  --marge: minmax(15rem, 1fr);
  --bande: clamp(3rem, 2rem + 4vw, 5.5rem);
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--sans); font-size: 1.1875rem; line-height: 1.6; }

.cadre { box-sizing: border-box; max-width: 74rem; margin: 0 auto; padding: 0 1rem; }

.entete, .pied, .ouverture { background: var(--noir); color: var(--sur-noir); --focus: var(--sur-noir); }

a { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 120ms ease-out, background-color 120ms ease-out; }
a:visited { color: var(--visite); }
a:hover { text-decoration-thickness: 2px; }
.entete a, .pied a, .ouverture a, .entete a:visited, .pied a:visited, .ouverture a:visited { color: var(--sur-noir); }
.appel a, .appel a:visited { color: var(--noir); }
a:focus-visible, .tableau:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; text-decoration-thickness: 2px; }

.insecable { white-space: nowrap; }
main [id] { scroll-margin-top: 1.25rem; }

.evitement { position: absolute; left: -9999px; top: 0.5rem; }
.evitement:focus { left: 1rem; padding: 0.6rem 1rem; background: var(--fond); color: var(--encre); outline: 3px solid var(--sur-noir); outline-offset: 3px; }

/* En-tête : la marque et le téléphone, puis le menu. */
.entete { border-bottom: 1px solid var(--filet-noir); }
.entete p { margin: 0; }
.entete-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; padding: 0.5rem 0 0.25rem; }
.marque, .pied-marque { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; line-height: 1.2; white-space: nowrap; }
.marque { display: inline-block; padding: 0.5rem 0; font-size: 1.5rem; text-decoration: none; }
.marque:hover { text-decoration: underline 2px var(--laiton); }
.marque-signe { display: inline-block; width: 1.75rem; height: 1.75rem; margin-right: 0.6rem; vertical-align: -0.3rem; }
.entete-telephone { font-size: 1rem; color: var(--sur-noir-discret); }
.entete-telephone a, .pied-telephone a { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 650; font-variant-numeric: tabular-nums; }
.entete-telephone a { font-size: 1.125rem; text-decoration: none; }
.entete-telephone a:hover { text-decoration: underline; }
.entete-imprime, .pied-mentions { display: none; }

.menu { border-top: 1px solid var(--filet-noir); }
.menu ul, .menu-pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.menu li, .menu-pied li { margin: 0; }
.menu a, .menu-pied a { display: inline-block; min-height: 44px; line-height: 44px; font-size: 1rem; white-space: nowrap; }
.menu a { font-weight: 500; text-decoration-color: transparent; }
.menu a:hover { text-decoration-color: currentColor; }
.menu a[aria-current="page"] { text-decoration-color: var(--laiton); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }

/* Ouverture : bandeau noir, titre et chapeau à gauche, dessin d'archives en fond à droite, filet laiton dessous. */
.ouverture { border-bottom: 3px solid var(--laiton); }
.ouverture .cadre { padding-top: clamp(2.25rem, 1rem + 4vw, 5rem); padding-bottom: clamp(2.5rem, 1rem + 4vw, 5rem); }
h1, h2 { font-family: var(--serif); text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); font-weight: 560; line-height: 1.06; letter-spacing: -0.022em; color: var(--sur-noir); }
.page-accueil h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); line-height: 1.08; }
.chapeau { max-width: 38rem; margin: 1.25rem 0 0; font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.4375rem); line-height: 1.5; color: #dcd9d0; }
.ouverture .action { margin: 2rem 0 0; }
/* Estimer : le calculateur d'abord, pas un bouton e-mail en tête. */
.page-estimer .ouverture .action { display: none; }
.ouverture .action a, .ouverture .action a:visited { background: var(--laiton); color: var(--noir); }
.ouverture .action a:hover { background: var(--sur-noir); }


/* Sommaire de la page Questions : dans l'ouverture, à la place du dessin. */
.sommaire { margin: 2rem 0 0; padding: 0.25rem 0; border-top: 1px solid var(--laiton); border-bottom: 1px solid var(--filet-noir); }
.sommaire ul { list-style: none; margin: 0; padding: 0; }
.sommaire li { margin: 0; border-bottom: 1px solid var(--filet-noir); }
.sommaire li:last-child { border-bottom: 0; }
.sommaire a { display: block; min-height: 44px; box-sizing: border-box; padding: 0.55rem 0; line-height: 1.4; font-size: 1.0625rem; text-decoration-color: transparent; }
.sommaire a:hover { text-decoration-color: currentColor; }

/* Bandes : pleine largeur, blanc puis gris clair, dans l'ordre de la page. */
.bande { padding: var(--bande) 0; }
.bande-teintee { background: var(--gris-clair); }
h2 { font-kerning: none; /* en Fraunces, le crénage colle l'apostrophe droite au L (« L'argent ») */ margin: 0 0 1.25rem; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 560; line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: break-word; }
h2::before { content: ""; display: block; width: 3rem; height: 3px; margin-bottom: 1.25rem; background: var(--encre); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
/* Pas de fin de ligne orpheline : « environ 15 » puis « 000 » seul. */
p, li, td { text-wrap: pretty; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--discret); }
ol > li::marker { color: var(--encre); font-weight: 650; font-variant-numeric: tabular-nums; }
strong { font-weight: 650; }
.bloc-contenu { max-width: var(--colonne); }
.bloc-contenu > :last-child, .colonne > :last-child, .question > :last-child, .cartes > p > :last-child { margin-bottom: 0; }
.bloc-intro .bloc-contenu > p:first-child { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem); line-height: 1.55; }

.encadre { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--blanc); border: 1px solid var(--filet); border-top: 3px solid var(--encre); }
.bande-claire .encadre { background: var(--gris-clair); border-color: var(--gris-clair); border-top-color: var(--encre); }
.encadre > :last-child { margin-bottom: 0; }

/* Cartes : les paragraphes qui s'ouvrent sur un gras, numérotés, en grille. */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; margin: 0 0 1.1rem; counter-reset: carte; }
.cartes > p { margin: 0; padding: 1.75rem 1.5rem 1.5rem; background: var(--blanc); border: 1px solid var(--filet); border-top: 3px solid var(--encre); font-size: 1.125rem; line-height: 1.55; counter-increment: carte; }
.bande-claire .cartes > p { background: var(--gris-clair); border-color: var(--gris-clair); border-top-color: var(--encre); }
.cartes > p::before { content: counter(carte, decimal-leading-zero); display: block; margin-bottom: 0.75rem; font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; color: var(--discret); }
.cartes > p > strong:first-child { display: block; margin-bottom: 0.5rem; font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.25; }

/* Étapes : la liste numérotée en cartes, grand numéro en serif. */
.bloc-etapes ol { list-style: none; display: grid; gap: 0.75rem; max-width: 52rem; margin: 0; padding: 0; counter-reset: etape; }
/* Le numéro est posé dans la marge de la carte : le texte de l'étape reste un seul flux (liens compris). */
.bloc-etapes li { position: relative; margin: 0; padding: 1.25rem 1.5rem 1.25rem 5.5rem; background: var(--blanc); border: 1px solid var(--filet); font-size: 1.125rem; line-height: 1.55; counter-increment: etape; }
.bande-claire.bloc-etapes li { background: var(--gris-clair); border-color: var(--gris-clair); }
.bloc-etapes li::before { content: counter(etape); position: absolute; left: 1.5rem; top: 1.1rem; font-family: var(--serif); font-size: 2.75rem; font-weight: 500; line-height: 1; color: var(--encre); }
@media (max-width: 40em) {
  .bloc-etapes li { padding: 1rem 1rem 1rem 3.5rem; }
  .bloc-etapes li::before { left: 1rem; top: 0.95rem; font-size: 2rem; }
}
.bloc-etapes li > strong:first-child { display: block; margin-bottom: 0.5rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }

/* Liste : les puces séparées par des filets, un carré noir pour repère. */
.bloc-liste ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 2.5rem; margin: 0; padding: 0; }
.bloc-liste li { position: relative; margin: 0; padding: 1rem 0 1rem 1.75rem; border-top: 1px solid var(--filet); }
.bloc-liste li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 0.625rem; height: 0.625rem; background: var(--encre); }

/* Questions : chaque question et sa réponse en bloc, deux par ligne. */
.questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.25rem; }
.question { padding: 1.5rem; background: var(--blanc); border: 1px solid var(--filet); border-top: 3px solid var(--encre); font-size: 1.125rem; line-height: 1.55; }
.bande-claire .question { background: var(--gris-clair); border-color: var(--gris-clair); border-top-color: var(--encre); }
.question h3 { font-family: var(--serif); font-size: 1.3125rem; font-weight: 600; }

/* Colonnes : deux ou trois sections courtes côte à côte, dans une même bande. */
.bloc-colonnes .cadre { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2.5rem 3rem; }
.colonne h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }

/* Tableaux */
.tableau { overflow-x: auto; margin: 0 0 1.1rem; }
table { border-collapse: collapse; width: 100%; font-size: 1.125rem; line-height: 1.5; background: var(--blanc); }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-bottom: 1px solid var(--filet); }
thead th { font-weight: 700; background: var(--noir); color: var(--sur-noir); border-bottom: 0; }
.bloc-tableau .bloc-contenu { max-width: none; }

/* Appel à l'action : un bouton plein ; en fin de page, sur une bande laiton qui ne se confond pas avec le pied. */
.action { margin: 2.5rem 0 0; font-size: 1.25rem; font-weight: 650; line-height: 1.35; }
.action a, .action a:visited { display: inline-block; box-sizing: border-box; max-width: 100%; min-height: 56px; padding: 0.9rem 1.75rem; background: var(--encre); color: var(--blanc); text-decoration: none; }
.action a:hover { background: #333333; text-decoration: underline; }
.appel { background: var(--laiton); color: var(--noir); --focus: var(--noir); }
.appel:not(:has(.action)), .page-404 .appel { display: none; }
.appel .cadre { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.appel .action { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem); }
.appel .action a, .appel .action a:visited { background: var(--noir); color: var(--sur-noir); padding: 1rem 2rem; }
.appel .action a:hover { background: #333333; }

.a-completer { padding: 0 0.3em; border: 1px dashed currentColor; background: #e9e8e3; color: var(--encre); font-size: 0.85em; font-weight: 500; white-space: nowrap; }
.entete .a-completer, .pied .a-completer, .ouverture .a-completer { background: transparent; color: var(--sur-noir); }
.action .a-completer { font-size: 0.8em; background: transparent; color: inherit; }

/* Pied : un annuaire en colonnes. */
.pied { border-top: 1px solid var(--filet-noir); font-size: 1.125rem; line-height: 1.6; color: var(--sur-noir-discret); }
.pied .cadre { display: grid; gap: 1.75rem 3rem; padding-top: 3rem; padding-bottom: 2.5rem; }
/* Une identité longue passe à la ligne : elle ne pousse ni la colonne voisine ni la page. */
.pied .cadre > * { min-width: 0; }
.pied p { margin: 0 0 0.5rem; overflow-wrap: break-word; }
.pied .pied-telephone a, .pied-email a { display: inline-block; min-height: 0; padding: 0.6rem 0; margin: -0.6rem 0; line-height: 1.6; }
.pied-role { color: var(--sur-noir); }
.pied-marque { font-size: 1.3125rem; color: var(--sur-noir); }
.pied-nom { color: var(--sur-noir); font-weight: 600; }
.pied-verification { margin-top: 0.75rem !important; max-width: 30rem; }
.pied-bas { border-top: 1px solid var(--filet-noir); padding-top: 0.5rem; }
.menu-pied ul { gap: 0 1.5rem; }

@media screen and (min-width: 48em) {
  .cadre { padding: 0 2.5rem; }
  .entete-barre { padding: 0.75rem 0 0.5rem; }
  .marque { font-size: 1.75rem; }
  .menu ul { gap: 0 1.5rem; }
  .pied .cadre { grid-template-columns: 1fr 1fr; padding-top: 3.5rem; }
  .pied-bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 2rem; }
  .pied-bas p { margin: 0; }
}

/* Grand écran : ouverture en deux colonnes avec le dessin ; sections de texte avec le titre dans la marge ;
   pied en trois colonnes. */
@media screen and (min-width: 60em) {

  .bloc-texte .cadre, .bloc-intro .cadre, .bloc-liste .cadre, .bloc-etapes .cadre { display: grid; grid-template-columns: var(--marge) minmax(0, var(--colonne)); column-gap: clamp(2.5rem, 4vw, 4rem); align-items: start; }
  .bloc-intro .bloc-contenu, .bloc-liste .bloc-contenu, .bloc-etapes .bloc-contenu { grid-column: 2; }
  .bloc-texte h2, .bloc-liste h2, .bloc-etapes h2 { margin-bottom: 0; font-size: clamp(1.625rem, 1rem + 1.4vw, 2.25rem); }
  .bloc-liste ul { grid-template-columns: 1fr; }
  /* Illustrations au trait (outils/illustrations.mjs) dans la marge, sous le titre : un fond, donc absentes sans
     feuille de style et à l'impression, jamais sous du texte. La liste des sections illustrées est ici seulement. */
  .section-avant-de-signer-avec-qui-que-ce-soit h2::after, .section-preparer-le-premier-echange h2::after, .section-les-etapes h2::after, .section-ce-que-vous-decidez-et-ou-vous-pouvez-arreter h2::after, .section-notre-role-exact h2::after, .section-qui-decide-de-ce-qui-part h2::after { content: ""; display: block; width: min(100%, 16rem); aspect-ratio: 4 / 3; margin-top: 2.5rem; background: no-repeat left top / contain; }
  .section-avant-de-signer-avec-qui-que-ce-soit h2::after { background-image: url("/illustrations/contrat.svg"); }
  .section-preparer-le-premier-echange h2::after { background-image: url("/illustrations/archives.svg"); }
  .section-les-etapes h2::after { background-image: url("/illustrations/tri.svg"); }
  .section-ce-que-vous-decidez-et-ou-vous-pouvez-arreter h2::after { background-image: url("/illustrations/echantillon.svg"); }
  .section-notre-role-exact h2::after { background-image: url("/illustrations/contrat.svg"); }
  .section-qui-decide-de-ce-qui-part h2::after { background-image: url("/illustrations/export.svg"); }
  .bloc-cartes .bloc-contenu, .bloc-questions .bloc-contenu { max-width: none; }
  .bloc-cartes .bloc-contenu > :not(.cartes), .bloc-questions .bloc-contenu > :not(.questions) { max-width: var(--colonne); }

  .pied .cadre { grid-template-columns: 1.1fr 1fr 0.9fr; }
  .pied-bas { grid-column: auto; display: block; border-top: 0; padding-top: 0; }
  .menu-pied ul { flex-direction: column; }
  .pied-maj { margin-top: 1rem !important; }
}

/* Le menu ne s'étire d'un bord à l'autre que lorsqu'il tient sur une ligne. */
@media screen and (min-width: 66em) {
  .menu ul { justify-content: space-between; }
}

/* Sous 600 px, un tableau se lit en lignes empilées : l'en-tête en une ligne, puis chaque ligne en bloc. */
@media (max-width: 37.5em) {
  .tableau table, .tableau tbody, .tableau thead, .tableau tr, .tableau td { display: block; }
  .tableau table { background: transparent; }
  .tableau thead { padding: 0.5rem 0.75rem; background: var(--noir); color: var(--sur-noir); }
  .tableau thead th { display: inline; padding: 0; border: 0; background: transparent; }
  .tableau thead th + th::before { content: " · "; font-weight: 400; }
  .tableau tr { padding: 0.75rem; border-bottom: 1px solid var(--filet); background: var(--blanc); }
  .tableau td { padding: 0; border: 0; }
  .tableau td:first-child { font-weight: 650; }
  /* Libellé par cellule si le td porte data-label. */
  .tableau td[data-label]::before { content: attr(data-label) " : "; font-weight: 400; color: var(--discret); }
  .tableau:has(td[data-label]) thead { display: none; }
}

@media (max-width: 24em) {
  .marque { font-size: 1.375rem; }
  .action { font-size: 1.125rem; }
  .action a, .appel .action a { padding: 0.75rem; }
  /* À 320 px, une adresse e-mail passe à la ligne dans son bouton au lieu d'en sortir. */
  .action .insecable { white-space: normal; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}

@media print {
  @page { size: A4; margin: 13mm 15mm 12mm; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.42; }
  .entete, .pied, .ouverture, .appel, .bande, .bande-teintee { background: #fff; color: #000; border: 0; padding: 0; }
  .cadre, .ouverture .cadre, .appel .cadre { max-width: none; padding: 0; }
  a, a:visited, .entete a, .pied a, .ouverture a, .appel a, .entete a:visited, .pied a:visited, .ouverture a:visited, .appel a:visited { color: #000; text-decoration-color: #000; }
  .evitement, .menu, .menu-pied, .sommaire, .entete-telephone, .ouverture .action { display: none; }
  .ouverture .cadre { background: none; }

  /* En-tête de lettre : la marque, puis trois lignes d'identité */
  .entete { padding-bottom: 6pt; border-bottom: 1pt solid #000; }
  .entete-barre { display: block; padding: 0; }
  .marque { padding: 0; font-size: 16pt; }
  .entete-imprime { display: block; margin-top: 3pt; font-size: 10pt; line-height: 1.4; }

  .ouverture .cadre { display: block; }
  h1, .page-accueil h1 { max-width: none; margin-top: 14pt; font-size: 20pt; line-height: 1.12; letter-spacing: -0.01em; color: #000; }
  .chapeau { max-width: none; margin: 6pt 0 10pt; font-size: 12pt; line-height: 1.42; color: #000; }
  .bande .cadre, .bloc-colonnes .cadre, .cartes, .questions, .bloc-etapes ol, .bloc-liste ul { display: block; }
  .bloc-contenu { max-width: none; }
  h2, .colonne h2 { margin: 13pt 0 6pt; padding-top: 5pt; font-size: 14pt; border-top: 0.5pt solid #000; }
  h2::before { content: none; }
  h3, .question h3 { margin: 9pt 0 3pt; font-family: var(--sans); font-size: 11.5pt; font-weight: 700; }
  p, ul, ol { margin-bottom: 6pt; }
  li { margin-bottom: 2pt; }
  li::marker, ol > li::marker { color: #000; font-weight: 400; }
  .bloc-intro .bloc-contenu > p:first-child { font-size: 11pt; line-height: 1.42; }
  /* Cartes, étapes, listes, questions : redeviennent paragraphes et listes, sans fond ni cadre. */
  .cartes > p, .bande-claire .cartes > p, .question, .bande-claire .question, .bloc-etapes li, .bloc-liste li { margin: 0 0 6pt; padding: 0; background: #fff; border: 0; font-family: var(--sans); font-size: 11pt; font-weight: 400; line-height: 1.42; }
  .cartes > p::before, .bloc-liste li::before, .bloc-etapes li::before { content: none; }
  .cartes > p > strong:first-child, .bloc-etapes li > strong:first-child { display: inline; font-family: var(--sans); font-size: 11pt; }
  .bloc-etapes ol, .bloc-liste ul { padding-left: 1.4rem; }
  .bloc-etapes ol { list-style: decimal; }
  .bloc-liste ul { list-style: disc; }
  .bloc-etapes li, .bloc-liste li { display: list-item; margin-bottom: 2pt; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; overflow-wrap: anywhere; }

  h1, h2, h3 { break-after: avoid; break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }
  main p { break-inside: avoid; }
  li { break-inside: avoid; }
  li:first-child { break-after: avoid; }
  li:last-child { break-before: avoid; }
  /* 4 puces au plus : liste entière ; au-delà, deux puces au moins par côté. */
  ul:not(:has(> li:nth-child(5))), ol:not(:has(> li:nth-child(5))) { break-inside: avoid; }
  p:has(+ ul), p:has(+ ol) { break-after: avoid; }
  /* Un tableau de moins de dix lignes reste entier. */
  .encadre, tr, .tableau:not(:has(tbody tr:nth-child(10))) { break-inside: avoid; }
  .encadre, .bande-claire .encadre { margin: 8pt 0; padding: 6pt 0 0; background: #fff; border: 0; border-top: 1.5pt solid #000; }
  .tableau { overflow: visible; margin: 4pt 0 8pt; }
  table { font-size: 10pt; line-height: 1.35; background: #fff; }
  th, td { padding: 3pt 8pt 3pt 0; border-bottom: 0.5pt solid #000; }
  thead th { background: #fff; color: #000; border-bottom: 1.5pt solid #000; }
  .action, .appel .action { margin: 12pt 0 0; font-size: 12pt; }
  .action a, .action a:visited, .appel .action a, .appel .action a:visited { min-height: 0; padding: 0; background: #fff; color: #000; text-decoration: underline; }
  .a-completer, .entete .a-completer, .pied .a-completer, .ouverture .a-completer { background: #fff; color: #000; border: 1px dashed #000; }

  .pied, .pied p, .pied-marque { color: #000; }
  /* Pied resserré, d'un seul tenant, collé au texte : jamais seul sur une feuille. */
  .pied { margin-top: 24pt; border-top: 1pt solid #000; font-size: 10pt; line-height: 1.4; break-inside: avoid; break-before: avoid; }
  .pied .cadre { display: block; padding: 6pt 0 0; }
  .pied p { margin: 0 !important; }
  .pied-marque { font-size: inherit; }
  .pied-telephone, .pied-email { display: none; }
  .pied-nom, .pied-verification, .pied-mentions, .pied-maj { display: inline; font-weight: 400; }
  .pied-nom::after, .pied-mentions::after { content: " · "; }
  .pied-verification::after { content: " "; }
  .pied-contact, .pied-bas { display: block; margin-top: 2pt; padding: 0; border: 0; }
}

/* Estimateur (/estimer/) : sa bande, le titre dans la marge, les champs à droite. */
.bloc-outil:has(.estimateur[hidden]) { display: none; }
/* Nuit (D25) : sur papier, les textes discrets repassent au noir. */
@media print { .estimer-aide, .estimer-unite, .estimer-detail, .h1-accent, .estimer-fourchette { color: #000; } }
/* Sur papier, seul le résultat de l'estimateur s'imprime, encadré. */
@media print { .estimateur > h2:first-child, .estimer-champ, .estimateur p:has(> button) { display: none; } .estimer-resultat { margin: 10pt 0 4pt; padding: 8pt 10pt; background: #fff; border: 1pt solid #000; } .estimer-resultat:not(:has(p[class]:not([class=""]))) { display: none; } }


/* ------------------------------------------------------------------ Maquette E2 (D25)
   « Nuit, calculateur en tête », choisie par Théo le 15/11/2026 : une seule nuit (#0a0a0a), sections séparées par un
   filet, titres en Inter 700 serrés, cartes #141414 à bord fin et coins de 16 px, laiton clair pour l'accent et les
   boutons. L'impression garde son noir sur blanc (bloc print plus haut). */
@media screen {
  body { background: var(--fond); }
  h1, h2, .marque, .pied-marque { font-family: var(--sans); font-weight: 700; }
  h1 { letter-spacing: -0.04em; line-height: 1.03; }
  .page-accueil h1 { font-size: clamp(2.75rem, 1.6rem + 3.6vw, 4.625rem); line-height: 1.03; }
  h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.03em; line-height: 1.1; font-kerning: normal; }
  h2::before { content: none; }
  h3, .question h3 { font-family: var(--sans); font-weight: 600; }
  .h1-accent, .marque-point { color: var(--laiton); }

  /* En-tête : une ligne, la marque, le menu, le numéro en bouton laiton. */
  .entete, .pied, .ouverture { background: var(--fond); }
  .entete { border-bottom: 1px solid var(--filet); }
  .entete-barre { gap: 0.5rem 1.75rem; padding: 0.75rem 0; }
  .marque { font-size: 1.375rem; letter-spacing: -0.02em; }
  .menu { border-top: 0; }
  .menu a { color: var(--discret); font-weight: 500; }
  .menu a:hover, .menu a[aria-current="page"] { color: var(--encre); }
  .entete-telephone { font-size: 0; }
  .entete-telephone a, .entete-telephone a:visited { display: inline-block; min-height: 44px; padding: 0 1.1rem; line-height: 44px; background: var(--laiton); color: var(--noir); font-size: 1.0625rem; font-weight: 600; }
  .entete-telephone a:hover { background: var(--encre); color: var(--noir); }

  /* Ouverture : ciel étoilé discret (décor seul), surtitre, titre, chapeau, repères ; à droite, le calculateur. */
  .ouverture { border-bottom: 1px solid var(--filet);
    background-image: radial-gradient(1.5px 1.5px at 8% 14%, rgba(255,255,255,0.9), transparent), radial-gradient(1px 1px at 22% 64%, rgba(255,255,255,0.6), transparent), radial-gradient(2px 2px at 38% 26%, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 55% 8%, rgba(255,255,255,0.8), transparent), radial-gradient(1.5px 1.5px at 70% 92%, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 92% 20%, rgba(255,255,255,0.5), transparent), radial-gradient(2px 2px at 97% 70%, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 4% 80%, rgba(255,255,255,0.5), transparent); }
  .ouverture .cadre { padding-top: clamp(2.5rem, 1rem + 5vw, 5.5rem); padding-bottom: clamp(2.5rem, 1rem + 5vw, 6rem); }
  .surtitre, .bloc-surtitre .surtitre { margin: 0 0 1.25rem; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--discret); }
  .chapeau { color: var(--discret); font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem); }
  .chapeau strong { color: var(--encre); font-weight: 500; }
  .reperes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 35rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--filet); }
  .reperes li { margin: 0; }
  .repere-valeur { display: block; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--encre); }
  .repere-libelle { display: block; font-size: 1rem; color: var(--discret); }
  .page-accueil .ouverture:has(.estimateur:not([hidden])) .action { display: none; }

  /* Le calculateur dans l'ouverture : une carte, « Estimation en direct ». */
  .outil-tete { margin-top: 2.5rem; }

  /* Sections : une seule nuit, séparées par un filet, sans alternance. */
  .bande { border-top: 1px solid var(--filet); }
  .bande-teintee, .bande-claire { background: var(--fond); }
  .cartes { gap: 0.875rem; counter-reset: none; }
  .cartes > p, .bande-claire .cartes > p, .question, .bande-claire .question, .bloc-etapes li, .bande-claire.bloc-etapes li,
  .encadre, .bande-claire .encadre { background: var(--blanc); border: 1px solid var(--filet); }
  .cartes > p { padding: 1.5rem; color: var(--discret); }
  .cartes > p::before { content: none; }
  .cartes > p > strong:first-child { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; color: var(--encre); }
  .cartes > p a { color: var(--encre); }
  .question { padding: 1.75rem; }
  .bloc-etapes li::before, ol > li::marker { color: var(--laiton); font-family: var(--sans); font-weight: 700; }
  .bloc-liste li::before { background: var(--laiton); }
  .bloc-liste li { border-top-color: var(--filet); }
  table { background: var(--blanc); }
  thead th { background: #1f1f1f; color: var(--encre); }
  th, td { border-bottom-color: var(--filet); }
  .tableau tr { background: var(--blanc); border-bottom-color: var(--filet); }
  .tableau thead { background: #1f1f1f; }
  .action a, .action a:visited { background: var(--laiton); color: var(--noir); }
  .action a:hover { background: var(--encre); color: var(--noir); }
  .appel { background: var(--blanc); border-top: 1px solid var(--filet); --focus: var(--encre); }
  .appel .action a, .appel .action a:visited { background: var(--laiton); color: var(--noir); }
  .appel .action a:hover { background: var(--encre); }
  .a-completer { background: transparent; color: var(--encre); }

  /* Accueil : titres pleine largeur, puis la grille ; surtitre au-dessus du titre. */
  .page-accueil .bloc:not(.bloc-colonnes) .cadre { display: block; }
  body .bloc.bloc-surtitre:not(.bloc-colonnes) .cadre { display: flex; flex-direction: column; align-items: stretch; }
  .bloc.bloc-surtitre .surtitre { order: -1; }
  .bloc.bloc-surtitre h2 { margin-bottom: 2.25rem; }
  .bloc.bloc-surtitre .bloc-contenu { max-width: none; }
  .bloc.bloc-surtitre .bloc-contenu > :not(.cartes):not(.questions):not(.tableau):not(ol) { max-width: 46rem; }
  .page-accueil .bloc-contenu { max-width: none; }
  .page-accueil .bloc h2 { margin-bottom: 2.25rem; }
  .cadre { max-width: 77.5rem; }

  /* Le marché : le montant en grand, la source en petit. */
  .section-le-marche .cartes > p { color: var(--encre); font-size: 1.125rem; }
  .section-le-marche .cartes > p > strong:first-child { font-size: clamp(1.875rem, 1.5rem + 1vw, 2.375rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
  .section-le-marche .cartes > p:nth-child(4) { border-color: var(--laiton); }
  .section-le-marche .cartes > p:nth-child(4) > strong:first-child { color: var(--laiton); }
  .section-le-marche .bloc-contenu > p:not(.surtitre) { max-width: 46rem; color: var(--discret); }

  /* Votre licence : deux cartes, ✓ en laiton pour ce que vous gardez, → pour ce que l'acheteur reçoit. */
  :is(.page-accueil, .page-licence) .bloc-questions .question ul { list-style: none; padding: 0; color: #d4d4d4; }
  :is(.page-accueil, .page-licence) .bloc-questions .question li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; }
  :is(.page-accueil, .page-licence) .bloc-questions .question li::before { position: absolute; left: 0; content: "✓"; color: var(--laiton); }
  :is(.page-accueil, .page-licence) .bloc-questions .question + .question li::before { content: "→"; color: var(--discret); }
  :is(.page-accueil, .page-licence) .bloc-questions .question h3 { font-size: 1.375rem; margin-bottom: 1rem; }

  /* Liquidation, entreprise en activité : deux grandes cartes ; la première au filet laiton. */
  .page-accueil .bloc-colonnes.colonnes-2 .cadre { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
  .page-accueil .colonnes-2 .colonne { padding: 2rem; background: var(--blanc); border: 1px solid var(--filet); color: var(--discret); }
  .page-accueil .colonnes-2 .colonne:first-child { border-color: var(--laiton); }
  .page-accueil .colonnes-2 .colonne h2 { margin-bottom: 0.75rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; color: var(--encre); }
  .page-accueil .colonnes-2 .colonne a { color: var(--laiton); font-weight: 600; }

  /* Page Le marché : chaque carte s'ouvre sur son montant, la source en dessous. */
  .page-marche .cartes > p { color: var(--encre); }
  .page-marche .cartes > p > strong:first-child { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
  .page-marche .cartes > p a, .section-le-marche .cartes > p a, .page-liquidations .cartes > p a { display: block; margin-top: 0.75rem; font-size: 1.125rem; color: var(--discret); }
  .pied { border-top: 1px solid var(--filet); }
}

/* Grand écran : l'ouverture en deux colonnes, le calculateur à droite, comme la maquette. */
@media screen and (min-width: 60em) {
  .entete-barre { flex-wrap: nowrap; }
  .menu { flex: 1; }
  .menu ul { justify-content: flex-end; gap: 0 1.6rem; }
}
@media screen and (max-width: 59.99em) {
  .entete-telephone { order: 2; }
  .menu { order: 3; flex-basis: 100%; }
}
@media (max-width: 24em) {
  /* À 320 px, l'adresse e-mail passe à la ligne au lieu de faire défiler la page (C33). */
  .insecable { white-space: normal; overflow-wrap: anywhere; }
}

/* ------------------------------------------------------------------ Bordereau (D26)
   16/11/2026, Théo : « c'est moche surtout sur téléphone, je ne veux pas de bord rond, je veux un estimateur plus
   beau, carte blanche ». L'estimateur devient un bordereau : un formulaire de papier clair posé sur la nuit, à angles
   droits, avec ses questions numérotées, ses réponses en grosses touches carrées, sa pile d'archives qui se remplit
   à mesure qu'on coche, et un bloc noir où la fourchette s'affiche en très grand sur une règle de 0 à 500 k$.
   Contrastes : encre #0a0a0a sur papier #f5f5f3 18,5 ; #3d3d3a sur papier 10,3 ; laiton #e2c07d sur noir 11,4 ;
   #a3a3a3 sur noir 8,1 ; bords de champs encre 2 px sur papier 18,5. Aucun attribut style, aucun data: (CSP). */
:root { --papier: #f5f5f3; --encre-papier: #3d3d3a; --lien-papier-lu: #5a4527; }
@media screen {
  .estimateur:not([hidden]) { --focus: var(--noir); counter-reset: q; margin: 0 -1rem; background: var(--papier); color: var(--noir); border-top: 8px solid var(--laiton); }
  .estimateur a { color: var(--noir); }
  .estimateur a:visited { color: var(--lien-papier-lu); }
  .estimateur h2:first-child { display: flex; align-items: center; gap: 0.75rem; margin: 0; padding: 1rem 1.25rem; background: var(--noir); color: var(--sur-noir); font: 700 1.125rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
  .estimateur h2:first-child::before { content: ""; flex: none; width: 0.875rem; height: 0.875rem; margin: 0; background: var(--laiton); }

  .estimer-champ { counter-increment: q; margin: 0; padding: 1.5rem 1.25rem 0; border: 0; min-width: 0; }
  /* La légende d'un fieldset se pose sur son bord haut et ignore le padding : l'espace du dessus passe en marge (le badge 04 touchait les raccourcis). */
  fieldset.estimer-champ { margin-top: 1.5rem; padding-top: 0; }
  .estimer-champ > label, .estimer-champ legend { display: block; margin: 0 0 0.75rem; padding: 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; color: var(--noir); }
  .estimer-champ > label::before, .estimer-champ legend::before { content: counter(q, decimal-leading-zero); display: inline-block; min-width: 2.25rem; margin-right: 0.75rem; padding: 0.15rem 0.35rem; background: var(--noir); color: var(--laiton); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.3; text-align: center; font-variant-numeric: tabular-nums; }

  .estimateur select, .estimateur input[type="number"] { -webkit-appearance: none; -moz-appearance: textfield; appearance: none; box-sizing: border-box; width: 100%; max-width: none; min-height: 64px; margin: 0; padding: 0.5rem 1rem; font: 700 1.5rem/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--noir); background-color: #fff; border: 2px solid var(--noir); border-radius: 0; }
  .estimateur input[type="number"]::-webkit-inner-spin-button, .estimateur input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  .estimateur select { padding-right: 4rem; background-image: linear-gradient(45deg, transparent 50%, var(--noir) 50%), linear-gradient(135deg, var(--noir) 50%, transparent 50%), linear-gradient(var(--laiton), var(--laiton)); background-position: calc(100% - 1.55rem) 50%, calc(100% - 1.05rem) 50%, 100% 0; background-size: 0.5rem 0.5rem, 0.5rem 0.5rem, 3.25rem 100%; background-repeat: no-repeat; }
  .estimateur select:invalid, .estimateur select option[value=""] { color: var(--encre-papier); }
  .estimateur select:focus-visible, .estimateur input:focus-visible, .estimer-puce:focus-visible { outline: 3px solid var(--noir); outline-offset: 3px; }
  .estimer-aide { margin: 0.75rem 0 0; font-size: 1.125rem; line-height: 1.45; color: var(--encre-papier); }
  .outil-tete #estimer-secteur-aide, .outil-tete #estimer-annees-aide { display: none; }

  /* Raccourcis sous les champs numériques (posés par estimer.js) : de grosses touches carrées. */
  .estimer-puces { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0; }
  .estimer-puce { -webkit-appearance: none; appearance: none; min-width: 3.5rem; min-height: 48px; margin: 0; padding: 0 0.9rem; font: 700 1.1875rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--noir); background: #fff; border: 2px solid var(--noir); border-radius: 0; cursor: pointer; }
  .estimer-puce:hover { background: var(--laiton); }
  .estimer-puce[aria-pressed="true"] { background: var(--noir); color: var(--laiton); }

  /* Les dossiers : une touche carrée par type ; cochée, elle passe en noir. */
  .estimer-case { position: relative; display: block; margin: 0 0 0.5rem; background: #fff; border: 2px solid var(--noir); }
  .estimer-case input { -webkit-appearance: none; appearance: none; position: absolute; left: 1rem; top: 50%; width: 1.5rem; height: 1.5rem; margin: -0.75rem 0 0; padding: 0; background-color: #fff; border: 2px solid var(--noir); border-radius: 0; }
  .estimer-case input:checked { background-color: var(--laiton); background-image: linear-gradient(var(--noir), var(--noir)); background-position: center; background-size: 0.625rem 0.625rem; background-repeat: no-repeat; }
  .estimer-case label { display: block; box-sizing: border-box; min-height: 56px; padding: 0.875rem 1rem 0.875rem 3.5rem; font-size: 1.125rem; font-weight: 500; line-height: 1.35; cursor: pointer; }
  .estimer-case:has(input:checked) { background: var(--noir); color: var(--sur-noir); }
  .estimer-case:has(input:checked) input { border-color: var(--laiton); }
  .estimer-case:has(input:focus-visible) { outline: 3px solid var(--noir); outline-offset: 3px; }

  /* Le bloc noir : la pile d'archives, la fourchette en très grand, la règle de 0 à 500 k$. */
  .estimer-sortie { margin-top: 1.5rem; padding: 1.5rem 1.25rem 1.75rem; background: var(--noir); color: var(--sur-noir); --focus: var(--sur-noir); }
  .estimer-pile { text-align: center; }
  .estimer-pile .pile { display: block; width: min(100%, 14rem); height: auto; margin: 0 auto; }
  .estimer-pile .boite { opacity: 0; transform: translateY(-12px); transition: opacity 200ms ease-out, transform 200ms ease-out; }
  .estimer-pile-legende { margin: 0.5rem 0 0; font-size: 1.125rem; color: var(--sur-noir-discret); }
  .estimateur:has(#estimer-accounting:checked) .s-accounting, .estimateur:has(#estimer-projects:checked) .s-projects,
  .estimateur:has(#estimer-files:checked) .s-files, .estimateur:has(#estimer-cad:checked) .s-cad,
  .estimateur:has(#estimer-db:checked) .s-db, .estimateur:has(#estimer-ops:checked) .s-ops,
  .estimateur:has(#estimer-orders:checked) .s-orders, .estimateur:has(#estimer-support:checked) .s-support,
  .estimateur:has(#estimer-code:checked) .s-code { opacity: 1; transform: none; }

  .estimer-resultat { margin: 1.25rem 0 0; padding: 0; background: none; border: 0; }
  .estimer-resultat p { margin: 0 0 0.5rem; }
  .estimer-mention { font-size: 1.125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sur-noir-discret); }
  .estimer-fourchette { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.4rem; margin: 0.25rem 0 0.75rem; font-family: var(--sans); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--laiton); }
  .e-val { font-size: clamp(3rem, 14.5vw, 5.25rem); }
  .e-mot { font-size: 1.125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sur-noir); }
  .e-unite { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--sur-noir); }
  .estimer-unite, .estimer-detail { font-size: 1.125rem; line-height: 1.45; color: var(--sur-noir-discret); }
  .estimer-erreur { font-size: 1.1875rem; font-weight: 700; color: #ffa28c; }

  .estimer-echelle { margin-top: 1.5rem; }
  .echelle-piste { position: relative; height: 1.5rem; border: 2px solid #8d8d86; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), #4a4a46 calc(10% - 1px), #4a4a46 10%); }
  .echelle-barre { position: absolute; top: 0; bottom: 0; left: calc(var(--de, 0) * 1%); width: max(6px, calc((var(--a, 0) - var(--de, 0)) * 1%)); background: var(--laiton); transition: left 240ms ease-out, width 240ms ease-out; }
  .echelle-graduation { position: relative; height: 1.75rem; margin-top: 0.4rem; font-size: 1.125rem; line-height: 1.75rem; font-variant-numeric: tabular-nums; color: var(--sur-noir-discret); }
  /* Chaque étiquette est posée sur son repère (0, 20 %, 40 %... 100 %), pas répartie : « 100 » doit tomber sur 100 k$. */
  .echelle-graduation span { position: absolute; top: 0; transform: translateX(-50%); }
  .echelle-graduation span:nth-child(1) { left: 0; transform: none; }
  .echelle-graduation span:nth-child(2) { left: 20%; }
  .echelle-graduation span:nth-child(3) { left: 40%; }
  .echelle-graduation span:nth-child(4) { left: 60%; }
  .echelle-graduation span:nth-child(5) { left: 80%; }
  .echelle-graduation span:nth-child(6) { left: auto; right: 0; transform: none; }
  .echelle-legende { margin: 0.5rem 0 0; font-size: 1.125rem; color: var(--sur-noir-discret); }

  .estimer-cote > .estimer-aide { margin: 0; padding: 1.25rem 1.25rem 0; }
  .estimateur .action-outil { margin: 1rem 1.25rem 1.5rem; }
  .estimateur .action-outil a, .estimateur .action-outil a:visited { display: block; box-sizing: border-box; min-height: 56px; padding: 0.9rem 1rem; text-align: center; font-size: 1.1875rem; font-weight: 700; text-decoration: none; color: var(--noir); background: var(--laiton); border: 2px solid var(--noir); }
  .estimateur .action-outil a:hover { background: var(--noir); color: var(--laiton); }
  .bloc-outil .estimateur:not([hidden]) { max-width: 44rem; }
  .estimateur:not([hidden]) > :last-child, .estimer-cote > :last-child { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .estimer-pile .boite, .echelle-barre { transition: none; } }
@media screen and (min-width: 48em) { .estimateur:not([hidden]) { margin: 0; } }
/* Sur papier : le seul bloc imprimé est la fourchette, en noir sur blanc ; tout le décor disparaît. */
@media print {
  .estimateur:not([hidden]) { margin: 0; border: 0; background: none; }
  .estimer-pile, .estimer-echelle, .estimer-puces, .estimateur .action-outil { display: none; }
  .estimer-sortie { margin: 0; padding: 0; background: none; color: #000; }
  .estimer-fourchette, .e-val, .e-mot, .e-unite, .estimer-mention, .estimer-detail, .estimer-unite { color: #000; font-size: 12pt; letter-spacing: 0; text-transform: none; }
  .e-val { font-weight: 800; }
}

/* Téléphone et tablette (D26) : le menu ne passe plus à la ligne, il défile sur une seule rangée de 48 px, au bord de l'écran. */
@media screen and (max-width: 59.99em) {
  .entete-barre { flex-wrap: wrap; align-items: center; justify-content: space-between; row-gap: 0; }
  .menu { order: 3; flex: 0 0 calc(100% + 2rem); min-width: 0; max-width: calc(100% + 2rem); margin: 0 -1rem; border-top: 1px solid var(--filet); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
  .menu ul { flex-wrap: nowrap; gap: 0 1.5rem; padding: 0 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 1rem; scrollbar-width: none; }
  .menu ul::-webkit-scrollbar { display: none; }
  .menu li { flex: none; scroll-snap-align: start; }
  .menu a { min-height: 48px; line-height: 48px; white-space: nowrap; }
}

/* ------------------------------------------------------------------ Vitrine (D30)
   16/11/2026, Théo : « sur ordinateur le site est dégueulasse, améliore-le fortement, fais bien le responsive ; le but :
   impressionnant et professionnel ». La nuit, Inter et le laiton restent (D25), les angles droits aussi (D26). Ce qui change :
   la grande largeur. L'ouverture pose le titre à gauche et le rayonnage de la page à droite (rayonnage_svg.py, une graine
   par page) ; le bordereau s'ouvre en deux colonnes, les questions sur le papier, la fourchette sur la dalle noire ; les
   grilles de cartes ne laissent plus de carte seule ; une bande sur deux prend un ton de nuit plus clair ; chaque titre
   s'ouvre sur un trait laiton. Sur téléphone, le menu passe en grille : les six entrées restent visibles sans défiler.
   Contrastes nouveaux : #f5f5f5 sur #0f0f0e 17,6 ; #a3a3a3 sur #0f0f0e 7,6 ; laiton sur #0f0f0e 11,0. */
:root { --nuit-2: #0f0f0e; }
@media screen {
  .bande-teintee { background: var(--nuit-2); }
  .bande h2::before, .colonne h2::before { content: ""; display: block; width: 2.5rem; height: 3px; margin-bottom: 1.25rem; background: var(--laiton); }
  .bloc-surtitre h2::before { content: none; }
  .surtitre, .bloc-surtitre .surtitre { color: var(--laiton); }
  .surtitre::before { content: ""; display: inline-block; width: 1.75rem; height: 2px; margin-right: 0.75rem; vertical-align: 0.3em; background: currentColor; }
  .ouverture-decor { display: none; }
  .ouverture .reperes { gap: 1.5rem; }
  .appel { background: var(--nuit-2); }
  .appel .action a, .appel .action a:visited { padding: 1.15rem 2.25rem; }
  .bloc-intro .bloc-contenu > p:first-child { color: var(--encre); }
}

/* Tablette et plus : cartes deux par deux, la dernière seule prend la ligne entière ; le menu tient sur une ligne. */
@media screen and (min-width: 48em) {
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartes > p:last-child:nth-child(odd) { grid-column: 1 / -1; }
  fieldset.estimer-champ { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  fieldset.estimer-champ .estimer-case { margin: 0; }
  fieldset.estimer-champ > .estimer-aide { grid-column: 1 / -1; }
  /* La dalle du résultat posée dans le papier : noire sur la nuit, elle se confondait avec le fond. */
  .estimer-sortie { margin-left: 1.25rem; margin-right: 1.25rem; }
  /* Deux cases côte à côte prennent la hauteur de la plus haute : le libellé se centre dans la sienne. */
  fieldset.estimer-champ .estimer-case { display: flex; }
  fieldset.estimer-champ .estimer-case label { flex: 1; display: flex; align-items: center; }
}

/* Grand écran. */
@media screen and (min-width: 60em) {
  /* L'en-tête reste en haut pendant la lecture : la marque et le numéro sont toujours à portée. */
  .entete { position: sticky; top: 0; z-index: 20; }
  /* L'en-tête collant ne doit cacher ni le lien d'évitement, ni l'élément qui reçoit le focus, ni le titre visé par un lien (C67, C68). */
  .evitement:focus { z-index: 30; }
  html { scroll-padding-top: 8rem; }

  /* L'ouverture : le texte à gauche, le rayonnage de la page à droite ; le bordereau de l'accueil dessous, sur toute la largeur. */
  .ouverture .cadre { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; background: none; }
  .ouverture-texte { grid-column: 1; grid-row: 1; }
  .ouverture-decor { display: block; grid-column: 2; grid-row: 1; align-self: stretch; min-height: 26rem; background: no-repeat center / contain; }
  .page-accueil .ouverture-decor { min-height: 31rem; }
  /* Page Questions : le sommaire prend la place du rayonnage ; le bloc de texte s'efface pour que ses lignes se rangent dans la grille. */
  .ouverture .cadre:has(.sommaire) .ouverture-texte { display: contents; }
  .ouverture .cadre:has(.sommaire) .ouverture-texte > * { grid-column: 1; }
  .ouverture .cadre:has(.sommaire) .ouverture-texte > .sommaire { grid-column: 2; grid-row: 1 / span 6; align-self: center; margin: 0; }
  .ouverture .cadre:has(.sommaire) { align-items: start; grid-template-rows: repeat(5, auto) 1fr; }
  .ouverture .cadre:has(.sommaire) .ouverture-decor { display: none; }
  .ouverture .outil-tete { grid-column: 1 / -1; grid-row: 2; margin: clamp(3rem, 5vw, 4.5rem) 0 0; }
  .page-accueil h1 { font-size: clamp(3.25rem, 1.2rem + 4.4vw, 5.5rem); line-height: 1; }
  .ouverture .chapeau, .ouverture .reperes { max-width: 40rem; }

  .bloc-outil .estimateur:not([hidden]) { max-width: none; }

  /* Cartes : trois par ligne sur une grille de six ; deux restantes se partagent la ligne, une seule la prend entière ; quatre font deux par deux. */
  .cartes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cartes > p, .cartes > p:last-child:nth-child(odd) { grid-column: span 2; }
  .cartes > p:nth-last-child(2):nth-child(3n+1), .cartes > p:last-child:nth-child(3n+2) { grid-column: span 3; }
  .cartes > p:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .cartes:has(> p:nth-child(4):last-child) > p { grid-column: span 3; }

  /* Une introduction sans titre prend la largeur, en grand. */
  .bloc-intro .cadre { display: block; }
  .bloc-intro .bloc-contenu { max-width: 58rem; }
  .bloc-intro .bloc-contenu > p:first-child { font-size: clamp(1.375rem, 0.9rem + 0.9vw, 1.75rem); line-height: 1.45; letter-spacing: -0.01em; }

  /* Une section de texte à surtitre : le surtitre et le titre à gauche, le texte à droite (plus de moitié droite vide). */
  body .bloc.bloc-surtitre:is(.bloc-texte, .bloc-liste, .bloc-etapes) .cadre { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); grid-template-rows: auto auto 1fr; column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .bloc.bloc-surtitre:is(.bloc-texte, .bloc-liste, .bloc-etapes) .surtitre { grid-column: 1; grid-row: 1; }
  .bloc.bloc-surtitre:is(.bloc-texte, .bloc-liste, .bloc-etapes) h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .bloc.bloc-surtitre:is(.bloc-texte, .bloc-liste, .bloc-etapes) .bloc-contenu { grid-column: 2; grid-row: 1 / span 3; max-width: 46rem; }

  .appel .action { font-size: 1.5rem; }
}

/* Large écran (1200 px et plus) : le bordereau en trois colonnes. En dessous, il reste en une colonne, les dossiers deux par deux. */
@media screen and (min-width: 75em) {
  /* Le bordereau en trois colonnes : les quatre questions sur deux colonnes de papier, la dalle noire du résultat à droite. */
  .estimateur:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(20rem, 29rem); align-items: start; }
  /* La colonne du résultat est plus étroite que l'écran d'un téléphone : la fourchette y tient sur une ligne. */
  .estimer-sortie .e-val { font-size: 3.625rem; }
  .estimateur h2:first-child { grid-column: 1 / -1; grid-row: 1; padding: 1.1rem 2rem; }
  .estimer-champ { grid-column: 1 / span 2; padding-left: 2rem; padding-right: 2rem; }
  div.estimer-champ:nth-of-type(1) { grid-row: 2; }
  div.estimer-champ:nth-of-type(2) { grid-column: 1; grid-row: 3; padding-right: 0.75rem; }
  div.estimer-champ:nth-of-type(3) { grid-column: 2; grid-row: 3; padding-left: 0.75rem; }
  fieldset.estimer-champ { grid-row: 4; margin: 1.75rem 0 0; padding-bottom: 2rem; }
  /* La dalle est posée dans le papier, avec sa marge : noire sur la nuit, elle disparaissait. */
    /* La dalle, la réserve et le bouton forment une seule colonne (.estimer-cote). Elle ne colle pas : collée, elle recouvrait
     le bouton (C76) puis le coupait sur un écran de 1024 px (C77) ; le résultat reste sous les yeux par sa hauteur, égale à celle des questions. */
  .estimer-cote { grid-column: 3; grid-row: 2 / span 4; align-self: start; margin: 1.5rem 1.5rem 1.5rem 0; }
  .estimer-sortie { margin: 0; padding: 2rem 1.75rem; }
  .estimer-pile .pile { width: min(100%, 12rem); }
  .estimer-puces { gap: 0.4rem; }
  .estimer-puce { min-width: 2.9rem; padding: 0 0.55rem; }
  /* 02 et 03 côte à côte : deux lignes réservées au libellé, pour que les deux champs partent de la même hauteur. */
  div.estimer-champ:nth-of-type(2) > label, div.estimer-champ:nth-of-type(3) > label { min-height: 2.6em; }
  /* La réserve « Ce n'est pas une offre » et le bouton d'appel suivent la dalle, dans sa colonne (C70). */
  .estimer-cote > .estimer-aide { margin: 0; padding: 1.25rem 0 0; }
  .estimateur .estimer-cote .action-outil { margin: 1rem 0 0; }
}
/* De 960 à 1200 px : la marque et le numéro sur une ligne, le menu dessous, sur toute la largeur. */
@media screen and (min-width: 60em) and (max-width: 74.99em) {
  .entete-barre { flex-wrap: wrap; row-gap: 0; }
  .menu { order: 3; flex: 0 0 100%; border-top: 1px solid var(--filet); }
  .menu ul { justify-content: space-between; }
  .entete-telephone { order: 2; }
}

/* Téléphone et petite tablette : le menu en grille, toutes les entrées visibles, sans défilement caché. */
@media screen and (max-width: 59.99em) {
  .menu { -webkit-mask-image: none; mask-image: none; }
  .menu ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; padding: 0.25rem 1rem 0.5rem; overflow: visible; scroll-snap-type: none; }
  .menu a { display: flex; align-items: center; min-height: 44px; line-height: 1.2; white-space: normal; }
}
@media screen and (min-width: 48em) and (max-width: 59.99em) {
  .menu ul { display: flex; justify-content: space-between; }
}
@media screen and (max-width: 22.5em) {
  .menu ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print { .ouverture-decor { display: none; } }

/* Rayonnage de chaque page : ajouté par construire.py (rayonnage_svg.py). */
@media screen {
  .page-accueil .ouverture-decor { background-image: url("/illustrations/rayonnage-accueil.svg"); }
  .page-comment-ca-marche .ouverture-decor { background-image: url("/illustrations/rayonnage-comment-ca-marche.svg"); }
  .page-ce-que-nous-ne-prenons-jamais .ouverture-decor { background-image: url("/illustrations/rayonnage-ce-que-nous-ne-prenons-jamais.svg"); }
  .page-qui-sommes-nous .ouverture-decor { background-image: url("/illustrations/rayonnage-qui-sommes-nous.svg"); }
  .page-apporteurs .ouverture-decor { background-image: url("/illustrations/rayonnage-apporteurs.svg"); }
  .page-contact .ouverture-decor { background-image: url("/illustrations/rayonnage-contact.svg"); }
  .page-mentions-legales .ouverture-decor { background-image: url("/illustrations/rayonnage-mentions-legales.svg"); }
  .page-confidentialite .ouverture-decor { background-image: url("/illustrations/rayonnage-confidentialite.svg"); }
  .page-404 .ouverture-decor { background-image: url("/illustrations/rayonnage-404.svg"); }
  .page-estimer .ouverture-decor { background-image: url("/illustrations/rayonnage-estimer.svg"); }
  .page-licence .ouverture-decor { background-image: url("/illustrations/rayonnage-licence.svg"); }
  .page-secteurs .ouverture-decor { background-image: url("/illustrations/rayonnage-secteurs.svg"); }
  .page-marche .ouverture-decor { background-image: url("/illustrations/rayonnage-marche.svg"); }
  .page-liquidations .ouverture-decor { background-image: url("/illustrations/rayonnage-liquidations.svg"); }
}
