﻿@charset "UTF-8";
/* ══════════════════════════════════════════════════════════════════════════
   TechDomicile — Design system V2
   Charte d'origine (bleu #2b5ce6, DM Serif Display + Inter) sur la mise en page V2
   Design V2 conserve : seules les couleurs et les polices ont ete remplacees
   ══════════════════════════════════════════════════════════════════════════ */

@import url("fonts.css");

/* ─── 1. TOKENS ────────────────────────────────────────────────────────── */
:root {
  /* Neutres : blanc et gris de la charte d'origine */
  --sand-50:  #ffffff;
  --sand-100: #f9f9f8;
  --sand-200: #f4f4f5;
  --sand-300: #e4e4e7;
  --sand-400: #d4d4d8;

  /* Noirs et gris de texte */
  --ink-950: #0c0c0c;
  --ink-900: #141414;
  --ink-800: #1e1e1e;
  --ink-600: #71717a;
  --ink-500: #8b8b93;

  /* Accent unique : le bleu de marque #2b5ce6 */
  --copper-700: #1e47c2;
  --copper-600: #2b5ce6;
  --copper-500: #7ba3f8;
  --copper-200: #c7d7fc;
  --copper-100: #eff4ff;

  /* Sémantique — les sections n'utilisent QUE ces alias */
  --surface-page:    var(--sand-50);
  --surface-sunken:  var(--sand-100);
  --surface-card:    #fff;
  --surface-ink:     var(--ink-950);
  --text-title:      var(--ink-950);
  --text-body:       var(--ink-600);
  --text-muted:      var(--ink-500);
  --text-on-ink:     var(--sand-50);
  --text-on-ink-mut: rgba(255,255,255,0.45);
  --accent:          var(--copper-600);
  --accent-strong:   var(--copper-700);
  --accent-soft:     var(--copper-100);
  --accent-line:     var(--copper-200);
  --border:          rgba(0,0,0,0.07);
  --border-strong:   rgba(0,0,0,0.12);
  --border-ink:      #1e1e1e;
  --ok:              #16a34a;

  /* Typo */
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  /* Echelle recalibree pour DM Serif Display, sensiblement plus large que la
     police pour laquelle ces tailles avaient ete posees (evite les orphelines). */
  --fs-display: clamp(2.35rem, 1.1rem + 4.4vw, 4.35rem);
  --fs-h2:      clamp(1.85rem, 1.15rem + 2.4vw, 2.9rem);
  --fs-h3:      clamp(1.16rem, 1.02rem + 0.5vw, 1.42rem);
  --fs-lead:    clamp(1.02rem, 0.96rem + 0.32vw, 1.2rem);
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.78rem;

  /* Rythme */
  --section-y:  clamp(64px, 8.5vw, 128px);
  --gutter:     clamp(20px, 5vw, 60px);
  --content-max: 1240px;
  --radius:     20px;
  --radius-sm:  12px;
  --radius-pill: 100px;
  --arch:       999px 999px 22px 22px / 62% 62% 8% 8%;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05), 0 2px 6px rgba(0,0,0,0.04);
  --shadow:    0 2px 6px rgba(0,0,0,0.05), 0 10px 28px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.06), 0 26px 62px rgba(0,0,0,0.10);

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --header-h: 74px;
}

/* ─── 2. RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* Garde-fou anti-CLS : width/height sur <img> ne doit jamais deformer l'image */
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--copper-200); color: var(--ink-950); }

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 999;
  background: var(--surface-ink); color: var(--text-on-ink);
  padding: 10px 18px; border-radius: var(--radius-sm); font-size: var(--fs-sm);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── 3. TYPO ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-title);
}
h1 { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.032em; }
h2 { font-size: var(--fs-h2);      line-height: 1.05; letter-spacing: -0.026em; }
h3 { font-size: var(--fs-h3);      line-height: 1.25; letter-spacing: -0.014em; }
h4 { font-size: 1.02rem;           line-height: 1.3;  letter-spacing: -0.01em; }
em.script { font-style: italic; color: var(--accent); }

strong { font-weight: 600; color: var(--text-title); }

/* ─── 4. LAYOUT & ANATOMIE DE SECTION ──────────────────────────────────── */
.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); position: relative; }
.section--sunken { background: var(--surface-sunken); border-block: 1px solid var(--border); }
.section--ink { background: var(--surface-ink); color: var(--text-on-ink-mut); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--text-on-ink); }
.section--ink .intro { color: var(--text-on-ink-mut); }
.section--ink .overline { color: var(--copper-500); }
.section--ink .rule { background: var(--copper-500); }

.head { max-width: 640px; margin-bottom: clamp(34px, 4.5vw, 60px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rule { display: block; width: 30px; height: 2px; background: var(--accent); border-radius: 2px; }
.overline {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-strong);
}
.intro { font-size: var(--fs-lead); color: var(--text-body); margin-top: 18px; max-width: 56ch; }

/* ─── 5. BOUTONS ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-size: 0.925rem; font-weight: 600; letter-spacing: -0.005em;
  min-height: 48px; text-align: center;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(43,92,230,0.26); }
.btn--accent:hover { background: var(--accent-strong); box-shadow: 0 10px 26px rgba(43,92,230,0.30); }

.btn--ink { background: var(--surface-ink); color: var(--text-on-ink); }
.btn--ink:hover { background: var(--ink-800); }

.btn--ghost { border: 1px solid var(--border-strong); color: var(--text-title); background: var(--surface-card); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn--on-ink { background: var(--sand-50); color: var(--ink-950); }
.btn--on-ink:hover { background: #fff; }
.btn--ghost-on-ink { border: 1px solid var(--border-ink); color: var(--text-on-ink); }
.btn--ghost-on-ink:hover { border-color: var(--copper-500); color: var(--copper-500); }

.btn--lg { padding: 16px 32px; font-size: 1rem; min-height: 54px; }
.btn--block { width: 100%; }

/* ─── 6. HEADER ────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header[data-scrolled="true"] { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px 10px 9px 9px / 40% 40% 9% 9%;
  background: var(--surface-ink); color: var(--copper-500);
  display: grid; place-items: center;
}
.brand__name {
  font-family: var(--font-display); font-size: 1.24rem;
  letter-spacing: -0.028em; color: var(--ink-950); line-height: 1;
}
.brand__name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-size: 0.905rem; font-weight: 500; color: var(--text-body);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover { color: var(--ink-950); background: var(--sand-200); }
.nav__link[aria-current="page"] { color: var(--ink-950); font-weight: 600; }

.nav__group { position: relative; }
.nav__group > .nav__link svg { transition: transform 0.25s var(--ease); }
.nav__group:hover > .nav__link svg, .nav__group:focus-within > .nav__link svg { transform: rotate(180deg); }

.megamenu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(660px, calc(100vw - 40px));
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 14px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav__group:hover .megamenu, .nav__group:focus-within .megamenu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.megamenu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.megamenu__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); transition: background-color 0.18s var(--ease);
}
.megamenu__item:hover { background: var(--sand-100); }
.megamenu__icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center;
}
.megamenu__name { display: block; font-size: 0.895rem; font-weight: 600; color: var(--ink-950); line-height: 1.3; }
.megamenu__desc { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.megamenu__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 12px; padding: 12px 12px 4px; border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--text-muted);
}
.megamenu__cta { color: var(--accent-strong); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.905rem; font-weight: 600; color: var(--ink-950);
  padding: 9px 14px; border-radius: var(--radius-pill);
  transition: background-color 0.2s var(--ease);
}
.header__tel svg { color: var(--accent); }
.header__tel:hover { background: var(--sand-200); }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface-card);
  place-items: center; gap: 5px; flex-direction: column;
}
.burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink-950);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: 95;
  background: var(--surface-page);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 12px) var(--gutter) 28px;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
body[data-drawer="open"] { overflow: hidden; }
.drawer__section + .drawer__section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.drawer__label {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px; display: block;
}
.drawer__link {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  font-size: 1.06rem; font-weight: 600; color: var(--ink-950);
  border-bottom: 1px solid var(--border);
}
.drawer__link svg { color: var(--accent); }
.drawer__services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__service {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600; color: var(--ink-950);
  line-height: 1.25;
}
.drawer__service svg { color: var(--accent); }
.drawer__actions { display: grid; gap: 10px; margin-top: 26px; }

/* ─── 7. HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface-page);
  padding-block: clamp(48px, 6vw, 92px) clamp(56px, 7vw, 104px);
}
.hero::before {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background:
    radial-gradient(58% 62% at 78% 12%, rgba(239,244,255,0.9) 0%, transparent 62%),
    radial-gradient(46% 52% at 8% 96%, rgba(244,244,245,0.85) 0%, transparent 60%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: radial-gradient(circle, rgba(43,92,230,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(72% 68% at 50% 32%, #000 0%, transparent 78%);
  mask-image: radial-gradient(72% 68% at 50% 32%, #000 0%, transparent 78%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5vw, 68px); align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-card); border: 1px solid var(--accent-line);
  color: var(--accent-strong); border-radius: var(--radius-pill);
  padding: 7px 15px 7px 11px; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.hero__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.35); } }

.hero h1 { margin-bottom: 22px; }
.hero__sub { font-size: var(--fs-lead); color: var(--text-body); max-width: 46ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-body); font-weight: 500; }
.check svg { color: var(--accent); }

/* Visuel hero : l'arche + carte intervention */
.hero__visual { position: relative; display: flex; justify-content: center; }
.arch {
  position: relative; width: min(100%, 380px); aspect-ratio: 5 / 6;
  border-radius: var(--arch);
  background: linear-gradient(168deg, var(--ink-900) 0%, var(--ink-950) 62%, #101010 100%);
  border: 1px solid var(--border-ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  /* Le padding-bas doit etre PLUS HAUT que la partie de la carte qui remonte
     dans l'arche (carte ~215px, debordement -22px => elle mord 193px), sinon
     elle recouvre la legende. */
  padding: 34px 26px 210px;
}
.arch::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}
.arch::after {
  content: ""; position: absolute; z-index: 0; inset: -30% -10% auto -10%; height: 60%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(43,92,230,0.30) 0%, transparent 70%);
}
/* Glyphe en haut, legende en bas, `auto` entre les deux : quelle que soit la
   hauteur de l'arche les deux ne peuvent jamais se chevaucher. */
.arch__glyph { position: relative; z-index: 1; color: var(--copper-500); opacity: 0.92; margin-bottom: auto; }
.arch__caption { position: relative; z-index: 1; margin-top: auto; align-self: stretch; }
.arch__caption p {
  font-family: var(--font-display); font-size: 1.32rem; line-height: 1.28;
  color: var(--sand-50); letter-spacing: -0.02em;
}
.arch__caption span { display: block; margin-top: 8px; font-size: var(--fs-sm); color: var(--text-on-ink-mut); }

.hero__card {
  /* deborde sous l'arche : ne recouvre jamais la legende */
  position: absolute; left: clamp(-26px, -2vw, 0px); bottom: -22px;
  width: min(286px, 82%);
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px;
}
.hero__card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hero__live {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok);
}
.hero__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s var(--ease) infinite; }
.hero__card-time { font-size: var(--fs-xs); color: var(--text-muted); }
.hero__card-row { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 12px 12px 9px 9px / 40% 40% 9% 9%;
  background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-size: 1rem;
}
.hero__card-row strong { display: block; font-size: 0.885rem; color: var(--ink-950); line-height: 1.3; }
.hero__card-row span { font-size: var(--fs-xs); color: var(--text-muted); }
.hero__card-note {
  background: var(--sand-100); border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 0.815rem; color: var(--text-body); line-height: 1.5; margin-bottom: 12px;
}
.hero__card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag-ok {
  display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 400;
  background: rgba(22,163,74,0.12); color: #15803d;
  padding: 4px 11px; border-radius: var(--radius-pill);
}
.hero__card-foot > span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ─── 8. BANDEAU CHIFFRES ──────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-card); overflow: hidden;
}
.stat { padding: clamp(22px, 3vw, 34px) clamp(16px, 2vw, 28px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__val {
  display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
  line-height: 1; color: var(--ink-950); letter-spacing: -0.03em; margin-bottom: 8px;
}
.stat__lbl { font-size: var(--fs-sm); color: var(--text-muted); }

.strip {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid var(--border);
}
.strip__label {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}
.strip__items { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.strip__items span {
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-body);
  background: var(--surface-card); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--radius-pill);
}

/* ─── 9. CARTES SERVICES ───────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px 26px; overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--copper-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 20px; flex-shrink: 0;
  border-radius: 14px 14px 10px 10px / 42% 42% 10% 10%;
  background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center;
}
.card__num {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-display); font-size: 0.85rem; color: var(--sand-400);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.905rem; line-height: 1.62; flex: 1; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border-strong);
}
.card__price { font-size: var(--fs-sm); color: var(--text-muted); }
.card__price strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--accent-strong); font-weight: 400; }
.card__more { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-950); display: inline-flex; align-items: center; gap: 5px; }
.card__more svg { transition: transform 0.25s var(--ease); }
.card:hover .card__more svg { transform: translateX(3px); }
.card--feature { grid-column: span 2; background: var(--surface-ink); border-color: var(--border-ink); }
.card--feature h3 { color: var(--text-on-ink); }
.card--feature p { color: var(--text-on-ink-mut); }
.card--feature .card__icon { background: rgba(255,255,255,0.08); color: var(--copper-500); }
.card--feature .card__num { color: var(--ink-800); }
.card--feature .card__foot { border-top-color: var(--border-ink); }
.card--feature .card__price { color: var(--text-on-ink-mut); }
.card--feature .card__price strong { color: var(--copper-500); }
.card--feature .card__more { color: var(--text-on-ink); }

/* ─── 10. PROCESS ──────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px 13px 9px 9px / 40% 40% 9% 9%;
  background: var(--surface-ink); color: var(--copper-500);
  font-family: var(--font-display); font-size: 1.06rem; margin-bottom: 20px;
}
.step h3 { margin-bottom: 9px; }
.step p { font-size: 0.9rem; line-height: 1.6; }

/* ─── 11. GRILLE « POURQUOI » ──────────────────────────────────────────── */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-ink); border: 1px solid var(--border-ink); border-radius: var(--radius); overflow: hidden; }
.reason { background: var(--surface-ink); padding: 30px 26px; transition: background-color 0.25s var(--ease); }
.reason:hover { background: var(--ink-900); }
.reason__icon {
  width: 42px; height: 42px; border-radius: 13px; margin-bottom: 18px;
  background: rgba(255,255,255,0.07); color: var(--copper-500);
  display: grid; place-items: center;
}
.reason h3 { margin-bottom: 8px; }
.reason p { font-size: 0.9rem; line-height: 1.62; color: var(--text-on-ink-mut); }

/* ─── 12. TARIFS ───────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  position: relative; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column;
}
.plan--feature {
  border-color: var(--accent); box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--copper-100) 0%, var(--surface-card) 32%);
}
.plan__badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--radius-pill);
}
.plan__name { font-family: var(--font-display); font-size: 1.24rem; color: var(--ink-950); letter-spacing: -0.02em; }
.plan__desc { font-size: 0.885rem; color: var(--text-muted); margin-top: 5px; }
.plan__price {
  font-family: var(--font-display); font-size: clamp(2.4rem, 1.8rem + 1.8vw, 3.1rem);
  color: var(--ink-950); letter-spacing: -0.035em; line-height: 1; margin-top: 22px;
}
.plan__price sup { font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; color: var(--text-muted); vertical-align: super; letter-spacing: 0; }
.plan__unit { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 9px; }
.plan__list { margin: 22px 0 26px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; gap: 11px; flex: 1; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.5; }
.plan__list svg { color: var(--accent); margin-top: 3px; }
.note {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 28px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-size: var(--fs-sm); color: var(--accent-strong); text-align: center;
}
.note svg { color: var(--accent); }

/* ─── 13. AVIS ─────────────────────────────────────────────────────────── */
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.score {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 11px 20px; box-shadow: var(--shadow-sm);
}
.stars { display: inline-flex; gap: 2px; color: var(--copper-500); }
.score__txt { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-950); }
.score__txt span { font-weight: 400; color: var(--text-muted); }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review__quote {
  font-family: var(--font-display); font-size: 1.04rem; line-height: 1.55;
  color: var(--ink-950); letter-spacing: -0.012em; margin: 16px 0 22px; flex: 1;
}
.review__author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.review__author strong { display: block; font-size: 0.9rem; color: var(--ink-950); line-height: 1.3; }
.review__author span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ─── 13 bis. RÉALISATIONS (portfolio des sites livrés) ────────────────── */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.work {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.work:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }

/* Barre de navigateur stylisee : evoque un site en ligne sans capture d'ecran */
.work__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px; background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
}
.work__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--sand-300); flex-shrink: 0; }
.work__bar i:nth-child(1) { background: #f07a6a; }
.work__bar i:nth-child(2) { background: #f5c76a; }
.work__bar i:nth-child(3) { background: #7fc98a; }
.work__bar span {
  margin-left: 8px; flex: 1; min-width: 0;
  font-size: 0.74rem; color: var(--text-muted);
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 4px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Capture PLEINE PAGE du site client (1200x3600, soit un ratio de 1/3).
   Le cadre montre le haut du site ; au survol l'image defile lentement pour
   donner a voir la page entiere — l'effet d'une video, avec une seule image. */
.work__shot {
  display: block; overflow: hidden; position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-sunken); border-bottom: 1px solid var(--border);
}
.work__shot img {
  width: 100%; aspect-ratio: 1 / 3;   /* hauteur = 3x la largeur du cadre */
  object-fit: cover; object-position: top center;
  transition: transform 0.8s var(--ease);
}

/* Course : (hauteur image - hauteur cadre) / hauteur image
   = (3 - 0.625) / 3 = 79.2 % de la hauteur de l'image.
   Duree : ~2850 px parcourus en 19 s, soit environ 150 px/s — le compromis retenu.
   La courbe est volontairement PRESQUE LINEAIRE : une ease-in-out classique
   accelere jusqu'a 1,5x au milieu, et c'est ce pic qui donne l'impression que
   ca file. Ici le pic reste sous 1,25x, la vitesse est donc quasi constante. */
@media (hover: hover) {
  .work:hover .work__shot img {
    transform: translateY(-79.2%);
    transition: transform 19s cubic-bezier(0.2, 0, 0.8, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .work:hover .work__shot img { transform: none; }
}

.work__body { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 18px; flex: 1; }
.work__tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-strong);
}
.work__name { font-family: var(--font-display); font-size: 1.32rem; color: var(--text-title); letter-spacing: -0.02em; line-height: 1.2; }
.work__desc { font-size: 0.91rem; line-height: 1.65; color: var(--text-body); }
.work__go {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 24px 22px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-title);
}
.work__go svg { transition: transform 0.25s var(--ease); }
.work:hover .work__go { color: var(--accent-strong); }
.work:hover .work__go svg { transform: translate(2px, -2px); }

/* ─── 14. ZONE ─────────────────────────────────────────────────────────── */
.zone__map { display: flex; flex-direction: column; gap: 20px; }

.map {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 16 / 10;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-sunken);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease);
}
.map:hover { box-shadow: var(--shadow); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.zone__cities { display: flex; flex-wrap: wrap; gap: 8px; }
/* Apparition en cascade des communes, sans surcharger le JS */
.js .reveal.in .zone__cities .chip { animation: chipIn 0.45s var(--ease) both; }
@keyframes chipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.js .reveal.in .zone__cities .chip:nth-child(n+1)  { animation-delay: 0.02s; }
.js .reveal.in .zone__cities .chip:nth-child(n+6)  { animation-delay: 0.08s; }
.js .reveal.in .zone__cities .chip:nth-child(n+11) { animation-delay: 0.14s; }
.js .reveal.in .zone__cities .chip:nth-child(n+16) { animation-delay: 0.20s; }
.js .reveal.in .zone__cities .chip:nth-child(n+21) { animation-delay: 0.26s; }
.js .reveal.in .zone__cities .chip:nth-child(n+26) { animation-delay: 0.32s; }
.js .reveal.in .zone__cities .chip:nth-child(n+31) { animation-delay: 0.38s; }

.zone { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.zone__groups { display: grid; gap: 22px; }
.zone__group h4 { margin-bottom: 12px; color: var(--ink-950); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-body);
  background: var(--surface-card); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: var(--radius-pill);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--accent-line); color: var(--accent-strong); background: var(--accent-soft); }
.chip--star { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); font-weight: 400; }

/* ─── 15. FAQ ──────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.faq details[open] { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 22px; cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 600; color: var(--ink-950); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 11px; height: 11px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent-strong); }
.faq__body { padding: 0 22px 20px; font-size: 0.94rem; line-height: 1.7; color: var(--text-body); }
.faq__body p + p { margin-top: 12px; }

/* ─── 16. BANDEAU CTA ──────────────────────────────────────────────────── */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface-ink); color: var(--text-on-ink-mut);
  padding-block: clamp(56px, 7vw, 96px); text-align: center;
}
.band::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(58% 100% at 50% 0%, rgba(43,92,230,0.22) 0%, transparent 68%),
    radial-gradient(40% 70% at 88% 100%, rgba(43,92,230,0.16) 0%, transparent 70%);
}
.band h2 { color: var(--text-on-ink); margin-bottom: 14px; }
.band p { font-size: var(--fs-lead); max-width: 52ch; margin: 0 auto 30px; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ─── 17. CONTACT ──────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(34px, 4.5vw, 64px); align-items: start; }
.contact__items { display: grid; gap: 14px; margin-top: 30px; }
.contact__item {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
a.contact__item:hover { border-color: var(--accent-line); transform: translateX(3px); }
.contact__ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center;
}
.contact__item strong { display: block; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact__item span { font-size: 0.945rem; font-weight: 500; color: var(--ink-950); }

.form {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-950); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  font-size: 16px; /* >=16px : evite le zoom auto iOS */
  background: var(--sand-50); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--ink-950);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23616b7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,92,230,0.16);
}
.field input::placeholder, .field textarea::placeholder { color: #a1a1aa; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consent { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 20px; }
.consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.consent label { font-size: var(--fs-xs); line-height: 1.55; color: var(--text-muted); }
.consent a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

.form__status { margin-top: 14px; font-size: var(--fs-sm); font-weight: 600; text-align: center; min-height: 22px; }
.form__status[data-state="ok"]  { color: #15803d; }
.form__status[data-state="err"] { color: #dc2626; }

/* ─── 18. FOOTER ───────────────────────────────────────────────────────── */
.footer { background: var(--surface-ink); color: var(--text-on-ink-mut); padding-block: clamp(48px, 6vw, 76px) 28px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 52px); }
.footer .brand__name { color: var(--sand-50); }
.footer .brand__mark { background: rgba(255,255,255,0.08); }
.footer__brand p { font-size: 0.9rem; line-height: 1.68; margin-top: 18px; max-width: 34ch; }
.footer h4 { color: var(--sand-50); font-size: 0.98rem; margin-bottom: 16px; }
.footer__col li + li { margin-top: 10px; }
.footer__col a, .footer__col span { font-size: 0.9rem; color: var(--text-on-ink-mut); transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--copper-500); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(36px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--border-ink);
  font-size: var(--fs-xs);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__bottom a:hover { color: var(--copper-500); }

/* ─── 19. BARRE CTA MOBILE + MODAL ─────────────────────────────────────── */
.dock {
  display: none; position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  gap: 10px;
}
.dock .btn { flex: 1; padding-inline: 14px; font-size: 0.9rem; }

.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.modal[data-open="true"] { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(12,12,12,0.55); }
.modal__panel {
  position: relative; width: min(440px, 100%);
  background: var(--surface-page); border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  transform: translateY(14px); transition: transform 0.28s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal[data-open="true"] .modal__panel { transform: translateY(0); }
.modal__panel h3 { margin-bottom: 6px; }
.modal__panel > p { font-size: var(--fs-sm); margin-bottom: 20px; }
.modal__actions { display: grid; gap: 10px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--sand-200); color: var(--ink-950);
}

/* ─── 20. PAGES INTÉRIEURES ────────────────────────────────────────────── */
.pagehead {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(46px, 6vw, 84px) clamp(38px, 5vw, 68px);
  border-bottom: 1px solid var(--border);
}
.pagehead::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(52% 78% at 82% 8%, rgba(239,244,255,0.85) 0%, transparent 64%);
}
.pagehead h1 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.65rem); margin-bottom: 18px; }
.pagehead .intro { max-width: 60ch; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--accent-strong); }
.crumbs span[aria-current] { color: var(--ink-950); font-weight: 600; }

.prose { max-width: 74ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 44px; font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.1rem); }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { font-size: 1.01rem; line-height: 1.78; }
.prose ul, .prose ol { display: grid; gap: 10px; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 0.66em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: 0.1em;
  font-family: var(--font-display); font-size: 0.92rem; color: var(--accent-strong);
}
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink-950); }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 22px;
  font-family: var(--font-display); font-size: 1.14rem; line-height: 1.6; color: var(--ink-950);
}
.callout {
  background: var(--surface-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 20px 24px;
}
.callout h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.06rem; }
.callout p { font-size: 0.95rem; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
a.tile:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tile__icon {
  width: 42px; height: 42px; border-radius: 13px; margin-bottom: 6px;
  background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center;
}
.tile p { font-size: 0.9rem; line-height: 1.6; }
.tile__meta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--text-muted); }
.tile__cat {
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 3px 10px; border-radius: var(--radius-pill);
}

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }
.panel { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.panel h3 { margin-bottom: 14px; }
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; line-height: 1.55; }
.checklist svg { color: var(--accent); margin-top: 3px; }

.toc { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; }
.toc h2 { font-size: 1.02rem; margin: 0 0 14px; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; }
.toc ol { display: grid; gap: 9px; counter-reset: t; }
.toc li { counter-increment: t; font-size: 0.925rem; }
.toc a { color: var(--text-body); }
.toc a:hover { color: var(--accent-strong); }
.toc li::before { content: counter(t) ". "; color: var(--accent); font-weight: 400; }

.legal-meta { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 8px; }

/* ─── 21. ANIMATIONS (gatées .js + prefers-reduced-motion) ─────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in .stagger > *, .js .stagger.in > * { animation: rise 0.66s var(--ease) both; }
.js .stagger.in > *:nth-child(1) { animation-delay: 0.04s; }
.js .stagger.in > *:nth-child(2) { animation-delay: 0.1s; }
.js .stagger.in > *:nth-child(3) { animation-delay: 0.16s; }
.js .stagger.in > *:nth-child(4) { animation-delay: 0.22s; }
.js .stagger.in > *:nth-child(5) { animation-delay: 0.28s; }
.js .stagger.in > *:nth-child(6) { animation-delay: 0.34s; }
.js .stagger.in > *:nth-child(7) { animation-delay: 0.4s; }
.js .stagger.in > *:nth-child(8) { animation-delay: 0.46s; }
.js .stagger.in > *:nth-child(9) { animation-delay: 0.52s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Entree hero en cascade — on anime les enfants, jamais un parent qui creerait
   un contexte d'empilement et piegerait les z-index du visuel. */
.js .hero__intro > * { animation: rise 0.8s var(--ease) both; }
.js .hero__intro > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero__intro > *:nth-child(2) { animation-delay: 0.14s; }
.js .hero__intro > *:nth-child(3) { animation-delay: 0.23s; }
.js .hero__intro > *:nth-child(4) { animation-delay: 0.32s; }
.js .hero__intro > *:nth-child(5) { animation-delay: 0.41s; }
.js .arch { animation: archIn 1.05s var(--ease) 0.2s both; }
@keyframes archIn { from { opacity: 0; transform: translateY(26px) scale(0.97); } to { opacity: 1; transform: none; } }
.js .hero__card { animation: rise 0.8s var(--ease) 0.62s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ─── 22. RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .nav, .header__tel { display: none; }
  .burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  /* Le titre reste en premier : c'est lui qui doit accrocher au chargement. */
  .hero__visual { flex-direction: column; align-items: center; }
  .arch { width: min(100%, 330px); aspect-ratio: 4 / 5; padding-bottom: 30px; }
  .hero__card { position: static; width: 100%; max-width: 330px; margin: -30px auto 0; }
  .zone, .contact, .split { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--feature { order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .dock { display: flex; }
  body { padding-bottom: 74px; }
}

@media (max-width: 720px) {
  .cards, .steps, .reasons, .tiles, .works { grid-template-columns: 1fr; }
  .card--feature { grid-column: auto; }
  .zone__map iframe { aspect-ratio: 4 / 3; }
  .reviews__head { align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .band__actions .btn, .pagehead__actions .btn, .hero__actions .btn { flex: 1 1 100%; }
  /* La barre CTA fixe assure deja Appeler / Nous joindre : on degage le header. */
  .header__actions > .btn { display: none; }
  .prose blockquote { padding-left: 18px; }
}

@media (max-width: 430px) {
  :root { --header-h: 60px; --radius: 16px; }
  .brand__name { font-size: 1.1rem; }
  .brand__mark { width: 30px; height: 30px; }
  .drawer__services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .card, .step, .review, .plan, .tile, .panel { padding-inline: 20px; }
  .faq summary { padding: 16px 18px; font-size: 0.95rem; }
  .faq__body { padding: 0 18px 18px; }
  .dock .btn { font-size: 0.85rem; gap: 6px; }
}

/* ─── 23. CONFORT TACTILE / MOBILE ─────────────────────────────────────── */

/* Sur ecran tactile il n'y a pas de "sortie de survol" : un :hover declenche au
   tap et reste fige. On neutralise donc les effets de survol et on les remplace
   par un retour au toucher (:active), plus juste et plus fluide. */
@media (hover: none) {
  .btn:hover, .card:hover, .step:hover, .review:hover,
  .plan:hover, .tile:hover, .work:hover, a.contact__item:hover { transform: none; }
  .work:hover .work__shot img { transform: none; }
  .card:hover .card__more svg, .work:hover .work__go svg { transform: none; }

  .btn:active { transform: scale(0.985); }
  .card:active, .work:active, .plan:active, .tile:active, .review:active { transform: scale(0.995); }
}

/* Titres : evite les orphelines sur les petites largeurs */
h1, h2, h3, .work__name, .plan__name { text-wrap: balance; }
.intro, .hero__sub, .work__desc { text-wrap: pretty; }

@media (max-width: 720px) {
  /* Respiration un peu resserree pour limiter le defilement interminable */
  :root { --section-y: clamp(52px, 11vw, 72px); }
  .head { margin-bottom: 26px; }
  .work__body { padding: 20px 20px 14px; }
  .work__go { margin: 0 20px 18px; }
  /* Zone tactile confortable sur les liens de navigation du footer */
  .footer__col li + li { margin-top: 14px; }
  .footer__bottom nav a { padding-block: 4px; }
}

@media print {
  .header, .dock, .modal, .band, .drawer, .footer__bottom nav { display: none !important; }
  body { background: #fff; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
