/* =========================================================
   AGEB, expert en bâtiment : feuille de style
   Tout le thème passe par des variables CSS. Pendant la phase de maquette, le moteur
   (src/theme/engine.js) les recalcule à partir d'une combinaison du dictionnaire de Sanzo Wada
   et les pose sur <html>, avec trois attributs : data-fond, data-angles, data-decor.
   Les valeurs ci-dessous sont celles du thème par défaut (elles s'appliquent sans JavaScript).
   ========================================================= */

/* ---------- 1. Thème ---------- */

/* theme:debut (généré par tools/sync_theme.js : ne pas éditer à la main)
   Wada n° 318 (Light Brownish Olive #806e4b, Blackish Olive #42533e, Dusky Green #004f46, Deep Slate Green #112f2c), fond palette,
   polices Source Serif 4 et Source Sans 3. */
:root {
  color-scheme: light;
  --paper: #b7cbb2;
  --surface: #f0faee;
  --accent: #806e4b;
  --accent-2: #004f46;
  --select: #9ee0d4;
  --on-select: #041a18;
  --photo-ink: #112f2c;
  --shadow: #041a18;
  --blend: multiply;
  --ok: #25744f;
  --ok-bg: #ddedde;
  --err: #b0402f;
  --err-bg: #ede9dc;
  --p-bg: #b7cbb2;
  --p-ink: #041a18;
  --p-muted: #3e534a;
  --p-line: #9baf9a;
  --p-line-2: #5d7164;
  --p-accent-ink: #604e2c;
  --p-seal: #7c6a48;
  --p-btn: #112f2c;
  --p-btn-hover: #042320;
  --p-on-btn: #f0f7ee;
  --p-photo: #b7cbb2;
  --b-bg: #004f46;
  --b-ink: #f0f7ee;
  --b-muted: #a0bbb2;
  --b-line: #2e655b;
  --b-line-2: #75998f;
  --b-accent-ink: #c6b38e;
  --b-seal: #a2906b;
  --b-btn: #f0f7ee;
  --b-btn-hover: #ffffff;
  --b-on-btn: #004f46;
  --b-photo: #d4e3d0;
  --s-bg: #af9c78;
  --s-ink: #011413;
  --s-muted: #2f362b;
  --s-line: #948769;
  --s-line-2: #50503f;
  --s-accent-ink: #003b34;
  --s-seal: #004f46;
  --s-btn: #112f2c;
  --s-btn-hover: #042320;
  --s-on-btn: #f0f7ee;
  --s-photo: #af9c78;
  --d-bg: #112f2c;
  --d-ink: #f0f7ee;
  --d-muted: #9aa9a2;
  --d-line: #2e4844;
  --d-line-2: #71847f;
  --d-accent-ink: #a3916c;
  --d-seal: #84724e;
  --d-btn: #f0f7ee;
  --d-btn-hover: #ffffff;
  --d-on-btn: #112f2c;
  --d-photo: #d4e3d0;
  --ff-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --ff-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --ff-label: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --ff-num: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --fw-display: 500;
  --ls-display: -0.015em;
  --lh-display: 1.14;
  --display-scale: 0.97;
  --fs-body: 1.0869rem;
  --lh-body: 1.68;
  --fw-strong: 600;
  --fw-btn: 500;
  --label-size: 0.72rem;
  --label-ls: 0.14em;
  --label-fw: 500;
  --label-case: uppercase;
  --em-style: italic;
  --radius: 2px;
  --radius-btn: 2px;
  --radius-lg: 3px;
  --rule: 1px;
}
/* theme:fin */

:root {
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8.5vw, 128px);
  --ff-brand: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --header-h: 78px;
}

/* ---------- 2. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  padding-bottom: var(--atelier-h, 0px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: calc(clamp(2.2rem, 1.2rem + 3.6vw, 4rem) * var(--display-scale)); }
h2 { font-size: calc(clamp(1.75rem, 1.15rem + 2.1vw, 2.8rem) * var(--display-scale)); }
h3 { font-size: calc(1.28rem * var(--display-scale)); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }
h1 em, h2 em { font-style: var(--em-style); color: var(--accent-ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.22em; }
strong, b { font-weight: var(--fw-strong); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--select); color: var(--on-select); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--btn); color: var(--on-btn); padding: 0.7em 1.1em; border-radius: var(--radius-btn); text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* transition douce au changement de thème (classe posée par l'outil de maquette) */
html.theme-anim body, html.theme-anim .site-header, html.theme-anim .deep, html.theme-anim .band,
html.theme-anim .site-footer, html.theme-anim .btn, html.theme-anim .cell, html.theme-anim .fiche, html.theme-anim .portrait {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ---------- 3. Mise en page ---------- */

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.62); }

/* Contextes de couleur : le papier (par défaut), deux bandes et la bande profonde. Chaque contexte redéfinit
   les mêmes variables (fond, texte, filets, accent, bouton) : les composants n'ont pas à savoir où ils sont posés. */
:root {
  --bg: var(--p-bg); --ink: var(--p-ink); --muted: var(--p-muted); --line: var(--p-line); --line-2: var(--p-line-2);
  --accent-ink: var(--p-accent-ink); --seal: var(--p-seal); --btn: var(--p-btn); --btn-hover: var(--p-btn-hover); --on-btn: var(--p-on-btn); --photo: var(--p-photo);
}
.band, .cell--autre {
  --bg: var(--b-bg); --ink: var(--b-ink); --muted: var(--b-muted); --line: var(--b-line); --line-2: var(--b-line-2);
  --accent-ink: var(--b-accent-ink); --seal: var(--b-seal); --btn: var(--b-btn); --btn-hover: var(--b-btn-hover); --on-btn: var(--b-on-btn); --photo: var(--b-photo);
}
.band--soft {
  --bg: var(--s-bg); --ink: var(--s-ink); --muted: var(--s-muted); --line: var(--s-line); --line-2: var(--s-line-2);
  --accent-ink: var(--s-accent-ink); --seal: var(--s-seal); --btn: var(--s-btn); --btn-hover: var(--s-btn-hover); --on-btn: var(--s-on-btn); --photo: var(--s-photo);
}
.deep, .site-footer {
  --bg: var(--d-bg); --ink: var(--d-ink); --muted: var(--d-muted); --line: var(--d-line); --line-2: var(--d-line-2);
  --accent-ink: var(--d-accent-ink); --seal: var(--d-seal); --btn: var(--d-btn); --btn-hover: var(--d-btn-hover); --on-btn: var(--d-on-btn); --photo: var(--d-photo);
}
/* les cartes reviennent au papier, où qu'elles soient posées */
.drop, .cartouche, .cert, .callout, .fiche, .aside-card, .panel, .contact-card, .carte {
  --bg: var(--surface); --ink: var(--p-ink); --muted: var(--p-muted); --line: var(--p-line); --line-2: var(--p-line-2);
  --accent-ink: var(--p-accent-ink); --seal: var(--p-seal); --btn: var(--p-btn); --btn-hover: var(--p-btn-hover); --on-btn: var(--p-on-btn); --photo: var(--p-photo);
  color: var(--ink);
}
.band, .band--soft, .deep, .site-footer, .cell--autre { background: var(--bg); color: var(--ink); }

.label {
  font-family: var(--ff-label);
  font-size: var(--label-size);
  letter-spacing: var(--label-ls);
  text-transform: var(--label-case);
  font-weight: var(--label-fw);
  color: var(--muted);
  line-height: 1.4;
}
.lead { font-size: 1.18em; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* En-tête de section : indice, intitulé, puis un trait de cote */
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-index {
  display: flex; align-items: center; gap: 0.9em; margin: 0 0 clamp(20px, 3vw, 36px);
  font-family: var(--ff-label); font-size: var(--label-size); letter-spacing: var(--label-ls);
  text-transform: var(--label-case); font-weight: var(--label-fw); color: var(--muted); line-height: 1;
}
.sec-index b { font-family: var(--ff-num); font-weight: var(--fw-display); color: var(--accent-ink); font-size: 1.25em; letter-spacing: 0.04em; }
.sec-index::after {
  content: ""; flex: 1; height: 9px;
  background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat;
  border-right: 1px solid var(--line-2); opacity: 0.6;
}
.sec-head h2 { max-width: 22ch; margin-bottom: 0; }
.sec-head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.sec-head--split .sec-index { grid-column: 1 / -1; }
.sec-head--split .lead { margin: 0; }

/* Trait de cote avec libellé : |------ texte ------| */
.cote { display: flex; align-items: center; gap: 1em; margin: 0; font-family: var(--ff-label); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: var(--label-case); font-weight: var(--label-fw); color: var(--muted); white-space: nowrap; }
.cote::before, .cote::after { content: ""; flex: 1; min-width: 18px; height: 9px; background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat; }
.cote::before { border-left: 1px solid var(--line-2); }
.cote::after { border-right: 1px solid var(--line-2); }

/* Réglet : graduation en pied de bloc */
.reglet {
  height: 14px; opacity: 0.5;
  background:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10px) left bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 50px) left bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 100px) left bottom / 100% 14px no-repeat;
}

/* ---------- 4. Boutons, liens, icônes ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  font-family: var(--ff-body); font-weight: var(--fw-btn); font-size: 0.98rem; line-height: 1.2; letter-spacing: 0.01em;
  padding: 1em 1.55em; border: 1px solid transparent; border-radius: var(--radius-btn);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary, .btn--light { background: var(--btn); color: var(--on-btn); }
.btn--primary:hover, .btn--light:hover { background: var(--btn-hover); }
.btn--ghost, .btn--line-light { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover, .btn--line-light:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn--lg { padding: 1.15em 1.8em; font-size: 1.03rem; }
.btn--block { width: 100%; }

.arr { width: 1.15em; height: 0.6em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
a:hover > .arr, .btn:hover .arr, .cell:hover .arr { transform: translateX(4px); }
.ico { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.tick { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.more { display: inline-flex; align-items: center; gap: 0.6em; font-weight: var(--fw-btn); font-size: 0.95rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 0.2em; transition: border-color 0.18s ease; }
.more:hover { border-color: var(--ink); }

/* pictogrammes au trait */
.picto { width: 68px; height: 68px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.picto .a { stroke: var(--seal); }

/* logotype : maison au trait + lettrage géométrique, constant quelle que soit l'ambiance */
.mark { height: 44px; width: auto; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; overflow: visible; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-text b { display: block; font-family: var(--ff-brand); font-weight: 700; font-size: 1.24rem; letter-spacing: 0.26em; line-height: 1; margin-right: -0.26em; }
.brand-text span { display: block; font-family: var(--ff-brand); font-weight: 400; font-size: 0.64rem; letter-spacing: 0.235em; line-height: 1; margin-top: 0.52em; white-space: nowrap; text-transform: none; }

/* sceau : les quatre lettres en carré */
.seal { width: 64px; height: 64px; color: var(--seal); transform: rotate(-4deg); }
.seal rect { fill: none; stroke: currentColor; stroke-width: 2.6; }
.seal-grid { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.5; }
.seal text { font-family: var(--ff-brand); font-weight: 700; font-size: 20px; fill: currentColor; text-anchor: middle; }

/* ---------- 5. En-tête du site ---------- */

.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px) saturate(140%); }
}
.bar { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 26px); height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.55em 0.8em; font-size: 0.94rem; text-decoration: none; color: var(--ink); border-radius: var(--radius); position: relative; white-space: nowrap; }
.nav > a::after, .nav-item > a::after { content: ""; position: absolute; left: 0.8em; right: 0.8em; bottom: 0.25em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease; }
.nav > a:hover::after, .nav-item > a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--accent-ink); }
.chev { width: 0.6em; height: 0.38em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-item { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: -14px; width: 340px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--shadow) 35%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.nav .drop a { display: block; padding: 0.65em 0.85em; border-radius: var(--radius); white-space: normal; }
.nav .drop a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.drop b { display: block; font-weight: var(--fw-btn); font-size: 0.95rem; line-height: 1.3; }
.drop span { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.35; margin-top: 0.15em; }
.bar-tel { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--ff-label); font-size: 0.92rem; font-weight: var(--fw-btn); letter-spacing: 0.02em; text-decoration: none; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-tel:hover { color: var(--accent-ink); }
.bar-cta { padding: 0.8em 1.25em; font-size: 0.92rem; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; color: var(--ink); }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform 0.22s ease, top 0.22s ease; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100vh - var(--header-h)); overflow: auto; padding-block: 10px 24px; }
.mobile-menu a { display: block; text-decoration: none; padding: 0.72em 0; }
.mm-main { font-family: var(--ff-display); font-size: 1.3rem; border-top: 1px solid var(--line); }
.mm-main:first-child { border-top: 0; }
.mm-sub { padding: 0.45em 0 0.45em 1.1em !important; color: var(--muted); font-size: 0.98rem; }

/* barre d'action fixe sur mobile */
.actionbar { display: none; }

/* ---------- 6. Accueil : premier écran ---------- */

.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(44px, 6.5vw, 96px) clamp(48px, 6vw, 88px); }
.hero h1 { font-size: calc(clamp(2.5rem, 1rem + 4.9vw, 4.85rem) * var(--display-scale)); margin-bottom: 0.42em; }
.h1-kicker { display: block; margin-bottom: 1.7rem; font-family: var(--ff-label); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: var(--label-case); font-weight: var(--label-fw); color: var(--muted); line-height: 1.5; text-wrap: balance; }
.hero .lead { font-size: 1.2em; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.6rem; margin-top: 2.2rem; }
.hero-tel { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--ff-label); font-size: 1.1rem; font-weight: var(--fw-btn); letter-spacing: 0.02em; text-decoration: none; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line-2); padding-bottom: 0.25em; }
.hero-tel:hover { border-color: var(--ink); }
.hero-proofs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; padding: 0; margin: 2.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.hero-proofs li { display: inline-flex; align-items: center; gap: 0.55em; }
.hero-proofs .tick { color: var(--accent-ink); }

/* planche : portrait cadré par des repères de coupe, sceau, cartouche */
.plate { position: relative; max-width: 460px; justify-self: end; width: 100%; }
.plate-house { position: absolute; z-index: 0; right: -9%; top: -11%; height: 78%; width: auto; color: var(--line-2); opacity: 0.55; pointer-events: none; stroke-width: 1; }
.plate-frame { position: relative; z-index: 1; padding: 14px; }
.plate-frame::before, .plate-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--line-2); pointer-events: none; }
.plate-frame::before { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.plate-frame::after { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
/* bichromie : dans le groupe <picture>, l'image s'éclaircit sur la couleur profonde (ombres teintées),
   puis le groupe se multiplie sur le papier (le fond blanc de la photo disparaît dans la page) */
/* le coin est arrondi par clip-path : avec border-radius et overflow, le mélange laissait un liseré clair sur les aplats */
.portrait { position: relative; display: block; margin: 0; background: var(--photo); clip-path: inset(0 round var(--radius-lg)); isolation: isolate; aspect-ratio: 4 / 5; }
.portrait picture { display: block; width: 100%; height: 100%; background: linear-gradient(var(--photo-ink), var(--photo-ink)) center / calc(100% - 2px) calc(100% - 2px) no-repeat; mix-blend-mode: multiply; overflow: hidden; }
/* l'image déborde de 3 px puis est rognée : sans cela, un liseré sombre peut apparaître sur les bords aux zooms fractionnaires */
.portrait img { width: calc(100% + 6px); height: calc(100% + 6px); max-width: none; margin: -3px; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) brightness(1.07) contrast(1.06); mix-blend-mode: screen; }
.plate .seal { position: absolute; z-index: 2; left: -10px; bottom: 26px; width: 74px; height: 74px; background: var(--bg); border-radius: 8px; }
.cartouche { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; margin: 12px 14px 0; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius); }
.cartouche > div { padding: 0.7rem 0.9rem 0.75rem; border-bottom: 1px solid var(--line); min-width: 0; }
.cartouche > div:nth-child(odd) { border-right: 1px solid var(--line); }
.cartouche > div:nth-last-child(-n+2) { border-bottom: 0; }
.cartouche dt { font-family: var(--ff-label); font-size: 0.64rem; letter-spacing: var(--label-ls); text-transform: var(--label-case); font-weight: var(--label-fw); color: var(--muted); line-height: 1.3; margin-bottom: 0.3em; }
.cartouche dd { margin: 0; font-size: 0.88rem; line-height: 1.35; font-weight: var(--fw-btn); }

/* ---------- 7. Grille des situations (façon shoji : cellules à filets partagés) ---------- */

.shoji { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule) solid var(--line-2); border-left: 1px solid var(--line); }
.cell { position: relative; display: flex; flex-direction: column; gap: 0.4rem; padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2vw, 28px) clamp(22px, 2.4vw, 30px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); background: transparent; transition: background-color 0.22s ease; min-height: 100%; }
.cell:hover { background: var(--surface); }
.cell .picto { margin-bottom: 1.1rem; }
.cell-n { position: absolute; top: clamp(18px, 2vw, 26px); right: clamp(18px, 2vw, 26px); font-family: var(--ff-num); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em; }
.cell h3 { margin: 0 0 0.15em; }
.cell p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.cell .cell-more { margin-top: auto; padding-top: 1.3rem; display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.9rem; font-weight: var(--fw-btn); color: var(--ink); }
.cell--autre { justify-content: center; background: var(--bg); }
.cell--autre:hover { background: var(--bg); box-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--ink) 6%, transparent); }
.cell--autre h3 { font-size: calc(1.45rem * var(--display-scale)); }

/* ---------- 8. Méthode : étapes sur une ligne de cote ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); counter-reset: etape; }
.steps li { position: relative; padding: 1.9rem clamp(14px, 1.6vw, 26px) 0 0; }
.steps li::before { content: ""; position: absolute; left: 0; top: -6px; width: 1px; height: 11px; background: var(--muted); }
.steps li:last-child::after { content: ""; position: absolute; right: 0; top: -6px; width: 1px; height: 11px; background: var(--muted); }
.step-n { display: block; font-family: var(--ff-num); font-size: calc(2.3rem * var(--display-scale)); line-height: 1; color: var(--accent-ink); margin-bottom: 1.1rem; font-weight: var(--fw-display); }
.steps h3 { font-size: calc(1.2rem * var(--display-scale)); margin-bottom: 0.5em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.steps-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(36px, 5vw, 60px); }
.steps-foot p { margin: 0; color: var(--muted); max-width: 56ch; }

/* ---------- 9. Engagements ---------- */

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.values--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value { border-top: var(--rule) solid var(--ink); padding-top: 1.3rem; }
.value .label { display: block; margin-bottom: 0.9rem; color: var(--accent-ink); }
.value h3 { margin-bottom: 0.5em; }
.value p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- 10. L'expert ---------- */

.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-media { position: relative; max-width: 420px; }
.about-media .seal { position: absolute; right: -18px; bottom: 30px; width: 82px; height: 82px; background: var(--bg); border-radius: 8px; z-index: 2; }
.about h2 { margin-bottom: 0.35em; }
.about .cote { margin: 2rem 0; max-width: 520px; }
.signature { font-family: var(--ff-display); font-size: calc(1.35rem * var(--display-scale)); font-style: var(--em-style); color: var(--accent-ink); margin: 1.6rem 0 0; }
.certs { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; padding: 0; list-style: none; }
.cert { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 1.1rem 0.7rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.cert img { width: 52px; height: 52px; object-fit: contain; flex: none; background: #fff; border-radius: 3px; mix-blend-mode: var(--blend); }
.cert b { display: block; font-size: 0.95rem; line-height: 1.25; }
.cert span { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }

/* ---------- 11. Tarifs ---------- */

.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { caption-side: top; text-align: left; margin-bottom: 1rem; }
.price-table th, .price-table td { padding: 1.05rem 1.2rem 1.05rem 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.price-table th:last-child, .price-table td:last-child { padding-right: 0; }
.price-table thead th { font-family: var(--ff-label); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: var(--label-case); font-weight: var(--label-fw); color: var(--muted); border-bottom: var(--rule) solid var(--ink); padding-block: 0 0.8rem; }
.price-table .svc { font-weight: var(--fw-btn); }
.price-table .svc small { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; line-height: 1.4; margin-top: 0.15em; }
.price-table .price { font-family: var(--ff-display); font-size: calc(1.45rem * var(--display-scale)); line-height: 1.1; white-space: nowrap; }
.price-table .price small { display: block; font-family: var(--ff-body); font-size: 0.8rem; color: var(--muted); margin-top: 0.35em; letter-spacing: 0; }
.price-table .opt { color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table--compact th, .price-table--compact td { padding-block: 0.72rem; }
.price-table--compact .price { font-family: var(--ff-body); font-size: 1rem; font-weight: var(--fw-btn); }
.price-note { color: var(--muted); font-size: 0.92rem; max-width: 76ch; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--seal); background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 1.8rem 0; }
.callout p:last-child { margin-bottom: 0; }
.tarif-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* ---------- 12. Fiches de dossier ---------- */

.fiches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); }
.fiche { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 30px); position: relative; }
.fiche-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.fiche h3 { margin-bottom: 1rem; }
.fiche dl { margin: 0; display: grid; gap: 0.9rem; }
.fiche dt { font-family: var(--ff-label); font-size: 0.66rem; letter-spacing: var(--label-ls); text-transform: var(--label-case); font-weight: var(--label-fw); color: var(--accent-ink); margin-bottom: 0.2em; }
.fiche dd { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* ---------- 13. Secteur et carte ---------- */

.zone { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.carte { width: 100%; height: auto; overflow: visible; }
.carte-voisins path { fill: none; stroke: var(--line-2); stroke-width: 0.7; opacity: 0.55; }
.carte-fond { fill: var(--surface); stroke: none; }
.carte-hachure { stroke: var(--accent); stroke-width: 1; }
.carte-trame { fill: url(#hachure); stroke: none; opacity: 0.6; }
.carte-contour { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.carte text { font-family: var(--ff-label); }
.carte-dept { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--ink); font-weight: var(--fw-strong); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.carte-dept tspan { font-weight: 400; }
.carte-voisin { font-size: 8.5px; fill: var(--muted); letter-spacing: 0.08em; }
.carte-mer { font-size: 8.5px; fill: var(--muted); letter-spacing: 0.36em; font-style: italic; }
.carte-point { fill: var(--ink); }
.carte-ville { font-size: 9.5px; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }
.carte-ville--siege { font-weight: var(--fw-strong); font-size: 11px; }
.carte-siege { fill: var(--btn); }
.carte-siege-halo { fill: none; stroke: var(--btn); stroke-width: 1; }
.carte-echelle path, .carte-nord path { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.carte-echelle text, .carte-nord text { font-size: 8px; fill: var(--muted); }
.zone-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.zone-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.zone-list span { color: var(--muted); font-size: 0.92rem; text-align: right; }

/* ---------- 14. Questions fréquentes ---------- */

.faq { border-top: var(--rule) solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-family: var(--ff-display); font-size: calc(1.22rem * var(--display-scale)); line-height: 1.3; font-weight: var(--fw-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; align-self: center; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq .answer { padding: 0 0 1.5rem; max-width: 72ch; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--ink); }
.faq-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-split .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-split .sec-head h2 { margin-bottom: 0.6em; }

/* ---------- 15. Appel à l'action ---------- */

.cta { position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.cta h2 { font-size: calc(clamp(2rem, 1.2rem + 3vw, 3.5rem) * var(--display-scale)); max-width: 16ch; margin-bottom: 0.4em; }
.cta p { color: var(--muted); max-width: 50ch; margin: 0; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.cta-tel { font-family: var(--ff-display); font-size: calc(clamp(1.8rem, 1.2rem + 2vw, 2.7rem) * var(--display-scale)); line-height: 1.1; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cta-tel:hover { color: var(--accent-ink); }
.cta-house { position: absolute; right: -4%; bottom: -34%; height: 150%; width: auto; color: var(--line-2); opacity: 0.35; pointer-events: none; stroke-width: 1; }
.cta .wrap { position: relative; }

/* ---------- 16. Pied de page ---------- */

.site-footer { color: var(--muted); font-size: 0.93rem; padding-block: clamp(48px, 6vw, 80px) 28px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1.2fr 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 0.24em 0; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0 0 0.7em; }
.site-footer .brand--footer { display: inline-flex; color: var(--ink); margin-bottom: 1.4rem; padding: 0; }
.footer-baseline { font-family: var(--ff-display); font-style: var(--em-style); font-size: calc(1.25rem * var(--display-scale)); color: var(--ink); line-height: 1.3; }
.footer-brand p { max-width: 34ch; }
.footer-title { font-family: var(--ff-label); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: var(--label-case); font-weight: var(--label-fw); color: var(--ink); margin-bottom: 1.1rem !important; }
.footer-tel { font-family: var(--ff-display); font-size: calc(1.45rem * var(--display-scale)); color: var(--ink) !important; font-variant-numeric: tabular-nums; line-height: 1.2; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.84rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }
.footer-legal a { padding: 0; }

/* ---------- 17. Pages intérieures ---------- */

.page-hero { border-bottom: 1px solid var(--line); background: var(--paper); }
.page-hero .wrap { padding-top: clamp(22px, 2.6vw, 34px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: end; padding-block: clamp(20px, 3vw, 44px) clamp(40px, 5vw, 72px); }
.page-hero h1 { max-width: 21ch; margin-bottom: 0.42em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .picto { width: clamp(96px, 13vw, 168px); height: clamp(96px, 13vw, 168px); stroke-width: 1.1; }
.picto-frame { position: relative; padding: 18px; }
.picto-frame::before, .picto-frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--line-2); }
.picto-frame::before { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.picto-frame::after { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.crumb { display: flex; flex-wrap: wrap; gap: 0.3em 0.7em; align-items: center; margin: 0; padding: 0; list-style: none; font-family: var(--ff-label); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: var(--label-case); font-weight: var(--label-fw); color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb li + li::before { content: "/"; margin-right: 0.7em; opacity: 0.5; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 28px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(22px, 2.4vw, 30px); }
.aside-card .label { display: block; margin-bottom: 0.8rem; }
.aside-card .aside-price { font-family: var(--ff-display); font-size: calc(2.1rem * var(--display-scale)); line-height: 1.05; margin: 0 0 0.45em; color: var(--ink); }
.aside-card .aside-price small { display: block; font-family: var(--ff-body); font-size: 0.85rem; color: var(--muted); margin-top: 0.5em; }
.aside-card p { font-size: 0.93rem; color: var(--muted); }
.aside-card .btn { margin-top: 0.6rem; }
.aside-tel { display: flex; align-items: center; justify-content: center; gap: 0.55em; margin-top: 1rem; font-family: var(--ff-label); font-weight: var(--fw-btn); text-decoration: none; font-variant-numeric: tabular-nums; }
.aside-list { list-style: none; padding: 1.1rem 0 0; margin: 1.3rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.55rem; font-size: 0.9rem; color: var(--muted); }
.aside-list li { display: flex; gap: 0.6em; align-items: baseline; }
.aside-list .tick { color: var(--accent-ink); position: relative; top: 0.15em; }

/* texte courant */
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: calc(clamp(1.5rem, 1.15rem + 1.2vw, 2.05rem) * var(--display-scale)); margin: 2.2em 0 0.7em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 1.7em; margin-bottom: 0.55em; }
.prose ul li::before { content: ""; position: absolute; left: 0.1em; top: 0.72em; width: 0.85em; height: 1px; background: var(--seal); }
.prose ol { padding-left: 1.3em; }
.prose ol li { margin-bottom: 0.55em; padding-left: 0.3em; }
.prose ol li::marker { font-family: var(--ff-num); color: var(--accent-ink); }
.prose--legal { font-size: 0.96em; }
.prose--legal h2 { font-size: calc(1.3rem * var(--display-scale)); margin-top: 2em; }

.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 0.7rem; }
.checks li { display: flex; gap: 0.8em; align-items: baseline; padding: 0 !important; margin: 0 !important; }
.checks li::before { display: none; }
.checks .tick { color: var(--accent-ink); position: relative; top: 0.18em; }

.numbered, .prose .numbered { list-style: none; padding: 0; margin: 0 0 1.4em; counter-reset: num; border-top: 1px solid var(--line); }
.numbered li { counter-increment: num; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0.4rem; padding: 1.05rem 0 !important; margin: 0 !important; border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(num, decimal-leading-zero); position: static !important; width: auto !important; height: auto !important; background: none !important; font-family: var(--ff-num); color: var(--accent-ink); font-size: 0.95rem; letter-spacing: 0.04em; padding-top: 0.1em; }
.numbered b { display: block; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); margin: 1.8rem 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(20px, 2.2vw, 28px); }
.panel h3 { margin-top: 0 !important; }
.panel > :last-child { margin-bottom: 0; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule) solid var(--line-2); border-left: 1px solid var(--line); }

.mission-list { border-top: var(--rule) solid var(--ink); }
.mission-row { display: grid; grid-template-columns: 4rem 88px minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 36px); align-items: center; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color 0.2s ease; }
.mission-row:hover { background: var(--surface); }
.mission-row .n { font-family: var(--ff-num); color: var(--accent-ink); font-size: 0.95rem; letter-spacing: 0.05em; padding-left: 0.3rem; }
.mission-row h2 { font-size: calc(clamp(1.3rem, 1rem + 1vw, 1.75rem) * var(--display-scale)); margin: 0; }
.mission-row p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.mission-row .picto { width: 72px; height: 72px; }
.mission-row .arr { margin-right: 0.6rem; }

/* ---------- 18. Formulaire ---------- */

.form-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.field { margin-bottom: 1.15rem; }
.field label, .field legend { display: block; font-weight: var(--fw-btn); font-size: 0.92rem; margin-bottom: 0.45rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--p-ink); background: var(--surface);
  padding: 0.85em 1em; border: 1px solid var(--p-line-2); border-radius: var(--radius); appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23888' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; background-size: 0.7em; padding-right: 2.6em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--p-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 55%, transparent); }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field ::placeholder { color: var(--p-muted); opacity: 1; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.field--check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.field--check input { width: 1.15rem; height: 1.15rem; flex: none; margin: 0.2em 0 0; padding: 0; appearance: auto; accent-color: var(--btn); }
.field--check label { font-weight: 400; margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; padding: 0.95em 1.2em; border-radius: var(--radius); border: 1px solid var(--line-2); margin-bottom: 1.2rem; font-size: 0.96rem; }
.form-msg.show { display: block; }
.form-msg.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.form-msg.err { border-color: var(--err); background: var(--err-bg); color: var(--err); }
.form-note { font-size: 0.86rem; color: var(--muted); margin-top: 1rem; }
.contact-card { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(22px, 2.6vw, 32px); }
.contact-card h2 { font-size: calc(1.5rem * var(--display-scale)); }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contact-lines li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.contact-lines .label { display: block; margin-bottom: 0.25rem; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: var(--accent-ink); }
.contact-lines .big { font-family: var(--ff-display); font-size: calc(1.6rem * var(--display-scale)); line-height: 1.15; font-variant-numeric: tabular-nums; }
.next-steps { list-style: none; padding: 0; margin: 1.6rem 0 0; counter-reset: suite; display: grid; gap: 0.9rem; }
.next-steps li { counter-increment: suite; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); font-size: 0.94rem; color: var(--muted); }
.next-steps li::before { content: counter(suite, decimal-leading-zero); font-family: var(--ff-num); color: var(--accent-ink); font-size: 0.85rem; padding-top: 0.15em; }

/* ---------- 19. Articles ---------- */

.article-list { border-top: var(--rule) solid var(--ink); }
.article-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 44px); align-items: baseline; padding: clamp(22px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.article-row h2 { font-size: calc(clamp(1.3rem, 1rem + 1vw, 1.7rem) * var(--display-scale)); margin: 0 0 0.35em; }
.article-row p { margin: 0; color: var(--muted); }
.article-row:hover h2 { color: var(--accent-ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 0 0 2.2rem; padding: 0 0 1.2rem; border-bottom: 1px solid var(--line); list-style: none; }

/* ---------- 20. Variantes de forme : angles et décor ---------- */

/* angles ronds : des cartes détachées plutôt que des filets partagés */
[data-angles="rond"] .shoji, [data-angles="rond"] .related { border: 0; gap: 14px; }
[data-angles="rond"] .cell { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
[data-angles="rond"] .cell:hover { border-color: var(--line-2); }
[data-angles="rond"] .cell--autre { background: var(--bg); border-color: transparent; }
[data-angles="rond"] .plate-frame::before, [data-angles="rond"] .plate-frame::after,
[data-angles="rond"] .picto-frame::before, [data-angles="rond"] .picto-frame::after { display: none; }
[data-angles="rond"] .plate-frame { padding: 0; }
[data-angles="rond"] .cartouche { margin-inline: 0; overflow: hidden; }
[data-angles="rond"] .seal rect { rx: 14px; }
[data-angles="doux"] .seal rect { rx: 6px; }
[data-angles="rond"] .field input, [data-angles="rond"] .field select, [data-angles="rond"] .field textarea { border-radius: 12px; }

/* décor épuré : sans les signes du relevé (sceau, réglet, traits de cote, repères de coupe) */
[data-decor="epure"] .seal, [data-decor="epure"] .reglet, [data-decor="epure"] .plate-house, [data-decor="epure"] .cta-house { display: none; }
[data-decor="epure"] .plate-frame::before, [data-decor="epure"] .plate-frame::after,
[data-decor="epure"] .picto-frame::before, [data-decor="epure"] .picto-frame::after,
[data-decor="epure"] .sec-index::after, [data-decor="epure"] .cote::before, [data-decor="epure"] .cote::after,
[data-decor="epure"] .steps li::before, [data-decor="epure"] .steps li:last-child::after { display: none; }
[data-decor="epure"] .plate-frame { padding: 0; }
[data-decor="epure"] .cartouche { margin-inline: 0; }

/* décor quadrillé : papier millimétré derrière le premier écran et les en-têtes de page */
[data-decor="quadrille"] .hero, [data-decor="quadrille"] .page-hero {
  background-image:
    radial-gradient(120% 95% at 20% 45%, var(--paper) 26%, transparent 80%),
    linear-gradient(color-mix(in srgb, var(--line-2) 26%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line-2) 26%, transparent) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  background-position: center, center top, center top;
}

/* ---------- 21. Repères de contenu en attente (outil de maquette) ---------- */

html[data-reperes="1"] [data-attente] { outline: 1.5px dashed #b4532a; outline-offset: 6px; position: relative; }
html[data-reperes="1"] [data-attente]::before {
  content: "À fournir : " attr(data-attente);
  position: absolute; left: 0; top: -6px; right: auto; bottom: auto; height: auto; border: 0; opacity: 1; transform: translateY(-100%); z-index: 20;
  font: 600 11px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; white-space: normal; text-align: left;
  width: max-content; max-width: min(380px, 78vw);
  background: #b4532a; color: #fff; padding: 4px 9px; border-radius: 4px;
}

/* ---------- 22. Adaptation aux écrans ---------- */

@media (max-width: 1180px) {
  .bar-tel span { display: none; }
  .bar-tel { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--radius-btn); }
  .bar-tel .ico { width: 1.25em; height: 1.25em; }
}
@media (max-width: 1020px) {
  .nav, .bar-cta { display: none; }
  .bar-tel { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
  .shoji { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; row-gap: 2.4rem; }
  .steps li { border-top: 1px solid var(--line-2); }
  .steps li:last-child::after { display: none; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiches { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .with-aside { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .mission-row { grid-template-columns: 2.6rem 64px minmax(0, 1fr) auto; }
  .mission-row p { grid-column: 3 / 4; }
  .mission-row h2 { grid-column: 3 / 4; }
  .mission-row .picto { width: 56px; height: 56px; grid-row: span 2; }
  .mission-row .n { grid-row: span 2; }
  .mission-row .arr { grid-row: 1 / span 2; grid-column: 4; }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .about, .zone, .cta-grid, .form-grid, .tarif-split, .faq-split, .sec-head--split { grid-template-columns: 1fr; }
  .faq-split .sec-head { position: static; margin-bottom: 1.5rem; }
  .sec-head--split .lead { margin-top: 1.2rem; }
  .plate { justify-self: start; max-width: 400px; }
  .plate-house { display: none; }
  .about-media { max-width: 340px; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero .picto-frame { display: none; }
  .duo { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .article-row .arr { display: none; }
  .cta-house { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; padding-bottom: calc(68px + var(--atelier-h, 0px)); }
  .mark { height: 38px; }
  .brand-text b { font-size: 1.08rem; }
  .brand-text span { font-size: 0.58rem; }
  .shoji, .steps, .values, .values--3, .footer-top, .field-row { grid-template-columns: 1fr; }
  /* situations : lignes compactes, pictogramme à gauche */
  .shoji .cell, .related .cell { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 0.25rem; padding: 20px 14px 20px 12px; align-items: start; }
  .shoji .cell .picto, .related .cell .picto { width: 48px; height: 48px; margin: 0.1rem 0 0; grid-row: 1 / span 3; }
  .shoji .cell > :not(.picto), .related .cell > :not(.picto) { grid-column: 2; }
  .cell-n { display: none; }
  .cell .cell-more { padding-top: 0.5rem; }
  .cell--autre { padding: 22px 16px !important; display: flex !important; }
  .crumb li:nth-child(3) { display: none; }
  .steps { row-gap: 1.8rem; }
  .cartouche { grid-template-columns: 1fr; }
  .cartouche > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .cartouche > div:last-child { border-bottom: 0 !important; }
  .hero-proofs { flex-direction: column; gap: 0.45rem; }
  .plate .seal { left: -6px; width: 62px; height: 62px; }
  .about-media .seal { right: -8px; width: 66px; height: 66px; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .price-table td { border: 0; padding: 0.15rem 0; }
  .price-table .num { text-align: left; }
  .price-table td[data-th]::before { content: attr(data-th) " : "; color: var(--muted); font-size: 0.86rem; }
  .mission-row { grid-template-columns: 52px minmax(0, 1fr); row-gap: 0.3rem; }
  .mission-row .n, .mission-row .arr { display: none; }
  .mission-row .picto { width: 48px; height: 48px; grid-row: span 2; align-self: start; }
  .mission-row h2, .mission-row p { grid-column: 2; }
  .footer-bottom { flex-direction: column; }
  .actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line-2); }
  .actionbar a { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; height: 48px; padding: 0 1.15em; border: 1px solid var(--line-2); border-radius: var(--radius-btn); text-decoration: none; font-weight: var(--fw-btn); font-size: 0.95rem; color: var(--ink); }
  .actionbar .actionbar-main { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
  .page-contact .actionbar { grid-template-columns: 1fr; }
  .page-contact .actionbar-main { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .actionbar, ageb-atelier, .cta, .site-footer nav { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .deep { background: #fff; color: #000; }
}
