/* ==========================================================
   Valérie Chavanne · LegalUP Consulting — feuille de style
   1. Structure et composants (ci-dessous).
   2. Direction artistique « Article premier », en fin de fichier : elle redéfinit les variables
      et restyle les composants. Logo repris de la proposition « Diptyque ».
   Palette autorisée : noir, anthracite, ivoire, doré (le « UP »), bleu-gris. Aucun autre bleu, aucun vert.
   ========================================================== */

:root {
  --black: #111111;
  --anthracite: #2B2C2F;
  --ivory: #F3EFE6;
  --gold: #B8975A;
  --slate: #5D6670;          /* bleu-gris */

  --bg: var(--ivory);
  --bg-alt: #EAE5DA;
  --fg: var(--black);
  --fg-soft: #55565A;
  --line: rgba(17, 17, 17, 0.14);
  --accent: var(--gold);
  --contrast-bg: var(--black);
  --contrast-fg: var(--ivory);

  --font-display: Georgia, 'Times New Roman', serif;
  --font-text: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-ui: var(--font-text);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --space: clamp(72px, 9vw, 136px);
  --radius: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-text); font-size: 17px; line-height: 1.65; color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--black); }
strong { font-weight: 600; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h1, h2, h3, .statement, .quote p { overflow-wrap: break-word; }
@media (max-width: 640px) { h1, h2, h3, .statement, .quote p { hyphens: auto; } }

.up { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bg); color: var(--fg); padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }
.todo { background: #fff3c4; color: #5c4700; padding: 1px 7px; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; letter-spacing: 0; text-transform: none; vertical-align: middle; }
.mt { margin-top: 32px; }

/* ================= Boutons ================= */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; text-align: center;
  padding: 14px 24px; border: 1px solid var(--fg); border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s;
}
.btn { background: var(--fg); color: var(--bg); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--fg); background: transparent; box-shadow: inset 0 -2px 0 var(--accent); }
.more { font-family: var(--font-ui); font-weight: 500; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ================= Logo (texte) ================= */
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; flex-shrink: 0; }
.brand-mark { display: none; }
.brand-name { font-family: var(--font-display); font-size: 22px; }
.brand-firm { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft); margin-top: 4px; }

/* ================= En-tête ================= */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
.hd { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 16px var(--gutter); max-width: 1440px; margin: 0 auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; gap: 22px; }
.main-nav ul a { white-space: nowrap; font-family: var(--font-ui); font-size: 15px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav ul a:hover, .main-nav ul a.active { border-bottom-color: var(--accent); }
.main-nav .btn-rdv { padding: 11px 18px; font-size: 14px; white-space: nowrap; }
.hd-contact { display: none; } /* coordonnées dans l'en-tête (masquées dans cette direction) */
.hd-contact a, .hd-contact span { display: block; }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 110; background: var(--bg); color: var(--fg);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px; padding: 90px var(--gutter) 40px;
    visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; overflow-y: auto;
  }
  .main-nav.open { visibility: visible; opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav ul a { font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.4rem); }
  body.menu-open { overflow: hidden; }
}

/* ================= Accroche d'accueil (base, redéfinie par chaque proposition) ================= */
.hero { padding: var(--space) 0; }

/* ================= Sections ================= */
.sec { padding: var(--space) 0; }
.sec:not(.sec-alt):not(.sec-contrast) + .sec:not(.sec-alt):not(.sec-contrast):not(.cta-band) { padding-top: 0; }
.sec-alt { background: var(--bg-alt); }
.sec-contrast { background: var(--contrast-bg); color: var(--contrast-fg); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.sec-head .sec-intro { margin-top: 14px; color: var(--fg-soft); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split-aside .sec-title { position: sticky; top: 110px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.statement { font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.3; }
.lead { font-size: 1.2rem; line-height: 1.55; }
.split-main > * + * { margin-top: 28px; }

/* En-tête de page intérieure */
.page-head { padding: clamp(64px, 9vw, 140px) 0 clamp(48px, 6vw, 96px); }
.kicker { font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 20px; }
.page-head h1 { max-width: 16ch; }
.lede { max-width: 720px; margin-top: 26px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--fg-soft); }

/* Accompagnements (accueil) */
.offers { border-top: 1px solid var(--line); }
.offer > a { display: grid; grid-template-columns: 70px minmax(0, 5fr) minmax(0, 6fr) 30px; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.offer-n { font-family: var(--font-ui); font-size: 14px; color: var(--fg-soft); }
.offer-t { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.2; }
.offer-d { color: var(--fg-soft); }
.offer-go::after { content: '↗'; color: var(--accent); }
.offer > a:hover .offer-t { color: var(--accent); }

/* Cartes, étapes, faits, colonnes */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border-top: 1px solid var(--fg); padding-top: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-soft); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-ui); font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--fg-soft); }
.facts > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); font-size: 1.2rem; }
.facts dd { color: var(--fg-soft); }
.cols-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.cols-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col h3 { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--fg); }
.col p { color: var(--fg-soft); margin-bottom: 12px; font-size: 0.95rem; }
.col li { font-size: 0.95rem; padding: 7px 0; border-bottom: 1px solid var(--line); }
.checks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: 27px; width: 16px; height: 1px; background: var(--accent); }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.skill { padding: 28px 0; border-top: 1px solid var(--line); }
.skill h3 { font-size: 1.35rem; margin-bottom: 10px; }
.skill p { color: var(--fg-soft); }
.skill .texts { margin-top: 12px; font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.04em; color: var(--fg); }

/* Étiquettes, références */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { font-family: var(--font-ui); font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.refs-label { font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); }
.refs { display: flex; flex-wrap: wrap; gap: 10px 36px; font-family: var(--font-display); font-size: 1.3rem; }

/* Citation */
.quote { max-width: 980px; }
.quote p { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.22; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-family: var(--font-ui); font-size: 14px; opacity: .75; }

/* Portrait */
.portrait { background: var(--bg-alt); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sec-about .split, .bio { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }

/* Appel à l'action */
.cta-band { border-top: 1px solid var(--line); }
.cta-band h2 { max-width: 20ch; font-size: clamp(1.9rem, 4vw, 3.2rem); }
.cta-band p { max-width: 640px; margin-top: 18px; color: var(--fg-soft); }
.cta-band .actions { margin-top: 34px; }

/* Sous-offres (accueil) */
.offer-subs { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 24px 94px; border-bottom: 1px solid var(--line); font-size: 15px; }
.offer:has(.offer-subs) > a { border-bottom: 0; padding-bottom: 12px; }
.offer-subs a { color: var(--fg-soft); text-decoration-color: var(--accent); }
.offer-subs a::before { content: 'dont '; color: var(--fg-soft); }

/* L'arbre */
.tree { margin: 0 auto; max-width: 1100px; }
.tree-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tree-svg a { cursor: pointer; }
.tree-svg text { fill: var(--fg); }
.tree-svg a:hover text, .tree-svg a:focus text { fill: var(--accent); }
.tree .t-crown { font-family: var(--font-display); font-size: 38px; }
.tree .t-leaf { font-family: var(--font-display); font-size: 27px; }
.tree .t-sub { font-family: var(--font-ui); font-size: 15px; fill: var(--fg-soft); }
.tree .t-name { font-family: var(--font-display); font-size: 24px; }
.tree .t-role { font-family: var(--font-ui); font-size: 10.5px; letter-spacing: .12em; fill: var(--fg-soft); }
.tree .t-value { font-family: var(--font-ui); font-size: 14px; letter-spacing: .2em; font-weight: 600; fill: var(--fg-soft); }
.tree .t-trunk { stroke: var(--fg); stroke-width: 14; stroke-linecap: round; fill: none; }
.tree .t-branch { stroke: var(--fg); stroke-width: 5; stroke-linecap: round; fill: none; }
.tree .t-root { stroke: var(--fg-soft); stroke-width: 3; stroke-linecap: round; fill: none; }
.tree .t-dot { fill: var(--accent); }
.tree .t-rule, .tree .t-horizon { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.tree .t-box { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.sec-alt .tree .t-box { fill: var(--bg-alt); }
.tree-list { display: none; }
@media (max-width: 720px) {
  .tree-svg { display: none; }
  .tree-list { display: block; border-left: 3px solid var(--fg); padding-left: 20px; }
  .tl-crown { font-family: var(--font-display); font-size: 1.4rem; }
  .tl-branches { margin: 16px 0; }
  .tl-branches li { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tl-branches a { display: block; font-family: var(--font-display); font-size: 1.15rem; text-decoration: none; }
  .tl-branches a::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
  .tl-branches a.tl-sub { font-family: var(--font-ui); font-size: 14px; color: var(--fg-soft); padding: 4px 0 0 18px; }
  .tl-branches a.tl-sub::before { display: none; }
  .tl-trunk strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
  .tl-trunk span { font-family: var(--font-ui); font-size: 13px; color: var(--fg-soft); }
  .tl-values { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--accent); font-family: var(--font-ui); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-soft); }
}

/* Valeurs (racines) */
.values { display: flex; flex-wrap: wrap; gap: 10px 32px; font-family: var(--font-ui); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; }
.values li { padding-top: 10px; border-top: 2px solid var(--accent); }

/* Prestations détaillées (éthique) */
.presta { counter-reset: presta; }
.presta > article { counter-increment: presta; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px clamp(24px, 4vw, 64px); padding: 34px 0; border-top: 1px solid var(--line); }
.presta h3 { font-size: 1.45rem; }
.presta h3::before { content: counter(presta, decimal-leading-zero) ' · '; color: var(--accent); font-family: var(--font-ui); font-size: .8em; }
.presta .motto { margin-top: 8px; font-style: italic; color: var(--fg-soft); }
.presta .body > * + * { margin-top: 10px; }
.presta .body strong { font-family: var(--font-ui); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

/* Tableau comparatif */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; border-bottom: 2px solid var(--fg); }
.compare tbody th { font-family: var(--font-ui); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); font-weight: 600; width: 18%; }

/* Publications */
.pubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.pub img { width: 100%; aspect-ratio: 745 / 1053; object-fit: cover; border: 1px solid var(--line); background: var(--bg-alt); }
.pub .pub-k { margin-top: 14px; font-family: var(--font-ui); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pub h3 { margin-top: 6px; font-size: 1.1rem; }
.pub p { margin-top: 6px; font-size: 14px; color: var(--fg-soft); }
.chronicles li { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 960px) { .pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .presta > article { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .offer-subs { padding-left: 64px; } }

/* ================= Formulaires ================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.coords .item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.coords .label { display: block; font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 4px; }
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label, .form legend { display: block; font-family: var(--font-ui); font-size: 14px; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; padding: 10px 0; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.form select option { color: #111; background: #fff; }
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.form fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.form fieldset legend { width: 100%; }
.form .choice { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; cursor: pointer; }
.form input[type="radio"], .form input[type="checkbox"] { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; }
.form .consent label { font-size: 13px; color: var(--fg-soft); margin: 0; }
.form .btn { justify-self: start; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; font-size: 15px; padding: 12px 16px; border-left: 3px solid; }
.form-status.visible { display: block; }
.form-status.success { border-color: var(--accent); background: rgba(184, 151, 90, .12); }
.form-status.error { border-color: #8c2f2f; background: rgba(140, 47, 47, .08); }

.rdv-dialog { margin: auto; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; padding: clamp(24px, 4vw, 44px); background: var(--bg); color: var(--fg); border-radius: var(--radius); }
.rdv-dialog::backdrop { background: rgba(10, 10, 10, .62); }
.rdv-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.rdv-head h2 { font-size: 1.8rem; }
.rdv-close { font-size: 30px; line-height: 1; padding: 0 4px; }
.rdv-intro { color: var(--fg-soft); font-size: 15px; margin-top: -6px; }

/* ================= Pied de page ================= */
.site-footer { background: var(--contrast-bg); color: var(--contrast-fg); padding: clamp(56px, 7vw, 96px) 0 28px; font-size: 15px; }
.site-footer .brand-firm { color: inherit; opacity: .7; }
.ft-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; }
.ft-tag { margin-top: 18px; max-width: 30ch; opacity: .75; }
.ft-offers, .ft-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.ft-rdv { margin-top: 10px; border-bottom: 1px solid var(--accent); }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; opacity: .7; }

/* ================= Apparition ================= */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ================= Adaptations ================= */
@media (max-width: 960px) {
  .split, .sec-about .split, .bio, .contact-grid { grid-template-columns: 1fr; }
  .split-aside .sec-title { position: static; }
  .cards, .cols-list, .cols-list.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer > a { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 16px; }
  .offer-d { grid-column: 2; }
  .offer-go { display: none; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .cards-2, .cols-list, .cols-list.cols-3, .skills { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 6px; }
  .form .row { grid-template-columns: 1fr; }
  .ft-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Direction « Article premier »
   Le code civil rencontre le code source : ivoire clair, encre anthracite,
   bleu-gris « système », or pour le caret et le UP.
   Martian Mono (navigation, libellés, numéros) · Newsreader (lecture)
   ========================================================== */

@font-face {
  font-family: 'Martian Mono';
  src: url('/fonts/martian-mono.woff2') format('woff2');
  font-weight: 100 800; font-stretch: 75% 112.5%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 200 800; font-style: italic; font-display: swap;
}

@font-face { font-family: 'Gilda Display'; src: url('/fonts/gilda-display.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Albert Sans'; src: url('/fonts/albert-sans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@keyframes art-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes art-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

:root {
  --ivory: #F5F2EA;
  --gold: #B48C47;
  --gold-ink: #86662F;          /* or lisible en petit corps sur ivoire */
  --slate: #5B6773;             /* bleu-gris « système » */
  --slate-soft: #8A939C;
  --ink: #222428;
  --navy: #3E4A57;              /* ardoise marine : les touches de couleur */
  --navy-deep: #2E3742;
  --navy-hover: #33404C;
  --navy-line: rgba(62, 74, 87, 0.32);
  --navy-tint: rgba(62, 74, 87, 0.075);

  --bg: var(--ivory);
  --bg-alt: #EDE9DF;
  --fg: var(--ink);
  --fg-soft: #55585E;
  --line: rgba(34, 36, 40, 0.15);
  --line-strong: rgba(34, 36, 40, 0.55);
  --accent: var(--gold);
  --contrast-bg: #222428;
  --contrast-fg: #F1EDE3;

  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-text: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 0px;
  --wrap: 1240px;
  --art-gut: 76px;               /* gouttière des numéros de ligne */
  --space: clamp(72px, 8vw, 128px);
}
:root body {
  font-size: 18.5px; line-height: 1.62; background: var(--bg); color: var(--fg);
  font-feature-settings: 'kern', 'liga', 'onum';
  font-variant-numeric: oldstyle-nums proportional-nums;
}
:root ::selection { background: rgba(62, 74, 87, 0.2); color: var(--ink); }
:root :focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
:root h1,
:root h2,
:root h3 { font-weight: 400; letter-spacing: -0.012em; font-variant-numeric: lining-nums; }
:root h1 { font-weight: 350; letter-spacing: -0.022em; }
:root em { font-style: italic; }
:root strong { font-weight: 600; }
:root a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
:root .up { color: var(--gold); }
:root .todo { font-family: var(--font-ui); font-size: 11px; background: #F1E3BE; color: #5c4700; }

/* ----- Boutons : des commandes sobres, en mono ----- */
:root .btn,
:root .btn-ghost {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 450; font-stretch: 92%; letter-spacing: 0.01em;
  padding: 16px 22px 15px; border-radius: 0; gap: 12px;
}
:root .btn { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
:root .btn::before { content: '^'; color: var(--gold); font-size: 13px; transform: translateY(2px); transition: transform .25s; }
:root .btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); }
:root .btn:hover::before { transform: translateY(-1px); }
:root .btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
:root .btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-tint); box-shadow: inset 0 -2px 0 var(--gold); }
:root .more {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 450; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
}
:root .more::before { content: 'cf. '; color: var(--slate); }
:root .more:hover { color: var(--navy); background: var(--navy-tint); }

/* ----- Logo (repris du Diptyque) : le nom sur deux lignes, filet doré vertical ----- */
:root .brand {
  display: grid; grid-template-columns: 1px auto; grid-template-rows: auto auto; column-gap: 16px; align-items: start; line-height: 1;
}
:root .brand-mark {
  display: block; grid-row: 1 / 3; width: 1px; height: 100%; background: var(--gold); transform-origin: top;
  animation: art-draw 1.2s cubic-bezier(.6, 0, .2, 1) both; transition: width .25s;
}
:root .brand-name { font-family: 'Gilda Display', Georgia, serif; font-size: 26px; font-weight: 400; line-height: 1; width: min-content; letter-spacing: 0; }
:root .brand-firm {
  font-family: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif; font-size: 9.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--slate); margin-top: 9px;
}
:root .brand-firm .up { color: var(--gold); }
:root .brand:hover .brand-mark { width: 3px; }

/* ----- En-tête ----- */
:root .site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
:root .hd { max-width: calc(var(--wrap) + 80px); padding-top: 18px; padding-bottom: 16px; }
@media (min-width: 1181px) {
  :root .main-nav { gap: 30px; }
  :root .main-nav ul { gap: 4px; }
  :root .main-nav ul a {
    position: relative; display: block; font-family: var(--font-ui); font-size: 11.5px; font-weight: 400; font-stretch: 84%;
    letter-spacing: 0; padding: 8px 8px; border: 0; color: var(--fg); transition: color .2s;
  }
  :root .main-nav ul a::after {
    content: '^'; position: absolute; left: 50%; bottom: -10px; transform: translate(-50%, 4px);
    font-size: 12px; color: var(--slate-soft); opacity: 0; transition: opacity .2s, transform .2s;
  }
  :root .main-nav ul a:hover { color: var(--navy); }
  :root .main-nav ul a:hover::after { opacity: 1; transform: translate(-50%, 0); }
  :root .main-nav ul a.active { color: var(--navy); font-weight: 500; }
  :root .main-nav ul a.active::after { opacity: 1; transform: translate(-50%, 0); color: var(--gold); font-weight: 600; }
  :root .main-nav .btn-rdv { padding: 12px 16px 11px; font-size: 11.5px; font-stretch: 84%; }
}
@media (min-width: 1181px) and (max-width: 1320px) {
  :root .main-nav { gap: 18px; }
  :root .main-nav ul { gap: 0; }
  :root .main-nav ul a { padding: 8px 6px; font-stretch: 75%; }
  :root .main-nav .btn-rdv::before { display: none; }
}

/* Menu mobile : un sommaire numéroté comme un éditeur */
@media (max-width: 1180px) {
  :root .main-nav {
    background: var(--bg); justify-content: flex-start; align-items: stretch; gap: 0;
    padding: 108px var(--gutter) 96px;
  }
  :root .main-nav::before {
    content: 'Sommaire'; display: block; font-family: var(--font-ui); font-size: 11px; color: var(--navy); font-weight: 500;
    padding: 0 0 14px var(--art-gut); border-bottom: 1px solid var(--navy-line); margin-bottom: 8px;
  }
  :root .main-nav ul {
    counter-reset: artnav; gap: 0; padding-left: var(--art-gut);
    background: linear-gradient(var(--navy-line), var(--navy-line)) no-repeat calc(var(--art-gut) - 22px) 0 / 1px 100%;
  }
  :root .main-nav ul li { counter-increment: artnav; }
  :root .main-nav ul a {
    position: relative; display: block; padding: 9px 0; border: 0;
    font-family: var(--font-display); font-weight: 350; font-size: clamp(1.55rem, 6.4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.015em;
  }
  :root .main-nav ul a::before {
    content: counter(artnav); position: absolute; right: calc(100% + 40px); top: 50%; transform: translateY(-50%);
    font-family: var(--font-ui); font-size: 11px; color: var(--slate-soft); letter-spacing: 0;
  }
  :root .main-nav ul a.active { color: var(--navy); }
  :root .main-nav ul a.active::before { content: '^'; color: var(--gold); font-size: 15px; }
  :root .main-nav .btn-rdv { margin: 34px 0 0 var(--art-gut); align-self: flex-start; }
  :root .nav-toggle span { height: 1px; left: 10px; right: 10px; }
  :root .nav-toggle span:nth-child(2) { right: 18px; }
  :root .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
}

/* ==========================================================
   Accroche — Art. 1er
   ========================================================== */
:root .art-hero { padding: clamp(40px, 6.5vh, 84px) 0 clamp(64px, 9vh, 112px); border-bottom: 1px solid var(--line); overflow: hidden; }
:root .art-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: clamp(40px, 6vw, 96px); align-items: start; }
:root .art-editor {
  counter-reset: artln; position: relative; padding-left: var(--art-gut);
  background: linear-gradient(var(--navy-line), var(--navy-line)) no-repeat calc(var(--art-gut) - 26px) 0 / 1px 100%;
}
:root .art-ln { --art-mid: 14px; position: relative; display: block; counter-increment: artln; }
:root .art-ln::before {
  content: counter(artln); position: absolute; right: calc(100% + 44px); top: var(--art-mid); transform: translateY(-50%);
  font-family: var(--font-ui); font-size: 10.5px; font-weight: 400; font-style: normal; line-height: 1; letter-spacing: 0;
  color: var(--slate-soft); font-variant-numeric: tabular-nums; text-align: right; min-width: 2ch;
}
:root .art-blank { height: clamp(18px, 2.8vh, 30px); --art-mid: 50%; }

:root .art-path {
  --art-mid: 10px; display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--font-ui); font-size: 11px; line-height: 20px;
  color: var(--slate); font-stretch: 92%;
}
:root .art-path span + span::before { content: '›'; margin: 0 10px; color: var(--slate-soft); }
:root .art-path sup, :root .art-artno sup { font-size: 0.68em; vertical-align: 0.45em; line-height: 0; }

:root .art-artno {
  --art-mid: 13px; font-family: var(--font-ui); font-size: 12.5px; line-height: 26px; font-weight: 500; color: var(--ivory);
  display: table; padding: 0 10px; background: var(--navy); margin-bottom: 14px;
}
:root .art-artno sup { color: var(--gold); }

:root .art-h1 { font-size: inherit; line-height: inherit; max-width: none; }
:root .art-h1-a {
  --art-fs: clamp(2.7rem, 5.6vw, 5.4rem);
  --art-mid: calc(var(--art-fs) * 0.52);
  font-size: var(--art-fs); line-height: 1.04; font-weight: 340; letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 72;
}
:root .art-h1-b {
  --art-fs: clamp(1.45rem, 2.35vw, 2.3rem);
  --art-mid: calc(var(--art-fs) * 0.64);
  font-size: var(--art-fs); line-height: 1.28; font-weight: 340; letter-spacing: -0.012em; color: #3A3D42;
  margin-top: clamp(14px, 2vh, 22px); max-width: 30ch;
  font-variation-settings: 'opsz' 36;
}
/* Ligne courante, comme dans un éditeur */
:root .art-current::after {
  content: ''; position: absolute; z-index: -1; top: -8px; bottom: -8px; left: calc(-1 * var(--art-gut)); right: -24px;
  background: linear-gradient(90deg, rgba(62, 74, 87, 0.11), rgba(62, 74, 87, 0.04) 70%, rgba(62, 74, 87, 0));
  border-left: 2px solid var(--gold);
}
:root .art-editor { isolation: isolate; }
:root .art-current::before { color: var(--gold-ink); font-weight: 600; }
:root .art-cursor {
  display: inline-block; width: 2px; height: 1.02em; margin-left: 0.12em; vertical-align: -0.16em;
  background: var(--gold); animation: art-blink 1.1s steps(1) infinite;
}

:root .art-al {
  --art-mid: 15px; font-size: 1.08rem; line-height: 1.62; color: var(--fg-soft); max-width: 54ch;
}
:root .art-al + .art-al { margin-top: 8px; }
:root .art-renvoi { font-style: italic; }
:root .art-renvoi a { color: var(--navy); text-decoration-thickness: 1px; font-weight: 500; }
:root .art-renvoi a:hover { background: var(--navy-tint); }
:root .art-note {
  font-family: var(--font-ui); font-size: 10px; font-style: normal; vertical-align: 0.7em; line-height: 0; margin-left: 1px;
  color: var(--gold-ink); text-decoration: none; padding: 0 1px;
}
:root .art-note:hover { background: var(--gold); color: var(--ink); }
:root .art-actions { --art-mid: 25px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Marge annotée */
:root .art-margin { padding-top: 34px; font-family: var(--font-ui); font-size: 10.5px; line-height: 1.6; color: var(--slate); }
:root .art-fig { position: relative; border: 1px solid var(--line); background: var(--bg-alt); }
:root .art-fig img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.04); }
:root .art-fig figcaption {
  position: absolute; left: -1px; bottom: -1px; background: var(--bg); padding: 6px 10px 5px 0; border-top: 1px solid var(--line);
  font-size: 10px; color: var(--ivory); background: var(--navy); padding: 6px 10px 5px; border-top: 0; letter-spacing: 0;
}
:root .art-notes { margin-top: 30px; }
:root .art-notes > div { padding: 11px 0 12px; border-top: 1px solid var(--line); }
:root .art-notes dt { color: var(--fg); font-weight: 500; margin-bottom: 3px; }
:root .art-notes dt:first-child::after { content: ''; }
:root .art-notes > div:first-child { border-top: 2px solid var(--navy); }
:root .art-notes > div:first-child dt::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--gold); margin-right: 8px; vertical-align: 1px; }
:root .art-notes dd { color: var(--slate); font-stretch: 92%; }
:root .art-fn { color: var(--gold-ink); vertical-align: 0.4em; font-size: 9px; }

/* ==========================================================
   Sections numérotées comme des articles
   ========================================================== */
:root main { counter-reset: artart; }
:root body.page-accueil main { counter-reset: artart 1; }
:root main > .sec:not(.cta-band):not(.sec-quote) { counter-increment: artart; }
:root main > .sec::before {
  content: 'Art.\00a0' counter(artart); display: block; box-sizing: border-box; max-width: var(--wrap); margin: 0 auto clamp(40px, 5vw, 68px);
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 12px); height: 26px;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 500; line-height: 26px; color: var(--ivory); letter-spacing: 0.01em;
  background:
    linear-gradient(var(--gold), var(--gold)) no-repeat var(--gutter) 0 / 3px 26px,
    linear-gradient(var(--navy), var(--navy)) no-repeat var(--gutter) 0 / var(--art-chip, 76px) 26px,
    linear-gradient(var(--navy-line), var(--navy-line)) no-repeat var(--gutter) 100% / calc(100% - 2 * var(--gutter)) 1px;
}
:root main > .page-head + .sec::before { content: 'Art.\00a0' '1er'; --art-chip: 88px; }
:root main > .sec-quote::before {
  content: 'Exposé des motifs'; color: var(--gold); padding-left: var(--gutter);
  background: linear-gradient(rgba(241, 237, 227, .2), rgba(241, 237, 227, .2)) no-repeat var(--gutter) 100% / calc(100% - 2 * var(--gutter)) 1px;
}
:root main > .cta-band::before { content: 'Dispositions finales'; --art-chip: 186px; }
:root .sec { padding: var(--space) 0; }
:root .sec:not(.sec-alt):not(.sec-contrast) + .sec:not(.sec-alt):not(.sec-contrast):not(.cta-band) { padding-top: 0; }
:root .sec-alt { background: var(--bg-alt); }
:root .sec-contrast {
  background: var(--navy); color: var(--contrast-fg);
  /* Encre claire sur ardoise marine : tous les composants suivent */
  --fg: #F5F2EA; --ink: #F5F2EA; --fg-soft: rgba(245, 242, 234, 0.76); --slate: #B3BCC5; --slate-soft: #9AA4AE; --gold-ink: var(--gold);
  --line: rgba(245, 242, 234, 0.18); --line-strong: rgba(245, 242, 234, 0.34); --navy-line: rgba(245, 242, 234, 0.22); --navy-tint: rgba(245, 242, 234, 0.07);
}
:root main > .sec-contrast:not(.sec-quote)::before {
  background:
    linear-gradient(var(--gold), var(--gold)) no-repeat var(--gutter) 0 / 3px 26px,
    linear-gradient(var(--navy-deep), var(--navy-deep)) no-repeat var(--gutter) 0 / var(--art-chip, 76px) 26px,
    linear-gradient(rgba(245, 242, 234, .22), rgba(245, 242, 234, .22)) no-repeat var(--gutter) 100% / calc(100% - 2 * var(--gutter)) 1px;
}
:root .sec-contrast + .sec:not(.sec-alt):not(.sec-contrast) { border-top: 0; }
:root .cta-band { border-top: 0; background: linear-gradient(180deg, var(--bg) 0, #E9EAE6 100%); border-bottom: 1px solid var(--navy-line); }

:root .sec-title { font-size: clamp(1.75rem, 2.9vw, 2.55rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 380; }
:root .sec-head { max-width: 780px; }
:root .sec-head .sec-intro { font-size: 1.08rem; font-style: italic; color: var(--fg-soft); margin-top: 16px; }
:root .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 104px); }
:root .split-aside .sec-title { top: 120px; max-width: 13ch; }
:root .statement {
  font-family: var(--font-display); font-size: clamp(1.55rem, 2.55vw, 2.2rem); line-height: 1.26; font-weight: 350; letter-spacing: -0.014em;
  font-variation-settings: 'opsz' 36;
}
:root .lead { font-size: 1.28rem; line-height: 1.5; font-variation-settings: 'opsz' 24; }
:root .split-main > * + * { margin-top: 32px; }

/* Alinéas numérotés en marge */
:root .prose { counter-reset: artal; }
:root .prose > p:not(.statement):not(.refs-label):not(:has(.more)):not(:has(.todo)) { position: relative; counter-increment: artal; }
@media (min-width: 961px) {
  :root .prose > p:not(.statement):not(.refs-label):not(:has(.more)):not(:has(.todo))::before {
    content: 'al.\00a0' counter(artal); position: absolute; right: calc(100% + 28px); top: 0.52em;
    font-family: var(--font-ui); font-size: 10px; line-height: 1; color: var(--slate-soft); white-space: nowrap; font-style: normal;
  }
}

/* En-tête de page intérieure : l'éditeur, encore */
:root .page-head { padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
:root .page-head .wrap {
  counter-reset: artln; position: relative; isolation: isolate;
  padding-left: calc(var(--gutter) + var(--art-gut));
  background: linear-gradient(var(--navy-line), var(--navy-line)) no-repeat calc(var(--gutter) + var(--art-gut) - 26px) 0 / 1px 100%;
}
:root .page-head .wrap > * { position: relative; counter-increment: artln; }
:root .page-head .wrap > *::before {
  content: counter(artln); position: absolute; right: calc(100% + 44px); top: var(--art-mid, 14px); transform: translateY(-50%);
  font-family: var(--font-ui); font-size: 10.5px; font-weight: 400; font-style: normal; line-height: 1; letter-spacing: 0; text-transform: none;
  color: var(--slate-soft); font-variant-numeric: tabular-nums;
}
:root .kicker {
  --art-mid: 10px; font-family: var(--font-ui); font-size: 11px; line-height: 20px; letter-spacing: 0.01em; text-transform: none;
  color: var(--navy); font-weight: 500; margin-bottom: 26px;
}
:root .page-head .kicker::before { color: var(--gold-ink); font-weight: 600; }
:root .kicker::after { content: ''; display: inline-block; width: 2px; height: 13px; margin-left: 8px; vertical-align: -2px; background: var(--gold); animation: art-blink 1.1s steps(1) infinite; }
:root .page-head h1 {
  --art-fs: clamp(2.5rem, 5.4vw, 4.9rem);
  --art-mid: calc(var(--art-fs) * 0.54);
  font-size: var(--art-fs); line-height: 1.04; letter-spacing: -0.03em; font-weight: 340; max-width: 17ch;
  font-variation-settings: 'opsz' 72;
}
:root .page-head h1 .todo { font-size: 11px; letter-spacing: 0; vertical-align: 0.9em; }
:root .lede { --art-mid: 17px; font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--fg-soft); max-width: 60ch; margin-top: 30px; }

/* Accompagnements : énumération 1°, 2°… et chemin en marge */
:root .offers { counter-reset: artoff; border-top: 2px solid var(--navy); }
:root .offer { counter-increment: artoff; }
:root .offer > a {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: 'n t d' 'n t p';
  gap: 4px 40px; align-items: baseline; padding: 30px 0 28px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .25s;
}
:root .offer-n { grid-area: n; font-size: 0; }
:root .offer-n::before { content: counter(artoff) '°'; font-family: var(--font-ui); font-size: 13px; color: var(--gold-ink); font-weight: 500; }
:root .offer-t { grid-area: t; font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.15; letter-spacing: -0.015em; font-weight: 380; transition: color .2s; }
:root .offer-d { grid-area: d; color: var(--fg-soft); font-size: 1.02rem; }
:root .offer-go { display: none; }
:root .offer > a::after {
  content: attr(href); grid-area: p; margin-top: 10px; font-family: var(--font-ui); font-size: 10.5px; color: var(--slate-soft);
  transition: color .2s;
}
:root .offer > a::before { content: ''; position: absolute; left: -16px; top: -1px; bottom: -1px; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
:root .offer > a:hover::before { transform: scaleY(1); }
:root .offer > a:hover { background: linear-gradient(90deg, var(--navy-tint), rgba(62, 74, 87, 0) 85%); }
:root .offer > a:hover .offer-t { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 6px; }
:root .offer > a:hover::after { color: var(--navy); }
:root .offer:has(.offer-subs) > a { border-bottom: 0; padding-bottom: 12px; }
:root .offer-subs { padding: 0 0 26px calc(76px + 40px); font-family: var(--font-display); font-size: 1.08rem; gap: 4px 28px; }
:root .offer-subs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
:root .offer-subs a::before { content: 'dont\00a0'; font-family: var(--font-ui); font-size: 11px; letter-spacing: .02em; color: var(--slate); text-decoration: none; display: inline-block; margin-right: 4px; }
:root .offer-subs a:hover { color: var(--navy); }

/* a), b), c) */
:root .cards { counter-reset: artcard; gap: 0; }
:root .card { counter-increment: artcard; border-top: 0; border-left: 1px solid var(--line); padding: 4px clamp(20px, 2.4vw, 36px) 8px; }
:root .cards > .card:first-child { border-left: 0; padding-left: 0; }
:root .card h3 { font-size: 1.32rem; line-height: 1.22; font-weight: 420; margin-bottom: 12px; }
:root .card h3::before {
  content: counter(artcard, lower-alpha) ')'; display: block; margin-bottom: 14px;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 500; color: var(--gold-ink); letter-spacing: 0;
}
:root .card p { color: var(--fg-soft); font-size: 1rem; }
:root .cards-2 > .card:nth-child(odd) { border-left: 0; padding-left: 0; }
:root .cards-2 > .card:nth-child(n+3) { margin-top: 36px; }

/* I., II., III. */
:root .steps { counter-reset: artstep; gap: 0 clamp(24px, 3vw, 44px); }
:root .steps li { counter-increment: artstep; border-top: 2px solid var(--navy); padding-top: 18px; padding-bottom: 28px; }
:root .steps li::before { content: counter(artstep, upper-roman) '.'; font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--gold-ink); margin-bottom: 22px; }
:root .steps h3 { font-size: 1.3rem; font-weight: 420; line-height: 1.2; margin-bottom: 10px; }
:root .steps p { font-size: 1rem; }

/* Définitions : « … » */
:root .facts > div { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px; padding: 24px 0 26px; border-top: 1px solid var(--line); }
:root .facts > div:last-child { border-bottom: 1px solid var(--line); }
:root .facts dt { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.3; }
:root .facts dt::before { content: '«\00a0'; color: var(--gold); font-style: normal; }
:root .facts dt::after { content: '\00a0»'; color: var(--gold); font-style: normal; }
:root .facts dd { color: var(--fg-soft); }

/* Colonnes § */
:root .cols-list { counter-reset: artcol; gap: 0; }
:root .col { counter-increment: artcol; padding: 0 clamp(16px, 1.8vw, 26px); border-left: 1px solid var(--line); }
:root .col:first-child { border-left: 0; padding-left: 0; }
:root .col h3 { font-size: 1.28rem; font-weight: 420; border-bottom: 2px solid var(--navy); padding-bottom: 14px; }
:root .col h3::before { content: '§\00a0' counter(artcol); display: block; margin-bottom: 12px; font-family: var(--font-ui); font-size: 11px; font-weight: 500; color: var(--gold-ink); }
:root .col p { font-style: italic; font-size: 0.98rem; }
:root .col li { font-size: 0.97rem; line-height: 1.5; padding: 9px 0 10px; }

/* Engagements : tirets de liste légale */
:root .checks { border-top: 2px solid var(--navy); }
:root .checks li { padding: 18px 0 18px 44px; font-size: 1.22rem; line-height: 1.4; }
:root .checks li::before { content: '—'; top: 18px; width: auto; height: auto; background: none; font-family: var(--font-ui); font-size: 14px; line-height: 1.7rem; color: var(--gold-ink); }

/* Compétences : Art. 2-1, 2-2… */
:root .skills { counter-reset: artsk; gap: 0 clamp(32px, 5vw, 80px); }
:root .skill { counter-increment: artsk; border-top: 1px solid var(--navy-line); padding: 26px 0 34px; }
:root .skill h3 { font-size: 1.45rem; font-weight: 400; line-height: 1.2; }
:root .skill h3::before { content: counter(artart) '-' counter(artsk); display: block; margin-bottom: 14px; font-family: var(--font-ui); font-size: 11px; font-weight: 500; color: var(--gold-ink); }
:root .skill p { font-size: 1.02rem; }
:root .skill .texts { font-family: var(--font-ui); font-size: 10.5px; letter-spacing: 0; color: var(--slate); margin-top: 16px; }
:root .skill .texts { color: var(--navy); }
:root .skill .texts::before { content: 'Réf.\00a0'; color: var(--gold-ink); }

/* Étiquettes : jetons */
:root .tags { gap: 8px; }
:root .tags li {
  font-family: var(--font-ui); font-size: 11.5px; font-stretch: 92%; line-height: 1.3; padding: 8px 12px 7px; border: 1px solid var(--line-strong);
  border-radius: 0; color: var(--fg); background: transparent; transition: border-color .2s, background .2s;
}
:root .tags li:hover { border-color: var(--navy); background: var(--navy); color: var(--ivory); }

/* Références */
:root .refs-label { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.01em; text-transform: none; color: var(--slate); }
:root .refs { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-style: italic; gap: 6px 0; }
:root .refs li + li::before { content: '·'; font-style: normal; color: var(--gold); margin: 0 18px; }

/* Citation : exposé des motifs */
:root .quote { max-width: 1040px; position: relative; padding-left: var(--art-gut); }
:root .quote p {
  font-family: var(--font-display); font-style: italic; font-weight: 320; font-size: clamp(1.7rem, 3.6vw, 3.05rem); line-height: 1.2; letter-spacing: -0.018em;
  font-variation-settings: 'opsz' 60;
}
:root .quote p::before { content: '«'; position: absolute; left: 0; font-style: normal; color: var(--gold); font-size: 1.1em; line-height: 1.05; }
:root .quote cite { font-family: var(--font-ui); font-size: 11.5px; opacity: 1; color: #C3CBD3; margin-top: 34px; }
:root .quote cite a { color: var(--contrast-fg); text-decoration-color: var(--gold); }

/* Portrait */
:root .portrait { position: relative; background: var(--bg-alt); border: 1px solid var(--line); }
:root .portrait img { filter: grayscale(1) contrast(1.03); mix-blend-mode: multiply; }
:root .portrait::after {
  content: 'Annexe — portrait'; position: absolute; left: -1px; bottom: -1px; padding: 6px 12px 5px; background: var(--navy);
  font-family: var(--font-ui); font-size: 10px; color: var(--ivory);
}
:root .sec-about .prose > * + * { margin-top: 1.2em; }
:root .sec-about .sec-title { margin-bottom: 0.4em; }

/* Appel final */
:root .cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 340; max-width: 19ch; font-variation-settings: 'opsz' 72; }
:root .cta-band p { font-size: 1.1rem; font-style: italic; color: var(--fg-soft); margin-top: 22px; }
:root .cta-band .actions { margin-top: 38px; gap: 12px; }
:root .cta-band .actions .todo { margin-left: 6px; }

/* Pages simples (mentions, confidentialité) */
:root .wrap.narrow.prose h2 { font-size: 1.55rem; font-weight: 420; }

/* ==========================================================
   Formulaires
   ========================================================== */
:root .coords .item { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
:root .coords .item:first-child { border-top: 2px solid var(--navy); }
:root .coords .label { font-family: var(--font-ui); font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--slate); margin-bottom: 6px; }
:root .coords a { text-decoration-color: var(--gold); }
:root .form { gap: 24px; }
:root .form .row { gap: 24px; }
:root .form label,
:root .form legend { font-family: var(--font-ui); font-size: 11px; color: var(--slate); margin-bottom: 4px; letter-spacing: 0; }
:root .form input[type="text"],
:root .form input[type="email"],
:root .form input[type="tel"],
:root .form select,
:root .form textarea {
  font-family: var(--font-text); font-size: 18px; color: var(--fg); border-bottom: 1px solid var(--line-strong); padding: 8px 0 9px;
}
:root .form textarea { border: 1px solid var(--line-strong); padding: 12px 14px; background: rgba(255, 255, 255, 0.35); }
:root .form input:focus,
:root .form select:focus,
:root .form textarea:focus { border-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
:root .form .choice { font-family: var(--font-text); font-size: 17px; color: var(--fg); }
:root .form .consent label { font-family: var(--font-text); font-size: 14px; color: var(--fg-soft); }
:root .form input[type="radio"],
:root .form input[type="checkbox"] { accent-color: var(--navy); }
:root .form-status { font-family: var(--font-ui); font-size: 12px; }

:root .rdv-dialog { background: var(--bg); border: 0; border-top: 4px solid var(--navy); padding: clamp(24px, 4vw, 48px); box-shadow: 14px 14px 0 rgba(62, 74, 87, 0.18); }
:root .rdv-dialog::backdrop { background: rgba(46, 55, 66, 0.62); }
:root .rdv-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 4px; }
:root .rdv-head h2 { font-size: 2rem; font-weight: 360; letter-spacing: -0.02em; }
:root .rdv-head h2::before { content: 'Art. R.\00a0 1'; display: table; font-family: var(--font-ui); font-size: 11px; line-height: 22px; padding: 0 9px; color: var(--ivory); background: var(--navy); box-shadow: inset 3px 0 0 var(--gold); letter-spacing: 0; margin-bottom: 14px; }
:root .rdv-close { font-family: var(--font-ui); font-size: 22px; font-weight: 300; color: var(--slate); }
:root .rdv-close:hover { color: var(--ink); }
:root .rdv-intro { font-style: italic; margin-top: 8px; }

/* ==========================================================
   Pied de page : table des matières
   ========================================================== */
:root .site-footer { background: var(--navy-deep); border-top: 3px solid var(--gold); color: var(--contrast-fg); font-size: 16px; padding-top: clamp(64px, 8vw, 104px); }
:root .site-footer .brand-name { font-size: 36px; }
:root .site-footer .brand-firm { color: #B4BDC6; opacity: 1; font-size: 10.5px; margin-top: 14px; }
:root .ft-tag { font-style: italic; opacity: 1; color: #C9C5BB; margin-top: 22px; }
:root .ft-offers { counter-reset: artft; gap: 0; }
:root .ft-offers a { counter-increment: artft; display: grid; grid-template-columns: 34px 1fr; padding: 7px 0; width: 100%; border-bottom: 1px solid rgba(241, 237, 227, 0.1); }
:root .ft-offers a::before { content: counter(artft) '°'; font-family: var(--font-ui); font-size: 11px; color: var(--gold); padding-top: 5px; }
:root .ft-contact { font-family: var(--font-ui); font-size: 11px; gap: 12px; min-width: 0; }
:root .ft-contact a { overflow-wrap: anywhere; }
:root .ft-contact .todo { font-size: 10px; }
:root .site-footer a:hover { color: var(--gold); }
:root .ft-rdv { border-bottom-color: var(--gold); padding-bottom: 3px; }
:root .ft-rdv::before { content: '^\00a0'; color: var(--gold); }
:root .ft-bottom { font-family: var(--font-ui); font-size: 10.5px; opacity: 1; color: #A3ADB7; border-top-color: rgba(241, 237, 227, 0.14); }
:root .ft-bottom > span:first-child::after { content: '\00a0\00a0·\00a0\00a0Version en vigueur'; }

/* ==========================================================
   Adaptations
   ========================================================== */
@media (max-width: 1100px) {
  :root .art-hero-grid { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 960px) {
  :root .split, :root .sec-about .split, :root .bio { grid-template-columns: 1fr; }
  :root .split-aside .sec-title { position: static; }
  :root { --art-gut: 52px; }
  :root .art-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  :root .art-margin { padding-top: 0; padding-left: var(--art-gut); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; }
  :root .art-notes { margin-top: 0; }
  :root .art-ln::before, :root .page-head .wrap > *::before { right: calc(100% + 30px); }
  :root .art-editor { background-position: calc(var(--art-gut) - 18px) 0; }
  :root .page-head .wrap { background-position: calc(var(--gutter) + var(--art-gut) - 18px) 0; }
  :root .offer > a { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: 'n t' 'n d' 'n p'; gap: 8px 12px; }
  :root .offer-subs { padding-left: 60px; }
  :root .cards { grid-template-columns: 1fr 1fr; }
  :root .card, :root .cards > .card:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 28px; }
  :root .cards:not(.cards-2) { gap: 0 32px; }
  :root .cards-2 > .card:nth-child(n+3) { margin-top: 0; }
  :root .cols-list { gap: 40px 32px; }
  :root .col, :root .col:first-child { border-left: 0; padding: 0; }
}
@media (max-width: 640px) {
  :root { --art-gut: 36px; --gutter: 20px; }
  :root body { font-size: 17px; }
  :root .brand-name { font-size: 22px; }
  :root .brand-firm { font-size: 8.5px; margin-top: 7px; letter-spacing: .2em; }
  :root .hd { padding-top: 14px; padding-bottom: 12px; }
  :root .art-hero { padding-top: 28px; }
  :root .art-ln::before, :root .page-head .wrap > *::before { right: calc(100% + 22px); font-size: 9.5px; }
  :root .main-nav ul a::before { right: calc(100% + 24px); }
  :root .main-nav ul { background-position: calc(var(--art-gut) - 12px) 0; }
  :root .art-editor { background-position: calc(var(--art-gut) - 12px) 0; }
  :root .page-head .wrap { background-position: calc(var(--gutter) + var(--art-gut) - 12px) 0; }
  :root .art-path { font-size: 10px; }
  :root .art-path span:first-child { flex-basis: 100%; }
  :root .art-path span:nth-child(2)::before { display: none; }
  :root .art-h1-a { --art-fs: clamp(2.3rem, 10.4vw, 3rem); }
  :root .art-h1-b { --art-fs: 1.38rem; }
  :root .art-current::after { right: -12px; }
  :root .art-al { font-size: 1.02rem; }
  :root .art-actions { --art-mid: 24px; }
  :root .art-actions .btn, :root .art-actions .btn-ghost { width: 100%; }
  :root .art-margin { padding-left: 0; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; }
  :root .art-notes > div:nth-child(n+3) { display: none; }
  :root .art-fig figcaption { display: none; }
  :root .page-head h1 { --art-fs: clamp(2.1rem, 9.6vw, 2.9rem); }
  :root .cards, :root .cards:not(.cards-2) { grid-template-columns: 1fr; }
  :root .steps { grid-template-columns: 1fr; }
  :root .facts > div { grid-template-columns: 1fr; gap: 8px; }
  :root .refs li + li::before { margin: 0 12px; }
  :root .quote { padding-left: 28px; }
  :root .checks li { padding-left: 34px; font-size: 1.12rem; }
  :root .cta-band .actions .btn, :root .cta-band .actions .btn-ghost { width: 100%; }
}

/* Annotation de marge des pages intérieures */
@media (min-width: 1101px) {
  :root .page-head .wrap::after {
    content: 'Version en vigueur' '\A' 'Valérie Chavanne, avocate' '\A' 'LegalUP Consulting'; white-space: pre;
    position: absolute; right: var(--gutter); top: 4px; width: 230px; padding-top: 12px; border-top: 1px solid var(--line);
    font-family: var(--font-ui); font-size: 10.5px; line-height: 1.75; color: var(--slate);
  }
  :root .page-head h1 { max-width: 15ch; }
  :root .lede { max-width: 56ch; }
}
@media (max-width: 640px) {
  :root .prose > p, :root .card p, :root .offer-d { hyphens: auto; }
}
@media (min-width: 961px) {
  :root .ft-cols { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); }
}
