/* ==========================================================================
   SAS Therond Damien — feuille de style
   Système : tokens couleur + échelle d'espacement fluide. Les espacements
   appartiennent aux conteneurs (gap), jamais aux enfants.
   ========================================================================== */

:root {
  /* Couleurs */
  --ink: #0F2A1F;
  --ink-2: #36413A;
  --muted: #56625A;
  --faint: #5F6B63;
  --text: #2A2A2A;
  --green: #1F7A4D;
  --yellow: #F2C230;
  --yellow-hi: #FFD24D;
  --star: #E6A21A;
  --mint: #EEF3EF;
  --img-bg: #E8EDE7;
  --line: #DDE3DB;
  --line-2: #E4E8E2;
  --field: #CBD3C9;
  --white: #FFFFFF;
  --dark-line: #24493A;
  --dark-text: #D2E3D9;
  --dark-muted: #B5CABF;
  --dark-off: #A3BBAE;
  --dark-off-num: #8FA89A;
  --footer: #0A1F16;
  --error: #B42318;

  /* Typo */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Mise en page */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Rythme vertical (fluide 320 → 1480 px) */
  --sec: clamp(48px, 5.5vw, 80px);      /* section standard */
  --sec-sm: clamp(32px, 4vw, 56px);    /* section courte (besoins, avis) */
  --head: clamp(24px, 2.8vw, 36px);    /* en-tête de section → contenu */
  --cols: clamp(24px, 3.5vw, 52px);      /* écart entre colonnes */

  /* Échelle d'espacement interne */
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 20px;
  --s5: 24px;
  --s6: 28px;
  --s7: 32px;

  --hdr-h: 64px;
  --top-h: 34px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--yellow); color: var(--ink); }
[id] { scroll-margin-top: 72px; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--yellow); }
.on-light :focus-visible { outline-color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 18px; background: var(--yellow); color: var(--ink); font-weight: 650;
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; color: var(--ink); }

.icon { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
.stars { display: flex; gap: 2px; color: var(--star); }
.stars svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- Mise en page ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); }
.section--sm { padding-block: var(--sec-sm); }
.bg-mint { background: var(--mint); }
.bg-dark { background: var(--ink); color: var(--white); }

/* Pile verticale : un seul gap, enfants sans marge */
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--s3)); }
.stack > * { margin: 0; }

/* Grille 2 colonnes auto (bascule seule en 1 colonne) */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 420px)), 1fr));
  gap: var(--cols);
}

/* En-tête de section : titre à gauche, chapô à droite */
.sec-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--s5) var(--cols);
  align-items: end;
  margin-bottom: var(--head);
}

/* ---------- Typographie ---------- */
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.bg-dark .kicker { color: var(--yellow); }
.kicker--green { color: var(--green); }

.h-xl { font-size: clamp(34px, 5.25vw, 78px); line-height: .93; font-weight: 680; font-stretch: 82%; letter-spacing: -.025em; text-wrap: balance; }
.h-lg { font-size: clamp(30.5px, 3.75vw, 54px); line-height: .98; font-weight: 660; font-stretch: 84%; letter-spacing: -.02em; text-wrap: balance; }
.h-md { font-size: clamp(27px, 3.15vw, 45px); line-height: 1; font-weight: 650; font-stretch: 86%; letter-spacing: -.02em; text-wrap: balance; }
.h-sm { font-size: clamp(25.5px, 2.55vw, 34.5px); line-height: 1.02; font-weight: 650; font-stretch: 88%; letter-spacing: -.015em; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.22vw, 17px); line-height: 1.55; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.bg-dark .lead { color: var(--dark-text); }
.body { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.link-u {
  align-self: flex-start; display: inline-flex; gap: var(--s1);
  font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 10px 22px; border: 0;
  font-size: 14px; font-weight: 650; line-height: 1.2; text-align: left;
  transition: background .2s, color .2s, gap .2s, border-color .2s;
}
.btn--lg { min-height: 52px; padding-inline: 24px; font-size: 15px; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-hi); color: var(--ink); gap: 20px; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--yellow); color: var(--ink); gap: 20px; }
.btn--line { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--start { align-self: flex-start; }
.btn-tel { font-family: var(--mono); font-weight: 500; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; }
.topbar {
  background: var(--ink); color: #E8F1EC;
  height: var(--top-h); overflow: hidden; transition: height .3s;
}
.topbar__in {
  height: 34px; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); font-size: 12.5px;
}
.topbar__rating { display: flex; align-items: center; gap: 6px; color: var(--white); }
.topbar__rating:hover { color: var(--star); }
.topbar__rating .stars { gap: 1px; }
.topbar__rating .stars svg { width: 12px; height: 12px; }
.topbar__rating strong { font-weight: 650; margin-left: 4px; }
.topbar__muted { color: var(--dark-muted); }
.topbar__info { display: flex; gap: var(--s5); color: var(--dark-muted); }

.navbar {
  background: var(--mint); border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.navbar__in {
  height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); transition: height .3s;
}
.is-scrolled .topbar, .menu-open .topbar { height: 0; }
.is-scrolled .navbar, .menu-open .navbar {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.is-scrolled .navbar { border-bottom-color: var(--line-2); }
.menu-open .navbar { border-bottom-color: transparent; }
.is-scrolled { --hdr-h: 60px; }

.brand { display: flex; align-items: center; gap: var(--s2); color: var(--ink); min-width: 0; }
.brand img { width: 48px; height: 48px; flex-shrink: 0; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; }
.brand__sub { font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: clamp(18px, 2vw, 32px); font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav a { padding-block: 12px; }
.hdr-actions { display: flex; align-items: center; gap: 18px; }
.hdr-tel { display: flex; align-items: center; gap: var(--s1); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.hdr-cta { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.hdr-cta:hover { gap: 14px; }

.hdr-mobile { display: none; align-items: center; gap: var(--s1); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.icon-btn:hover { color: var(--ink); background: var(--yellow-hi); }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: var(--ink); color: var(--white); border: 0; }
.menu-btn:hover { background: #1A3D2E; }
.burger, .burger::before, .burger::after, .burger > span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.burger { position: relative; background: none; height: 14px; }
.burger::before, .burger::after, .burger > span { content: ""; position: absolute; left: 0; }
.burger::before { top: 0; }
.burger > span { top: 6px; }
.burger::after { top: 12px; }
.menu-btn[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger > span { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099.98px) {
  .nav, .hdr-actions, .topbar__info { display: none; }
  .hdr-mobile { display: flex; }
  .topbar__in { justify-content: center; }
}

/* Menu mobile : panneau sous l'en-tête + fond assombri */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10, 31, 22, .55);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.menu__panel {
  display: flex; flex-direction: column; gap: var(--s4);
  max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--hdr-h) + var(--s1)) var(--gutter) calc(var(--s5) + env(safe-area-inset-bottom));
  background: var(--white); box-shadow: 0 20px 40px rgba(10, 31, 22, .18);
  transform: translateY(-16px); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.menu__panel > * { margin: 0; }
.menu-open .menu__panel { transform: none; }
.menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.menu__nav a {
  display: flex; align-items: center; gap: var(--s3); min-height: 52px;
  border-bottom: 1px solid var(--line-2);
  font-size: 19px; font-weight: 600; font-stretch: 92%; letter-spacing: -.005em;
}
.menu__nav span { font-family: var(--mono); font-size: 11.5px; color: var(--faint); font-weight: 400; min-width: 20px; }
.menu__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--s1); }
.menu__actions .btn { min-height: 48px; padding-inline: 14px; font-size: 15px; }
.menu__addr { font-size: 13px; color: var(--muted); line-height: 1.6; }
.menu__addr a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
.menu-open .navbar { background: var(--white); }
.nowrap { white-space: nowrap; }
.menu-open body { overflow: hidden; }
@media (min-width: 1100px) { .menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { background: var(--mint); padding-top: clamp(112px, 10vw, 124px); padding-bottom: clamp(24px, 3vw, 40px); }
.hero__grid { --min: 480px; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__txt { --gap: clamp(20px, 2.4vw, 28px); padding-bottom: var(--s1); }
.hero h1 { display: flex; flex-direction: column; gap: 18px; }
.hero__kicker {
  display: flex; align-items: center; gap: var(--s2);
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.hero__kicker::before { content: ""; width: 28px; height: 2px; background: var(--yellow); flex-shrink: 0; }
.hero__title { font-size: clamp(37.5px, 5.55vw, 81px); line-height: .94; font-weight: 680; font-stretch: 84%; letter-spacing: -.025em; text-wrap: balance; }
.hero__lead { max-width: 34em; font-size: clamp(15.5px, 1.23vw, 17.5px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s2); max-width: 480px; }
.hero__ctas .btn { flex: 1 1 220px; }
.hero__ctas .btn-tel { flex-basis: 200px; }

.proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.proof__google { display: flex; align-items: center; gap: 10px; padding-right: var(--s5); border-right: 1px solid var(--line); }
.proof__google > svg { width: 26px; height: 26px; flex-shrink: 0; }
.proof__google strong { display: flex; align-items: center; gap: var(--s1); font-size: 16px; font-weight: 700; }
.proof__google small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.proof__quals {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500;
}
.proof__quals img { height: 46px; width: auto; background: var(--white); padding: 3px; }
.proof__quals span { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 419.98px) {
  .proof__google { border-right: 0; padding-right: 0; }
}

.hero__media { --gap: var(--s2); }
.frame { position: relative; overflow: hidden; background: var(--img-bg); }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.hero__img { aspect-ratio: 4 / 3; }
.hero__img img { object-position: 60% 50%; }
.caption-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px var(--s3);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.caption-row a { color: var(--ink); }

/* ---------- Besoins ---------- */
.besoins { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); }
.besoins__head { max-width: 420px; }
@media (min-width: 900px) { .besoins { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.list-links { border-top: 1px solid var(--ink); min-width: 0; }
.list-links li { border-bottom: 1px solid var(--line); }
.list-links a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s3);
  padding: clamp(14px, 1.4vw, 18px) 0; transition: padding .25s, color .2s;
}
.list-links a:hover { padding-left: 14px; }
.list-links__label { font-size: clamp(17.5px, 1.76vw, 24.5px); font-weight: 560; letter-spacing: -.01em; line-height: 1.2; }
.list-links__tag {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.list-links__tag b { font-weight: 400; font-size: 17px; color: var(--ink); }
@media (max-width: 519.98px) {
  .list-links__tag .tag-txt { display: none; }
}

/* ---------- Particuliers ---------- */
.cards4 {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 2.5vw, 36px) clamp(20px, 2.5vw, 32px);
}
@media (min-width: 600px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-list { --gap: 18px; border-top: 2px solid var(--ink); padding-top: var(--s4); }
.card-list__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.card-list h3 { font-size: 20.5px; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; max-width: 12em; }
.card-list__n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.card-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.35; color: var(--text); }
.wide-img { aspect-ratio: 21 / 9; min-height: 220px; margin-top: var(--head); }
@media (max-width: 759.98px) { .wide-img { aspect-ratio: 3 / 2; min-height: 0; } }

/* ---------- Professionnels ---------- */
.pros__grid { --min: 360px; gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.tabs { display: flex; flex-direction: column; border-top: 1px solid var(--dark-line); }
.tab {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--s2);
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--dark-line);
  padding: clamp(14px, 1.3vw, 18px) 0; color: var(--dark-off); transition: color .2s;
}
.tab:hover, .tab[aria-selected="true"] { color: var(--white); }
.tab__n { font-family: var(--mono); font-size: 12px; color: var(--dark-off-num); }
.tab[aria-selected="true"] .tab__n { color: var(--yellow); }
.tab__t { font-size: clamp(17px, 1.65vw, 22.5px); font-weight: 600; font-stretch: 90%; letter-spacing: -.01em; line-height: 1.15; }
.tab__dot { width: 10px; height: 10px; background: transparent; transition: background .2s; }
.tab[aria-selected="true"] .tab__dot { background: var(--yellow); }
.panel { --gap: var(--s5); }
.panel__desc { font-size: clamp(16.5px, 1.41vw, 17.5px); line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.dash-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 var(--s5); }
.dash-list li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--dark-line); font-size: 14.5px; color: #E8F1EC; }
.dash-list li::before { content: "—"; color: var(--yellow); }

/* ---------- Photovoltaïque ---------- */
.pv-title { max-width: 11em; }
.pv-head { --gap: var(--s3); margin-bottom: var(--head); }
.pv-img { height: clamp(220px, 40vw, 500px); }
.parallax { position: absolute; inset: -8% 0; will-change: transform; }
.parallax img { width: 100%; height: 100%; object-fit: cover; }
.pv-grid { gap: clamp(28px, 4vw, 64px); margin-top: var(--head); }
.pv-intro { --gap: var(--s4); }
.pv-intro__lead { font-size: clamp(17.5px, 1.5vw, 21px); line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.duo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 var(--s4);
  border-block: 1px solid var(--ink);
}
.duo > div { --gap: 6px; padding-block: 18px; }
.duo h3 { font-weight: 650; font-size: 17px; line-height: 1.3; }
.duo p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.steps li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s2);
  padding: var(--s4) 0; border-top: 1px solid var(--line);
}
.steps__n { font-family: var(--mono); font-size: 13px; color: var(--green); padding-top: 4px; }
.steps li > div { --gap: 6px; }
.steps h3 { font-size: 19px; font-weight: 650; letter-spacing: -.005em; line-height: 1.25; }
.steps p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.note { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); background: var(--mint); margin-top: var(--s2); }
.note__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; background: var(--ink); color: var(--white); padding: 4px 7px; }
.note p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ---------- IRVE ---------- */
.irve__grid { --min: 440px; }
.irve__left { --gap: var(--s5); }
.kw { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2) 18px; border-top: 2px solid var(--ink); padding-top: var(--s4); }
.kw__num { font-size: clamp(75px, 9vw, 135px); line-height: .8; font-weight: 720; font-stretch: 78%; letter-spacing: -.04em; }
.kw__num small { font-size: .38em; letter-spacing: 0; margin-left: 6px; }
.kw__txt { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); max-width: 15em; padding-bottom: 6px; }
.irve-img { aspect-ratio: 3 / 2; }
.irve__right { --gap: var(--s5); justify-content: center; }
.irve__right > h3 { font-size: 22.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.reasons li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px var(--s3);
  padding: var(--s3) 0; border-top: 1px solid var(--line);
}
.reasons b { font-weight: 650; font-size: 15px; }
.reasons span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 520px) { .reasons li { grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chips li { padding: 9px 14px; border: 1px solid var(--ink); font-size: 14px; }

/* ---------- Qualifications ---------- */
.quals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 2px; background: var(--line); border: 1px solid var(--line);
}
.qual { --gap: var(--s5); background: var(--white); padding: clamp(22px, 2.8vw, 40px); }
.qual__top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: flex-start; gap: var(--s4); }
.qual__top > div { --gap: var(--s1); }
.qual h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px var(--s3); }
.qual__code { font-size: clamp(54.5px, 6vw, 90px); line-height: .85; font-weight: 720; font-stretch: 78%; letter-spacing: -.03em; }
.qual__mention { font-size: 19px; font-weight: 600; color: var(--green); }
.qual__logo { width: clamp(72px, 7.5vw, 96px); height: auto; flex-shrink: 0; background: var(--white); padding: var(--s1); }
.qual__text { flex: 1 1 auto; font-size: clamp(16px, 1.32vw, 17px); line-height: 1.5; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); }
.tags li { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; padding: 7px 10px; border: 1px solid var(--field); }
.qual__link { display: inline-flex; gap: var(--s1); align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--green); padding-block: 6px; }

/* ---------- Réalisations ---------- */
.project { --gap: var(--s2); }
.project__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (min-width: 900px) { .project__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.video { aspect-ratio: 3 / 2; background: var(--ink); min-width: 0; }
.video img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.video:hover img { transform: scale(1.02); }
.play {
  position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px);
  min-height: 48px; padding: 0 18px 0 14px; background: var(--white); color: var(--ink); border: 0;
  display: flex; align-items: center; gap: var(--s2); font-size: 14px; font-weight: 600; transition: background .2s;
}
.play:hover { background: var(--yellow); color: var(--ink); }
.play::before { content: ""; border-left: 11px solid currentColor; border-block: 7px solid transparent; }
.project__info { --gap: var(--s4); justify-content: space-between; height: 100%; }
.project__info > .stack { --gap: var(--s3); }
.project__info h3 { font-size: clamp(22px, 1.95vw, 28.5px); line-height: 1.05; font-weight: 650; font-stretch: 88%; letter-spacing: -.015em; text-wrap: balance; }
.meta { border-top: 1px solid var(--ink); }
.meta > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.meta dd { font-size: 14.5px; line-height: 1.4; }
.photo { --gap: 10px; }
.photo .frame { aspect-ratio: 21 / 8; }
.photo .frame img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.photo .frame:hover img { transform: scale(1.03); }
.photo figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 759.98px) { .photo .frame { aspect-ratio: 3 / 2; } }

/* ---------- À propos ---------- */
.about { --gap: var(--s5); }
.about h2 { max-width: 20em; }
.about .body { font-size: clamp(16px, 1.22vw, 17px); max-width: 32em; text-wrap: pretty; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  border-top: 1px solid var(--ink); max-width: 640px; margin-top: var(--s2);
}
.facts > div { --gap: 6px; padding: var(--s3) var(--s3) 0 0; }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 14.5px; line-height: 1.45; }

/* ---------- Avis ---------- */
.reviews { border-top: 1px solid var(--line-2); }
.reviews__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5) 48px; }
.reviews__score { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); flex-wrap: wrap; }
.reviews__score > svg { width: 44px; height: 44px; flex-shrink: 0; }
.reviews__score > div { --gap: var(--s1); }
.reviews h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.reviews__big { font-size: clamp(47.5px, 5.25vw, 72px); line-height: .85; font-weight: 720; font-stretch: 80%; letter-spacing: -.03em; }
.reviews__on { font-size: clamp(18.5px, 1.76vw, 23px); font-weight: 600; letter-spacing: -.01em; }
.reviews__stars { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s2); font-size: 14px; }
.reviews__stars .stars svg { width: 20px; height: 20px; }
.reviews__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.reviews__ctas .btn { gap: 10px; }
@media (max-width: 519.98px) { .reviews__ctas, .reviews__ctas .btn { flex: 1 1 100%; } }

/* ---------- Contact ---------- */
.contact__grid { --min: 440px; }
.contact__info { --gap: var(--s6); }
.contact__info > div:first-child { --gap: var(--s3); }
.tel-big { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--dark-line); padding-top: 22px; color: var(--white); }
.tel-big:hover { color: var(--yellow); }
.tel-big__k, .contact__k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.tel-big__v { font-size: clamp(29px, 3.3vw, 45px); font-weight: 650; font-stretch: 84%; letter-spacing: -.01em; line-height: 1; }
.contact__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s5); border-top: 1px solid var(--dark-line); padding-top: 22px; }
.contact__cols > div { --gap: var(--s1); }
.contact__cols address, .contact__hours { font-size: 16px; line-height: 1.5; }
.contact__hours { font-family: var(--mono); }
.contact__full { grid-column: 1 / -1; }
.contact__mail { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; font-size: 16px; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--yellow); }
.contact__route { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--yellow); padding-block: 4px; }
.contact__route:hover { color: var(--yellow-hi); }

.form-card { background: var(--white); color: var(--ink); padding: clamp(22px, 2.8vw, 40px); min-width: 0; }
.form { --gap: 18px; }
.form h3, .sent h3 { font-size: 22.5px; font-weight: 650; line-height: 1.2; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: var(--s2); font-size: 13.5px; font-weight: 600; }
.types { display: flex; flex-wrap: wrap; gap: 6px; }
.type {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--field); background: var(--white); color: var(--ink);
  font-size: 14px; transition: background .15s, border-color .15s, color .15s;
}
.type:hover { border-color: var(--ink); }
.type[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.fields2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s3); }
.field { --gap: var(--s1); font-size: 13.5px; font-weight: 600; }
.field label { display: flex; gap: 6px; align-items: baseline; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--field); background: var(--white); border-radius: 0;
  font-size: 16px; font-weight: 400; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input { height: 48px; padding: 0 14px; }
.field textarea { padding: 14px; resize: vertical; line-height: 1.5; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 194, 48, .55); }
.field [aria-invalid="true"] { border-color: var(--error); }
.form__error { font-size: 14px; color: var(--error); font-weight: 600; }
.form__submit { width: 100%; min-height: 54px; font-size: 15px; }
.form__legal { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.sent { --gap: var(--s3); min-height: 420px; justify-content: center; }
.sent__ok { width: 48px; height: 48px; background: var(--yellow); display: grid; place-items: center; font-size: 20.5px; }
.sent p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.sent button { align-self: flex-start; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0 2px; font-size: 14px; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: var(--dark-muted); padding-block: 48px; font-size: 14px; line-height: 1.6; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5) 48px; }
.footer__name { color: var(--white); font-weight: 650; letter-spacing: .04em; }
.footer a { color: var(--white); }
.footer a:hover { color: var(--yellow); }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.footer nav a { display: inline-block; padding-block: 6px; color: var(--dark-muted); }
.footer nav a:hover { color: var(--white); }
@media (max-width: 759.98px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Actions flottantes ---------- */
.fab {
  position: fixed; right: 28px; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 44;
  height: 52px; padding: 0 20px 0 6px; border-radius: 999px; background: var(--ink); color: var(--white);
  display: flex; align-items: center; gap: var(--s2);
  box-shadow: 0 14px 36px rgba(15, 42, 31, .28);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, opacity .25s, visibility .25s;
}
.fab:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(15, 42, 31, .34); }
.fab__ic { width: 40px; height: 40px; border-radius: 999px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.fab__ic .icon { width: 18px; height: 18px; }
.fab__txt { display: flex; flex-direction: column; line-height: 1.15; }
.fab__txt small { font-size: 11.5px; color: var(--dark-muted); }
.fab__txt strong { font-size: 14px; font-weight: 650; letter-spacing: .01em; }

.bar {
  position: fixed; inset: auto 0 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s1);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line-2);
  transition: transform .25s, visibility .25s;
}
.bar .btn { min-height: 50px; padding: 0 12px; font-size: 14px; }

.fab, .bar { visibility: hidden; opacity: 0; pointer-events: none; }
.bar { transform: translateY(100%); opacity: 1; }
@media (min-width: 760px) {
  .bar { display: none; }
  .show-fab .fab { visibility: visible; opacity: 1; pointer-events: auto; }
}
@media (max-width: 759.98px) {
  .fab { display: none; }
  .show-bar .bar { visibility: visible; transform: none; pointer-events: auto; }
}
.menu-open .fab, .menu-open .bar { visibility: hidden !important; }

/* ---------- Apparition au défilement (JS uniquement) ---------- */
.js [data-reveal].is-hidden { opacity: 0; transform: translate3d(0, 28px, 0); }
.js [data-reveal] { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal].is-hidden { opacity: 1; transform: none; }
}

@media print {
  .header, .menu, .fab, .bar, .play { display: none !important; }
  .hero { padding-top: 24px; }
}

/* ---------- Cibles tactiles ≥ 44 px (sans changer le rendu visuel) ---------- */
.topbar__rating { align-self: stretch; }
.brand { min-height: 44px; }
.link-u, .qual__link, .contact__route { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; border-bottom: 0; }
.link-u { background: linear-gradient(currentColor, currentColor) 0 calc(50% + 0.85em) / 100% 1px no-repeat; }
.caption-row a, .footer__in a { display: inline-flex; align-items: center; min-height: 44px; }
.caption-row { align-items: center; }
.footer__in p { line-height: 1.6; }
.footer nav a { padding-block: 0; }

/* Très petits écrans : l'en-tête garde le nom entier sans chevaucher les actions */
@media (max-width: 379.98px) {
  .brand { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: 14px; white-space: normal; }
  .brand__sub { display: none; }
}

/* Formulaire : piège à robots, envoi en cours */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit[aria-busy="true"] { opacity: .7; cursor: progress; }
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer__copy { margin-top: var(--s1); font-size: 13px; }

/* ---------- Pages secondaires (mentions, merci, 404) ---------- */
.simple-hdr { background: var(--mint); border-bottom: 1px solid var(--line-2); }
.simple-hdr__in { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.simple-hdr__back { min-height: 44px; padding: 0 16px; font-size: 14px; }
.page-simple main { min-height: 60vh; }
.legal { --gap: var(--s7); max-width: 760px; }
.legal__head { --gap: var(--s3); }
.legal section { --gap: var(--s2); }
.legal h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.legal p { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.legal a, .simple-msg .lead a { text-decoration: underline; text-underline-offset: 2px; }
.legal .meta > div { grid-template-columns: minmax(96px, 130px) minmax(0, 1fr); }
.simple-msg { --gap: var(--s5); max-width: 640px; }
.page-simple .footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }

/* ---------- Captcha Cloudflare Turnstile ---------- */
.captcha { min-height: 65px; }
.captcha iframe { max-width: 100%; }
.form__error:empty { display: none; }

/* ---------- Entreprise : logo + chiffres clés ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cols); align-items: center; }
.about-grid .about-card { order: -1; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .about-grid .about-card { order: 0; }
}
.about-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--s5);
  padding: clamp(28px, 3.5vw, 48px); background: var(--mint); text-align: center;
}
.about-card > * { margin: 0; }
.about-card__logo { width: clamp(140px, 16vw, 200px); height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 12px 32px rgba(15, 42, 31, .16); }
.about-card__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%;
  border-top: 1px solid var(--ink);
}
.about-card__stats li { display: flex; flex-direction: column; gap: 4px; padding: var(--s3) var(--s1) 0; }
.about-card__stats li + li { border-left: 1px solid var(--line); }
.about-card__stats strong { font-size: clamp(26px, 2.6vw, 36px); line-height: 1; font-weight: 700; font-stretch: 82%; letter-spacing: -.02em; }
.about-card__stats span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.footer__brand { display: flex; align-items: flex-start; gap: var(--s3); }
.footer__brand img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; }
@media (max-width: 379.98px) { .about-card__stats strong { font-size: 24px; } }
.footer__contact { display: flex; flex-wrap: wrap; column-gap: var(--s5); }
