/* =========================================================
   Avelor Labs · site v2
   Palette recalée sur le logo (audit design, section 3)
   ========================================================= */

:root {
  color-scheme: light;
  /* Couleurs du logo */
  --nuit-0: #081E3C;      /* triangle */
  --nuit-1: #0E2558;      /* « AVELOR » */
  --bleu: #23448E;        /* « LABS » */
  --indigo: #3632F5;      /* fin du ruban */
  --ciel: #69B9F5;        /* milieu du ruban */
  --glace: #B9DBFA;       /* début du ruban */
  --brume: #D8E3F1;
  --cercle-a: #2455DA;
  --cercle-b: #2041AD;
  --wa: #0F7D42;          /* vert WhatsApp assombri : texte blanc à 5,2:1 (WCAG AA) */

  --ruban: linear-gradient(131deg, var(--glace) 0%, var(--ciel) 48%, var(--indigo) 100%);

  /* Rôles, thème clair */
  --bg: #ffffff;
  --bg-soft: #F3F7FC;
  --ink: var(--nuit-1);
  --ink-2: #3D5687;
  --line: var(--brume);
  --field-line: #6E86B0;   /* 3,6:1 sur blanc */
  --accent: var(--indigo);
  --on-accent: #ffffff;
  --accent-ink: var(--indigo);
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(8 30 60 / .06), 0 12px 32px -12px rgb(8 30 60 / .18);
  --header-bg: rgb(255 255 255 / .86);

  --f-title: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.125rem, 1.3rem + 2.6vw, 3.625rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  /* « Tana by night » : fond nuit du logo */
  --bg: var(--nuit-0);
  --bg-soft: #0B2448;
  --ink: #EAF2FC;
  --ink-2: #B9CDE8;
  --line: #22406F;
  --field-line: #6F92C9;
  --accent: var(--ciel);
  --on-accent: var(--nuit-0);
  --accent-ink: var(--ciel);
  --card: #0E2A52;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
  --header-bg: rgb(8 30 60 / .86);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--f-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; border-radius: var(--r-s);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Boutons et liens ---------- */
.btn {
  --btn-bg: var(--accent); --btn-ink: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .65rem 1.2rem;
  font-weight: 600; font-size: .9375rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  color: var(--btn-ink); background: var(--btn-bg);
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--btn-bg) 70%, transparent); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { min-height: 52px; padding: .85rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--whatsapp { --btn-bg: var(--wa); --btn-ink: #fff; }
.btn--whatsapp:hover svg { transform: none; }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--accent-ink); border-color: currentColor; }
.btn--ghost:hover { --btn-bg: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-ink: var(--nuit-1); }
.btn--outline-light { --btn-bg: transparent; --btn-ink: #fff; border-color: rgb(255 255 255 / .7); }
.btn--outline-light:hover { --btn-bg: rgb(255 255 255 / .1); box-shadow: none; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
.btn--primary:focus-visible { box-shadow: 0 0 0 2px var(--bg); }

.link {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px;
  font-weight: 600; color: var(--accent-ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1.5px no-repeat;
  transition: background-size .3s var(--ease);
}
.link::after { content: "→"; transition: transform .2s var(--ease); }
.link:hover { background-size: 100% 1.5px; }
.link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
/* Le flou est sur un pseudo-élément : un backdrop-filter sur .header enfermerait le menu mobile (position: fixed) dans le header */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); transition: background-color .3s; }
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.header__logo { flex: none; display: flex; padding: .25rem 0; }
.header__logo img { height: 40px; width: auto; }
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: .25rem; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  font-weight: 500; font-size: .9375rem; text-decoration: none; color: var(--ink-2);
  border-radius: 999px; position: relative; transition: color .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--ruban); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--ink); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__mobile-actions { display: none; }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.theme-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.theme-btn:hover { color: var(--ink); border-color: var(--field-line); transform: rotate(-12deg); }
.theme-btn__moon { display: none; }
[data-theme="dark"] .theme-btn__sun { display: none; }
[data-theme="dark"] .theme-btn__moon { display: block; }

.menu-btn { display: none; width: 44px; height: 44px; padding: 0; position: relative; background: none; border: 0; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgb(8 30 60 / .5); backdrop-filter: blur(2px); }

/* ---------- Kicker, labels, sections ---------- */
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wa) 20%, transparent); }
.label { font-family: var(--f-title); font-weight: 600; font-size: .9375rem; color: var(--accent-ink); margin-bottom: .75rem; display: flex; align-items: center; gap: .6rem; }
.label::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--ruban); }
.label--sky { color: var(--ciel); }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section__head--row > div { max-width: 46rem; }
.section__lead { margin-top: 1rem; font-size: var(--fs-lead); color: var(--ink-2); }

/* Motif courbes de niveau (rizières en terrasses), très discret */
.contours {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    repeating-radial-gradient(ellipse 120% 80% at 85% 10%, transparent 0 22px, color-mix(in srgb, var(--bleu) 7%, transparent) 22px 23px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
[data-theme="dark"] .contours { background: repeating-radial-gradient(ellipse 120% 80% at 85% 10%, transparent 0 22px, rgb(105 185 245 / .07) 22px 23px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 7vw, 5.5rem); overflow: hidden; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-top: 1.25rem; }
.ribbon-text { background: var(--ruban); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
[data-theme="light"] .ribbon-text { background: linear-gradient(131deg, #2E8FDA, var(--indigo) 70%); -webkit-background-clip: text; background-clip: text; }
.hero__lead { margin-top: 1.5rem; max-width: 36rem; font-size: var(--fs-lead); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.reassure { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; font-size: .9375rem; color: var(--ink-2); }
.reassure li { display: inline-flex; align-items: center; gap: .45rem; }
.reassure li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ruban); -webkit-mask: radial-gradient(circle, #000 0 3px, transparent 3.5px); mask: radial-gradient(circle, #000 0 3px, transparent 3.5px); background-color: var(--accent); }

/* Entrée du hero, une seule fois */
.js [data-enter] { opacity: 0; transform: translateY(14px); animation: enter .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* Le flux vivant */
.flow {
  position: relative; padding: 1.25rem; border-radius: var(--r-l);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.flow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--ruban); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7;
}
.flow__head { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.flow__dots { display: flex; gap: 5px; } .flow__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.flow__title { font-size: .875rem; font-weight: 600; color: var(--ink-2); margin-right: auto; }
.flow__pause { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -6px -6px 0; color: var(--ink-2); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.flow__pause:hover { color: var(--ink); background: var(--bg-soft); }
.flow__pause .i-play { display: none; }
.flow__pause[aria-pressed="true"] .i-play { display: block; }
.flow__pause[aria-pressed="true"] .i-pause { display: none; }

.flow__steps { position: relative; display: grid; gap: .5rem; padding-top: 1rem; }
.flow__steps::before {
  content: ""; position: absolute; left: 27px; top: 2.2rem; bottom: 1.2rem; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 12px);
}
.flow__steps::after {
  content: ""; position: absolute; left: 27px; top: 2.2rem; width: 2px; height: var(--progress, 0%);
  max-height: calc(100% - 3.4rem); background: var(--ruban); transition: height .9s var(--ease);
}
.flow__step {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem;
  padding: .75rem; border-radius: var(--r-m); border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, opacity .4s;
  opacity: .55;
}
.flow__step.is-on { opacity: 1; background: var(--bg-soft); border-color: var(--line); }
.flow__step strong { display: block; font-family: var(--f-title); font-size: 1rem; }
.flow__step span:not(.flow__shape) { font-size: .875rem; color: var(--ink-2); }
.flow__shape { flex: none; display: grid; place-items: center; width: 32px; height: 32px; background: var(--card); border-radius: 8px; }
.flow__shape svg { width: 26px; height: 26px; transition: transform .5s var(--ease); }
.flow__step.is-on .flow__shape svg { transform: scale(1.15); }

.flow__bubble {
  display: flex; gap: .6rem; align-items: flex-start;
  margin: 1rem 0 0 3.25rem; padding: .75rem .9rem; max-width: 22rem;
  font-size: .875rem; line-height: 1.45; color: #0b3d1f; background: #DCF8C6;
  border-radius: 14px 14px 14px 4px;
  opacity: 0; transform: translateY(8px) scale(.97); transform-origin: left bottom;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.flow__bubble svg { flex: none; margin-top: 2px; color: var(--wa); }
.flow.is-sent .flow__bubble { opacity: 1; transform: none; }
[data-theme="dark"] .flow__bubble { background: #144D37; color: #E3FBE9; }
[data-theme="dark"] .flow__bubble svg { color: #7EE2A1; }

/* Formes du symbole : le triangle suit le thème (nuit sur clair, brume sur sombre) */
:root { --tri: var(--nuit-0); }
:root[data-theme="dark"], .section--night { --tri: var(--brume); }

/* ---------- Outils ---------- */
.tools { border-block: 1px solid var(--line); padding-block: 1.75rem; }
.tools__inner { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.tools__title { font-family: var(--f-body); font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.tools__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tools__list li { padding: .45rem .9rem; font-weight: 600; font-size: .875rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service {
  display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow);
}
.service__diagram { margin: -.25rem 0 1.5rem; padding: 1rem; border-radius: var(--r-m); background: var(--bg-soft); }
.service__diagram svg { width: 100%; height: auto; max-height: 120px; }
.d-in { fill: color-mix(in srgb, var(--bleu) 14%, transparent); }
[data-theme="dark"] .d-in { fill: rgb(185 219 250 / .16); }
.d-line { stroke: var(--field-line); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.6s linear infinite; }
.d-line--out { stroke: var(--accent); }
.d-hub { fill: url(#g-circle); }
.d-tri { fill: var(--accent); }
.d-frame { stroke: var(--field-line); stroke-width: 2; fill: var(--card); }
.d-bar { stroke: var(--field-line); stroke-width: 2; }
.d-accent { fill: url(#g-ribbon); }
@keyframes dash { to { stroke-dashoffset: -22; } }
.service h3 { font-size: 1.5rem; }
.service > p { margin-top: .75rem; color: var(--ink-2); }
.checks { display: grid; gap: .55rem; margin-top: 1.25rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.service__foot { margin-top: auto; padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 1.75rem; }
.price { color: var(--ink-2); font-size: .9375rem; }
.price strong { color: var(--ink); font-family: var(--f-title); }

/* ---------- Avant / après ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.case { padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.case__cols { display: grid; gap: 1rem; margin-top: 1.25rem; }
.case__tag { display: inline-block; margin-bottom: .5rem; padding: .15rem .6rem; font-size: .8125rem; font-weight: 600; border-radius: 999px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); }
.case__tag--after { color: #fff; background: var(--accent); border-color: transparent; }
[data-theme="dark"] .case__tag--after { color: var(--nuit-0); }
.case ol { display: grid; gap: .4rem; counter-reset: s; font-size: .9375rem; }
.case ol li { counter-increment: s; display: flex; gap: .6rem; }
.case ol li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; font-size: .75rem; font-weight: 700; border-radius: 50%; border: 1.5px solid var(--field-line); color: var(--ink-2); }
.case__before ol li { color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-2) 45%, transparent); }
.case__after { padding: 1rem; margin-inline: -.25rem; border-radius: var(--r-m); background: color-mix(in srgb, var(--ciel) 12%, transparent); }
.case__after ol li::before { border: 0; background: var(--ruban); color: var(--nuit-0); }
.case__after ol li { font-weight: 500; }

/* ---------- Calculateur ---------- */
.calc { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.calc__intro p:not(.label) { margin-top: 1rem; font-size: var(--fs-lead); color: var(--ink-2); }
.calc__form { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 1.25rem; }
.calc__form label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: .5rem; }
.calc__form output { font-family: var(--f-title); font-size: 1.25rem; color: var(--accent-ink); }
input[type="range"] { width: 100%; height: 44px; margin: 0; background: none; accent-color: var(--accent); cursor: pointer; }
.calc__result {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-radius: var(--r-m); color: #fff;
  background: linear-gradient(131deg, #2E8FDA 0%, var(--indigo) 100%);
}
.calc__result p { font-size: 1.0625rem; }
.calc__result strong { display: inline-block; font-family: var(--f-title); font-size: 2rem; line-height: 1; margin-inline: .15rem; }
.calc__hint { font-size: .8125rem; color: var(--ink-2); }

/* ---------- Références ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.anchor-alias { position: absolute; top: 0; }
#references { overflow: hidden; }
.refs-live { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem; font-size: .9375rem; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; background: var(--card); white-space: nowrap; }

.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; }
.status .dot { background: #22C36B; box-shadow: 0 0 0 4px rgb(34 195 107 / .22); }
.ref-cat { font-family: var(--f-title); font-size: .875rem; font-weight: 600; color: var(--accent-ink); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .3rem .7rem; font-size: .8125rem; font-weight: 500; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); }
.ext { flex: none; transition: transform .25s var(--ease); }

/* Cadre navigateur et téléphone */
.bframe { position: relative; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px -24px rgb(8 30 60 / .45); }
.bframe::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: var(--ruban); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.bframe__bar { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; background: #EEF3FA; border-bottom: 1px solid #DCE5F1; }
.bframe__bar i { width: 8px; height: 8px; border-radius: 50%; background: #C6D3E5; }
.bframe__url { display: inline-flex; align-items: center; gap: .35rem; margin-left: .75rem; padding: .15rem .7rem; font-size: .75rem; font-weight: 500; color: #3D5687; background: #fff; border-radius: 999px; }
.bframe img { width: 100%; height: auto; transition: transform .6s var(--ease), filter .4s; }
.phone { position: absolute; padding: 7px; border-radius: 32px; background: var(--nuit-1); box-shadow: 0 30px 50px -18px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(185 219 250 / .25); }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 44px; height: 6px; margin-left: -22px; border-radius: 6px; background: var(--nuit-0); z-index: 1; }
.phone img { width: 100%; height: auto; border-radius: 25px; }
[data-theme="dark"] .bframe img, [data-theme="dark"] .phone img { filter: brightness(.9); }

/* Vitrine principale */
.showcase {
  position: relative; display: grid; grid-template-columns: 400px 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: var(--r-l); overflow: hidden; color: #EAF2FC;
  background: radial-gradient(60% 80% at 78% 30%, rgb(105 185 245 / .22), transparent), var(--nuit-0);
}
.showcase::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(ellipse 120% 80% at 95% 10%, transparent 0 22px, rgb(105 185 245 / .07) 22px 23px); }
[data-theme="dark"] .showcase { background: radial-gradient(60% 80% at 78% 30%, rgb(105 185 245 / .2), transparent), #051530; box-shadow: inset 0 0 0 1px rgb(105 185 245 / .25); }
.showcase__text { position: relative; z-index: 2; display: grid; gap: 1rem; justify-items: start; }
.showcase .ref-cat { color: var(--ciel); }
.showcase h3 { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }
.showcase h3 span { display: block; margin-top: .35rem; font-family: var(--f-body); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; color: var(--glace); }
.showcase__text > p:not(.ref-cat):not(.status) { color: #C8D8EE; }
.showcase .tags li { color: #EAF2FC; background: rgb(185 219 250 / .08); border-color: rgb(185 219 250 / .2); }
.showcase .btn { margin-top: .5rem; }
.showcase .btn:hover .ext { transform: translate(2px, -2px); }
.showcase :focus-visible { outline-color: var(--ciel); }
.showcase__visual { position: relative; min-height: 470px; }
.showcase__ribbon { position: absolute; width: 560px; right: -60px; top: -90px; opacity: .16; transform: rotate(-8deg); transition: transform .6s var(--ease); pointer-events: none; }
.showcase .bframe { position: absolute; left: 0; top: 30px; width: calc(100% + 76px); transition: transform .6s var(--ease); }
.showcase .phone { right: -24px; top: 112px; width: 196px; z-index: 2; transition: transform .6s var(--ease); }

/* Cartes secondaires */
.ref-cards { display: grid; grid-template-columns: 7fr 5fr; gap: 1.5rem; margin-top: 1.5rem; }
.ref-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); transition: transform .3s var(--ease), box-shadow .3s; }
.ref-card::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none; background: var(--ruban); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.ref-card__media { position: relative; height: 340px; overflow: hidden; padding: 36px 7% 0; background: linear-gradient(131deg, color-mix(in srgb, var(--glace) 45%, #fff), #fff); }
[data-theme="dark"] .ref-card__media { background: linear-gradient(131deg, rgb(105 185 245 / .14), rgb(54 50 245 / .10)); }
.ref-card__media .bframe { width: 100%; }
.ref-card .phone--sm { right: 5%; bottom: -40px; width: 120px; padding: 5px; border-radius: 22px; }
.ref-card .phone--sm::before { top: 9px; width: 30px; height: 4px; margin-left: -15px; }
.ref-card .phone--sm img { border-radius: 17px; }
.ref-card__body { display: grid; gap: .75rem; justify-items: start; padding: 1.75rem; }
.ref-card__body .ref-cat { margin-bottom: -.25rem; }
.ref-card__body h3 { font-size: 1.5rem; }
.ref-card__body > p:not(.ref-cat):not(.status) { color: var(--ink-2); }
.status--inline { color: var(--ink-2); font-weight: 500; }
.ref-card__link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.ref-card__link::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: var(--r-l); }
.ref-card__link:focus-visible { outline: none; }
.ref-card:has(.ref-card__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Autres projets */
.ref-more { margin-top: 3rem; }
.ref-more > h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.ref-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ref-tile { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.ref-tile__media { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.ref-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.ref-tile__media--capture img { object-position: top; }
.ref-tile__badge { position: absolute; left: .875rem; bottom: .875rem; padding: .25rem .625rem; border: 1px solid rgb(255 255 255 / .24); border-radius: 999px; color: #fff; background: #0E2558; font-size: .6875rem; font-weight: 600; line-height: 1.5; }
.ref-tile__body { display: flex; flex-direction: column; align-items: start; gap: .5rem; flex: 1; padding: 1.5rem; }
.ref-tile h4 { margin: 0; font-family: var(--f-title); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.ref-tile__body > p:not(.ref-cat) { color: var(--ink-2); font-size: .875rem; }
.ref-tile__link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; margin-top: auto; font-size: .875rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.ref-tile__link:hover { text-decoration: underline; text-underline-offset: .2em; }
.ref-more__note { margin-top: 1rem; color: var(--ink-2); font-size: .8125rem; }

.ref-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.ref-cta p { font-family: var(--f-title); font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.ref-cta > div { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

/* Apparition unique */
.js [data-reveal] .bframe, .js [data-reveal] .phone { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease), translate .8s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in .bframe, .js [data-reveal].is-in .phone { opacity: 1; translate: 0 0; }
.js [data-reveal].is-in .phone { transition-delay: .12s; }

/* Survol (pointeur fin seulement) */
@media (hover: hover) {
  .showcase:hover .bframe, .showcase:focus-within .bframe { transform: translateY(-6px); }
  .showcase:hover .phone, .showcase:focus-within .phone { transform: translateY(-14px) rotate(-1.5deg); }
  .showcase:hover .showcase__ribbon { transform: rotate(-8deg) translateX(10px); }
  .ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .ref-card:hover::before { opacity: 1; }
  .ref-card:hover .bframe img { transform: scale(1.03); }
  .ref-card:hover .ref-card__link .ext { transform: translate(2px, -2px); }
  [data-theme="dark"] .ref-card:hover .bframe img, [data-theme="dark"] .showcase:hover .bframe img { filter: none; }
}

@media (max-width: 1080px) {
  .showcase { grid-template-columns: 1fr; padding: 40px; }
  .showcase__visual { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .showcase .bframe { width: calc(100% + 40px); top: 0; }
  .showcase .phone { right: 4%; top: 18%; width: 22%; max-width: 180px; }
  .ref-cards { grid-template-columns: 1fr; }
  .ref-more__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .refs-live { white-space: normal; }
  .showcase { padding: 20px; gap: 24px; }
  .showcase__visual { aspect-ratio: auto; height: 300px; }
  .showcase .bframe { width: calc(100% + 20px); }
  .showcase .phone { right: 8px; top: 56px; width: 112px; padding: 5px; border-radius: 22px; }
  .showcase .phone::before { top: 9px; width: 30px; height: 4px; margin-left: -15px; }
  .showcase .phone img { border-radius: 17px; }
  .showcase__ribbon { width: 360px; right: -80px; top: -60px; }
  .showcase .btn { width: 100%; }
  .ref-card__media { height: 220px; padding-top: 24px; }
  .ref-card .phone--sm { width: 84px; bottom: -30px; }
  .ref-more__grid { grid-template-columns: 1fr; gap: .75rem; }
  .ref-cta > div, .ref-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .bframe, .js [data-reveal] .phone { opacity: 1; translate: 0 0; }
}

/* ---------- Méthode (sombre, le logo s'assemble) ---------- */
.section--night { background: var(--nuit-0); color: #EAF2FC; overflow: hidden; }
[data-theme="dark"] .section--night { background: #051530; }
.contours--night { background: repeating-radial-gradient(ellipse 120% 80% at 90% 20%, transparent 0 22px, rgb(105 185 245 / .08) 22px 23px); mask-image: none; }
.method { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.method__steps { display: grid; gap: .75rem; margin-top: 2.5rem; }
.method__steps li {
  padding: 1.25rem 1.5rem; border-radius: var(--r-m);
  border: 1px solid rgb(185 219 250 / .16); background: rgb(14 37 88 / .45);
  transition: border-color .5s, background-color .5s;
}
.method__steps li.is-on { border-color: rgb(105 185 245 / .55); background: rgb(14 37 88 / .9); }
.method__week { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--ciel); margin-bottom: .35rem; }
.method__steps p { margin-top: .4rem; color: #B9CDE8; }
.method__mark { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; display: grid; place-items: center; justify-self: center; margin-inline: auto; transform: translateY(var(--method-mark-offset, 0)); }
.method__mark::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgb(105 185 245 / .28), transparent 65%); }
.method__logo { position: relative; width: 78%; overflow: visible; }
.method__logo .piece { transition: transform 1s var(--ease), opacity .8s var(--ease); }
.js .method__logo .piece { opacity: 0; }
.js .method__logo .piece--circle { transform: translate(-60px, 80px); }
.js .method__logo .piece--ribbon { transform: translate(40px, 60px) rotate(-6deg); transform-origin: 520px 230px; }
.js .method__logo .piece--triangle { transform: translate(80px, -60px); }
.method__logo .piece.is-in { opacity: 1; transform: none; }

/* Logo 3D (Three.js, rotation lente) : le canvas remplace le symbole plat une fois la scène montée */
.logo3d { position: absolute; inset: 0; }
.logo3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.method__mark.is-3d .logo3d canvas { opacity: 1; }
.method__mark.is-3d .method__logo { opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.member__photo {
  aspect-ratio: 4 / 5; border-radius: var(--r-l); display: grid; place-items: center; margin-bottom: 1.25rem;
  /* Rendu du traitement duotone nuit / glace prévu pour les vrais portraits */
  background: linear-gradient(160deg, var(--glace), var(--bleu) 75%, var(--nuit-1));
  color: rgb(255 255 255 / .7); font-weight: 600; overflow: hidden;
}
.member__photo span { padding: .3rem .8rem; border: 1px dashed rgb(255 255 255 / .6); border-radius: 999px; font-size: .8125rem; }
.member p { margin-top: .25rem; color: var(--ink-2); }

/* ---------- Tarifs ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); position: relative; }
.plan .checks { margin-bottom: 1.75rem; }
.plan .btn { margin-top: auto; }
.plan__price { margin-top: 1rem; font-family: var(--f-title); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.plan__price span { display: block; font-family: var(--f-body); font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.plan__eur { color: var(--ink-2); font-size: .9375rem; }
.plan--featured { border: 0; box-shadow: var(--shadow); }
.plan--featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--ruban); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.prices__pay { margin-top: 1.5rem; color: var(--ink-2); font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__intro p:not(.label) { margin-top: 1rem; color: var(--ink-2); }
.faq__list { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); transition: border-color .2s; }
.faq details[open] { border-color: var(--field-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 1rem 1.25rem; cursor: pointer; list-style: none;
  font-family: var(--f-title); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233632F5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__intro > p:not(.label) { margin-top: 1rem; font-size: var(--fs-lead); color: var(--ink-2); }
.channels { display: grid; gap: .75rem; margin-top: 2rem; }
.channel {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; min-height: 64px;
  text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.channel:hover { transform: translateY(-2px); border-color: var(--field-line); box-shadow: var(--shadow); }
.channel strong { display: block; font-weight: 600; }
.channel small { color: var(--ink-2); font-size: .875rem; }
.channel__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.channel__icon--wa { color: #fff; background: var(--wa); }
.channel__icon--cal { color: #fff; background: var(--indigo); }

.form { position: relative; display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__trap { position: absolute; left: -9999px; }
.field { display: grid; gap: .4rem; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .9375rem; padding: 0; }
.field legend { margin-bottom: .5rem; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .875rem; }
.field input:not([type="radio"]), .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  background: var(--bg); border: 1.5px solid var(--field-line); border-radius: var(--r-s);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 75%, transparent); }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #C0362C !important; }
[data-theme="dark"] .field [aria-invalid="true"] { border-color: #FF8E86 !important; }
.field__error { min-height: 0; font-size: .875rem; font-weight: 500; color: #B42318; }
[data-theme="dark"] .field__error { color: #FF8E86; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; font-weight: 500; border: 1.5px solid var(--field-line); border-radius: 999px; transition: background-color .2s, color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--accent); }
.chips input:checked + span { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgb(255 255 255 / .35); border-top-color: currentColor; animation: spin .8s linear infinite; }
.is-sending .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { font-size: .875rem; color: var(--ink-2); }
.form__note .link { min-height: 0; display: inline; }
.form__status:empty { display: none; }
.form__status { font-weight: 500; }
.form__status.is-error { color: #B42318; }
[data-theme="dark"] .form__status.is-error { color: #FF8E86; }

.form__success {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem); border-radius: inherit; background: var(--card);
  animation: enter .6s var(--ease);
}
.form__success[hidden] { display: none; }
.form__success p { color: var(--ink-2); max-width: 30rem; }
.form__success-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: linear-gradient(131deg, var(--ciel), var(--indigo)); }

/* ---------- CTA final ---------- */
.closing { position: relative; padding-block: clamp(4rem, 8vw, 6rem); color: #fff; background: linear-gradient(131deg, #2E8FDA 0%, var(--indigo) 70%, #2A27C9 100%); overflow: hidden; }
.closing::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse 120% 90% at 100% 0%, transparent 0 26px, rgb(255 255 255 / .07) 26px 27px); pointer-events: none; }
.closing__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.closing h2 { max-width: 34rem; }
.closing__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.closing :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.footer { padding-top: 4rem; color: #C8D8EE; background: #061732; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand img { height: 44px; width: auto; }
.footer__brand p { margin-top: 1rem; max-width: 22rem; }
.footer h2 { font-family: var(--f-body); font-size: .875rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: .75rem; }
.footer__col ul { display: grid; }
.footer a { color: #C8D8EE; text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 40px; }
.footer address { line-height: 1.9; }
.footer :focus-visible { outline-color: var(--ciel); }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(200 216 238 / .25); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.social a:hover { color: var(--nuit-0); background: var(--ciel); transform: translateY(-2px); text-decoration: none; }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem 5.5rem; border-top: 1px solid rgb(200 216 238 / .14); font-size: .875rem; }
.footer__legal ul { display: flex; gap: 1.5rem; }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  color: #fff; background: var(--wa); box-shadow: 0 10px 28px -8px rgb(8 30 60 / .55);
  transition: transform .25s var(--ease), opacity .3s, box-shadow .25s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px -8px rgb(8 30 60 / .6); }
.wa-float:active { transform: scale(.96); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header__cta { display: none; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; z-index: 45; top: var(--header-h); right: 0; bottom: 0; width: min(100%, 24rem);
    display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem var(--gutter) 2rem;
    background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto;
    /* clip-path plutôt que translateX : le panneau fermé ne crée pas de défilement horizontal */
    clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .35s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { width: 100%; min-height: 52px; font-family: var(--f-title); font-size: 1.25rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; }
  .nav__list a::after { left: 0; right: auto; width: 32px; bottom: 10px; }
  .nav__mobile-actions { display: grid; gap: .75rem; }
  .nav__mobile-actions .btn { width: 100%; min-height: 52px; }
  .hero__grid, .calc, .method, .faq, .contact { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .method__mark { max-width: 340px; width: 100%; margin-inline: auto; order: -1; }
  .cases, .prices { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 4rem; }
  .header__logo img { height: 34px; }
  .services, .cases, .prices, .team, .form__row { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .team .member:last-child { grid-column: 1 / -1; max-width: 50%; }
  .hero__actions .btn { width: 100%; }
  .flow__bubble { margin-left: 0; }
  .closing__actions, .closing__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float { right: .9rem; bottom: .9rem; width: 56px; height: 56px; }
}
@media (max-width: 520px) {
  .team { grid-template-columns: 1fr; gap: 1rem; }
  .team .member, .team .member:last-child { max-width: none; display: grid; grid-template-columns: 96px 1fr; column-gap: 1rem; align-items: center; }
  .member__photo { grid-row: span 3; aspect-ratio: 1; margin: 0; border-radius: var(--r-m); }
  .member__photo span { font-size: .75rem; padding: .2rem .5rem; }
  .member .link { min-height: 36px; }
}

/* ---------- Mouvement réduit : tout est visible, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-enter] { opacity: 1; transform: none; }
  .js .method__logo .piece { opacity: 1; transform: none; }
}
