/* ==========================================================================
   HDV Web — feuille de style
   Mobile first · mode sombre automatique · animations respectueuses
   ========================================================================== */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --blue: #2563EB;
  --blue-strong: #1D4ED8;
  --blue-soft: #EFF4FF;

  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --accent-text: #1D4ED8;
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px rgb(15 23 42 / .06);
  --shadow-lg: 0 2px 4px rgb(15 23 42 / .04), 0 24px 48px rgb(15 23 42 / .10);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --gutter: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1120;
    --bg-alt: #0F172A;
    --surface: #131C31;
    --text: #E2E8F0;
    --muted: #94A3B8;
    --border: #1E293B;
    --blue-soft: #16223F;
    --accent-text: #7AA7FF;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px rgb(0 0 0 / .4);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 650;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Liens animés ---------- */
.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
  padding-bottom: 1px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; color: var(--accent-text); }
.link--arrow { color: var(--accent-text); font-weight: 600; }
.link--arrow::after { content: " →"; display: inline-block; transition: transform .25s var(--ease); }
.link--arrow:hover::after { transform: translateX(3px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.25em;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { min-height: 52px; padding: .85em 1.5em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgb(37 99 235 / .55); }
.btn--primary:hover { background: var(--blue-strong); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgb(37 99 235 / .6); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--blue); color: var(--accent-text); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #E8EEFF; transform: translateY(-2px); }
.btn--outline-light { color: #fff; border-color: rgb(255 255 255 / .35); background: transparent; }
.btn--outline-light:hover { border-color: #fff; transform: translateY(-2px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .2em .6em; border-radius: 6px; background: var(--blue-soft); color: var(--accent-text);
}
.tag--todo { background: #FEF3C7; color: #92400E; }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo img { height: 30px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 1rem var(--gutter) 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  box-shadow: var(--shadow-lg);
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: block; padding: .8rem 0; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav__link[aria-current="true"] { color: var(--accent-text); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 2rem;
    padding: 0; background: none; border: 0; box-shadow: none;
    transform: none; opacity: 1; visibility: visible;
  }
  .nav__list { flex-direction: row; gap: 1.75rem; }
  .nav__link {
    position: relative; padding: .4rem 0; border: 0; font-size: .95rem; color: var(--muted);
    transition: color .2s;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav__link:hover, .nav__link[aria-current="true"] { color: var(--text); }
  .nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
  .nav__cta { min-height: 42px; padding: .55em 1.1em; font-size: .9rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(2rem, 5vw, 3rem); }
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head__lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
  background: var(--bg);
}
.hero::before { /* grille technique très discrète */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero__inner { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.75rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: .4em; }
.hero__trust .icon { color: var(--blue); width: 1.1em; height: 1.1em; stroke-width: 2.4; }

.hero__visual { position: relative; max-width: 560px; width: 100%; margin-inline: auto; }
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .hero__visual { margin: 0; }
}

/* Fenêtre de navigateur générique */
.browser {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: var(--bg-alt);
}
.browser__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser__url {
  margin-left: 10px; flex: 1; max-width: 260px; height: 22px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .72rem; color: var(--muted); line-height: 20px; padding-inline: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__body { position: relative; aspect-ratio: 16 / 11; }

/* Code qui s'écrit */
.browser__code {
  position: absolute; inset: 0; margin: 0; padding: 20px 22px;
  background: #0B1120; color: #CBD5E1;
  font: 500 clamp(.68rem, 1.5vw, .8rem)/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow: hidden;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.browser__code .t { color: #7AA7FF; }
.browser__code .a { color: #A5B4FC; }
.browser__code .s { color: #86EFAC; }
.browser__code .c { color: #64748B; }
.caret { display: inline-block; width: .55em; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Page filaire qui se construit */
.wire { position: absolute; inset: 0; padding: 5% 6%; display: flex; flex-direction: column; gap: 7%; }
.wire i { display: block; border-radius: 6px; background: var(--border); }
.wire > *, .wire__copy > *, .wire__cards > *, .wire__nav > * {
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.wire__nav { display: flex; align-items: center; gap: 4%; }
.wire__nav i { height: 7px; width: 9%; }
.wire__nav .wire__logo { width: 18%; height: 12px; background: var(--navy); margin-right: auto; }
.wire__nav .wire__pill { width: 14%; height: 18px; border-radius: 99px; background: var(--blue); }
.wire__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; }
.wire__copy { display: flex; flex-direction: column; gap: 9px; }
.wire__title { height: 16px; width: 100%; background: var(--text) !important; opacity: .9; }
.wire__title--short { width: 70%; }
.wire__line { height: 7px; width: 95%; }
.wire__line--short { width: 60%; }
.wire__btn { height: 24px; width: 48%; border-radius: 99px !important; background: var(--blue) !important; margin-top: 6px; }
.wire__img { aspect-ratio: 1 / .85; border-radius: 12px; background: var(--blue-soft); position: relative; overflow: hidden; }
.wire__img i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--blue); right: 14%; bottom: 16%; opacity: .85; }
.wire__img::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); left: 16%; top: 16%; opacity: .8; }
.wire__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; flex: 1; }
.wire__cards i { border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); }

.is-built .browser__code { opacity: 0; transform: scale(.98); }
.is-built .wire > *, .is-built .wire__copy > *, .is-built .wire__cards > *, .is-built .wire__nav > * { opacity: 1; transform: none; }
.is-built .wire__nav > :nth-child(n) { transition-delay: .1s; }
.is-built .wire__copy > :nth-child(1) { transition-delay: .25s; }
.is-built .wire__copy > :nth-child(2) { transition-delay: .32s; }
.is-built .wire__copy > :nth-child(3) { transition-delay: .4s; }
.is-built .wire__copy > :nth-child(4) { transition-delay: .46s; }
.is-built .wire__copy > :nth-child(5) { transition-delay: .55s; }
.is-built .wire__img { transition-delay: .5s; }
.is-built .wire__cards > :nth-child(1) { transition-delay: .7s; }
.is-built .wire__cards > :nth-child(2) { transition-delay: .8s; }
.is-built .wire__cards > :nth-child(3) { transition-delay: .9s; }
.wire__hero { opacity: 1 !important; transform: none !important; }

.hero__badge {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem; border-radius: 12px; font-size: .8rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease) 1.1s, transform .5s var(--ease) 1.1s;
}
.is-built ~ .hero__badge, .hero__visual.done .hero__badge { opacity: 1; transform: none; }
.hero__badge--score { left: -14px; bottom: 16%; }
.hero__badge--score strong {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid #16A34A; color: #16A34A; font-family: var(--font-display); font-size: .95rem;
}
.hero__badge--mobile { right: -10px; top: 22%; }
.hero__badge--mobile .icon { color: #16A34A; stroke-width: 2.6; }
@media (max-width: 599px) {
  .hero__badge--score { left: 6px; bottom: -18px; }
  .hero__badge--mobile { right: 6px; top: auto; bottom: -18px; }
}

/* ---------- Chiffres clés ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.75rem 1rem; text-align: center; }
.stat:nth-child(odd) { border-right: 1px solid var(--border); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.stat__value {
  font-family: var(--font-display); font-weight: 650; font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -.03em; line-height: 1; margin-bottom: .4rem; font-variant-numeric: tabular-nums;
}
.stat__value span { color: var(--accent-text); }
.stat__label { font-size: .9rem; color: var(--muted); margin: 0; }
@media (min-width: 800px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 2.5rem 1.25rem; border: 0 !important; }
  .stat + .stat { border-left: 1px solid var(--border) !important; }
}

/* ---------- Pourquoi un site ---------- */
.facts { display: grid; gap: 1.25rem; }
.fact {
  margin: 0; padding: 2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.fact__value {
  font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 3.8rem); font-weight: 650;
  letter-spacing: -.04em; line-height: 1; color: var(--accent-text); margin-bottom: 1rem;
}
.fact figcaption p { font-size: 1.05rem; margin-bottom: 1rem; }
.fact cite { font-style: normal; font-size: .8rem; color: var(--muted); }
.fact cite a { color: inherit; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cartes (services) ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--blue) 35%, var(--border)); }
.card p { color: var(--muted); font-size: .95rem; }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1.25rem;
  border-radius: 12px; background: var(--blue-soft); color: var(--accent-text);
}
.card__icon .icon { width: 24px; height: 24px; }
.card__icon--light { background: rgb(255 255 255 / .1); color: #fff; }
.card__list { display: grid; gap: .45rem; font-size: .9rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.card__list li { position: relative; padding-left: 1.2rem; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); }

.checklist { display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist .icon { color: var(--blue); stroke-width: 2.4; margin-top: .15em; width: 1.1em; height: 1.1em; }

/* ---------- Réalisations ---------- */
.projects { display: grid; gap: 2.5rem 1.75rem; }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { outline-offset: 6px; border-radius: var(--radius); }
.devices { position: relative; padding: 1.5rem 1.5rem 1.75rem 0; }
.laptop__screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border: 8px solid var(--navy); border-bottom-width: 10px; border-radius: 12px 12px 0 0;
  background: var(--bg-alt); container-type: size;
}
.laptop::after { /* socle */
  content: ""; display: block; height: 10px; margin-inline: -6%;
  background: linear-gradient(#CBD5E1, #94A3B8); border-radius: 0 0 12px 12px;
}
.laptop__screen img, .phone__screen img {
  width: 100%; height: auto; transition: transform 5s cubic-bezier(.45, 0, .55, 1);
}
.phone {
  position: absolute; right: 0; bottom: 0; width: 26%;
  border: 5px solid var(--navy); border-radius: 16px; background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.phone__screen { aspect-ratio: 9 / 19; overflow: hidden; border-radius: 11px; background: var(--bg-alt); container-type: size; }
.project:hover .laptop__screen img, .project:focus-visible .laptop__screen img,
.project:hover .phone__screen img, .project:focus-visible .phone__screen img {
  transform: translateY(calc(-100% + 100cqh));
}
.project__meta { padding-top: .5rem; }
.project__meta h3 { margin: .6rem 0 .2rem; }
.project__meta p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Avant / après */
.compare {
  display: grid; gap: 2rem; align-items: center; margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: calc(var(--radius) + 6px);
  background: var(--bg-alt); border: 1px solid var(--border);
}
.compare h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.compare p { color: var(--muted); }
.compare .checklist { margin-bottom: 1rem; }
@media (min-width: 960px) { .compare { grid-template-columns: 1fr 1.5fr; gap: 3rem; } }
.ba {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10;
  user-select: none; touch-action: pan-y;
}
.ba__img { width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgb(15 23 42 / .2); pointer-events: none;
}
.ba__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--navy); font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 4px 14px rgb(15 23 42 / .25);
}
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.ba__range:focus-visible + .ba__handle, .ba:has(.ba__range:focus-visible) .ba__handle::after { outline: 3px solid var(--blue); outline-offset: 2px; }
.ba__label {
  position: absolute; top: 12px; padding: .25em .7em; border-radius: 6px; font-size: .75rem; font-weight: 600;
  background: rgb(15 23 42 / .75); color: #fff; pointer-events: none;
}
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; background: var(--blue); }

/* ---------- Démo interactive ---------- */
.demo { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .demo { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }
.demo__controls { display: grid; gap: 1.25rem; margin-top: 2rem; }
.demo__controls fieldset, .sim-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.demo__controls legend, .sim-group legend, .sim-label {
  font-weight: 600; font-size: .85rem; margin-bottom: .6rem; padding: 0; display: block;
}
.swatches, .chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.swatch { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--c); cursor: pointer; transition: transform .2s var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch input, .chip input, .option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--bg-alt), 0 0 0 5px var(--c); }
.swatch:has(input:focus-visible), .chip:has(input:focus-visible) span, .option:has(input:focus-visible) {
  outline: 3px solid var(--blue); outline-offset: 3px;
}
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-block; padding: .5em 1em; border-radius: 999px; font-size: .9rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); transition: all .2s;
}
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .chip input:checked + span { background: var(--blue); border-color: var(--blue); } }

.browser--demo { transform: rotate(0); }
.mini {
  --d-primary: #2563EB; --d-radius: 12px; --d-font: var(--font-display);
  --d-bg: #FFFFFF; --d-text: #0F172A; --d-muted: #64748B; --d-card: #F1F5F9;
  background: var(--d-bg); color: var(--d-text); padding: 1.25rem 1.5rem 1.75rem;
  transition: background-color .4s, color .4s;
}
.mini[data-ambiance="sombre"] { --d-bg: #0F172A; --d-text: #F1F5F9; --d-muted: #94A3B8; --d-card: #1E293B; }
.mini * { transition: background-color .4s, color .4s, border-radius .4s, border-color .4s; }
.mini__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; font-size: .78rem; }
.mini__logo { font-family: var(--d-font); font-weight: 700; font-size: .95rem; color: var(--d-primary); }
.mini__links { display: none; gap: 1rem; color: var(--d-muted); }
@media (min-width: 500px) { .mini__links { display: flex; } }
.mini__hero { padding: 1.5rem; border-radius: var(--d-radius); background: color-mix(in srgb, var(--d-primary) 10%, var(--d-bg)); margin-bottom: 1rem; }
.mini__kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--d-primary); font-weight: 600; margin-bottom: .5rem; }
.mini__title { font-family: var(--d-font); font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.15; margin-bottom: .5rem; letter-spacing: -.02em; }
.mini__text { font-size: .85rem; color: var(--d-muted); margin-bottom: 1rem; }
.mini__btn { display: inline-block; padding: .55em 1.1em; border-radius: var(--d-radius); background: var(--d-primary); color: #fff; font-size: .8rem; font-weight: 600; }
.mini__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mini__card { display: flex; flex-direction: column; gap: .15rem; padding: .8rem; border-radius: var(--d-radius); background: var(--d-card); font-size: .72rem; color: var(--d-muted); }
.mini__card strong { color: var(--d-text); font-size: .82rem; font-family: var(--d-font); }
.mini__dot { width: 18px; height: 18px; border-radius: calc(var(--d-radius) / 2); background: var(--d-primary); margin-bottom: .4rem; }

/* ---------- Méthode ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; padding: 1.75rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.step__num {
  position: absolute; top: 1.4rem; right: 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--border);
}
.step__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; margin-bottom: 1.25rem;
}
@media (prefers-color-scheme: dark) { .step__icon { background: var(--blue); } }
.step__icon .icon { width: 22px; height: 22px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (min-width: 1100px) {
  .step:not(:last-child)::after { /* connecteur */
    content: ""; position: absolute; top: 50px; right: -1.25rem; width: 1.25rem; height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 4px, transparent 4px 8px);
  }
}

/* ---------- Tarifs ---------- */
.pricing { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price {
  position: relative; display: flex; flex-direction: column; padding: 2rem;
  border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--border);
}
.price h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.price__desc { color: var(--muted); font-size: .95rem; }
.price__amount {
  font-family: var(--font-display); font-size: 2rem; font-weight: 650; letter-spacing: -.03em;
  padding-block: 1rem 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.price__from { display: block; font-family: var(--font); font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price__unit { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price .checklist { margin-bottom: 2rem; flex: 1; font-size: .95rem; }
.price--featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .price--featured { transform: translateY(-10px); } }
.price__badge {
  position: absolute; top: -13px; left: 2rem; padding: .25em .8em; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: .75rem; font-weight: 600;
}
.pricing__note { text-align: center; margin-top: 1.5rem; }

.guarantee {
  display: grid; gap: 1.25rem; margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius) + 4px); border: 1px dashed color-mix(in srgb, var(--blue) 50%, var(--border));
  background: var(--blue-soft);
}
@media (min-width: 700px) { .guarantee { grid-template-columns: auto 1fr; gap: 2rem; } }
.guarantee__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue); color: #fff; }
.guarantee__icon .icon { width: 28px; height: 28px; }
.guarantee__list { display: grid; gap: .75rem 2rem; }
@media (min-width: 700px) { .guarantee__list { grid-template-columns: repeat(2, 1fr); } }
.guarantee__list li { font-size: .95rem; color: var(--muted); }
.guarantee__list strong { color: var(--text); }

.price__plus { display: block; font-family: var(--font); font-size: .85rem; font-weight: 500; color: var(--accent-text); letter-spacing: 0; margin-top: .35rem; }
.price__badge--soft { background: var(--blue-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); }

/* Maintenance mensuelle */
.maintenance {
  display: grid; gap: 2rem; margin-top: 3rem; padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 6px); background: var(--navy); color: #E2E8F0;
  position: relative; overflow: hidden;
}
@media (prefers-color-scheme: dark) { .maintenance { background: #060A14; border: 1px solid var(--border); } }
.maintenance::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgb(37 99 235 / .35), transparent 70%); pointer-events: none;
}
.maintenance > * { position: relative; }
.maintenance .tag { background: rgb(37 99 235 / .25); color: #BFD3FF; }
.maintenance h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 1rem 0 .75rem; }
.maintenance p { color: #CBD5E1; }
.maintenance__price { display: flex; align-items: baseline; gap: .6rem; margin: 1.5rem 0; }
.maintenance__price strong { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 650; color: #fff; letter-spacing: -.04em; line-height: 1; }
.maintenance__price span { color: #94A3B8; }
.maintenance__list { align-content: center; gap: .9rem; }
.maintenance__list li { padding: .9rem 1rem; border-radius: var(--radius-sm); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); font-size: .95rem; }
.maintenance__list strong { color: #fff; }
.maintenance__list .icon { color: #7AA7FF; }
@media (min-width: 900px) { .maintenance { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } }

/* Simulateur */
.simulator {
  display: grid; gap: 2rem; margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.simulator__head h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.simulator__form { display: grid; gap: 1.75rem; }
@media (min-width: 960px) {
  .simulator { grid-template-columns: 1.4fr 1fr; column-gap: 3rem; }
  .simulator__head { grid-column: 1 / -1; }
}
.chips--wrap { gap: .5rem; }
input[type="range"]#sim-pages { width: 100%; accent-color: var(--blue); height: 28px; }
.sim-label output { color: var(--accent-text); font-family: var(--font-display); font-size: 1.05rem; }
.options { display: grid; gap: .6rem; }
@media (min-width: 600px) { .options { grid-template-columns: repeat(2, 1fr); } }
.option {
  position: relative; display: flex; align-items: center; gap: .7rem; cursor: pointer;
  padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: .92rem; transition: border-color .2s, background-color .2s;
}
.option::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--muted);
  background: var(--surface) center / 12px no-repeat; transition: all .15s;
}
.option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.option:has(input:checked)::before {
  background-color: var(--blue); border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.sim-scale { margin: .5rem 0 0; }
.sim-maintenance {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius);
  background: var(--blue-soft); border: 1px dashed color-mix(in srgb, var(--blue) 45%, var(--border));
}
.sim-maintenance .card__icon { margin: 0; flex: none; background: var(--blue); color: #fff; }
.sim-maintenance__title { font-weight: 650; font-family: var(--font-display); margin: 0 0 .25rem; }
.sim-maintenance .small { margin: 0; }
.simulator__result {
  align-self: start; padding: 1.75rem; border-radius: var(--radius); background: var(--navy); color: #E2E8F0;
}
@media (min-width: 960px) { .simulator__result { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.simulator__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #94A3B8; margin-bottom: .5rem; }
.simulator__range { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 650; color: #fff; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.simulator__extra { color: #94A3B8; min-height: 1.4em; margin-bottom: 1.5rem; }
.simulator__hint { color: #94A3B8; text-align: center; margin: .8rem 0 0; }

/* ---------- Pourquoi moi ---------- */
.why { display: grid; gap: 3rem; }
@media (min-width: 960px) { .why { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; } .why__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.why__intro .btn { margin-top: .5rem; }
.why__grid { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .why__grid { grid-template-columns: repeat(2, 1fr); } .why__grid > :first-child { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); background: var(--blue-soft); } }
.feature { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s; }
.feature:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Témoignages ---------- */
.testimonials { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  position: relative; display: flex; flex-direction: column; margin: 0; padding: 2rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.testimonial .tag { position: absolute; top: 1rem; right: 1rem; }
.testimonial blockquote { margin: 1rem 0 1.5rem; flex: 1; font-size: 1rem; line-height: 1.7; }
.testimonial blockquote::before {
  content: "“"; display: block; font-family: var(--font-display); font-size: 3rem; line-height: .6;
  color: var(--blue); margin-bottom: .6rem;
}
.testimonial figcaption { display: flex; align-items: center; gap: .9rem; font-size: .9rem; line-height: 1.4; }
.avatar {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--blue-soft); color: var(--accent-text); font-weight: 700; font-family: var(--font-display);
}

/* ---------- Zone ---------- */
.zone { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .zone { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.cities { display: flex; flex-wrap: wrap; gap: .5rem; }
.cities li {
  padding: .35em .8em; border-radius: 999px; font-size: .88rem;
  border: 1px solid var(--border); background: var(--surface);
}
.cities li:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.zone__map {
  padding: 1rem; border-radius: calc(var(--radius) + 4px); background: var(--bg-alt); border: 1px solid var(--border);
}
.zone__map svg { width: 100%; height: auto; overflow: visible; }
.map__rings circle { fill: none; stroke: var(--blue); stroke-opacity: .25; stroke-dasharray: 4 5; }
.map__rings circle:last-child { fill: var(--blue); fill-opacity: .06; }
.map__ring-labels text { fill: var(--accent-text); font-size: 10px; text-anchor: middle; opacity: .8; }
.map__cities circle { fill: var(--muted); }
.map__cities text { fill: var(--text); font-size: 11.5px; font-weight: 500; }
.map__caen circle { fill: var(--blue); }
.map__caen text { fill: var(--text); font-size: 14px; font-weight: 700; font-family: var(--font-display); }
.map__pulse { transform-origin: 218px 144px; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- Audit ---------- */
.audit {
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: calc(var(--radius) + 6px);
  background: var(--blue); color: #fff;
  background-image: radial-gradient(circle at 100% 0, rgb(255 255 255 / .14), transparent 45%);
}
.audit__text { display: flex; gap: 1.25rem; align-items: flex-start; }
.audit__text .card__icon { margin: 0; flex: none; }
.audit h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: .4rem; }
.audit p { margin: 0; color: rgb(255 255 255 / .85); }
.audit__form { display: flex; flex-wrap: wrap; gap: .6rem; }
.audit__form input {
  flex: 1 1 220px; min-height: 52px; padding: 0 1.1rem; border-radius: 999px; border: 0;
  background: #fff; color: var(--navy); font-size: 1rem;
}
.audit__form input::placeholder { color: #64748B; }
.audit__form input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.audit__form .btn { min-height: 52px; background: var(--navy); color: #fff; }
.audit__form .btn:hover { background: #1E293B; }
.audit__error { flex-basis: 100%; min-height: 1.2em; margin: 0; font-size: .88rem; font-weight: 500; }
@media (min-width: 960px) { .audit { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq .section-head { margin-inline: auto; text-align: center; }
.faq__list { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); }
.faq__item summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 1.15rem 3.25rem 1.15rem 1.35rem; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--blue); }
.faq__answer { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq__answer p { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; } }
.contact__list { display: grid; gap: .9rem; margin: 2rem 0; }
.contact__list li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.contact__list .icon { color: var(--accent-text); }
.booking {
  display: flex; gap: 1rem; padding: 1.35rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.booking__icon { width: 28px; height: 28px; color: var(--accent-text); }
.booking__title { font-weight: 600; margin-bottom: .2rem; }
.booking .small { margin-bottom: .5rem; }

.form {
  display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #DC2626; }
.field .error { color: #DC2626; font-size: .82rem; }
@media (prefers-color-scheme: dark) { .field .error { color: #F87171; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { margin: 0; }
.form__status { margin: 0; min-height: 1.5em; font-weight: 500; text-align: center; }
.form__status.is-ok { color: #15803D; }
.form__status.is-error { color: #DC2626; }
@media (prefers-color-scheme: dark) { .form__status.is-ok { color: #4ADE80; } .form__status.is-error { color: #F87171; } }
.form.is-highlight { animation: highlight 1.2s var(--ease); }
@keyframes highlight { 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 30%, transparent); } }

/* ---------- Fenêtre de rendez-vous ---------- */
.modal {
  width: calc(100% - 24px); max-width: 580px; max-height: calc(100dvh - 24px);
  padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.modal::backdrop { background: rgb(15 23 42 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__box {
  position: relative; display: grid; gap: 1rem; max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: clamp(1.5rem, 5vw, 2.25rem); border-radius: calc(var(--radius) + 6px);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.modal__box h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin: 0; }
.modal__box .eyebrow { margin: 0; }
.modal__intro { margin: 0; }
.modal__close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-alt);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.modal__close:hover { border-color: var(--blue); color: var(--accent-text); }
.rdv-types { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.rdv-types legend { grid-column: 1 / -1; font-size: .88rem; font-weight: 600; margin-bottom: .5rem; padding: 0; }
.rdv-choice { position: relative; cursor: pointer; }
.rdv-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rdv-choice__box {
  display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1rem;
  border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--bg);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.rdv-choice__box .icon { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: .4rem; }
.rdv-choice__box strong { font-family: var(--font-display); }
.rdv-choice__box small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.rdv-choice:hover .rdv-choice__box { border-color: color-mix(in srgb, var(--blue) 50%, var(--border)); }
.rdv-choice input:checked + .rdv-choice__box { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.rdv-choice input:focus-visible + .rdv-choice__box { outline: 3px solid var(--blue); outline-offset: 3px; }
.field[hidden] { display: none; }
@media (max-width: 420px) { .rdv-types { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .cta { background: #060A14; border-top: 1px solid var(--border); } }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.cta__inner { position: relative; text-align: center; padding-block: clamp(4.5rem, 10vw, 7rem); max-width: 820px; }
.cta h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
.cta p { font-size: 1.15rem; color: #CBD5E1; max-width: 560px; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* ---------- Pied de page ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 4rem; font-size: .92rem; }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__logo { height: 30px; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); max-width: 300px; }
.footer__title { font-family: var(--font-display); font-weight: 600; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; color: var(--muted); }
.socials { display: flex !important; gap: .6rem !important; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.socials a:hover { color: var(--accent-text); border-color: var(--blue); transform: translateY(-2px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem;
}
.footer__bottom p { margin: 0; }

/* ---------- Boutons flottants mobile ---------- */
.fab {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(150%); transition: transform .35s var(--ease);
}
.fab.is-visible { transform: none; }
.fab__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; border-radius: 999px; font-weight: 600; text-decoration: none; color: #fff;
  box-shadow: 0 8px 24px -6px rgb(15 23 42 / .45);
}
.fab__btn--call { background: var(--blue); }
.fab__btn--wa { background: #157A3E; }
@media (min-width: 960px) { .fab { display: none; } }
@media (max-width: 959px) { .footer { padding-bottom: 76px; } }

/* ---------- Curseur discret (desktop) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
    width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
    border: 1.5px solid var(--blue); opacity: 0;
    transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .3s, background-color .25s;
    will-change: transform;
  }
  .cursor.is-active { opacity: .55; }
  .cursor.is-hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: color-mix(in srgb, var(--blue) 10%, transparent); }
}

/* ---------- Apparitions au scroll ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-pending.is-visible { opacity: 1; transform: none; }

/* ---------- Pages de contenu (légal, blog, 404) ---------- */
/* En-tête des pages intérieures */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--blue-soft) 0%, var(--bg-alt) 55%, var(--bg) 100%);
}
.page-hero::before { /* grille technique */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--blue) 12%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--blue) 12%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 10%, transparent 70%);
}
.page-hero::after { /* halo */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 22%, transparent), transparent 65%);
}
.page-hero__deco { /* chevrons de code discrets */
  position: absolute; z-index: -1; left: -10px; bottom: -34px; pointer-events: none;
  font: 700 clamp(6rem, 16vw, 11rem)/1 var(--font-display); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--blue) 18%, transparent);
  user-select: none;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: .6rem; }
.page-hero p { color: var(--muted); margin: 0; }
.page-hero__lead { font-size: clamp(1.02rem, 2vw, 1.15rem); max-width: 620px; }
.page-hero__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .page-hero__inner { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.page-hero__chips li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35em .8em; border-radius: 999px;
  font-size: .85rem; font-weight: 500; background: var(--surface); border: 1px solid var(--border);
}
.page-hero__chips .icon { width: 1em; height: 1em; color: var(--blue); stroke-width: 2.6; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: inherit; }

/* Carte récapitulative à droite de l'en-tête */
.hero-card {
  position: relative; padding: 1.5rem; border-radius: calc(var(--radius) + 4px);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  max-width: 460px; width: 100%; justify-self: center;
}
@media (min-width: 960px) { .hero-card { justify-self: end; } }
.hero-card__title {
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem !important;
  font: 600 .78rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text) !important;
}
.hero-card__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgb(22 163 74 / .15); }
.hero-card__list { display: grid; gap: .6rem; }
.hero-card__list li {
  display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border-radius: var(--radius-sm);
  background: var(--bg-alt); border: 1px solid var(--border); font-size: .92rem;
}
.hero-card__list .icon-box {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: var(--blue-soft); color: var(--accent-text); font: 700 .8rem var(--font-display);
}
.hero-card__list .icon-box .icon { width: 18px; height: 18px; }
.hero-card__list strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.hero-card__list span.muted { font-size: .82rem; }
.hero-card__list a { text-decoration: none; }
.hero-card__badge {
  position: absolute; top: -14px; right: 18px; padding: .3em .8em; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: .75rem; font-weight: 600; box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-card { animation: floaty 7s ease-in-out infinite; }
  @keyframes floaty { 50% { transform: translateY(-6px); } }
}
.prose { max-width: 760px; padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.3rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--accent-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-alt); font-family: var(--font-display); }
.table-wrap { overflow-x: auto; }
.prose .callout { padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); background: var(--blue-soft); border-left: 3px solid var(--blue); margin: 1.5rem 0; }
.prose .callout p:last-child { margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .88rem; color: var(--muted); margin-top: 1rem !important; }
.article-cta { margin-top: 3rem; padding: 2rem; border-radius: var(--radius); background: var(--navy); color: #E2E8F0; }
.article-cta h2 { color: #fff; margin-top: 0; }
.article-cta p { color: #CBD5E1; }

.posts { display: grid; gap: 1.25rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 800px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card h2 { font-size: 1.25rem; margin: .8rem 0 .6rem; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card .link--arrow { font-size: .92rem; }

.simple-header { border-bottom: 1px solid var(--border); }
.simple-header .header__inner { height: var(--header-h); }

.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.notfound__code {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 20vw, 9rem); line-height: 1; letter-spacing: -.06em;
  margin-bottom: 1rem; color: var(--text);
}
.notfound__code span { color: var(--blue); }
.notfound p { color: var(--muted); max-width: 460px; margin-inline: auto; }
.notfound .hero__actions { justify-content: center; }

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .map__pulse { display: none; }
  .project:hover .laptop__screen img, .project:hover .phone__screen img { transform: none; }
}

/* ---------- Impression ---------- */
@media print {
  .header, .fab, .cursor, .progress, .hero__visual, .cta, .audit { display: none !important; }
  body { color: #000; background: #fff; }
}
