/* vincentdame.com · feuille générée par _generateur/preparer.php depuis maquette/assets/site.css — ne pas modifier à la main. */
/* --- Compatibilité Bricks (avant la maquette : ses règles gardent la main) --- */
/* Bricks plafonne ses éléments à max-width:100% : la maquette a des visuels qui débordent volontairement. */
[class*=brxe-]{max-width:none}
img[class*=brxe-]{max-width:100%}
.brxe-section{display:block;flex-direction:initial;align-items:initial;flex-wrap:initial;margin-left:0;margin-right:0;width:auto}
.brxe-text-basic:empty,.brxe-text:empty{display:none}
.brxe-shortcode{width:100%}
.brxe-text-link{display:inline;gap:normal;align-items:normal}
blockquote{margin:0;padding:0;border:0;font:inherit;quotes:none}
blockquote::before,blockquote::after{content:none}
figcaption{margin:0;font-size:inherit;color:inherit;text-align:inherit}
label{color:inherit;display:inline;font-weight:inherit;margin-bottom:0}
legend{display:block}
textarea{min-height:auto}

/* =====================================================================
   vincentdame.com — maquette 2026
   Concept : vitrine sombre façon Apple. Le dégradé du monogramme NéoPixel
   (corail → magenta → bleu) n'apparaît qu'aux endroits qui comptent :
   titres clés, boutons d'action, preuves chiffrées.
   Sombre par défaut, clair via la bascule (data-theme="light").
   ===================================================================== */

@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs (thème sombre, par défaut) */
  --bg: #000;
  --bg-alt: #0c0c10;
  --surface: #151519;
  --surface-2: #1d1d23;
  --line: rgb(255 255 255 / .10);
  --line-strong: rgb(255 255 255 / .18);
  --fg: #f5f5f7;
  --fg-2: #a1a1a8;
  --fg-3: #6e6e75;            /* texte large uniquement (≥ 24 px) */
  --coral: #ff7a6b;
  --magenta: #c84fdc;
  --blue: #5b8cff;
  --link: #2997ff;
  --on-grad: #000;            /* texte posé sur le dégradé */
  --btn: #0071e3;             /* bouton principal : bleu plein, texte blanc (4,9:1) */
  --btn-hover: #0062c4;     /* survol plus foncé : le contraste reste ≥ 4,5:1 */
  --btn-fg: #fff;
  --grad: linear-gradient(100deg, var(--coral) 0%, var(--magenta) 52%, var(--blue) 100%);
  --glow-a: rgb(255 122 107 / .34);
  --glow-b: rgb(200 79 220 / .30);
  --glow-c: rgb(91 140 255 / .30);
  --glass: rgb(22 22 26 / .72);
  --shadow: 0 30px 80px -20px rgb(0 0 0 / .8);
  --ok: #4cd97b;
  color-scheme: dark;

  /* Typographie */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Mesures */
  --maxw: 1120px;
  --gutter: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 32px), env(safe-area-inset-right, 0px));
  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 12px;
  --header-h: 52px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);        /* proche d'un ressort amorti (damping 1) */
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);  /* léger rebond, réservé aux pastilles */
}

:root[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-alt: #f2f2f6;
  --surface: #ffffff;
  --surface-2: #f4f4f7;
  --line: rgb(0 0 0 / .09);
  --line-strong: rgb(0 0 0 / .16);
  --fg: #1d1d1f;
  --fg-2: #5d5d64;
  --fg-3: #7b7b83;
  --coral: #c8412f;
  --magenta: #9a2db0;
  --blue: #2a5fd8;
  --link: #0066cc;
  --on-grad: #fff;
  --glow-a: rgb(255 122 107 / .22);
  --glow-b: rgb(200 79 220 / .16);
  --glow-c: rgb(91 140 255 / .18);
  --glass: rgb(251 251 253 / .76);
  --shadow: 0 30px 70px -24px rgb(30 20 60 / .28);
  --ok: #157a3c;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.7rem/1.55 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--magenta); color: #fff; }

.visually-hidden {
  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-link {
  position: fixed; left: 16px; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 64px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: 0; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Pictogrammes ---------- */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .ico { stroke: url(#grad-stroke); }

/* ---------- Boutons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 1.4em; border-radius: 999px;
  font-weight: 600; font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .1s ease-out, box-shadow .25s var(--ease-out), background-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
/* Bouton principal (nom historique « grad ») : bleu plein et texte blanc, comme sur apple.com. */
.btn--grad { background: var(--btn); color: var(--btn-fg); }
.btn--grad:hover { background: var(--btn-hover); }
.btn--ghost {
  background: transparent; color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg-2); }
.btn--sm { --h: 36px; padding: 0 1.05em; font-size: 1.4rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35em; font-weight: 600;
  color: var(--link); text-decoration: none; min-height: 44px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  height: var(--header-h);
}
/* Le flou est porté par un pseudo-élément : l'en-tête ne devient pas
   le bloc conteneur du menu mobile en position:fixed (piège Bricks connu). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header > .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 650; letter-spacing: -0.02em; font-size: 1.7rem; min-height: 44px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { display: block; font: 500 1.1rem/1 var(--mono); color: var(--fg-2); letter-spacing: .02em; margin-top: 3px; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  color: var(--fg); opacity: .82; text-decoration: none; font-size: 1.4rem; font-weight: 500;
  background: transparent; border: 0; cursor: pointer;
  transition: opacity .2s, background-color .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { opacity: 1; background: var(--line); }
.nav-link[aria-current="page"], .nav-link.is-current { opacity: 1; }
.nav-link[aria-current="page"]::after, .nav-link.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-item, .nav-link { position: relative; }
.nav-trigger .ico { width: 14px; height: 14px; transition: rotate .3s var(--ease-out); }
.nav-trigger[aria-expanded="true"] .ico { rotate: 180deg; }

/* Panneau « Services » : il descend sous l'en-tête, la page se floute derrière. */
.flyout {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .24s ease-out, transform .32s var(--ease-out), visibility 0s linear .32s;
}
.flyout.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .24s ease-out, transform .32s var(--ease-out), visibility 0s; }
.flyout-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-block: 36px 44px; }
.flyout-label { font: 500 1.2rem/1.2 var(--mono); color: var(--fg-2); margin-bottom: 14px; }
.flyout-links { display: grid; gap: 2px; }
.flyout-links a { display: inline-flex; min-height: 32px; align-items: center; color: var(--fg); text-decoration: none; font-size: 1.5rem; font-weight: 500; opacity: .9; }
.flyout-links--big a { font-size: 2.2rem; font-weight: 650; letter-spacing: -0.025em; min-height: 40px; }
.flyout-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.flyout-links a[aria-current="page"] { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.flyout-col { opacity: 0; transform: translateY(-4px); transition: opacity .2s ease-out, transform .3s var(--ease-out); }
.flyout.is-open .flyout-col { opacity: 1; transform: none; }
.flyout.is-open .flyout-col:nth-child(2) { transition-delay: .04s; }
.flyout.is-open .flyout-col:nth-child(3) { transition-delay: .08s; }
.flyout.is-open .flyout-col:nth-child(4) { transition-delay: .12s; }
.flyout-scrim {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0;
  background: rgb(0 0 0 / .32);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: opacity .3s ease-out;
}
.flyout-scrim.is-open { opacity: 1; pointer-events: auto; }
@media (max-width: 980px) { .flyout, .flyout-scrim { display: none; } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--fg);
  transition: background-color .2s, transform .1s ease-out;
}
.icon-btn:hover { background: var(--line); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; display: none;
  padding: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; animation: menu-in .32s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-list { display: grid; gap: 0; }
.mobile-list > li > a, .mobile-group > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; color: var(--fg); text-decoration: none;
  font-size: 2.8rem; font-weight: 650; letter-spacing: -0.03em; border-bottom: 1px solid var(--line);
  list-style: none; cursor: pointer;
}
.mobile-group > summary::-webkit-details-marker { display: none; }
.mobile-group > summary .ico { width: 22px; height: 22px; transition: rotate .3s var(--ease-out); }
.mobile-group[open] > summary .ico { rotate: 180deg; }
.mobile-sub { display: grid; padding: 8px 0 14px; border-bottom: 1px solid var(--line); }
.mobile-sub a { display: flex; align-items: center; min-height: 44px; color: var(--fg-2); text-decoration: none; font-size: 1.7rem; font-weight: 500; }
.mobile-sub a:hover, .mobile-sub a[aria-current="page"] { color: var(--fg); }
.mobile-menu .btn { margin-top: 28px; width: 100%; }
.mobile-menu .menu-close { position: absolute; top: calc(6px + env(safe-area-inset-top, 0px)); right: var(--gutter-r); }

@media (max-width: 980px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 12vw, 160px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 18px; max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow { font: 500 1.3rem/1.2 var(--mono); color: var(--fg-2); letter-spacing: .01em; }
.title-xl {
  font-size: clamp(4rem, 6.2vw, 8rem); line-height: 1.0; letter-spacing: -0.045em; font-weight: 700;
}
.title-l { font-size: clamp(3.4rem, 4.8vw, 6rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 680; }
.lead { font-size: clamp(1.8rem, 1.6vw, 2.1rem); line-height: 1.5; color: var(--fg-2); max-width: 62ch; letter-spacing: -0.012em; }
.lead strong { color: var(--fg); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); overflow: clip; }
.hero-glow {
  position: absolute; inset: auto 0 0 0; height: 78%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 46% at 26% 62%, var(--glow-a), transparent 70%),
    radial-gradient(34% 44% at 52% 52%, var(--glow-b), transparent 70%),
    radial-gradient(36% 46% at 76% 62%, var(--glow-c), transparent 70%);
  filter: blur(30px);
}
.hero-copy { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero h1 { display: grid; gap: 14px; justify-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(1.7rem, 1.7vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--fg);
}
.hero-kicker img { width: 28px; height: 28px; border-radius: 8px; }
.hero-title {
  display: block;
  font-size: clamp(4.96rem, 9.6vw, 12.4rem); line-height: .94; letter-spacing: -0.055em; font-weight: 720;
  padding-bottom: .06em;
}
.hero-title .w { display: inline-block; }
.hero .lead { margin-inline: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; margin-top: 6px; }
.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 4px;
  font: 500 1.3rem/1.4 var(--mono); color: var(--fg-2);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.hero-facts a { color: inherit; }

/* Pile de trois navigateurs en 3D, qui se déploie au défilement */
.hero-stage {
  position: relative; z-index: 1; margin-top: clamp(40px, 5vw, 64px);
  perspective: 1800px; perspective-origin: 50% 0%;
  height: clamp(250px, 46vw, 600px);
}
.win {
  position: absolute; left: 50%; top: 0; width: min(78%, 860px); translate: -50% 0;
  border-radius: 14px; overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--line-strong);
  transform-origin: 50% 100%;
}
.win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.win-bar {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.win-url {
  flex: 1; max-width: 340px; margin-inline: auto; height: 22px; border-radius: 7px;
  display: grid; place-items: center; background: var(--line); color: var(--fg-2);
  font: 500 1.2rem/1 var(--mono);
}
.win--front { z-index: 3; }
.win--left  { z-index: 2; transform: translateX(-24%) rotateY(14deg) scale(.86); filter: brightness(.7); }
.win--right { z-index: 2; transform: translateX(24%) rotateY(-14deg) scale(.86); filter: brightness(.7); }
.phone {
  position: absolute; z-index: 4; right: max(4%, calc(50% - 520px)); top: 18%;
  width: clamp(92px, 15vw, 190px); aspect-ratio: 390 / 820; border-radius: clamp(16px, 2.6vw, 32px);
  overflow: hidden; background: #000;
  box-shadow: var(--shadow), 0 0 0 clamp(3px, .5vw, 6px) #1b1b1f, 0 0 0 calc(clamp(3px, .5vw, 6px) + 1px) var(--line-strong);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .win--front { animation: win-front linear both; animation-timeline: scroll(root); animation-range: 0px 640px; }
    .win--left  { animation: win-left  linear both; animation-timeline: scroll(root); animation-range: 0px 640px; }
    .win--right { animation: win-right linear both; animation-timeline: scroll(root); animation-range: 0px 640px; }
    .phone      { animation: phone-in  linear both; animation-timeline: scroll(root); animation-range: 0px 640px; }
  }
}
@keyframes win-front { from { transform: rotateX(26deg) scale(.9); } to { transform: none; } }
@keyframes win-left  { from { transform: rotateX(26deg) translateX(-6%) rotateY(4deg) scale(.82); filter: brightness(.45); }
                       to   { transform: translateX(-24%) rotateY(14deg) scale(.86); filter: brightness(.7); } }
@keyframes win-right { from { transform: rotateX(26deg) translateX(6%) rotateY(-4deg) scale(.82); filter: brightness(.45); }
                       to   { transform: translateX(24%) rotateY(-14deg) scale(.86); filter: brightness(.7); } }
@keyframes phone-in  { from { transform: translateY(18%) rotate(6deg); } to { transform: none; } }

.trusted { margin-top: clamp(40px, 6vw, 72px); text-align: center; display: grid; gap: 14px; position: relative; z-index: 1; }
.trusted p { font: 500 1.3rem/1.4 var(--mono); color: var(--fg-2); }
.trusted ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; }
.trusted li { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); opacity: .85; }

/* ---------- Titres qui apparaissent puis s'effacent (effet de l'accueil actuel) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both, reveal-out linear forwards;
      animation-timeline: view(), view();
      animation-range: entry 0% entry 100%, exit 0% exit 85%;
    }
    .rise {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
  }
}
.reveal.is-initial { animation-name: none, reveal-out; }
.rise.is-initial { animation: none; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(48px) scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes reveal-out { from { opacity: 1; transform: none; } to { opacity: .25; transform: scale(.92); } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* ---------- Phrase qui s'allume mot après mot ---------- */
.statement { padding-block: clamp(96px, 14vw, 200px); }
.statement p {
  font-size: clamp(3rem, 4.6vw, 5.6rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 650;
  max-width: 21ch; max-width: 980px;
}
.statement .word { color: var(--fg-3); transition: color .35s ease-out; }
.statement .word.is-lit { color: var(--fg); }
.statement .word.is-key.is-lit {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  background-size: var(--gw, 100%) 100%; background-position: var(--gx, 0) 0;
}

/* ---------- Services (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > li { display: grid; min-width: 0; }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px;
  min-width: 0; isolation: isolate; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card::after {  /* liseré dégradé au survol */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .35s var(--ease-out);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); }
a.card:hover::after, .card--hover:hover::after { opacity: 1; }
a.card:active { transform: scale(.985); transition-duration: .1s; }
.card h3 { font-size: clamp(2.2rem, 2vw, 2.8rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 650; }
.card p { color: var(--fg-2); font-size: 1.6rem; line-height: 1.5; }
.card .price { margin-top: auto; padding-top: 10px; font: 500 1.4rem/1.3 var(--mono); color: var(--fg); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card .price b { font-size: 1.8rem; font-weight: 600; }
.card .price span { color: var(--fg-2); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.card-icon svg { width: 22px; height: 22px; stroke: url(#grad-stroke); }
.card-more { position: absolute; top: clamp(20px, 2.6vw, 30px); right: clamp(20px, 2.6vw, 30px); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--fg); transition: transform .35s var(--ease-out), background-color .35s; }
.card-more svg { width: 16px; height: 16px; }
a.card:hover .card-more { transform: rotate(-45deg); background: var(--fg); color: var(--bg); }

.s-vitrine   { grid-column: span 4; min-height: 340px; }
.s-ecom      { grid-column: span 2; }
.s-landing   { grid-column: span 2; }
.s-refonte   { grid-column: span 2; }
.s-seo       { grid-column: span 2; }
.s-asso      { grid-column: span 3; }
.s-identite  { grid-column: span 3; }
.s-motion    { grid-column: span 2; }
.s-maint     { grid-column: span 4; }

.s-vitrine .mini-site {
  position: absolute; right: -6%; bottom: -18%; width: 58%; border-radius: 12px; overflow: hidden; z-index: -1;
  box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); rotate: -6deg;
  transition: transform .5s var(--ease-out);
}
.s-vitrine:hover .mini-site { transform: translate(-8px, -10px) rotate(2deg); }
.s-vitrine .card-body { max-width: 46%; display: grid; gap: 14px; }
.s-seo .serp {
  margin-top: 4px; display: grid; gap: 8px; font: 500 1.2rem/1.35 var(--mono);
}
.serp div { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--fg-2); }
.serp div b { color: var(--fg); font-weight: 600; }
.serp .is-you { box-shadow: inset 0 0 0 1px var(--magenta); color: var(--fg); }
.s-maint .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--fg); font-size: 1.3rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip svg { width: 14px; height: 14px; color: var(--ok); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-vitrine, .s-maint, .s-asso, .s-identite { grid-column: span 2; }
  .s-ecom, .s-landing, .s-refonte, .s-seo, .s-motion { grid-column: span 1; }
  /* Carte pleine largeur : texte en haut, capture dans l'espace réservé en bas (jamais par-dessus le texte). */
  .s-vitrine { min-height: 0; }
  .s-vitrine .card { padding-bottom: clamp(240px, 42vw, 340px); }
  .s-vitrine .card-body { max-width: 62ch; }
  .s-vitrine .mini-site { width: min(70%, 480px); right: -3%; bottom: -28px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto !important; }
  .s-vitrine .card { padding-bottom: clamp(200px, 56vw, 300px); }
  .s-vitrine .card-body { max-width: none; }
  .s-vitrine .mini-site { width: 84%; right: -6%; }
}

/* ---------- Pastille collante (inspirée de la section « Points forts » d'Apple) ---------- */
.pastille-dock {
  position: sticky; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; justify-content: center; gap: 10px; margin-top: 36px;
  pointer-events: none;
}
.pastille, .pastille-btn {
  pointer-events: auto;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5), inset 0 0 0 1px var(--line-strong);
  border-radius: 999px; min-height: 56px;
}
.pastille {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 20px;
  clip-path: inset(0 calc(50% - 28px) round 999px);
  opacity: 0; transform: translateY(16px) scale(.9);
  visibility: hidden;  /* masquée : ni cliquable, ni atteignable au clavier (après le fondu) */
  transition:
    opacity .35s var(--ease-out),
    transform .5s var(--ease-spring),
    clip-path .6s var(--ease-out) .12s,
    visibility .72s;
}
.pastille > * { opacity: 0; transition: opacity .3s ease-out .32s; }
.pastille-btn {
  width: 56px; height: 56px; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--fg);
  opacity: 0; transform: translateY(16px) scale(.6); visibility: hidden;
  transition: opacity .35s var(--ease-out) .18s, transform .55s var(--ease-spring) .18s, visibility .73s;
  position: relative;
}
.pastille-btn:active { transform: scale(.92) !important; transition-duration: .1s; }
.pastille-btn .ico { width: 20px; height: 20px; }
.is-docked .pastille { opacity: 1; transform: none; clip-path: inset(0 0 round 999px); visibility: visible; }
.is-docked .pastille > * { opacity: 1; }
.is-docked .pastille-btn { opacity: 1; transform: none; visibility: visible; }
.pastille .dots { display: flex; gap: 6px; padding-right: 10px; }
.pastille .dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--fg-3); transition: width .45s var(--ease-out), background-color .3s;
  position: relative;
}
.pastille .dot::before { content: ""; position: absolute; inset: -12px -4px; }  /* cible tactile ≥ 24 px */
.pastille .dot[aria-current="true"] { width: 28px; background: var(--fg); }
.pastille { max-width: calc(100vw - 32px); }
.pastille-label { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pastille .btn { --h: 40px; font-size: 1.5rem; flex: none; }
.pastille-sub::before { content: " · "; }
.ring { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); rotate: -90deg; pointer-events: none; }
.ring circle { fill: none; stroke-width: 2.5; }
.ring .ring-track { stroke: var(--line-strong); }
.ring .ring-fill { stroke: var(--fg); stroke-linecap: round; stroke-dasharray: 145; stroke-dashoffset: 145; }
.pastille-btn .i-play { display: none; }
.pastille-btn[aria-pressed="true"] .i-play { display: block; }
.pastille-btn[aria-pressed="true"] .i-pause { display: none; }

/* Téléphone : libellé sur deux lignes à gauche, bouton à droite (comme la barre d'achat d'Apple). */
@media (max-width: 600px) {
  .pastille { gap: 10px; padding-left: 16px; }
  .pastille-label { white-space: normal; font-size: 1.3rem; line-height: 1.2; max-width: 42vw; text-wrap: balance; }
  .pastille-sub { display: block; font-weight: 500; color: var(--fg-2); }
  .pastille-sub::before { content: none; }
  .pastille .btn { --h: 38px; font-size: 1.4rem; padding: 0 1em; }
}

/* ---------- Réalisations (galerie horizontale) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 980px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  scrollbar-width: none; padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.project {
  scroll-snap-align: start; position: relative; border-radius: var(--radius-l); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 560px;
}
.project-copy { padding: clamp(28px, 3.6vw, 48px); display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 2; }
.project-tag { font: 500 1.3rem/1.3 var(--mono); color: var(--fg-2); }
.project h3 { font-size: clamp(2.8rem, 3vw, 4rem); line-height: 1.05; letter-spacing: -0.04em; }
.project p { color: var(--fg-2); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.metric { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.metric b { font: 600 clamp(1.8rem, 1.8vw, 2.2rem)/1.1 var(--mono); letter-spacing: -0.02em; }
.metric span { font-size: 1.2rem; line-height: 1.3; color: var(--fg-2); }
.metric-note { font: 400 1.2rem/1.4 var(--mono); color: var(--fg-2); }
.project-visual { position: relative; min-height: 300px; }
.project-visual .shot {
  position: absolute; left: 6%; top: 10%; width: 118%; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line-strong);
}
.project-visual .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.project-visual .phone { right: auto; left: 2%; top: auto; bottom: 7%; width: clamp(90px, 13vw, 150px); animation: none; }
.project-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.project .soon { display: inline-flex; align-items: center; gap: 6px; font: 500 1.3rem/1 var(--mono); color: var(--fg-2); min-height: 44px; }
.project .soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

@media (max-width: 820px) {
  .project { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .project-visual { min-height: 260px; order: -1; }
  .project-visual .shot { left: 8%; top: 12%; width: 100%; }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Preuves (bento) ---------- */
.proofs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.proof { background: var(--surface); border-radius: var(--radius-l); padding: clamp(22px, 2.6vw, 32px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.proof h3 { font-size: 2rem; letter-spacing: -0.025em; line-height: 1.2; }
.proof p { color: var(--fg-2); font-size: 1.5501rem; line-height: 1.5; }
.proof .big, .proof .num { align-self: flex-start; }
.proof .big { font-size: clamp(6.4rem, 9vw, 12rem); line-height: .9; letter-spacing: -0.06em; font-weight: 720; }
.proof .num { font: 700 clamp(4.4rem, 4.6vw, 6rem)/1 var(--font); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.proof .src { margin-top: auto; font: 400 1.2rem/1.4 var(--mono); color: var(--fg-2); }
.p-since { grid-column: span 2; grid-row: span 2; justify-content: space-between; background:
  radial-gradient(80% 60% at 0% 100%, var(--glow-b), transparent 70%), var(--surface); }
.p-lh { grid-column: span 2; }
.gauges { display: flex; flex-wrap: wrap; gap: 18px; }
.gauge { display: grid; justify-items: center; gap: 6px; font-size: 1.3rem; color: var(--fg-2); }
.gauge svg { width: 76px; height: 76px; rotate: -90deg; }
.gauge circle { fill: none; stroke-width: 6; }
.gauge .g-track { stroke: var(--surface-2); }
.gauge .g-val { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 201; }
.gauge-wrap { position: relative; }
.gauge-wrap b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.7rem/1 var(--mono); color: var(--fg); }

@media (max-width: 900px) {
  .proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .proofs { grid-template-columns: minmax(0, 1fr); }
  .proofs > * { grid-column: auto !important; grid-row: auto !important; }
}

/* ---------- Méthode (frise qui se remplit au défilement) ---------- */
.steps { position: relative; display: grid; gap: clamp(28px, 4vw, 44px); padding-left: 56px; max-width: 760px; view-timeline: --steps block; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
}
.steps::before { background: var(--line-strong); }
.steps::after { background: linear-gradient(var(--coral), var(--magenta), var(--blue)); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps::after { animation: fill-line linear both; animation-timeline: --steps; animation-range: cover 15% cover 70%; }
  }
}
@keyframes fill-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.step { position: relative; display: grid; gap: 8px; }
/* Chaque cercle s'allume quand son étape arrive au milieu de l'écran (classe is-lit posée par le script) :
   un disque dégradé grandit depuis le centre, avec une gerbe d'étincelles. La ligne passe dessous. */
.step-n {
  position: absolute; z-index: 1; left: -58px; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-strong);
  color: var(--fg-2); font: 650 1.5rem/1 var(--mono); isolation: isolate;
  transition: color .3s ease-out .08s, box-shadow .45s var(--ease-out);
}
.section--alt .step-n { background: var(--bg-alt); }
.step-n::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--grad);
  opacity: 0; transform: scale(.2); transition: opacity .25s ease-out, transform .6s var(--ease-spring);
}
.step-n::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  z-index: -2; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle, var(--coral) 0 2.5px, transparent 3px) 50% 0 / 8px 8px no-repeat,
    radial-gradient(circle, var(--magenta) 0 2px, transparent 2.5px) 86% 14% / 8px 8px no-repeat,
    radial-gradient(circle, var(--blue) 0 2.5px, transparent 3px) 100% 50% / 8px 8px no-repeat,
    radial-gradient(circle, var(--coral) 0 2px, transparent 2.5px) 86% 86% / 8px 8px no-repeat,
    radial-gradient(circle, var(--magenta) 0 2.5px, transparent 3px) 50% 100% / 8px 8px no-repeat,
    radial-gradient(circle, var(--blue) 0 2px, transparent 2.5px) 14% 86% / 8px 8px no-repeat,
    radial-gradient(circle, var(--coral) 0 2.5px, transparent 3px) 0 50% / 8px 8px no-repeat,
    radial-gradient(circle, var(--magenta) 0 2px, transparent 2.5px) 14% 14% / 8px 8px no-repeat;
}
.step.is-lit .step-n { color: var(--on-grad); box-shadow: 0 0 0 5px color-mix(in srgb, var(--magenta) 18%, transparent), 0 0 28px -4px var(--glow-b); }
.step.is-lit .step-n::before { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .step.is-lit .step-n { animation: halo .9s ease-out; }
  .step.is-lit .step-n::after { animation: etincelles .85s cubic-bezier(.2, .7, .3, 1); }
}
@keyframes halo {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--magenta) 55%, transparent), 0 0 28px -4px var(--glow-b); }
  to { box-shadow: 0 0 0 22px transparent, 0 0 28px -4px var(--glow-b); }
}
@keyframes etincelles {
  0% { opacity: 1; transform: scale(.35) rotate(0deg); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3) rotate(22deg); }
}
.step h3 { font-size: clamp(2.2rem, 2.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.15; padding-top: 2px; }
.step p { color: var(--fg-2); max-width: 58ch; }
.step .chip { justify-self: start; margin-top: 4px; }

/* ---------- Tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border-radius: var(--radius-l); padding: clamp(26px, 3vw, 36px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.plan--focus { box-shadow: inset 0 0 0 1.5px var(--magenta), 0 30px 60px -30px var(--glow-b); }
.plan-head { display: grid; gap: 6px; }
.plan h3 { font-size: 2.2rem; letter-spacing: -0.03em; }
.plan .for { font-size: 1.5rem; color: var(--fg-2); }
.plan .amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .amount small { font: 500 1.3rem/1 var(--mono); color: var(--fg-2); }
.plan .amount b { font: 650 clamp(3.6rem, 3.6vw, 4.6rem)/1 var(--font); letter-spacing: -0.045em; }
.plan ul { display: grid; gap: 10px; font-size: 1.5501rem; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.plan .btn { margin-top: auto; }
.plan .badge { position: absolute; top: -13px; left: clamp(26px, 3vw, 36px); }
.badge { justify-self: start; font: 500 1.2rem/1 var(--mono); padding: 6px 10px; border-radius: 999px; background: var(--btn); color: var(--btn-fg); }
.price-list { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-list li span:last-child { font: 500 1.5rem/1.3 var(--mono); white-space: nowrap; }
.price-note { margin-top: 18px; font-size: 1.4rem; color: var(--fg-2); }
@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .price-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Estimateur ---------- */
.estimator {
  margin-top: clamp(56px, 8vw, 96px); border-radius: var(--radius-l); overflow: hidden;
  background: radial-gradient(60% 80% at 100% 0%, var(--glow-c), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}
.est-intro { padding: clamp(28px, 3.6vw, 48px); display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--line); }
.est-intro h3 { font-size: clamp(2.8rem, 3vw, 4rem); line-height: 1.05; letter-spacing: -0.04em; }
.est-intro p { color: var(--fg-2); }
.est-form { padding: clamp(28px, 3.6vw, 48px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.est-progress { display: grid; gap: 10px; }
.est-progress .label { display: flex; justify-content: space-between; font: 500 1.3rem/1 var(--mono); color: var(--fg-2); }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 25%); background: var(--grad); border-radius: inherit; transition: width .5s var(--ease-out); }
.est-step { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.est-step legend { font-size: 2rem; font-weight: 650; letter-spacing: -0.025em; margin-bottom: 14px; padding: 0; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.opt span {
  display: grid; gap: 2px; min-height: 64px; padding: 12px 14px 12px 44px; border-radius: 14px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, background-color .2s, transform .1s ease-out; position: relative;
}
.opt span::before {
  content: ""; position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--fg-3); transition: box-shadow .2s;
}
.opt input[type="checkbox"] + span::before { border-radius: 5px; }
.opt span b { font-weight: 600; font-size: 1.5501rem; }
.opt span small { color: var(--fg-2); font-size: 1.3rem; }
.opt input:hover + span { box-shadow: inset 0 0 0 1px var(--fg-3); }
.opt input:active + span { transform: scale(.98); }
.opt input:checked + span { box-shadow: inset 0 0 0 1.5px var(--magenta); }
.opt input:checked + span::before { box-shadow: inset 0 0 0 6px var(--magenta); }
.opt input[type="checkbox"]:checked + span::before { box-shadow: none; background: var(--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.est-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: auto; }
.est-result { display: grid; gap: 12px; }
.est-result .range { font-size: clamp(3rem, 3.8vw, 4.6rem); line-height: 1.05; letter-spacing: -0.045em; font-weight: 700; }
.est-result .sub { color: var(--fg-2); font-size: 1.5rem; }
.est-result ul { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) {
  .estimator { grid-template-columns: minmax(0, 1fr); }
  .est-intro { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.review { background: var(--surface); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 18px; margin: 0; min-width: 0; }
.review blockquote { margin: 0; font-size: clamp(1.8rem, 1.7vw, 2.2rem); line-height: 1.4; letter-spacing: -0.02em; font-weight: 500; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
.review figcaption .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; background: var(--grad); color: var(--on-grad); }
.review figcaption small { display: block; color: var(--fg-2); font: 400 1.2rem/1.3 var(--mono); }
.stars { display: flex; gap: 2px; color: #f5b33c; }
.stars svg { width: 16px; height: 16px; }
.r1 { grid-column: span 7; } .r2 { grid-column: span 5; } .r3 { grid-column: span 5; } .r4 { grid-column: span 7; }
.r4 blockquote { font-size: clamp(3.2rem, 4vw, 4.8rem); letter-spacing: -0.04em; }
@media (max-width: 760px) { .reviews > * { grid-column: span 12; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 72px; padding-block: 18px; font-size: clamp(1.7rem, 1.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); position: relative; transition: rotate .35s var(--ease-out), background-color .2s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; translate: -50% -50%; background: var(--fg); border-radius: 2px; }
.faq summary .plus::after { rotate: 90deg; }
.faq details[open] summary .plus { rotate: 45deg; }
.faq summary:hover .plus { background: var(--line-strong); }
.faq .answer { padding-bottom: 26px; color: var(--fg-2); display: grid; gap: 12px; max-width: 70ch; }
.faq .answer strong { color: var(--fg); }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .answer { animation: rise-small .4s var(--ease-out); }
}
@keyframes rise-small { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Appel final + formulaire ---------- */
.cta { text-align: center; overflow: clip; }
.cta .hero-glow { height: 100%; opacity: .8; }
.cta .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.cta-title { font-size: clamp(4.8rem, 9vw, 12rem); line-height: .95; letter-spacing: -0.055em; font-weight: 720; }
.contact-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 8px; font: 500 1.5rem/1.4 var(--mono); color: var(--fg-2); }
.contact-ways b { color: var(--fg); font-weight: 600; }
.contact-ways a { color: inherit; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.contact-ways a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.copy-btn { border: 0; background: var(--surface-2); color: var(--fg); border-radius: 999px; padding: 4px 10px; font: 500 1.2rem/1.2 var(--mono); cursor: pointer; min-height: 28px; margin-left: 6px; }
.form-card {
  width: 100%; max-width: 760px; margin-top: 36px; text-align: left; background: var(--surface);
  border-radius: var(--radius-l); padding: clamp(24px, 3.6vw, 44px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 1.4rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--fg-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 0;
  background: var(--surface-2); color: var(--fg); font: inherit; font-size: 1.6rem;
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--coral); }
.field .err { font-size: 1.3rem; color: var(--coral); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.form-foot p { font-size: 1.3rem; color: var(--fg-2); max-width: 46ch; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: 1.5rem; }
@media (max-width: 600px) { .form-card { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 1.4rem; color: var(--fg-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-size: 1.3rem; font-weight: 600; color: var(--fg); margin-bottom: 14px; letter-spacing: 0; }
.foot-grid ul { display: grid; gap: 4px; }
.foot-grid a, .foot-text { color: var(--fg-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.foot-grid a:hover { color: var(--fg); text-decoration: underline; }
.foot-legal a { color: inherit; }
.foot-legal-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.foot-about { display: grid; gap: 14px; align-content: start; }
.foot-about p { max-width: 40ch; }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font: 400 1.2rem/1.5 var(--mono); }
.eco { display: inline-flex; align-items: center; gap: 8px; }
.eco::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }

/* ---------- Accessibilité : préférences système ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header::before, .pastille, .pastille-btn { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgb(255 255 255 / .35); --line-strong: rgb(255 255 255 / .6); --fg-2: #d0d0d6; --fg-3: #a8a8ae; }
  :root[data-theme="light"] { --line: rgb(0 0 0 / .4); --line-strong: rgb(0 0 0 / .7); --fg-2: #3a3a40; --fg-3: #55555c; }
}
@media (prefers-reduced-motion: reduce) {
  .pastille, .pastille-btn, .pastille > * { transition: opacity .2s ease, visibility .2s !important; transform: none !important; clip-path: none !important; }
  .card, .card *, .bar i, .statement .word { transition: none !important; }
}
@media (forced-colors: active) {
  .grad-text, .statement .word.is-key.is-lit { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
  .btn--grad { border: 2px solid ButtonText; }
  .step.is-lit .step-n { border: 2px solid Highlight; }
}

/* ---------- Champ piège du formulaire (robots) ---------- */
.champ-piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font: 500 1.3rem/1.4 var(--mono); color: var(--fg-2); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--fg-3); }
.breadcrumb a { color: var(--fg-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--fg); }

/* =====================================================================
   Pages intérieures
   ===================================================================== */
.page-hero { position: relative; overflow: clip; padding-block: clamp(36px, 5vw, 64px) clamp(64px, 9vw, 112px); }
.page-hero .hero-glow { height: 100%; opacity: .75; }
.page-hero-inner { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; }
.title-hero { font-size: clamp(4.4rem, 7.4vw, 9.6rem); line-height: .98; letter-spacing: -0.05em; font-weight: 720; max-width: 17ch; padding-bottom: .04em; }
.page-hero .lead { max-width: 62ch; }
.hero-ctas--left { justify-content: flex-start; }
.page-hero .hero-facts { justify-content: flex-start; }

/* Capture d'écran d'un site, qui se redresse en arrivant à l'écran */
.page-visual { position: relative; z-index: 1; margin-top: clamp(44px, 6vw, 80px); perspective: 1800px; perspective-origin: 50% 0%; }
.page-visual .win { position: relative; left: auto; top: auto; translate: none; width: 100%; max-width: 1040px; margin-inline: auto; }
.page-visual .phone { right: max(2%, calc(50% - 560px)); top: auto; bottom: -8%; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .page-visual .win { animation: win-front linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .page-visual .phone { animation: phone-in linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}

/* Atouts */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 32px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feature h3 { font-size: 2rem; letter-spacing: -0.025em; line-height: 1.2; }
.feature p { color: var(--fg-2); font-size: 1.5501rem; line-height: 1.5; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Deux colonnes */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > * { min-width: 0; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Encadré de prix */
.price-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px);
  background: radial-gradient(70% 90% at 0% 0%, var(--glow-b), transparent 70%), var(--surface);
  border-radius: var(--radius-l); padding: clamp(28px, 4.4vw, 56px); box-shadow: inset 0 0 0 1px var(--line);
}
.price-panel-head { display: grid; gap: 16px; align-content: start; }
.price-panel .amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-panel .amount small { font: 500 1.4rem/1 var(--mono); color: var(--fg-2); }
.price-panel .amount b { font: 720 clamp(4.8rem, 6vw, 7.6rem)/1 var(--font); letter-spacing: -0.055em; }
.price-panel .price-note { font-size: 1.4rem; color: var(--fg-2); }
@media (max-width: 860px) { .price-panel { grid-template-columns: minmax(0, 1fr); } }

/* Liste cochée */
.checklist { display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.checklist li > svg { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.checklist b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.checklist span { display: block; color: var(--fg-2); font-size: 1.5501rem; line-height: 1.5; margin-top: 2px; }

/* Texte long (pages légales, articles) */
.prose { max-width: 72ch; display: grid; gap: 18px; color: var(--fg-2); font-size: 1.7rem; line-height: 1.65; }
.prose h2 { font-size: clamp(2.4rem, 2.6vw, 3.2rem); line-height: 1.15; letter-spacing: -0.03em; color: var(--fg); margin-top: 24px; }
.prose h3 { font-size: 2rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--fg); margin-top: 8px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 8px; }
.prose li::marker { color: var(--magenta); }
.prose a { color: var(--link); }
.prose .btn--grad { color: var(--btn-fg); }
.prose .btn--ghost { color: var(--fg); }
.prose .note { padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.5rem; }

/* Étude de cas */
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 8px; }
.case-facts div { padding: 16px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; min-width: 0; }
.case-facts dt { font: 500 1.2rem/1.2 var(--mono); color: var(--fg-2); }
.case-facts dd { margin: 0; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.case-facts a { color: var(--link); }
@media (max-width: 860px) { .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metrics-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metrics-band .metric { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); gap: 8px; }
.metrics-band .metric b { font: 700 clamp(2.8rem, 3.4vw, 4.4rem)/1 var(--font); letter-spacing: -0.045em; }
.metrics-band .metric span { font-size: 1.4rem; }
@media (max-width: 860px) { .metrics-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Petites cartes de réalisations */
.mini-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini-project { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 24px; border-radius: var(--radius-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; min-width: 0; transition: transform .35s var(--ease-out); }
.mini-project:hover { transform: translateY(-4px); }
.mini-project:active { transform: scale(.985); transition-duration: .1s; }
.mini-project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.mini-project p, .mini-project h3 { padding-inline: 10px; }
.mini-project .project-tag { font: 500 1.2rem/1.3 var(--mono); color: var(--fg-2); }
.mini-project h3 { font-size: 2rem; letter-spacing: -0.025em; line-height: 1.2; }
.mini-project .link-arrow { padding-inline: 10px; min-height: 0; }
@media (max-width: 900px) { .mini-projects { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* Réalisation seule (hors carrousel) */
.project--solo { min-height: 520px; }
@media (max-width: 820px) { .project--solo { min-height: 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.contact-grid .form-card { margin-top: 0; max-width: none; }
.contact-aside { display: grid; gap: 12px; }
.contact-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
a.contact-card:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.contact-card .card-icon { width: 44px; height: 44px; }
.contact-card small { display: block; font: 500 1.2rem/1.3 var(--mono); color: var(--fg-2); }
.contact-card b { display: block; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Portrait (photo à venir) */
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; margin: 0;
  background: radial-gradient(60% 50% at 30% 70%, var(--glow-a), transparent 70%), radial-gradient(60% 50% at 75% 35%, var(--glow-c), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initiales { font: 720 clamp(8rem, 14vw, 16rem)/1 var(--font); letter-spacing: -0.07em; }
.portrait figcaption { position: absolute; left: 16px; bottom: 16px; font: 500 1.2rem/1.3 var(--mono); color: var(--fg-2); }

/* Puces de villes */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Fil de chiffres sous un titre */
.kpis { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.kpis li { display: grid; gap: 2px; }
.kpis b { font: 700 clamp(2.8rem, 3vw, 3.6rem)/1 var(--font); letter-spacing: -0.045em; }
.kpis span { font: 500 1.3rem/1.3 var(--mono); color: var(--fg-2); }

/* Grilles de cartes à colonnes égales (pages « création » et villes) */
.bento--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento--4 > li, .bento--3 > li { grid-column: auto; }
@media (max-width: 1000px) { .bento--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .bento--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bento--4, .bento--3 { grid-template-columns: minmax(0, 1fr); } }

/* Sections resserrées et en-têtes simples (pages légales) */
.section--tight { padding-top: clamp(24px, 4vw, 48px); }
.page-hero--simple { padding-bottom: clamp(16px, 3vw, 32px); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-card { min-width: 0; display: grid; }
.post-link { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: transform .35s var(--ease-out); }
.post-link:hover { transform: translateY(-4px); }
.post-link:active { transform: scale(.985); transition-duration: .1s; }
.post-meta { font: 500 1.3rem/1.3 var(--mono); color: var(--fg-2); }
.post-title { font-size: clamp(2.2rem, 2.2vw, 2.8rem); line-height: 1.15; letter-spacing: -0.03em; }
.post-excerpt { color: var(--fg-2); }
.post-link .link-arrow { margin-top: auto; min-height: 0; }
.posts-empty { margin-top: 24px; color: var(--fg-2); max-width: 60ch; }
@media (max-width: 760px) { .posts { grid-template-columns: minmax(0, 1fr); } }

/* Article de blog */
.title-article { font-size: clamp(3.6rem, 5.6vw, 7.2rem); max-width: 22ch; }
.author { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.author small { display: block; font: 400 1.3rem/1.3 var(--mono); color: var(--fg-2); }
.author-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); font-weight: 700; letter-spacing: -0.04em; }
.article-body { margin-inline: auto; }
.article-body .brxe-post-content { display: grid; gap: 18px; }
.article-body img { border-radius: var(--radius-m); }
.article-body blockquote { margin: 8px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--magenta); color: var(--fg); font-size: 1.9rem; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 1.5rem; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article-body th { color: var(--fg); font-weight: 600; }
a.chip { text-decoration: none; min-height: 36px; }
a.chip:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.article-body .wp-block-table { overflow-x: auto; margin: 0; }

/* Image mise en avant : couverture de l'article et vignette des cartes du blog */
.article-cover { margin: 0 auto clamp(36px, 5vw, 64px); max-width: 1040px; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.article-cover img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; display: block; }
.post-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 6px; }

/* Images, galeries et vidéos insérées dans le corps d'un article (blocs WordPress) */
.article-body figure { margin: 8px 0; }
.article-body .wp-block-image img, .article-body .wp-block-gallery img { border-radius: var(--radius-m); box-shadow: 0 0 0 1px var(--line); height: auto; }
.article-body .wp-block-image.aligncenter, .article-body .aligncenter { margin-inline: auto; text-align: center; }
.article-body figcaption, .article-body .wp-element-caption { margin-top: 10px; font: 400 1.3rem/1.45 var(--mono); color: var(--fg-2); text-align: center; }
.article-body .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.article-body .wp-block-gallery figure { margin: 0; }
.article-body .wp-block-embed iframe, .article-body iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-m); }
.article-body .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }

/* =====================================================================
   Articles : barre de lecture et sommaire (ajoutés par l'extension vd-core)
   ===================================================================== */
.read-progress {
  position: fixed; left: 0; right: 0; z-index: 99; height: 3px; pointer-events: none;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.admin-bar .read-progress { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) { .admin-bar .read-progress { top: calc(var(--header-h) + 46px); } }
@media (max-width: 600px) { .admin-bar .read-progress { top: var(--header-h); } }
.read-progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--lecture, 0)); }

.toc { font-size: 1.4rem; }
.toc-box { background: var(--surface); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--line); padding: 6px 18px; }
.toc-titre {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; font-weight: 650; letter-spacing: -0.01em; color: var(--fg);
}
.toc-titre::-webkit-details-marker { display: none; }
.toc-titre::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--ease-out); flex: none; }
.toc-box[open] .toc-titre::after { rotate: 225deg; translate: 0 2px; }
.toc-reste { margin-left: auto; font: 500 1.2rem/1.2 var(--mono); color: var(--fg-2); }
.toc-liste { position: relative; display: grid; gap: 2px; padding: 4px 0 14px; }
.toc-liste::before, .toc-liste::after { content: ""; position: absolute; left: 4.25px; top: 16px; bottom: 26px; width: 1.5px; border-radius: 2px; }
.toc-liste::before { background: var(--line-strong); }
.toc-liste::after { background: linear-gradient(var(--coral), var(--magenta), var(--blue)); transform-origin: top; transform: scaleY(var(--lecture, 0)); }
.toc-liste a {
  position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 7px 0; color: var(--fg-2); text-decoration: none; line-height: 1.35; transition: color .25s;
}
.toc-liste a:hover { color: var(--fg); }
.toc-point {
  position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow .35s var(--ease-out), background-color .35s;
}
.toc-liste .is-lu .toc-point { background: var(--magenta); box-shadow: none; }
.toc-liste .is-courant a { color: var(--fg); font-weight: 600; }
.toc-liste .is-courant .toc-point { background: var(--grad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--magenta) 22%, transparent); }

/* Grand écran : sommaire collant dans une colonne à gauche du texte */
@media (min-width: 1180px) {
  .article-body { position: relative; margin-left: 300px; margin-right: auto; }
  .toc { position: absolute; top: 0; bottom: 0; right: calc(100% + 56px); width: 244px; }
  .toc-box { position: sticky; top: calc(var(--header-h) + 36px); max-height: calc(100vh - var(--header-h) - 72px); overflow-y: auto; background: transparent; box-shadow: none; padding: 0; }
  .toc-titre { cursor: default; min-height: 36px; }
  .toc-titre::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toc-point, .toc-liste a, .toc-titre::after { transition: none; }
}

/* Encart d'appel dans un article (code court [vd_appel]) */
.appel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 8px; margin: 10px 0; padding: 28px 28px 26px;
  border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.appel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.appel::after {
  content: ""; position: absolute; z-index: -1; right: -16%; bottom: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--magenta) 24%, transparent), transparent);
  pointer-events: none;
}
.appel p { margin: 0; }
.prose .appel-titre { color: var(--fg); font-size: 2.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.appel-texte { max-width: 56ch; }
.appel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px !important; }
@media (max-width: 600px) {
  .appel { padding: 24px 20px 22px; }
  .appel-actions .btn { flex: 1 1 auto; }
}

/* Choix de la mesure d'audience (page Confidentialité) : interrupteur façon réglages Apple */
.mesure { display: grid; gap: 6px; padding: 16px 20px; border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mesure-choix { position: relative; display: flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; color: var(--fg); font-weight: 600; }
.mesure-choix input { position: absolute; left: 0; width: 51px; height: 31px; margin: 0; opacity: 0; cursor: pointer; }
.mesure-interrupteur { position: relative; flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--fg-3); transition: background-color .25s var(--ease-out); }
.mesure-interrupteur::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgb(0 0 0 / .15), 0 1px 1px rgb(0 0 0 / .16);
  transition: translate .35s var(--ease-spring);
}
.mesure-choix input:checked + .mesure-interrupteur { background: var(--btn); }
.mesure-choix input:checked + .mesure-interrupteur::after { translate: 20px 0; }
.mesure-choix input:disabled + .mesure-interrupteur { opacity: .45; }
.mesure-choix input:focus-visible + .mesure-interrupteur { outline: 2px solid var(--link); outline-offset: 3px; }
.mesure-choix input:active + .mesure-interrupteur::after { width: 33px; }
.mesure-choix input:checked:active + .mesure-interrupteur::after { translate: 14px 0; }
.prose .mesure-etat { margin: 0; font-size: 1.5rem; color: var(--fg-2); }
@media (prefers-reduced-motion: reduce) { .mesure-interrupteur, .mesure-interrupteur::after { transition: none; } }
@media (forced-colors: active) {
  .mesure-interrupteur { border: 1px solid CanvasText; }
  .mesure-interrupteur::after { background: CanvasText; }
  .mesure-choix input:checked + .mesure-interrupteur { background: Highlight; }
}

/* Zone « visuel à ajouter » (personnes connectées seulement) */
.visuel-a-venir {
  display: grid; gap: 10px; margin: 8px 0; padding: 18px 20px; border-radius: var(--radius-m);
  border: 1.5px dashed var(--magenta); background: color-mix(in srgb, var(--magenta) 7%, var(--surface));
  color: var(--fg); font-size: 1.5rem; line-height: 1.5;
}
.visuel-a-venir p { margin: 0; }
.visuel-type { display: flex; align-items: center; gap: 8px; font: 600 1.3rem/1.3 var(--mono); color: var(--magenta); }
.visuel-type .ico { width: 18px; height: 18px; stroke: currentColor; }
.visuel-sujet { font-weight: 600; letter-spacing: -0.01em; }
.visuel-a-venir ul { list-style: none; padding: 0; display: grid; gap: 4px; color: var(--fg-2); font-size: 1.4rem; }
.visuel-a-venir li b { color: var(--fg); font-weight: 600; margin-right: 4px; }
.visuel-note { font: 400 1.2rem/1.3 var(--mono); color: var(--fg-2); }

/* --- Ajouts propres au site Bricks --- */
/* L'en-tête Bricks (#brx-header) devient collant ; la barre de navigation de la maquette vit dedans. */
#brx-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:100}
#brx-header .site-header{position:relative;top:auto}
.admin-bar #brx-header{top:32px}
@media (max-width:782px){.admin-bar #brx-header{top:46px}}
@media (max-width:600px){.admin-bar #brx-header{top:0}}
/* Les icônes Bricks (SVG servis par l'extension) gardent les dimensions de la maquette. */
svg.brxe-icon{flex:none}
.btn svg.brxe-icon,.link-arrow svg.brxe-icon{display:block}
/* Formulaire et estimateur : blocs Shortcode de Bricks. */
.cta .brxe-shortcode{display:flex;justify-content:center}
.form-status[data-etat="erreur"]{box-shadow:inset 0 0 0 1px var(--coral)}
.form-status[data-etat="ok"]{box-shadow:inset 0 0 0 1px var(--ok)}
