/* ==========================================================================
   Renov&Mieux — feuille de style principale
   Charte : gris anthracite RAL 7016, terracotta, sable chaud.
   Exclus par le client : bleu, vert, jaune.
   Typographies auto-hébergées (RGPD) : Archivo (titres) + Manrope (textes)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Anthracite RAL 7016 et ses nuances */
  --ral: #383e42;
  --ral-d: #24292c;
  --ral-dd: #292723; /* noir chaud du logo */
  --ral-l: #4d5459;
  /* Terracotta */
  /* Terracotta et sable repris du logo officiel */
  --terra: #a45538;
  --terra-d: #87442b;
  --terra-l: #d59a78;
  /* Sable chaud */
  --sable: #f2e0c8;
  --sable-d: #dcc6a8;
  --sable-l: #f7eee2;
  --paper: #faf7f2;

  --ink: #292723;
  --ink-2: #454c51;
  --muted: #6c6862;
  --line: #e2d6c6;
  --line-dark: rgba(231, 216, 196, .16);
  --on-dark: #f2e0c8;
  --on-dark-2: #b9b1a6;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1260px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(76px, 10vw, 136px);
  --radius: 4px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 80px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--terra); color: #fff; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sable { background: var(--sable-l); }
.section--dark { background: var(--ral); color: var(--on-dark); }
.section--darker { background: var(--ral-d); color: var(--on-dark); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ral); color: #fff; padding: 12px 18px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.02em; font-stretch: 108%; }
.display { font-size: clamp(40px, 4.8vw, 72px); line-height: .98; letter-spacing: -.035em; font-weight: 800; font-stretch: 104%; }
.h1 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1; letter-spacing: -.03em; font-weight: 800; }
.h2 { font-size: clamp(30px, 3.9vw, 54px); line-height: 1.04; letter-spacing: -.028em; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.h4 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.accent { color: var(--terra); }
.section--dark .accent, .section--darker .accent { color: var(--terra-l); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.section--dark .lead, .section--darker .lead { color: var(--on-dark-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .section--darker .eyebrow { color: var(--terra-l); }
p { margin: 0 0 1em; }
.small { font-size: 14px; color: var(--muted); }
.note { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.section--dark .note, .section--darker .note { color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   Boutons et liens
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--terra); --fg: #fff; --fill: var(--ral-d);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 15.5px; font-weight: 700; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn .arrow { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--dark { --bg: var(--ral); --fill: var(--terra); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --fill: var(--ral); box-shadow: inset 0 0 0 1.5px var(--ral); }
.btn--ghost:hover { --fg: #fff; }
.btn--light { --bg: var(--paper); --fg: var(--ink); --fill: var(--terra); }
.btn--light:hover { --fg: #fff; }
.btn--ghost-light { --bg: transparent; --fg: var(--on-dark); --fill: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(239, 230, 218, .45); }
.btn--ghost-light:hover { --fg: var(--ink); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 14.5px; }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; text-decoration: none; color: var(--ink); padding-block: 4px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 28px; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(.25); transform-origin: left; transition: transform .55s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link .arrow { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }
.section--dark .link, .section--darker .link { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__logo { display: block; height: 54px; width: auto; transition: opacity .3s; }
.brand:hover .brand__logo { opacity: .82; }
.footer .brand__logo { height: 52px; }
.contact__card .brand__logo { height: 40px; }
.brand__mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand__mark .tile { fill: var(--ral); transition: fill .5s var(--ease); }
.brand:hover .brand__mark .tile { fill: var(--ral-d); }
.brand__mark .rise { transition: transform .6s var(--ease); transform-origin: 26px 18px; }
.brand:hover .brand__mark .rise { transform: translate(1px, -1px); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 23px; letter-spacing: -.03em; }
.brand__name .amp { color: var(--terra); font-weight: 600; padding-inline: 1px; }
.brand__tag { font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.brand--light { color: var(--on-dark); }
.brand--light .brand__mark .tile { fill: var(--paper); }
.brand--light .brand__mark .roof { stroke: var(--ral); }
.brand--light .brand__tag { color: var(--on-dark-2); }
.brand--light .brand__name .amp { color: var(--terra-l); }

/* --------------------------------------------------------------------------
   Bandeau supérieur + en-tête + méga-menu
   -------------------------------------------------------------------------- */
.topbar { background: var(--ral-d); color: var(--on-dark-2); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.topbar__certs { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar__certs strong { color: var(--on-dark); font-weight: 700; letter-spacing: .06em; }
.topbar__certs .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--terra-l); }
.topbar a { color: var(--on-dark); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--terra-l); }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 242, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), border-color .4s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-hidden:not(.mega-open) { transform: translateY(-100%); }
.header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); height: 100%; }
.nav__link, .nav__toggle {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.nav__link::after, .nav__toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 2px; background: var(--terra);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after,
.nav__toggle:hover::after, .nav__toggle[aria-expanded="true"]::after, .nav__toggle.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"], .nav__toggle.is-current { color: var(--terra); }
.nav__toggle svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.header__cta { flex-shrink: 0; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(26, 30, 32, .35);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.mega-open .mega { visibility: visible; opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.mega__inner { display: grid; grid-template-columns: repeat(3, 1fr) 320px; gap: 32px; padding-block: 36px 40px; }
.mega__col h3 { font-size: 13px; font-family: var(--sans); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.mega__col h3 a { text-decoration: none; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.mega__col h3 a:hover { color: var(--terra); }
.mega__col h3 .num { color: var(--terra); font-weight: 700; }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__col li a {
  display: block; padding: 8px 0; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid transparent; transition: color .3s, padding .4s var(--ease);
}
.mega__col li a:hover, .mega__col li a:focus-visible { color: var(--terra); padding-left: 8px; }
.mega__preview { position: relative; overflow: hidden; background: var(--ral); aspect-ratio: 4 / 5; border-radius: var(--radius); }
.mega__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.mega__preview img.is-active { opacity: 1; transform: none; }
.mega__preview figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(to top, rgba(26, 30, 32, .8), transparent);
}

.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .5s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ral-d); color: var(--on-dark);
  padding: calc(var(--header-h) + 64px) var(--gutter) 40px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { background: var(--paper); }
.mobile-menu > ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul > li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu > ul > li > a, .mobile-menu .acc__btn {
  display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 16px 0;
  font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; color: var(--on-dark); text-decoration: none;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.mobile-menu .acc__btn svg { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.mobile-menu .acc__btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.mobile-menu .acc__panel { display: none; padding: 0 0 18px; }
.mobile-menu .acc__panel.is-open { display: block; }
.mobile-menu .acc__panel h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-l); margin: 14px 0 6px; }
.mobile-menu .acc__panel h3 a { color: inherit; text-decoration: none; }
.mobile-menu .acc__panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu .acc__panel li a { display: block; padding: 7px 0; color: var(--on-dark-2); text-decoration: none; font-size: 16px; }
.mobile-menu__foot { margin-top: 32px; display: grid; gap: 14px; font-size: 14px; color: var(--on-dark-2); }
.mobile-menu__foot a { color: var(--on-dark); font-weight: 700; font-size: 20px; text-decoration: none; }

/* --------------------------------------------------------------------------
   Hero (accueil)
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(60px, 8vw, 110px); }
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__content { display: flex; flex-direction: column; gap: 28px; }
.hero .display .line:last-child { color: var(--terra); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(18px, 3vw, 44px); margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__facts div { display: flex; flex-direction: column-reverse; }
.hero__facts dt { font-size: 13px; color: var(--muted); }
.hero__facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.1; }
.hero__media { position: relative; }
.hero__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--ral); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: clamp(-36px, -3vw, -16px); bottom: 32px; max-width: 290px;
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  background: var(--ral); color: var(--on-dark); font-size: 14.5px; line-height: 1.45; font-weight: 500;
  border-left: 3px solid var(--terra); box-shadow: 0 24px 40px -20px rgba(26, 30, 32, .55);
}
.hero__badge svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--terra-l); }
.hero__stamp {
  position: absolute; right: -14px; top: 28px; width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; background: var(--terra); color: #fff; text-align: center;
  font-family: var(--display); font-weight: 800; line-height: 1; box-shadow: 0 18px 34px -16px rgba(147, 65, 31, .7);
}
.hero__stamp span { display: block; font-size: 34px; letter-spacing: -.03em; }
.hero__stamp small { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* Lignes de titre révélées */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-loaded .hero .line > span, .is-loaded .page-hero .line > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .09s; }
.line:nth-child(3) > span { transition-delay: .18s; }
[data-reveal="lines"] .line > span { transform: translateY(105%); }
[data-reveal="lines"].is-in .line > span { transform: none; }
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.fade-in--2 { transition-delay: .5s; }
.fade-in--3 { transition-delay: .65s; }
.is-loaded .fade-in { opacity: 1; transform: none; }
.hero__frame img { transform: scale(1.12); transition: transform 2s var(--ease); }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: var(--sable); transform-origin: top; transition: transform 1.3s var(--ease-in-out) .15s; }
.is-loaded .hero__frame img { transform: scale(1); }
.is-loaded .hero__frame::after { transform: scaleY(0); }

/* --------------------------------------------------------------------------
   Bandeau certifications
   -------------------------------------------------------------------------- */
.certs-strip { background: var(--ral); color: var(--on-dark); }
.certs-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.certs-strip__item { display: flex; gap: 16px; align-items: center; padding: 26px 24px; border-left: 1px solid var(--line-dark); }
.certs-strip__item:first-child { border-left: 0; padding-left: 0; }
.certs-strip__item svg { width: 34px; height: 34px; flex-shrink: 0; color: var(--terra-l); }
.certs-strip__item strong { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.certs-strip__item span { display: block; font-size: 13.5px; color: var(--on-dark-2); line-height: 1.4; }

/* --------------------------------------------------------------------------
   En-têtes de section
   -------------------------------------------------------------------------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head--stack { grid-template-columns: 1fr; max-width: 820px; }
.section-head .lead { margin: 0; }

/* --------------------------------------------------------------------------
   Catégories (accueil)
   -------------------------------------------------------------------------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px;
  overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; isolation: isolate; background: var(--ral);
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26, 30, 32, .92) 18%, rgba(26, 30, 32, .25) 62%, rgba(26, 30, 32, .1)); transition: background-color .5s; }
.cat:hover img { transform: scale(1.06); }
.cat__body { padding: 26px 24px 24px; }
.cat__num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--terra-l); letter-spacing: .08em; }
.cat h3 { font-size: 26px; line-height: 1.08; margin: 8px 0 14px; }
.cat ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; font-size: 14.5px; color: var(--on-dark); }
.cat li { display: flex; gap: 8px; align-items: baseline; }
.cat li::before { content: ""; width: 10px; height: 1.5px; background: var(--terra-l); flex-shrink: 0; transform: translateY(-4px); }
.cat__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); width: 100%; }
.cat__more svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.cat:hover .cat__more svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Problèmes / réponses
   -------------------------------------------------------------------------- */
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.answer { padding: 34px 32px 36px 0; border-bottom: 1px solid var(--line); }
.answer + .answer { padding-left: 32px; border-left: 1px solid var(--line); }
.answer .answer__q { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 14px; }
.answer__q::before { content: "« "; color: var(--terra); }
.answer__q::after { content: " »"; color: var(--terra); }
.answer p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* --------------------------------------------------------------------------
   Qui sommes-nous (bloc chiffres)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 5 / 6; background: var(--ral); }
.split__media img { width: 100%; height: 116%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; gap: 22px; }
.split__body .lead { margin: 0; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0; }
.figure { padding: 22px 0 0; border-top: 2px solid var(--ral); }
.section--dark .figure, .section--darker .figure { border-top-color: var(--terra-l); }
.figure strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1; }
.figure span { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.section--dark .figure span, .section--darker .figure span { color: var(--on-dark-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--terra); margin-top: 3px; }
.section--dark .checks svg, .section--darker .checks svg { color: var(--terra-l); }

/* --------------------------------------------------------------------------
   Méthode (étapes)
   -------------------------------------------------------------------------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps__line { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line-dark); }
.steps__line::after { content: ""; position: absolute; inset: 0; background: var(--terra-l); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; padding-top: 70px; }
.step__n {
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ral-d); border: 2px solid var(--line-dark); font-family: var(--display); font-weight: 800; color: var(--on-dark-2);
  transition: background-color .5s, border-color .5s, color .5s;
}
.step.is-reached .step__n { background: var(--terra); border-color: var(--terra); color: #fff; }
.step h3 { font-size: 21px; margin-bottom: 10px; color: #fff; }
.step p { color: var(--on-dark-2); font-size: 15.5px; margin: 0; }

/* --------------------------------------------------------------------------
   Aides
   -------------------------------------------------------------------------- */
.aids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aid { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.aid__tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); background: var(--sable-l); padding: 6px 10px; border-radius: 2px; }
.aid h3 { font-size: 22px; }
.aid p { font-size: 15px; color: var(--ink-2); margin: 0; }
.aid ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.aid li + li { margin-top: 4px; }
.aid--dark { background: var(--ral); border-color: var(--ral); color: var(--on-dark); }
.aid--dark .aid__tag { background: rgba(255, 255, 255, .08); color: var(--terra-l); }
.aid--dark p, .aid--dark ul { color: var(--on-dark-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
.table th, .table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--ral); color: var(--on-dark); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.table tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--terra-d); font-weight: 700; }
.no { color: var(--muted); }

/* --------------------------------------------------------------------------
   Avis Google
   -------------------------------------------------------------------------- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.g-score { display: flex; align-items: center; gap: 18px; }
.g-score__logo { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); font-family: Arial, sans-serif; font-weight: 700; font-size: 24px; color: var(--ral); }
.g-score__num { font-family: var(--display); font-weight: 800; font-size: 42px; letter-spacing: -.03em; line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: var(--terra); }
.stars svg { width: 18px; height: 18px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.section--dark .review { background: var(--ral-d); border-color: var(--line-dark); }
.review blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sable); color: var(--ral); font-weight: 800; }
.review footer strong { display: block; }
.review footer span { color: var(--muted); font-size: 13px; }
.section--dark .review footer span { color: var(--on-dark-2); }
.is-placeholder { border-style: dashed !important; }
.is-placeholder blockquote { color: var(--muted); font-style: italic; }
.section--dark .is-placeholder blockquote { color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   Zone d'intervention (bandeau communes)
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--sable-l); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 26px; padding: 20px 13px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; }
.marquee__track span::after { content: ""; width: 7px; height: 7px; background: var(--terra); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Page intérieure : en-tête
   -------------------------------------------------------------------------- */
.page-hero { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 84px); }
.page-hero > .wrap:first-child { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.page-hero .lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--terra); }
.crumbs span[aria-hidden] { color: var(--sable-d); }
.page-hero__visual { position: relative; overflow: hidden; aspect-ratio: 16 / 7; border-radius: var(--radius); margin-top: clamp(36px, 4vw, 56px); background: var(--ral); }
.page-hero__visual img { width: 100%; height: 118%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); background: var(--paper); transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover { background: var(--ral); color: #fff; border-color: var(--ral); }

/* --------------------------------------------------------------------------
   Prestations (pages catégories)
   -------------------------------------------------------------------------- */
.services { display: grid; gap: clamp(56px, 7vw, 104px); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; scroll-margin-top: 110px; }
.service:nth-child(even) .service__media { order: 2; }
.service__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--ral); }
.service__media img { width: 100%; height: 116%; object-fit: cover; }
.service__num { position: absolute; left: 16px; top: 16px; background: var(--paper); color: var(--ral); font-family: var(--display); font-weight: 800; font-size: 14px; padding: 6px 10px; border-radius: 2px; }
.service__body { display: flex; flex-direction: column; gap: 18px; }
.service__body p { margin: 0; color: var(--ink-2); }
.service__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.service__meta h4 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.service__meta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.service__meta li { display: flex; gap: 8px; }
.service__meta li::before { content: ""; width: 6px; height: 6px; background: var(--terra); margin-top: 9px; flex-shrink: 0; }
.service__aid { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--sable-l); border-left: 3px solid var(--terra); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.service__aid svg { width: 20px; height: 20px; color: var(--terra); flex-shrink: 0; margin-top: 2px; }

/* Autres catégories */
.others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.other { display: flex; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line-dark); border-radius: var(--radius); text-decoration: none; color: var(--on-dark); transition: background-color .4s, border-color .4s; }
.other:hover { background: rgba(255, 255, 255, .05); border-color: var(--terra-l); }
.other img { width: 88px; height: 88px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.other strong { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.01em; color: #fff; }
.other span { display: block; font-size: 13.5px; color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   Qualifications
   -------------------------------------------------------------------------- */
.quals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.qual { position: relative; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.qual__badge { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--ral); color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.qual__badge--terra { background: var(--terra); font-size: 12.5px; text-align: center; line-height: 1.05; }
.qual h3 { font-size: 28px; }
.qual p { margin: 0; color: var(--ink-2); }
.callout { display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: var(--radius); background: var(--ral); color: var(--on-dark); }
.callout svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--terra-l); }
.callout p { margin: 0; color: var(--on-dark-2); }
.callout strong { color: #fff; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -.01em; color: var(--ink); }
.faq__q svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--terra); transition: transform .45s var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--ink-2); max-width: 74ch; padding-bottom: 6px; }
.faq__a p:last-child { padding-bottom: 24px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__aside { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 110px; }
.contact__card { padding: 26px; background: var(--ral); color: var(--on-dark); border-radius: var(--radius); display: grid; gap: 18px; }
.contact__card a { color: #fff; text-decoration: none; font-weight: 700; }
.contact__card dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-l); font-weight: 800; }
.contact__card dd { margin: 4px 0 0; font-size: 17px; }
.contact__card dl { margin: 0; display: grid; gap: 16px; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sable-l); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 44px); }
.form__full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid var(--sable-d); border-radius: var(--radius); background: #fff;
  font-size: 16px; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ral); box-shadow: 0 0 0 3px rgba(56, 62, 66, .12); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--terra); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border: 1px solid var(--sable-d); border-radius: 999px; font-size: 14.5px; font-weight: 600; background: #fff; transition: background-color .25s, color .25s, border-color .25s; }
.option input:checked + span { background: var(--ral); border-color: var(--ral); color: #fff; }
.option input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ral); flex-shrink: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__status { font-size: 14.5px; font-weight: 600; }
.form__status.is-ok { color: var(--ral); }
.form__status.is-error { color: var(--terra-d); }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Bandeau d'appel final + pied de page
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--terra); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(48px, 6vw, 80px); }
.cta-band h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.02; letter-spacing: -.03em; max-width: 16ch; }
.cta-band p { margin: 14px 0 0; color: rgba(255, 255, 255, .85); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { --bg: var(--paper); --fg: var(--ink); --fill: var(--ral-d); }
.cta-band .btn:hover { --fg: #fff; }
.cta-band .btn--ghost-light { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }

.footer { background: var(--ral-dd); color: var(--on-dark-2); font-size: 15px; padding-block: clamp(56px, 7vw, 88px) 28px; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer h3 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--on-dark-2); text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--terra-l); }
.footer__brand p { margin: 18px 0 0; max-width: 34ch; }
.footer__certs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.footer__certs span { padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 2px; font-size: 12.5px; font-weight: 700; color: var(--on-dark); letter-spacing: .04em; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 13px; }

/* Barre mobile fixe */
.mobile-bar { display: none; }

/* Mention « maquette » (retirée à la mise en ligne) */
.draft-note { background: var(--sable); color: var(--ink); font-size: 13px; text-align: center; padding: 8px var(--gutter); line-height: 1.4; }
.draft-note strong { color: var(--terra-d); }

/* Prose (mentions légales) */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose p, .prose li { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Apparitions au défilement
   -------------------------------------------------------------------------- */
[data-reveal]:not([data-reveal="lines"]) { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
[data-reveal].is-in:not([data-reveal="lines"]) { opacity: 1; transform: none; }
[data-reveal="img"] { opacity: 1 !important; transform: none !important; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-in-out) var(--d, 0s) !important; }
[data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .mega__inner { grid-template-columns: repeat(3, 1fr); }
  .mega__preview { display: none; }
  .aids { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1200px) {
  .nav, .header__cta, .mega { display: none; }
  .burger { display: block; }
  .topbar__certs .hide-sm { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .hero > .wrap, .page-hero > .wrap:first-child, .section-head, .split, .service, .contact { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__frame { aspect-ratio: 4 / 3; }
  .split--rev .split__media, .service:nth-child(even) .service__media { order: 0; }
  .split__media { aspect-ratio: 4 / 3; }
  .answers { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .cat { min-height: 420px; }
  .answer, .answer + .answer { padding: 28px 0; border-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .steps__line { display: none; }
  .step { padding-top: 64px; }
  .certs-strip .wrap { grid-template-columns: 1fr 1fr; }
  .certs-strip__item { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .certs-strip__item:nth-child(-n+2) { border-top: 0; }
  .certs-strip__item:first-child { padding-left: 16px; }
  .reviews, .quals, .others { grid-template-columns: 1fr; }
  .contact__aside { position: static; }
  .page-hero__visual { aspect-ratio: 16 / 10; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    transform: translateY(110%); transition: transform .6s var(--ease); box-shadow: 0 -10px 30px -10px rgba(26, 30, 32, .35);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; font-weight: 700; font-size: 15px; text-decoration: none; }
  .mobile-bar a:first-child { background: var(--ral); color: #fff; }
  .mobile-bar a:last-child { background: var(--terra); color: #fff; }
  .mobile-bar svg { width: 18px; height: 18px; }
  .footer { padding-bottom: 86px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .hero__facts { grid-template-columns: repeat(3, auto); gap: 16px; }
  .hero__facts dd { font-size: 24px; }
  .hero__badge { position: relative; left: 0; bottom: 0; margin-top: -40px; margin-inline: 14px; max-width: none; }
  .hero__stamp { width: 92px; height: 92px; right: 10px; top: 14px; }
  .hero__stamp span { font-size: 26px; }
  .hero__actions .btn { width: 100%; }
  .cats { grid-template-columns: 1fr; }
  .cat { min-height: 380px; }
  .aids { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .figure strong { font-size: 34px; }
  .steps { grid-template-columns: 1fr; }
  .service__meta { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .brand__name { font-size: 21px; }
  .brand__logo { height: 42px; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .line > span, .fade-in, [data-reveal] { transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .hero__frame::after { display: none; }
}
