/* Clerc Fix — feuille de style principale
   Charte : design « Clair », couleurs « Atelier ». Police Manrope (auto-hébergée). */

[hidden] { display: none !important; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/manrope-latin-800-normal.woff2') format('woff2'); }
/* JetBrains Mono 500 (pack graphique, licence OFL, sous-ensemble latin) : sur-titres, numéros, compteurs. */
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/jetbrainsmono-latin-500-normal.woff2') format('woff2'); }

/* Couleurs du pack graphique Clerc Fix (05-Charte/couleurs.txt).
   Le cuivre (#B0612C) sert aux fonds et aux icônes ; pour du TEXTE sur fond clair,
   utiliser --copper-dark (contraste 5,9:1 ; le cuivre seul n'a que 4:1 sur papier). */
:root {
  --ink: #1C2127;          /* Encre */
  --ink-2: #232A31;        /* Encre claire */
  --copper: #B0612C;       /* Cuivre */
  --copper-dark: #8A4A20;  /* Cuivre foncé */
  --copper-light: #D98A52; /* Cuivre clair : sur fond sombre uniquement */
  --paper: #F4EFE6;        /* Papier */
  --paper-2: #E9E3D8;      /* Papier foncé */
  --white: #FFFFFF;
  --steel: #4A4F56;        /* Gris texte */
  --seri: #C9C3B8;         /* Sérigraphie : textes secondaires sur fond sombre */
  --line: #D9D2C4;
  --line-dark: #363E47;
  --ok: #2F6B3F;
  /* Rayons : trois valeurs seulement (charte). */
  --radius: 16px;          /* cartes, encadrés, bandeaux */
  --radius-sm: 10px;       /* champs, notes, petites surfaces */
  --radius-pill: 999px;    /* boutons, pastilles */
  /* Tailles de texte : quatre pour le texte, en rem (suivent le réglage du navigateur). */
  --fs-xs: .8125rem;       /* 13 px : sur-titres, en-têtes de tableau, pastilles */
  --fs-sm: .9375rem;       /* 15 px : indications, modèles, notes, pied de page */
  --fs-base: 1.0625rem;    /* 17 px : texte courant, boutons, champs */
  --fs-lead: 1.1875rem;    /* 19 px : chapeaux */
  --fs-h3: 1.25rem;        /* 20 px : un seul niveau de h3 */
  --fs-h2-sm: 1.5rem;      /* 24 px : h2 des textes longs (légal, À propos) */
  /* Espacements : grille de 4/8 px. */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 80px;
  --header-h: 85px;        /* hauteur de l'en-tête collant (84 px + bordure) : ancres, menu, encadré du devis */
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(28, 33, 39, .06), 0 8px 24px rgba(28, 33, 39, .06);
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--sp-3)); }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--copper-dark); text-underline-offset: 3px; }
a:hover { color: #6B3818; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.section--ink :focus-visible, .hero--ink :focus-visible, .split__pros :focus-visible, .footer :focus-visible { outline-color: var(--copper-light); }
.cta-band :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-6) 0; }
/* Deux sections de même fond qui se suivent : une seule marge entre elles, pas deux additionnées. */
.section:not(.section--white, .section--ink) + .section:not(.section--white, .section--ink),
.section--white + .section--white,
.section--ink + .section--ink { padding-top: 0; }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink a { color: var(--copper-light); }
.section--ink a:hover { color: #E8A574; }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: var(--sp-2); }
.section--ink .eyebrow, .split__pros .eyebrow { color: var(--seri); }
.lead { font-size: var(--fs-lead); color: var(--steel); max-width: 60ch; }
.section--ink .lead { color: var(--seri); }
.muted { color: var(--steel); }
.small { font-size: var(--fs-sm); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-sm); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.logo img { display: block; height: 64px; width: auto; }
@media (max-width: 520px) { .header .logo img { height: 52px; } }
.logo--light img { width: 100%; max-width: 300px; height: auto; }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-pill); border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: var(--fs-base); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn--primary { background: var(--copper); color: var(--white); }
.btn--primary:hover { background: var(--copper-dark); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--light { background: var(--copper-light); color: var(--ink); }
.btn--light:hover { background: #E8A574; color: var(--ink); }
.btn--ghost-light { border-color: #80868D; color: var(--paper); background: transparent; }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--small { min-height: 44px; padding: var(--sp-1) var(--sp-3); font-size: var(--fs-sm); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ── En-tête ── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px var(--sp-2); border-radius: var(--radius-pill); white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.nav .btn { margin-left: var(--sp-1); white-space: nowrap; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); border: 2px solid var(--ink); font-weight: 800; }
.menu summary::-webkit-details-marker { display: none; }
.menu:not([open]) .menu__panel { display: none; }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--sp-2) 20px var(--sp-4); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.menu__panel a { color: var(--ink); text-decoration: none; font-weight: 600; padding: var(--sp-2) var(--sp-1); border-bottom: 1px solid var(--line); }
.menu__panel .btn { margin-top: var(--sp-2); border-bottom: 0; color: var(--white); }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ── Accueil divisé ── */
/* Les deux moitiés partagent les mêmes lignes de grille (subgrid) : sur-titre, titre, chapeau, liste,
   prix et boutons tombent à la même hauteur des deux côtés, et le bloc reste centré verticalement. */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr repeat(6, auto) 1fr; min-height: calc(100vh - var(--header-h)); }
.split__side { position: relative; display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; align-items: start; padding: var(--sp-7) clamp(24px, 5vw, 72px); }
.split__side > .eyebrow { grid-row: 2; justify-self: start; }
.split__side > h2 { grid-row: 3; }
.split__side > .lead { grid-row: 4; }
.split__side > .split__list { grid-row: 5; }
.split__side > .split__price { grid-row: 6; }
.split__side > .actions { grid-row: 7; }
.split__perso { background: var(--paper); }
.split__pros { background: var(--ink); color: var(--paper); }
.split__side h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.035em; }
.split__side .lead { margin-bottom: 8px; }
.split__pros .lead { color: var(--seri); }
.split__list { list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-1); display: grid; gap: var(--sp-2); }
.split__list li { display: flex; gap: var(--sp-2); align-items: flex-start; font-weight: 600; }
.split__list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--copper); }
.split__pros .split__list svg { color: var(--copper-light); }
.split__tag { position: absolute; top: 28px; left: clamp(24px, 5vw, 72px); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.split__pros .split__tag { color: var(--seri); }
.split__price { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--steel); }
.split__pros .split__price { color: var(--seri); }
.split__price strong { color: var(--ink); }
.split__pros .split__price strong { color: var(--paper); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .split__side { display: flex; flex-direction: column; align-items: stretch; grid-row: auto; padding: 76px 20px var(--sp-6); }
  .split__side > .eyebrow { align-self: flex-start; }
  .split__tag { left: 20px; }
}

.intro-band { background: var(--white); border-bottom: 1px solid var(--line); }
.intro-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.intro-band p { margin: 0; font-weight: 600; }

/* ── Grilles & cartes ── */
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }
.card h3 { margin-bottom: var(--sp-1); }
.card p:last-child { margin-bottom: 0; }
.card--link { display: flex; flex-direction: column; gap: var(--sp-2); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card--link:hover { color: var(--ink); border-color: var(--copper); transform: translateY(-2px); box-shadow: var(--shadow); }
.card--link .card__more { margin-top: auto; padding-top: var(--sp-1); font-weight: 800; color: var(--copper-dark); display: inline-flex; align-items: center; gap: 6px; }
.card--link .card__more svg { width: 18px; height: 18px; }
.card__icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--paper); display: grid; place-items: center; color: var(--copper); }
.card__icon svg { width: 28px; height: 28px; }
.section--ink .card { background: var(--ink-2); border-color: var(--line-dark); color: var(--paper); }
.section--ink .card__icon { background: var(--ink); color: var(--copper-light); }
.section--ink .card--link:hover { border-color: var(--copper-light); color: var(--paper); }
.section--ink .card--link .card__more { color: var(--copper-light); }
.section--ink .card p { color: var(--seri); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.steps li { position: relative; padding-top: 56px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--copper); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.steps p { color: var(--steel); margin: 0; }
.section--ink .steps p { color: var(--seri); }
.section--ink .steps li::before { background: var(--copper-light); color: var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-5); }
.feature svg { width: 30px; height: 30px; color: var(--copper); margin-bottom: var(--sp-2); }
.section--ink .feature svg { color: var(--copper-light); }
.feature h3 { margin-bottom: var(--sp-1); }
.feature p { color: var(--steel); margin: 0; }
.section--ink .feature p { color: var(--seri); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ── Héros de page ── */
.hero { padding: var(--sp-7) 0; }
.hero--ink { background: var(--ink); color: var(--paper); }
.hero--ink .lead { color: var(--seri); }
.hero--ink .eyebrow { color: var(--seri); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-6); align-items: center; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; gap: var(--sp-5); } }
.hero__facts { display: grid; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.fact { display: flex; gap: var(--sp-2); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); font-weight: 600; }
.fact svg { width: 24px; height: 24px; color: var(--copper); flex: none; }
.hero--ink .fact { background: var(--ink-2); border-color: var(--line-dark); }
.hero--ink .fact svg { color: var(--copper-light); }
.stack { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.stack__item { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: var(--sp-1) var(--sp-3); font-weight: 600; font-size: var(--fs-sm); }
.stack__item svg { width: 22px; height: 22px; color: var(--copper); flex: none; }
.breadcrumb { font-size: var(--fs-sm); margin-bottom: var(--sp-3); color: var(--steel); }
.breadcrumb a { color: inherit; }
.hero--ink .breadcrumb { color: var(--seri); }

/* ── Tableaux de prix ── */
.price-group { margin-top: var(--sp-6); }
.price-group h2, .price-group h3 { margin-bottom: var(--sp-3); }
.prices { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prices th, .prices td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.prices thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--steel); background: var(--paper); font-weight: 800; }
.prices tbody tr:last-child td, .prices tbody tr:last-child th { border-bottom: 0; }
.prices tbody tr:hover { background: #FBFAF7; }
.prices .p-label { font-weight: 600; }
.prices .p-models { color: var(--steel); font-size: var(--fs-sm); }
.prices .p-price { font-weight: 800; white-space: nowrap; text-align: right; }
.prices .p-action { width: 1%; white-space: nowrap; text-align: right; }
.prices .p-action a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: var(--fs-sm); }
@media (max-width: 720px) {
  .prices, .prices tbody, .prices tr, .prices td, .prices th { display: block; width: 100%; }
  .prices thead { display: none; }
  .prices tr { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); }
  .prices tbody tr:last-child { border-bottom: 0; }
  .prices td, .prices th { padding: 0; border: 0; text-align: left !important; }
  .prices .p-models { margin: 2px 0 var(--sp-1); }
  .prices .p-action { width: auto; margin-top: var(--sp-1); }
}
.note { max-width: 72ch; background: var(--paper-2); border-radius: var(--radius-sm); padding: var(--sp-3); font-size: var(--fs-sm); color: var(--ink); }
.note strong { font-weight: 800; }

.toc { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); }
.toc a:hover { border-color: var(--copper); }
.hero--ink .toc a { background: var(--ink-2); border-color: var(--line-dark); color: var(--paper); }

.search { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-4); max-width: 520px; }
.search input { flex: 1; }
/* Page Tarifs : choix du public et recherche dans la colonne de droite du héros, comme les encadrés des autres pages. */
.finder { display: grid; gap: var(--sp-3); justify-items: start; }
.finder .seg, .finder .search { margin-top: 0; }
.finder .search { width: 100%; max-width: none; }

/* Page Tarifs : public → catégorie → groupes repliables */
.seg { display: inline-flex; gap: 4px; margin-top: var(--sp-4); padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.seg a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); font-weight: 600; }
.seg a:hover { color: var(--copper-dark); }
.seg a[aria-current="page"] { background: var(--ink); color: var(--white); }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-2); }
.cat-card { display: flex; flex-direction: column; gap: 4px; padding: var(--sp-3); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cat-card svg { width: 28px; height: 28px; color: var(--copper); margin-bottom: var(--sp-1); }
.cat-card strong { font-weight: 800; line-height: 1.3; }
.cat-card:hover { color: var(--ink); border-color: var(--copper); box-shadow: var(--shadow); }
.cat-card[aria-current="page"] { border-color: var(--copper); box-shadow: inset 0 0 0 1.5px var(--copper); background: #FBF5EF; }
.tcat { margin-top: var(--sp-6); }
.tcat__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--sp-3); margin-bottom: var(--sp-1); }
.tcat__head h2 { margin: 0; }
.tcat__head a { display: inline-flex; align-items: center; min-height: 44px; }
.tgroup { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: var(--sp-2); }
.tgroup > summary { display: flex; align-items: center; gap: var(--sp-2); min-height: 56px; padding: var(--sp-2) var(--sp-3); font-weight: 800; cursor: pointer; list-style: none; }
.tgroup > summary::-webkit-details-marker { display: none; }
.tgroup > summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: 0 4px 4px 0; border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(45deg); transition: transform .15s; }
.tgroup[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.tgroup > summary:hover { color: var(--copper-dark); }
.tgroup__count { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--steel); background: var(--paper); border-radius: var(--radius-pill); padding: 2px 10px; }
.tlist { list-style: none; margin: 0; padding: 0 var(--sp-3) var(--sp-1); }
.tgroup__note { margin: 0 var(--sp-3) var(--sp-1); padding: var(--sp-2); border-left: 3px solid var(--copper); background: var(--paper); font-size: var(--fs-sm); }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px var(--sp-4); align-items: center; padding: var(--sp-2) 0; border-top: 1px solid var(--line); }
.trow__label { font-weight: 600; }
.trow__models { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--steel); }
.trow__price { font-weight: 800; white-space: nowrap; text-align: right; }
.trow__btn { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: var(--fs-sm); }
@media (max-width: 640px) {
  .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .cat-card { padding: var(--sp-3); }
  .cat-card__short { display: none; }
  .tlist { padding: 0 var(--sp-3) 4px; }
  .tgroup__note { margin: 0 var(--sp-3) var(--sp-1); }
  .trow { grid-template-columns: minmax(0, 1fr) auto; }
  .trow__label { grid-column: 1 / -1; }
  .trow__price { text-align: left; white-space: normal; }
}

/* ── Formulaires ── */
.form { display: grid; gap: var(--sp-5); }
.fieldset { min-width: 0; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: var(--sp-4); margin: 0; }
.fieldset legend { font-weight: 800; font-size: var(--fs-lead); padding: 0 var(--sp-1); margin-left: calc(-1 * var(--sp-1)); }
.fieldset__num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--copper); color: var(--white); font-size: var(--fs-sm); margin-right: var(--sp-1); }
.field { display: grid; gap: var(--sp-1); margin-top: var(--sp-3); min-width: 0; }
.field:first-of-type { margin-top: var(--sp-1); }
.field label, .label { font-weight: 600; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-sm); color: var(--steel); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-3); }
.row > .field { margin-top: 0; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: var(--fs-base); color: var(--ink); background: var(--white);
  border: 1.5px solid #8F8778; border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); min-height: 48px;
}
select { max-width: 100%; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(176, 97, 44, .25); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
input[type="file"] { font: inherit; font-size: var(--fs-sm); padding: var(--sp-2) 0; width: 100%; max-width: 100%; min-width: 0; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 800; min-height: 44px; margin-right: var(--sp-2); padding: var(--sp-1) var(--sp-3); border: 2px solid var(--ink); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--ink); color: var(--paper); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-1); }
.choices--5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: var(--sp-2) var(--sp-3); border: 1.5px solid #8F8778; border-radius: var(--radius-sm); font-weight: 800; background: var(--white); }
.choice small { font-weight: 400; color: var(--steel); font-size: var(--fs-sm); }
.choice input:checked + span { border-color: var(--copper); box-shadow: inset 0 0 0 1.5px var(--copper); background: #FBF5EF; }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-3); font-size: var(--fs-sm); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--copper); flex: none; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.estimate { display: none; margin-top: var(--sp-3); border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); padding: var(--sp-3); }
.estimate.is-visible { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-4); }
.estimate__label { font-size: var(--fs-sm); color: var(--seri); }
.estimate__price { font-size: var(--fs-h2-sm); font-weight: 800; color: var(--copper-light); letter-spacing: -0.02em; }
.estimate__hint { flex-basis: 100%; font-size: var(--fs-sm); color: var(--seri); }

.alert { border-radius: var(--radius-sm); padding: var(--sp-3); margin-bottom: var(--sp-4); }
.alert--error { background: #FBEAEA; border: 1px solid #E2A5A5; color: #6E1C1C; }
.alert--error ul { margin: var(--sp-1) 0 0; padding-left: 20px; }
.alert--error a { color: #6E1C1C; font-weight: 600; }
.field-error { display: block; font-size: var(--fs-sm); font-weight: 600; color: #8E1B1B; margin-top: var(--sp-1); }
[aria-invalid="true"] { border-color: #8E1B1B !important; }
.devis-aside h2 { font-size: var(--fs-h3); }
.alert--ok { background: #E7F2EA; border: 1px solid #A9CDB2; color: #1F4A2A; }

.devis-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-5); align-items: start; }
.devis-aside { position: sticky; top: calc(var(--header-h) + var(--sp-3)); display: grid; gap: var(--sp-3); }
@media (max-width: 960px) { .devis-layout { grid-template-columns: minmax(0, 1fr); } .devis-aside { position: static; } }

/* ── Suivi ── */
.ticket-id { letter-spacing: .04em; background: var(--paper-2); padding: 2px var(--sp-1); border-radius: var(--radius-pill); }
.timeline { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 var(--sp-4) 40px; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: var(--radius-pill); border: 2px solid var(--line); background: var(--white); }
.timeline .is-done .dot { background: var(--copper); border-color: var(--copper); }
.timeline .is-current .dot { background: var(--white); border-color: var(--copper); box-shadow: 0 0 0 4px rgba(176, 97, 44, .25); }
.timeline .is-done::before { background: var(--copper); }
.timeline strong { display: block; }
.timeline .muted { font-size: var(--fs-sm); }

/* ── Divers ── */
.cta-band { background: var(--copper); color: var(--white); border-radius: var(--radius); padding: var(--sp-6) clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.cta-band h2 { margin: 0 0 var(--sp-1); }
.cta-band p { margin: 0; color: var(--white); }
.cta-band .btn--ink { background: var(--ink); }
.cta-band .btn--ghost-light { border-color: #F6D2B8; color: var(--white); }
.cta-band .btn--ghost-light:hover { background: var(--white); color: var(--copper-dark); }

.handover { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.handover svg { width: 28px; height: 28px; color: var(--copper); margin-bottom: var(--sp-2); }
@media (max-width: 960px) { .handover { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .handover { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); } .suivi-result { order: -1; } }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-h2-sm); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-2) var(--sp-4); margin: 0; }
.dl dt { font-weight: 800; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dl dd a { display: inline-block; padding: 10px 0; margin: -10px 0; }

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 var(--sp-3); margin-bottom: var(--sp-2); }
.faq summary { cursor: pointer; font-weight: 800; padding: var(--sp-3) 0; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--copper); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--steel); }

/* ── Pied de page ── */
.footer { background: var(--ink); color: var(--seri); padding: var(--sp-7) 0 var(--sp-5); font-size: var(--fs-sm); }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { color: var(--copper-light); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-5); }
.footer h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: #A39D93; margin-bottom: var(--sp-2); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.footer ul a { display: inline-block; padding: 10px 0; }
.footer__plain { padding: 10px 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 var(--sp-3); }
.footer__bottom a { display: inline-block; padding: 10px 0; }
.footer__bottom { border-top: 1px solid var(--line-dark); margin-top: var(--sp-6); padding-top: var(--sp-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-sm); color: #A39D93; }
.socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); }
.socials svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Admin ── */
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: var(--fs-sm); }
.admin-table th, .admin-table td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table thead th { background: var(--paper); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); }
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 800; background: var(--paper-2); color: var(--ink); white-space: nowrap; }
.badge--recu { background: #FBE7D8; color: var(--copper-dark); }
.badge--pret { background: #E1EFE4; color: var(--ok); }
.badge--termine, .badge--annule { background: #ECE8E1; color: var(--steel); }
.photos { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.photos img { width: 160px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.footer__tagline { margin-top: var(--sp-3); }
.mt { margin-top: var(--sp-4); }
.pre { white-space: pre-wrap; }
.steps--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--sp-3); }
@media (max-width: 520px) { .steps--compact { grid-template-columns: 1fr; } }
.toc a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.nav a.btn--primary { color: var(--white); background: var(--copper); }
.nav a.btn--primary:hover { color: var(--white); background: var(--copper-dark); }

/* ── Accessibilité : contraste élevé et mouvement réduit ── */
@media (forced-colors: active) {
  .choice input:checked + span { outline: 3px solid Highlight; outline-offset: -3px; }
  .nav a[aria-current], .seg a[aria-current], .cat-card[aria-current] { outline: 2px solid CanvasText; }
}
/* ── Mouvement ──
   Retour immédiat à l'appui (dès le pointeur posé, sans attendre le relâchement) sur tout ce qui se clique.
   Apparition au défilement : la classe .js-reveal n'est posée que par site.js, donc sans script tout reste visible. */
.card--link:active, .cat-card:active, .toc a:active, .seg a:active, .nav a:active, .tgroup > summary:active, .faq summary:active, .choice:active span { transform: scale(.98); transition: transform .08s ease-out; }
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media print { .js-reveal .reveal { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card--link:hover, .btn:active, .card--link:active, .cat-card:active, .toc a:active, .seg a:active, .nav a:active, .tgroup > summary:active, .faq summary:active, .choice:active span { transform: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ── Univers « carte mère » (pack graphique) ──
   Police mono pour les petits libellés techniques. */
.eyebrow, .split__tag, .breadcrumb, .tgroup__count, .prices thead th, .admin-table thead th, .ticket-id, .offer__price {
  font-family: var(--mono); font-weight: 500;
}
.eyebrow, .split__tag { font-size: var(--fs-xs); letter-spacing: .14em; }
.breadcrumb { font-size: var(--fs-xs); letter-spacing: .02em; }

/* Pistes cuivre en coin, comme sur la couverture du pack : un masque SVG coloré par --piste,
   placé sous le contenu (isolation + z-index -1). Décor pur : aucun texte, ignoré des lecteurs d'écran.
   Héros, accueil Entreprises et pied de page : seulement à partir de 1560 px, quand la marge latérale
   est assez large pour que les pistes ne passent ni sous le texte ni derrière les cartes.
   Bandeau cuivre : une piste encre en bas à droite, à toutes les tailles. */
.hero, .split__pros, .footer, .cta-band { position: relative; isolation: isolate; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--ink); opacity: .3;
  -webkit-mask: url('/img/piste-droite.svg') right 0 bottom 28px / 190px no-repeat;
          mask: url('/img/piste-droite.svg') right 0 bottom 28px / 190px no-repeat;
}
.cta-band { overflow: hidden; }
@media (max-width: 860px) { .cta-band::before { -webkit-mask-size: 96px; mask-size: 96px; -webkit-mask-position: right 0 bottom 16px; mask-position: right 0 bottom 16px; } }
@media (min-width: 1560px) {
  .hero::before, .split__pros::before, .footer::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--copper); opacity: .7;
    -webkit-mask: url('/img/piste-gauche.svg') left 0 top 28px / 190px no-repeat, url('/img/piste-droite.svg') right 0 bottom 28px / 190px no-repeat;
            mask: url('/img/piste-gauche.svg') left 0 top 28px / 190px no-repeat, url('/img/piste-droite.svg') right 0 bottom 28px / 190px no-repeat;
  }
  .hero:not(.hero--ink)::before { opacity: .35; }
  /* Accueil, côté Entreprises : le titre commence au bord gauche, seule la piste du bas reste. */
  .split__pros::before {
    -webkit-mask: url('/img/piste-droite.svg') right 0 bottom 28px / 190px no-repeat;
            mask: url('/img/piste-droite.svg') right 0 bottom 28px / 190px no-repeat;
  }
}
@media (forced-colors: active) { .hero::before, .split__pros::before, .footer::before, .cta-band::before { display: none; } }

/* Formules de maintenance (côté Entreprises) présentées comme des offres. */
.offer { display: flex; flex-direction: column; gap: var(--sp-2); }
.offer h3 { margin: 0; }
.offer__price { font-size: var(--fs-h2-sm); color: var(--ink); line-height: 1.2; }
.offer__price small { display: block; font-family: 'Manrope', system-ui, sans-serif; font-size: var(--fs-sm); font-weight: 600; color: var(--steel); }
.offer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-1); }
.offer li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.offer li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--copper); }
.offer { position: relative; }
.offer--featured { border: 2px solid var(--copper); }
.offer__cta { margin-top: auto; align-self: flex-start; }
.offer .badge { position: absolute; top: 0; left: var(--sp-4); transform: translateY(-50%); font-family: var(--mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: #FBE7D8; color: var(--copper-dark); }
#ticket { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
