/* =========================================================
   Studio Commandeur — feuille de style
   1. Polices  2. Tokens  3. Base  4. Composants  5. Sections
   6. Pages légales / 404  7. Animations  8. Reduced motion
   ========================================================= */

/* 1. Polices (auto-hébergées, aucun appel à Google) */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* 2. Tokens */
:root {
  --blue: #2b4bff;
  --blue-soft: #5b78ff;
  --ink: #0a0a0a;
  --white: #ffffff;
  --sand: #ededea;
  --card: #f0f0ee;
  --line: #d9d9d6;
  --line-strong: #8c8c87;
  --text-2: #3a3a38;
  --text-3: #5c5c58;
  --text-dark-2: #c8c8c4;
  --text-dark-3: #a6a6a1;

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: 16px;
  --radius: 28px;
  --radius-sm: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad: clamp(96px, 14vw, 176px);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; } }

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 19px; } }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.s--blue :focus-visible, .s--ink :focus-visible, .footer :focus-visible,
.menu :focus-visible, .header[data-theme="dark"] :focus-visible, .offer--featured :focus-visible,
.step--ink :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.label { font-size: 13px; color: var(--text-3); letter-spacing: 0.12em; }
.c-blue { color: var(--blue); }
.ml-auto { margin-left: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 20px; border-radius: 999px; background: var(--white); color: var(--ink);
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.25rem, 5.3vw, 4.75rem); /* « 3 offres. Zéro prise de tête. » tient sur 1 ligne en 1280 px */
  line-height: 1.02; letter-spacing: -0.03em;
}

/* 4. Composants ------------------------------------------------ */
.pill, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.pill {
  font-family: var(--f-mono); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 15px; border: 2px solid var(--white);
}
@media (min-width: 768px) { .pill { min-height: 60px; padding: 0 32px; font-size: 18px; } }
.pill--white { background: var(--white); color: var(--ink); }
.pill--white:hover { background: transparent; color: var(--white); }
.pill--outline { color: var(--white); background: var(--blue); /* reste lisible au-dessus du logo */ }
.pill--outline:hover { background: var(--white); color: var(--blue); }

.btn { font-weight: 600; font-size: 16px; border: 0; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 17px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--white); color: var(--blue); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--blue); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--ink); color: var(--white); }
.btn .arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(6px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.card { border-radius: var(--radius); padding: 32px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }

/* Header : pilule flottante */
.header {
  position: fixed; inset: 12px 0 auto; z-index: 100;
  display: flex; justify-content: center; padding-inline: 12px; pointer-events: none;
}
.header__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  width: 100%; max-width: 1120px; min-height: 56px; padding: 5px 5px 5px 16px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: var(--white);
  transition: background-color .35s, color .35s, border-color .35s, max-width .5s var(--ease-out);
}
.header[data-theme="light"] .header__pill { background: var(--white); color: var(--ink); border-color: var(--line); }
/* Tout en haut de la page : pas de pilule, le header se pose sur le bleu */
.header.is-top .header__pill { background: transparent; border-color: transparent; color: var(--white); max-width: 1280px; }
.header .brand__mark { width: 26px; height: 26px; }
.header .brand__name { font-size: 15px; }
.header .nav { display: none; }
.header__count { margin-left: auto; font-size: 11px; opacity: .7; white-space: nowrap; }
.header__cta { display: none; }
.header .header__cta { min-height: 44px; padding: 0 18px; font-size: 14px; }
.header.is-top .header__cta { background: var(--white); color: var(--ink); }
.header.is-top .header__cta:hover { background: var(--ink); color: var(--white); }
.menu-btn {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--white); display: grid; place-content: center; gap: 5px;
  transition: background-color .35s;
}
.menu-btn span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), background-color .35s; }
.header[data-theme="light"]:not(.is-top) .menu-btn { background: var(--ink); }
.header[data-theme="light"]:not(.is-top) .menu-btn span { background: var(--white); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.header .brand { min-width: 0; }
@media (max-width: 519px) { .header__count { display: none; } .menu-btn { margin-left: auto; } }
@media (max-width: 359px) { .header .brand__name { font-size: 14px; } }
@media (min-width: 768px) {
  .header .nav { display: flex; gap: 2px; margin-left: auto; }
  .header .nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
    font-size: 15px; font-weight: 500; text-decoration: none; opacity: .8; transition: opacity .2s;
  }
  .header .nav a:hover, .header .nav a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
  .header__count { display: none; margin-left: 8px; }
  .header__cta { display: inline-flex; margin-left: 8px; }
  .menu-btn { display: none; }
}
@media (min-width: 1100px) { .header__count { display: inline; } }

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--blue); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; padding: 110px var(--gutter) 40px;
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.25rem, 11vw, 4.5rem); line-height: 1.1; text-decoration: none; min-height: 44px;
}
.menu__foot { margin-top: 40px; font-size: 15px; }
.menu__foot a { text-decoration: none; }

/* 5. Sections -------------------------------------------------- */
.s { position: relative; }
.s--blue { background: var(--blue); color: var(--white); }
.s--ink { background: var(--ink); color: var(--white); }
.s--white { background: var(--white); color: var(--ink); }
.s--sand { background: var(--sand); color: var(--ink); }

/* Section 1 — Accroche */
.hero {
  min-height: 100svh; overflow: hidden; display: flex;
  /* Taille du H1 : limitée par la largeur ET la hauteur de l'écran */
  --h1: clamp(2.2rem, min(10.5vw, 12svh), 7.5rem);
}
.hero__inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between;
  padding-top: max(120px, 20svh); padding-bottom: 40px; gap: 48px;
}
.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: var(--h1); line-height: 1.02; letter-spacing: -0.03em;
  max-width: 9em; /* 4 lignes comme la slide : Votre / entreprise / mérite d'être / trouvée. */
}
.hero__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 12px; }
/* Boutons du hero : texte courant, icône, flèche qui glisse au survol */
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 20px; border-radius: 999px;
  border: 1.5px solid var(--white); text-decoration: none; white-space: nowrap;
  font-family: var(--f-body); font-weight: 600; font-size: 17px; line-height: 1; letter-spacing: -0.005em;
  transition: background-color .3s, color .3s, border-color .3s;
}
.hero-btn__ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-btn__arrow { display: inline-block; margin-left: 2px; transition: transform .4s var(--ease-out); }
.hero-btn:hover .hero-btn__arrow { transform: translateX(4px); }
.hero-btn--primary { background: var(--white); color: var(--ink); }
.hero-btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hero-btn--ghost { background: var(--blue); color: var(--white); }
.hero-btn--ghost:hover { background: var(--white); color: var(--blue); }
@media (min-width: 1024px) { .hero-btn { min-height: 60px; padding: 0 26px 0 22px; font-size: 18px; } }
@media (max-width: 767px) { .hero-btn { min-height: 50px; padding: 0 16px 0 14px; font-size: 15px; gap: 8px; } .hero-btn__ico { width: 18px; height: 18px; } }
@media (max-width: 419px) { .hero-btn__arrow { display: none; } .hero-btn { padding: 0 18px 0 14px; } }
.scroll-hint {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 12px; color: var(--white); text-decoration: none; opacity: .85;
}
.scroll-hint span { display: inline-block; animation: nudge 1.8s var(--ease-out) infinite; }
/* Logo géant : toujours à droite du titre, jamais dessous (lisibilité) */
.hero__logo {
  position: absolute; z-index: 1; pointer-events: none;
  width: 200px; height: 200px; right: -50px; bottom: -60px; color: var(--white);
}
.hero__logo-mouse, .hero__logo-float, .hero__logo svg { width: 100%; height: 100%; }
/* Voile noir qui s'intensifie quand la section suivante recouvre l'accueil */
.hero__shade { position: absolute; inset: 0; z-index: 3; background: var(--ink); opacity: 0; pointer-events: none; }
.hero { z-index: 0; }
.constat { z-index: 1; }
/* Chaque section chevauche la précédente avec des coins arrondis (aplatis au scroll en JS) */
.offres, .portfolio, .methode, .contact {
  --r: clamp(28px, 5vw, 56px);
  margin-top: calc(var(--r) * -1);
  border-radius: var(--r) var(--r) 0 0;
}
.offres { z-index: 2; }
.portfolio { z-index: 3; }
.methode { z-index: 4; }
.contact { z-index: 5; }
@media (min-width: 768px) { .hero__logo { width: 300px; height: 300px; right: -60px; bottom: -90px; } }
@media (min-width: 1024px) {
  .hero {
    --h1: clamp(2.2rem, min(7.4vw, 12svh), 7rem);
    /* bord gauche du logo = fin de la ligne la plus longue du titre (~8,4 em) + marge */
    --logo-x: calc(max(0px, (100vw - 1280px - 2 * var(--gutter)) / 2) + var(--gutter) + var(--h1) * 8.4 + 56px);
    --logo-w: clamp(340px, calc(100vw - var(--logo-x) + 140px), 640px);
  }
  .hero__logo {
    left: var(--logo-x); right: auto;
    width: var(--logo-w); height: var(--logo-w); bottom: calc(var(--logo-w) * -0.22);
  }
}
@media (max-width: 767px) {
  /* Mobile : logo dans l'espace libre entre le titre et les boutons */
  .hero {
    --logo-top: calc(max(120px, 20svh) + var(--h1) * 4.4 + 40px);
    --logo-w: clamp(120px, calc(100svh - var(--logo-top) - 170px), 240px);
  }
  .hero__logo { top: var(--logo-top); bottom: auto; right: -40px; width: var(--logo-w); height: var(--logo-w); }
  .hero__inner { padding-bottom: 32px; }
  .hero__pills .pill { font-size: 13px; padding: 0 18px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.spin { animation: spin 60s linear infinite; }


/* Section 2 — Le constat */
.constat__pin { min-height: 100svh; display: flex; align-items: center; padding-block: var(--section-pad); }
.constat__grid { display: grid; gap: 48px; align-items: center; }
.constat .label { color: var(--text-dark-3); margin-bottom: 24px; }
.constat .h2 > span { display: block; }
.constat__sub {
  margin-top: 0.45em; color: var(--blue-soft); font-weight: 500;
  font-size: 0.5em; line-height: 1.12; letter-spacing: -0.02em;
}
.constat__p { color: var(--text-dark-2); font-size: clamp(18px, 1.6vw, 22px); max-width: 44ch; }
.constat__p .hl { color: var(--white); }
@media (min-width: 1024px) {
  .constat__grid { grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 72px; }
  .constat__p { grid-column: 1 / -1; max-width: 60ch; }
}

/* Mockup Google */
.gmock {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 20px; width: 100%; max-width: 640px; justify-self: end;
}
@media (min-width: 768px) { .gmock { padding: 28px; } }
.gmock__search {
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px;
  border: 2px solid var(--line); border-radius: 999px; color: var(--text-2);
  font-size: clamp(15px, 1.4vw, 18px);
}
.gmock__icon { width: 22px; height: 22px; flex: none; color: var(--text-3); }
.gmock__query { display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.gmock__caret { width: 2px; height: 1.2em; margin-left: 2px; background: var(--blue); animation: blink 1s steps(1) infinite; }
.gmock__list { display: grid; gap: 14px; margin-top: 16px; }
.gmock__result {
  border: 2px solid var(--blue-soft); border-radius: var(--radius-sm); padding: 20px;
  background: var(--white); position: relative; z-index: 2;
}
.gmock__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em; }
.gmock__meta { color: var(--text-3); font-size: 15px; margin-top: 6px; }
.gmock__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gpill {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink);
}
.gpill.is-on:first-child { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--white); }
.gpill.is-on { border-color: var(--line-strong); }
.gmock__skel { height: 88px; border-radius: var(--radius-sm); background: var(--card); }

/* Section 3 — Offres */
.offres { padding-block: var(--section-pad); }
.offres__grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 16px;
  margin: 48px calc(-1 * var(--gutter)) 0; padding: 8px var(--gutter) 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; perspective: 1200px;
}
.offres__grid::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .offres__grid {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin: 64px 0 0; padding: 0; overflow: visible;
  }
}
.offer {
  scroll-snap-align: start; background: var(--card); color: var(--ink);
  display: flex; flex-direction: column; min-height: 520px; transform-style: preserve-3d;
}
@media (min-width: 1024px) { .offer { min-height: 600px; padding: 40px; } }
.offer__num { font-size: 15px; color: var(--text-3); }
.offer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.offer__title {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; margin-top: 18px;
}
.checks { display: grid; gap: 10px; margin-top: 24px; color: var(--text-2); }
.checks li { display: flex; align-items: center; gap: 12px; }
.check {
  width: 22px; height: 22px; flex: none; border-radius: 999px; background: var(--ink); color: var(--white);
  display: grid; place-items: center;
}
.check svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.offer__price {
  margin-top: auto; padding-top: 40px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 2.4vw, 36px); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.offer__cta { margin-top: 24px; align-self: flex-start; }
.offer--featured { background: var(--blue); color: var(--white); }
.offer--featured .offer__num { color: var(--white); }
.offer--featured .checks { color: var(--white); }
.offer--featured .check { background: var(--white); color: var(--blue); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--ink); border-radius: 999px; padding: 7px 14px 7px 11px;
  font-family: var(--f-body); font-weight: 600; font-size: 14px; line-height: 1; letter-spacing: 0; white-space: nowrap;
}
.badge__ico { width: 14px; height: 14px; fill: var(--blue); flex: none; }
.offres__note { margin-top: 32px; color: var(--text-3); font-size: 16px; }

/* Réalisation (fond noir, entre Offres et Méthode) */
.portfolio { padding-block: var(--section-pad); }
.portfolio .label { color: var(--text-dark-3); }
.portfolio .h2 { margin-top: 16px; }
.project { background: var(--white); color: var(--ink); margin-top: 48px; padding: 16px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .project { grid-template-columns: 1.7fr 1fr; padding: 20px; gap: 40px; margin-top: 64px; } }

/* Cadre de navigateur avec le vrai site à faire défiler */
.browser { border-radius: var(--radius-sm); overflow: hidden; background: var(--ink); }
.browser__bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; color: var(--text-dark-2); }
.browser__dots { display: flex; gap: 6px; flex: none; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a38; }
.browser__url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #1f1f1e; border-radius: 999px; padding: 7px 14px; font-size: 13px; text-align: center;
}
.browser__views { display: flex; flex: none; background: #1f1f1e; border-radius: 999px; padding: 3px; }
.browser__view {
  border: 0; background: transparent; color: var(--text-dark-2); cursor: pointer;
  font: 600 13px/1 var(--f-body); padding: 0 12px; min-height: 32px; border-radius: 999px;
  transition: background-color .25s, color .25s;
}
.browser__view.is-on { background: var(--white); color: var(--ink); }
@media (max-width: 479px) { .browser__url { display: none; } .browser__views { margin-left: auto; } }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1f1f1e; }
.browser[data-view="mobile"] .browser__screen { aspect-ratio: auto; height: min(78vh, 640px); }
@media (max-width: 599px) { .browser__screen, .browser[data-view="mobile"] .browser__screen { aspect-ratio: auto; height: min(72vh, 560px); } }
.browser__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.browser__frame {
  position: absolute; top: 0; left: 0; border: 0; background: #fff;
  transform-origin: 0 0; /* taille et échelle réglées en JS */
}
.browser[data-view="mobile"] .browser__frame { border-radius: 22px; box-shadow: 0 0 0 6px #3a3a38; }
.browser__shield {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10, 10, 10, .35); transition: background-color .3s;
}
.browser__shield:hover { background: rgba(10, 10, 10, .2); }
.browser__play {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px 0 18px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--white); color: var(--ink);
  font: 600 16px/1 var(--f-body); transition: transform .3s var(--ease-out), background-color .3s, color .3s;
}
.browser__play svg { width: 18px; height: 18px; fill: currentColor; }
.browser__play:hover { background: var(--blue); color: var(--white); transform: scale(1.04); }
.browser__close {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--ink); color: var(--white);
  font: 600 14px/1 var(--f-body); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}
.browser__close:hover { background: var(--blue); }
.browser.is-live .browser__shield { display: none; }
.cursor-off .cursor { opacity: 0 !important; }
.project__body { padding: 8px 12px 20px; }
.project__tag { font-size: 12px; color: var(--text-3); }
.project__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em; margin-top: 10px; }
.project__desc { color: var(--text-2); margin-top: 14px; }
.project__list { margin-top: 20px; }

/* Avis Google (sous l'exemple concret) */
.reviews { margin-top: clamp(72px, 9vw, 120px); }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.reviews .label { color: var(--text-dark-3); }
.reviews__title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05; letter-spacing: -0.03em; margin-top: 12px; max-width: 14em;
}
.reviews__score { display: flex; align-items: center; gap: 18px; }
.reviews__rating {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 7vw, 96px);
  line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; min-width: 2.6ch;
}
.stars { display: flex; gap: 3px; color: var(--blue); }
.stars svg { width: 18px; height: 18px; flex: none; }
.stars svg.is-off { opacity: .22; }
.stars--lg { color: var(--white); gap: 4px; }
.stars--lg svg { width: 26px; height: 26px; }
.reviews__count { color: var(--text-dark-2); font-size: 15px; margin-top: 8px; }
.reviews__list { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) {
  .reviews__list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 56px; }
}
@media (max-width: 899px) {
  .reviews__list {
    grid-auto-flow: column; grid-auto-columns: min(85%, 360px);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
  }
  .reviews__list::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; }
}
.review {
  position: relative; background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; gap: 16px;
  transition: translate .5s var(--ease-out);
}
.review::before { /* guillemet décoratif */
  content: "\201C" / ""; position: absolute; right: 26px; top: 10px; pointer-events: none;
  font-family: var(--f-display); font-weight: 800; font-size: 104px; line-height: 1; color: var(--card);
}
@media (hover: hover) { .review:hover { translate: 0 -6px; } }
.review__top { display: flex; align-items: center; gap: 12px; position: relative; }
.review__avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--white); font-family: var(--f-display); font-weight: 700; font-size: 18px;
}
.review__name { font-weight: 600; }
.review__name a { text-decoration: none; }
.review__name a:hover { text-decoration: underline; }
.review__date { font-size: 14px; color: var(--text-3); }
.review__text { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.6; position: relative; }
.reviews__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.btn--ghost-white { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn--ghost-white:hover { background: var(--white); color: var(--ink); }
.reviews__legal { width: 100%; font-size: 13px; color: var(--text-dark-3); margin-top: 6px; }

/* Message « adresse copiée » */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 350; pointer-events: none;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--white); border: 1px solid rgba(255, 255, 255, .15);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Section 4 — Méthode */
.methode { padding-block: var(--section-pad); }
.methode__wrap { position: relative; margin-top: 48px; padding-left: 28px; }
.methode__track {
  position: absolute; left: 6px; top: 0; bottom: 0; width: 3px; border-radius: 3px;
  background: var(--line); overflow: hidden;
}
.methode__fill { width: 100%; height: 100%; background: var(--blue); transform-origin: top; }
.methode__grid { display: grid; gap: 16px; }
.step { background: var(--white); display: flex; gap: 20px; min-height: 200px; position: relative; overflow: hidden; }
.step__num {
  font-family: var(--f-display); font-weight: 800; color: var(--blue);
  font-size: clamp(56px, 6vw, 88px); line-height: 0.82; min-width: 0.9em;
  -webkit-text-stroke: 2px var(--blue); transition: color .45s var(--ease-out);
}
.step.is-pending .step__num { color: transparent; }
.step__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.step p { margin-top: 12px; color: var(--text-2); }
.step--ink { background: var(--ink); color: var(--white); }
.step--ink .step__num { color: var(--white); -webkit-text-stroke-color: var(--white); }
.step--ink.is-pending .step__num { color: transparent; }
.step--ink p { color: var(--text-dark-2); }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst svg { position: absolute; width: 44px; height: 44px; color: var(--blue-soft); opacity: 0; }
@media (min-width: 1024px) {
  .methode__wrap { margin-top: 64px; padding-left: 0; padding-top: 40px; }
  .methode__track { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 3px; }
  .methode__fill { transform-origin: left; }
  .methode__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .step { min-height: 300px; padding: 44px; gap: 28px; }
}

/* Section 5 — Devis gratuit */
.contact { overflow: hidden; padding-block: var(--section-pad) calc(var(--section-pad) * 0.8); }
.contact__logo {
  position: absolute; top: -120px; right: -140px; width: 420px; height: 420px;
  opacity: .22; color: var(--white); pointer-events: none;
}
.contact__logo svg { width: 100%; height: 100%; }
@media (min-width: 1024px) { .contact__logo { width: 720px; height: 720px; top: -200px; right: -180px; } }
.contact__inner { position: relative; z-index: 1; }
.contact__title {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(3rem, 13vw, 9rem); line-height: 1;
}
.contact__sub {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(22px, 3.4vw, 42px); margin-top: 12px;
}
.infos { background: var(--white); color: var(--ink); display: grid; gap: 24px; margin-top: 64px; }
@media (min-width: 900px) { .infos { grid-template-columns: repeat(3, 1fr); padding: 40px 48px; margin-top: 120px; } }
.infos .label { margin-bottom: 6px; }
.infos__value {
  display: inline-block; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(17px, 1.7vw, 24px); text-decoration: none; overflow-wrap: anywhere;
}
a.infos__value { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color .3s; }
a.infos__value:hover { text-decoration-color: var(--blue); }

/* Formulaire */
.form { background: var(--white); color: var(--ink); margin-top: 16px; }
@media (min-width: 900px) { .form { padding: 48px; } }
.form__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; }
.form__intro { color: var(--text-3); font-size: 15px; margin-top: 8px; }
.form__grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 768px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { position: relative; }
.field__input {
  display: block; width: 100%; height: 64px; padding: 26px 20px 8px;
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white);
  font-size: 17px; transition: border-color .25s, box-shadow .25s; appearance: none;
}
.field__input--area { height: auto; min-height: 160px; padding-top: 32px; resize: vertical; }
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 75, 255, .25); }
.field__label {
  position: absolute; left: 22px; top: 21px; color: var(--text-3); pointer-events: none;
  transform-origin: left top; transition: transform .25s var(--ease-out), color .25s;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field--select .field__label { transform: translateY(-12px) scale(.78); }
.field__input:focus + .field__label { color: var(--blue); }
.field--select select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230A0A0A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 22px center; padding-right: 52px;
}
.field.is-invalid .field__input { border-color: #c4141a; }
.field__error { color: #b3141a; font-size: 14px; margin-top: 6px; min-height: 0; }
.field__error:empty { display: none; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--text-2); }
.consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.consent .field__error { grid-column: 2; }
.consent a { color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.form__status { font-weight: 600; }
.form__status.is-success { color: var(--blue); font-family: var(--f-display); font-size: 20px; }
.form__status.is-error { color: #b3141a; }
.magnetic { will-change: transform; }

/* Footer */
.footer { background: var(--ink); color: var(--white); padding-block: 56px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-dark-2); text-decoration: none; font-size: 16px; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }
.footer__legal { width: 100%; font-size: 12px; color: var(--text-dark-3); letter-spacing: 0.08em; text-transform: none; }

/* Curseur custom */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px; background: var(--white);
  display: none; place-items: center;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background-color .25s;
}
/* Blanc sur fond bleu ou noir (par défaut), noir sur fond clair */
.cursor[data-tone="dark"] { background: var(--ink); }
.has-cursor .cursor { display: grid; }
.cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor[data-tone="dark"] .cursor__label { color: var(--white); }
.cursor.is-big .cursor__label { opacity: 1; }

/* Preloader */
.preloader { display: none; }
.preload .preloader {
  position: fixed; inset: 0; z-index: 400; background: var(--blue); color: var(--white);
  display: grid; place-items: center;
  animation: preloader-failsafe .01s 2.2s forwards; /* sécurité si le JS échoue */
}
.preloader__logo { width: 96px; height: 96px; }

/* Split text */
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .02em .12em; margin: -.14em -.02em -.12em; }
.split-inner { display: inline-block; }
.split-word { display: inline-block; white-space: nowrap; }
.js [data-split]:not(.is-split) { visibility: hidden; }
html.reduced [data-split] { visibility: visible !important; }

/* 6. Pages légales / 404 ---------------------------------------- */
.page-top { background: var(--blue); color: var(--white); padding: 150px 0 72px; position: relative; overflow: hidden; }
.page-top .h2 { max-width: 14em; }
.page-top .back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; color: var(--white); text-decoration: none; }
.page-top .back:hover { text-decoration: underline; }
.page-top__logo { position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; opacity: .22; color: var(--white); }
.legal { background: var(--white); padding-block: 72px 112px; }
.legal__body { max-width: 760px; color: var(--text-2); }
.legal__body h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); margin: 48px 0 12px; letter-spacing: -0.01em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body ul { margin-top: 12px; }
.legal__body ul { list-style: disc; padding-left: 1.25em; }
.legal__body a { color: var(--blue); }
.legal__body .todo { background: #fff3c4; color: var(--ink); padding: 0 4px; border-radius: 4px; }
.legal__meta { font-size: 13px; color: var(--text-3); margin-top: 48px; }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 64px; }
.notfound__blob { width: 160px; height: 160px; margin: 0 auto 40px; color: var(--white); animation: float 6s ease-in-out infinite; }
.notfound__blob svg { width: 100%; height: 100%; }
.notfound .h2 { max-width: 14em; margin-inline: auto; }
.notfound p { margin-top: 20px; font-size: 20px; }
.notfound .btn { margin-top: 40px; }
.header--static .header__pill { max-width: 1120px; }

/* 7. Keyframes ------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }

/* 8. Reduced motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .15s !important;
  }
  .spin, .hero__logo-float, .scroll-hint span, .gmock__caret, .notfound__blob { animation: none !important; }
  .preloader { display: none !important; }
}

/* Retouches QA */
a.infos__value { padding-block: 9px; margin-block: -9px; } /* zone tactile ≥ 44 px */
@media (max-width: 419px) {
  .header--sub .brand__name { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) { .scroll-hint { display: none; } }
