/* ==========================================================================
   DeaX — système de design 2026
   Display : Anybody (axe de largeur variable) · Texte : Instrument Sans
   ========================================================================== */

:root {
  /* Couleurs */
  --screen: #eef0f3;        /* fond principal : gris froid "écran éteint" */
  --screen-2: #e3e6eb;      /* surfaces secondaires */
  --paper: #fbfbfc;         /* cartes, champs */
  --ink: #121722;           /* texte, sections sombres (héritier du #0a0e1a DeaX) */
  --ink-2: #4a5263;         /* texte secondaire */
  --ink-3: #7a8294;         /* texte tertiaire */
  --night: #0f131b;         /* sections nuit */
  --night-2: #1a202c;
  --night-line: rgba(255, 255, 255, .1);
  --line: rgba(18, 23, 34, .12);
  --line-strong: rgba(18, 23, 34, .22);
  --orange: #ff7a1a;        /* orange DeaX */
  --orange-deep: #c24f00;   /* orange lisible sur fond clair */
  --orange-soft: rgba(255, 122, 26, .14);
  --ok: #1f9d63;

  /* Typo */
  --f-display: "Anybody", "Instrument Sans", system-ui, sans-serif;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-mega: clamp(3.1rem, 9.2vw, 10rem);
  --fs-xxl: clamp(2.6rem, 6.6vw, 7rem);
  --fs-xl: clamp(2.1rem, 4.4vw, 4.4rem);
  --fs-l: clamp(1.6rem, 2.6vw, 2.6rem);
  --fs-m: clamp(1.25rem, 1.6vw, 1.6rem);
  --fs-s: 1.0625rem;
  --fs-xs: .875rem;

  /* Mise en page */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --section: clamp(88px, 12vw, 176px);
  /* Espacements (échelle unique) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-s: 12px;
  --space-m: 20px;
  --space-l: 32px;
  --space-xl: 56px;
  --space-2xl: 96px;

  /* Rayons : 4 valeurs + pilule */
  --r-xs: 10px;   /* petits éléments : cases, puces, mini-UI */
  --r-s: 14px;    /* champs, boutons carrés, vignettes */
  --r-m: 22px;    /* cartes, panneaux, menus */
  --r-l: 30px;    /* grandes surfaces, sections encadrées */
  --r-pill: 999px;

  /* Mouvement : 3 durées, 2 courbes */
  --dur-fast: .25s;
  --dur: .5s;
  --dur-slow: 1s;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Liquid glass : 3 niveaux (soft / medium / strong) + variante sombre */
  --glass-soft: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .3));
  --glass-medium: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .6));
  --glass-strong: linear-gradient(180deg, rgba(251, 251, 252, .94), rgba(246, 247, 249, .88));
  --glass-bg: var(--glass-medium);
  --glass-border: rgba(255, 255, 255, .7);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(18, 23, 34, .05), 0 1px 2px rgba(18, 23, 34, .06), 0 18px 40px -18px rgba(18, 23, 34, .35);
  --glass-blur: blur(22px) saturate(180%);
  --glass-dark-bg: linear-gradient(180deg, rgba(34, 41, 56, .72), rgba(18, 23, 34, .6));
  --glass-dark-border: rgba(255, 255, 255, .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--screen);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-s);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
picture { display: contents; } /* l’image garde le comportement d’un enfant direct */
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: var(--r-xs); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-xs); transition: top var(--dur-fast); }
.skip-link:focus { top: 16px; }

/* ---------- Typographie ---------- */
.display, .h-mega, .h-xxl, .h-xl, .h-l, .h-m {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .92;
  font-variation-settings: "wdth" 88;
  text-wrap: balance;
}
.h-mega { font-size: var(--fs-mega); line-height: .86; letter-spacing: -.045em; }
.h-xxl { font-size: var(--fs-xxl); }
.h-xl { font-size: var(--fs-xl); line-height: .96; }
.h-l { font-size: var(--fs-l); line-height: 1.02; letter-spacing: -.028em; }
.h-m { font-size: var(--fs-m); line-height: 1.12; letter-spacing: -.02em; font-variation-settings: "wdth" 94; }
.lead { font-size: clamp(1.125rem, 1.35vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-xs); line-height: 1.5; }
.tag {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .8125rem; font-weight: 600; line-height: 1;
  padding: .5em .8em; border-radius: var(--r-pill);
  background: rgba(18, 23, 34, .06); color: var(--ink-2);
}
.tag--live { background: rgba(31, 157, 99, .12); color: #11754a; }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(31, 157, 99, .18); }
.tag--demo { background: var(--orange-soft); color: var(--orange-deep); }
.tag--concept { background: rgba(18, 23, 34, .07); color: var(--ink-2); }
.on-night .tag { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .72); }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--f-display); font-variation-settings: "wdth" 92; font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; letter-spacing: -.02em; margin-top: 2.2em; }
.prose h3 { font-weight: 650; font-size: 1.15rem; margin-top: 1.6em; }
.prose h4 { font-weight: 650; font-size: 1.02rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose strong { font-weight: 650; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .last-update { color: var(--ink-3); font-size: var(--fs-xs); }
.prose .toc { display: grid; gap: .3em; padding: 1.2em 1.4em; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); }
.prose .toc a { text-decoration: none; color: var(--ink-2); }
.prose .toc a:hover { color: var(--orange-deep); }

/* ---------- Mise en page ---------- */
.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section + .section:not(.on-night):not(.band) { padding-top: calc(var(--section) * .55); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.on-night { background: var(--night); color: #f1f3f6; }
.on-night .lead, .on-night .muted { color: rgba(241, 243, 246, .68); }
.on-night ::selection { color: var(--ink); }
.band { background: var(--screen-2); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(48px, 7vw, 96px); max-width: 60rem; }
.section-head--split { max-width: none; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.section-head--split > :first-child { grid-column: 1 / span 7; }
.section-head--split > :last-child { grid-column: 9 / -1; }
@media (max-width: 900px) {
  .section-head--split > :first-child, .section-head--split > :last-child { grid-column: 1 / -1; }
}

/* ---------- Boutons & liens ---------- */
.btn {
  --btn-bg: var(--orange); --btn-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5em;
  border-radius: var(--r-pill); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 1rem; line-height: 1; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: transform var(--dur) var(--ease), translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur-fast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -12px rgba(194, 79, 0, .8);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .45), transparent 55%); opacity: .7; }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 30px -12px rgba(194, 79, 0, .9); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -14px rgba(18, 23, 34, .9); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost::after { display: none; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-night .btn--ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.on-night .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: .9375rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 650;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 3px; transition: background-size var(--dur) var(--ease), color var(--dur-fast);
}
.link { justify-self: start; }
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; color: var(--orange-deep); }
.on-night .link:hover { color: var(--orange); }
.link svg { width: 16px; height: 16px; }

/* ---------- Liquid glass ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
}
.glass::before {
  /* reflet spéculaire discret */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90% 60% at 18% -10%, rgba(255, 255, 255, .75), transparent 60%),
              linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
  mix-blend-mode: soft-light; opacity: .9;
}
.glass--soft { --glass-bg: var(--glass-soft); }
.glass--strong { --glass-bg: var(--glass-strong); }
.glass--dark {
  background: var(--glass-dark-bg);
  border-color: var(--glass-dark-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 60px -24px rgba(0, 0, 0, .7);
  color: #f1f3f6;
}
.glass--dark::before { background: radial-gradient(80% 60% at 20% -10%, rgba(255, 255, 255, .16), transparent 60%); mix-blend-mode: normal; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(251, 251, 252, .97); }
  .glass--dark { background: rgba(26, 32, 44, .98); }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; font-variation-settings: "wdth" 92; line-height: 1; }
.logo__mark { width: 26px; height: 28px; flex: none; }
.logo__mark path { fill: currentColor; }
.logo b { font-weight: inherit; color: var(--orange-deep); }
.on-night .logo b, .site-footer .logo b { color: var(--orange); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header { position: fixed; inset: 14px 0 auto; z-index: 90; pointer-events: none; transition: transform var(--dur) var(--ease); }
.site-header .shell { display: flex; justify-content: center; }
.nav {
  pointer-events: auto;
  width: min(1180px, 100%);
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 10px 0 20px;
  border-radius: var(--r-m);
  isolation: isolate;
  transition: height var(--dur) var(--ease), width var(--dur) var(--ease), box-shadow var(--dur);
}
/* Trois états du verre : haut de page (très transparent) → défilement (un peu plus dense) → survol (plus lisible).
   Un voile interne dont seule l'opacité change : transition fluide, jamais opaque.
   Le flou est porté par .nav__bg et non par .nav : un backdrop-filter sur .nav empêcherait
   les sous-menus (ses descendants) de flouter la page derrière eux. */
.nav.glass { --glass-bg: var(--glass-soft); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__bg {
  position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: -webkit-backdrop-filter 300ms var(--ease), backdrop-filter 300ms var(--ease);
}
/* Reflet sans mix-blend-mode sur le bandeau : un mode de fusion sur .nav bloquerait aussi le flou des sous-menus */
.nav.glass::before { mix-blend-mode: normal; opacity: .32; }
@media (max-width: 760px) { .nav__bg { -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); } }
.nav.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: rgba(247, 248, 250, .82); opacity: 0; transition: opacity 300ms var(--ease);
}
.is-scrolled .nav { height: 56px; width: min(1080px, 100%); }
.is-scrolled .nav.glass::after { opacity: .45; }
/* Survol, focus clavier ou sous-menu ouvert : bandeau et sous-menus passent ensemble à l'état « lisible » */
@media (hover: hover) and (min-width: 761px) {
  .nav.glass:is(:hover, :focus-within, :has(.is-open)) .nav__bg { -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }
  .nav.glass:is(:hover, :has(.is-open)) { box-shadow: var(--glass-shadow), 0 24px 50px -28px rgba(18, 23, 34, .45); }
}
.nav.glass:hover::after, .nav.glass:focus-within::after, .nav.glass:has(.is-open)::after, .menu-open .nav.glass::after { opacity: 1; }
.logo--mark .logo__mark { width: 30px; height: 32px; }
.logo--mark { padding: 4px; border-radius: 8px; }
.site-header.is-hidden { transform: translateY(-120%); }
.nav__logo { margin-right: auto; padding: 8px 4px; }
.nav__menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: var(--r-s);
  font-weight: 560; font-size: .96875rem; color: var(--ink);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: rgba(18, 23, 34, .06); }
.nav__link[aria-current="page"] { color: var(--orange-deep); }
.nav__link .chev { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__meeting { margin-left: 6px; padding: 0 12px; height: 40px; display: inline-flex; align-items: center; border-radius: var(--r-s); font-weight: 600; font-size: .94rem; white-space: nowrap; transition: background var(--dur-fast); }
.nav__meeting:hover { background: rgba(18, 23, 34, .06); }
.nav__meeting[aria-current="page"] { color: var(--orange-deep); }
.nav__cta { margin-left: 4px; }
@media (max-width: 1180px) { .nav__meeting { display: none; } }
.nav__burger { display: none; }

/* Méga menu / menus déroulants */
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  min-width: 280px; padding: 10px; border-radius: var(--r-m);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.98); transform-origin: top center;
  color: var(--ink);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur-fast),
              background-color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease),
              -webkit-backdrop-filter 300ms var(--ease), backdrop-filter 300ms var(--ease);
}
/* Même verre que le bandeau : dégradé léger + voile dont seule la densité change */
.dropdown.glass { --glass-bg: var(--glass-soft); background-color: rgba(247, 248, 250, .6); }
.nav.glass:is(:hover, :focus-within) .dropdown.glass, .nav__item.is-open .dropdown.glass {
  background-color: rgba(247, 248, 250, .84); border-color: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--glass-shadow), 0 30px 60px -30px rgba(18, 23, 34, .5);
}
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* pont de survol */
.dropdown__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dropdown__link { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-s); transition: background var(--dur-fast); }
.dropdown__link:hover, .dropdown__link:focus-visible { background: rgba(18, 23, 34, .055); }
.dropdown__link strong { font-weight: 620; font-size: .98rem; }
.dropdown__link span { font-size: .85rem; color: var(--ink-2); line-height: 1.4; }

.mega { width: min(820px, calc(100vw - 48px)); display: grid; grid-template-columns: 1.45fr 1fr; gap: 10px; padding: 10px; }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; margin: 0; padding: 0; align-content: start; }
.mega__list .dropdown__link { min-height: 84px; align-content: start; }
.mega__aside { border-radius: var(--r-s); overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; min-height: 260px; }
.mega__aside figure { position: relative; flex: 1; min-height: 150px; overflow: hidden; }
.mega__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity var(--dur), transform var(--dur-slow) var(--ease); }
.mega__aside img:not(.is-active) { opacity: 0; transform: scale(1.04); }
.mega__aside figcaption { padding: 16px 18px 18px; display: grid; gap: 10px; }
.mega__aside p { font-size: .9rem; color: rgba(255, 255, 255, .72); line-height: 1.45; }

/* Menu mobile */
@media (max-width: 1060px) {
  .nav { height: 58px; padding: 0 8px 0 16px; }
  .nav__menu, .nav__cta, .nav__meeting { display: none; }
  .nav__burger {
    display: inline-flex; align-items: center; gap: 10px;
    height: 42px; padding: 0 8px 0 14px; border-radius: var(--r-s);
    font-weight: 600; font-size: .95rem;
  }
  .nav__burger .bars { position: relative; width: 26px; height: 26px; border-radius: var(--r-xs); background: var(--ink); }
  .nav__burger .bars i { position: absolute; left: 7px; right: 7px; top: 50%; height: 1.5px; margin-top: -.75px; background: #fff; border-radius: 2px; transition: transform var(--dur) var(--ease); }
  .nav__burger .bars i:first-child { transform: translateY(-2.5px); }
  .nav__burger .bars i:last-child { transform: translateY(2.5px); }
  .menu-open .nav__burger .bars i:first-child { transform: rotate(45deg); }
  .menu-open .nav__burger .bars i:last-child { transform: rotate(-45deg); }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  padding: 86px var(--gutter) max(18px, env(safe-area-inset-bottom));
  visibility: hidden; pointer-events: none;
}
/* Panneau qui se déplie depuis le haut ; flou léger pour rester fluide sur mobile */
.mobile-menu__backdrop {
  position: absolute; inset: 0;
  background: rgba(238, 240, 243, .96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  clip-path: inset(0 0 100% 0 round 0 0 32px 32px);
  transition: clip-path var(--dur) var(--ease-in-out);
}
.mobile-menu__inner { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.menu-open .mobile-menu { visibility: visible; pointer-events: auto; }
.menu-open .mobile-menu__backdrop { clip-path: inset(0 0 0 0 round 0); }
.mobile-menu nav { display: grid; }
.mobile-menu__group { border-bottom: 1px solid var(--line); }
.mobile-menu__top {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--space-s);
  min-height: 60px; padding: 10px 0;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.75rem, 8vw, 2.3rem); letter-spacing: -.03em; line-height: 1;
  font-variation-settings: "wdth" 86; text-align: left;
}
a.mobile-menu__top { border-bottom: 1px solid var(--line); }
.mobile-menu__top[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.mobile-menu__top .plus { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: transform var(--dur) var(--ease), background var(--dur-fast); }
.mobile-menu__top .plus svg { width: 14px; height: 14px; }
.mobile-menu__top[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.mobile-menu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.mobile-menu__sub > div { overflow: hidden; }
.mobile-menu__top[aria-expanded="true"] + .mobile-menu__sub { grid-template-rows: 1fr; }
.mobile-menu__main { list-style: none; margin: 0; padding: 0 0 6px; display: grid; }
.mobile-menu__main a { display: grid; gap: 2px; padding: 10px 0; min-height: 52px; }
.mobile-menu__main b { font-weight: 650; font-size: 1.1rem; }
.mobile-menu__main span { font-size: .88rem; color: var(--ink-2); }
.mobile-menu__more { list-style: none; margin: 0; padding: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-menu__more a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(18, 23, 34, .06); font-size: .9rem; font-weight: 560; }
.mobile-menu__foot { margin-top: auto; padding-top: var(--space-l); display: grid; gap: 10px; }
.mobile-menu__foot .btn { width: 100%; min-height: 54px; font-size: 1.02rem; }
.mobile-menu__foot .btn svg { width: 18px; height: 18px; }
.mobile-menu__contact { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; font-size: .9rem; color: var(--ink-2); flex-wrap: wrap; }
.mobile-menu [data-stagger] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.menu-open .mobile-menu [data-stagger] { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms + 120ms); }
.menu-open { overflow: hidden; }

/* CTA flottant (mobile) */
.float-cta {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 70;
  display: none; align-items: center; gap: 6px; padding: 6px; border-radius: var(--r-pill);
  transform: translate(-50%, 140%); transition: transform var(--dur) var(--ease);
}
.float-cta.is-visible { transform: translate(-50%, 0); }
.float-cta .btn { min-height: 46px; }
.float-cta__call { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.float-cta__call svg { width: 20px; height: 20px; }
@media (max-width: 1060px) { .float-cta { display: flex; } }
.menu-open .float-cta { transform: translate(-50%, 140%); }

/* Barre de progression de lecture */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 95; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--orange); pointer-events: none; }

/* ==========================================================================
   Animations (révélations, parallax) — désactivées si reduced-motion
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }

.shot *, .shot *::before, .shot *::after { transition: none !important; }

/* Lignes de titre en masque */
.lines { display: block; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; will-change: transform; }
.js .lines[data-reveal] { opacity: 1; transform: none; }
.js .lines[data-reveal] .line > span { transform: translateY(105%); transition: transform var(--dur-slow) var(--ease); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0) * 1ms); }
.js .lines[data-reveal].is-in .line > span { transform: none; }

/* Révélation d'image (clip-path) */
.js [data-clip] { clip-path: inset(12% 6% 12% 6% round var(--r-m)); transition: clip-path var(--dur-slow) var(--ease); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0 round var(--r-m)); }
.js [data-clip] img { transform: scale(1.12); transition: transform var(--dur-slow) var(--ease); }
.js [data-clip].is-in img { transform: scale(1); }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-clip], .js .lines[data-reveal] .line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-clip] img { transform: none !important; }
}

/* ==========================================================================
   Composants
   ========================================================================== */

/* Fenêtre de navigateur stylisée */
.browser {
  border-radius: var(--r-s); overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(18, 23, 34, .08), 0 2px 4px rgba(18, 23, 34, .06), 0 30px 60px -28px rgba(18, 23, 34, .55);
}
.browser__bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: #f6f7f9; border-bottom: 1px solid rgba(18, 23, 34, .07); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: #d7dbe2; }
.browser__url { flex: 1; max-width: 60%; margin-inline: auto; height: 20px; border-radius: var(--r-xs); background: rgba(18, 23, 34, .05); font-size: .72rem; color: var(--ink-3); display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--screen-2); }
.browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.on-night .browser { background: var(--night-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.on-night .browser__bar { background: #202736; border-color: rgba(255, 255, 255, .06); }
.on-night .browser__dots i { background: #3a4356; }
.on-night .browser__url { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .5); }

/* Liste de faits clés (prix, délais) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.fact { padding: 20px 20px 4px 0; display: grid; gap: 6px; align-content: start; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact dt { font-size: .875rem; color: var(--ink-2); order: 2; }
.fact dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.035em; line-height: 1; font-variation-settings: "wdth" 90; }
.on-night .facts, .on-night .fact + .fact { border-color: var(--night-line); }
.on-night .fact dt { color: rgba(255, 255, 255, .6); }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Liste à puces "check" */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c24f00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.on-night .checks li::before { background-color: rgba(255, 122, 26, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.checks--cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 32px; }

/* Accordéons (FAQ) */
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; text-align: left; font-weight: 620; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.35;
}
.acc__icon { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: transform var(--dur) var(--ease), background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.acc__icon svg { width: 14px; height: 14px; }
.acc__q[aria-expanded="true"] .acc__icon { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: var(--ink); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.acc__a > div { overflow: hidden; }
.acc__a .prose { padding: 0 60px 28px 0; color: var(--ink-2); }
.acc__q[aria-expanded="true"] + .acc__a { grid-template-rows: 1fr; }
.acc[hidden] { display: none; }
@media (max-width: 600px) { .acc__a .prose { padding-right: 0; } }

/* Formulaires */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > label, .field > .field__label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border-radius: var(--r-s); border: 1px solid var(--line); background: var(--paper);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5263' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.field ::placeholder { color: var(--ink-3); }
.field__hint { font-size: .82rem; color: var(--ink-3); }
.on-night .field input:not([type="checkbox"]), .on-night .field textarea, .on-night .field select { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #fff; }
.on-night .field ::placeholder { color: rgba(255, 255, 255, .42); }
.on-night .field > label { color: rgba(255, 255, 255, .7); }
.choice { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.form__feedback { font-size: .95rem; font-weight: 560; padding: 12px 16px; border-radius: var(--r-s); display: none; }
.form__feedback.is-ok { display: block; background: rgba(31, 157, 99, .12); color: #0e6a42; }
.form__feedback.is-error { display: block; background: rgba(214, 69, 50, .1); color: #a3321f; }
.on-night .form__feedback.is-ok { color: #6ee7b0; }
.on-night .form__feedback.is-error { color: #ffb4a6; }
.form-note { font-size: .82rem; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.form-note svg { width: 14px; height: 14px; flex: none; }

/* Modales */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease), visibility 0s var(--dur); }
.modal.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 19, 27, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__panel { position: relative; width: min(520px, 100%); border-radius: var(--r-l); padding: clamp(24px, 4vw, 36px); transform: translateY(16px) scale(.98); transition: transform var(--dur) var(--ease); }
.modal.is-open .modal__panel { transform: none; }
.modal__panel.glass { --glass-bg: var(--glass-strong); }
.modal--frame .modal__panel { width: min(1400px, 100%); height: min(92vh, 1000px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; }
.modal__head p { flex: 1; font-size: .9rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal__frame { flex: 1; width: 100%; border: 0; background: #fff; border-radius: 0 0 var(--r-l) var(--r-l); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--night); color: rgba(241, 243, 246, .78); position: relative; overflow: hidden; padding-top: clamp(72px, 10vw, 128px); }
.site-footer a { transition: color var(--dur-fast); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 40px 28px; }
.footer__cta { color: var(--orange); font-weight: 650; }
.footer__hours { color: rgba(241, 243, 246, .5); font-size: .88rem; }
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 22rem; }
.footer__brand .logo { color: #fff; }
.footer__brand p { font-size: .95rem; line-height: 1.55; }
.footer__title { font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 40px; height: 40px; border-radius: var(--r-s); display: grid; place-items: center; background: rgba(255, 255, 255, .06); transition: background var(--dur-fast), color var(--dur-fast); }
.footer__social a:hover { background: var(--orange); color: var(--ink); }
.footer__social svg { width: 18px; height: 18px; }
.footer__word {
  font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(6rem, 40vw, 40rem); line-height: .74; letter-spacing: -.06em;
  font-variation-settings: "wdth" 80;
  margin: clamp(56px, 8vw, 120px) 0 0 -.04em; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02) 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer__word span { -webkit-text-fill-color: rgba(255, 122, 26, .55); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid var(--night-line); font-size: .85rem; color: rgba(241, 243, 246, .55); }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__contact { grid-column: 1 / -1; } }
@media (max-width: 1060px) { .site-footer { padding-bottom: 76px; } }

/* ==========================================================================
   Pages : en-têtes de page
   ========================================================================== */
.page-hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; }
.page-hero__crumb { display: flex; gap: 8px; font-size: .9rem; color: var(--ink-2); margin-bottom: 28px; }
.page-hero__crumb a:hover { color: var(--orange-deep); }
.page-hero__crumb span[aria-hidden] { color: var(--ink-3); }
.page-hero .lead { margin-top: clamp(24px, 3vw, 40px); }
.page-hero .btn-row { margin-top: 36px; }
.page-hero .facts { grid-column: 1 / -1; }
.page-hero--split .shell { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.page-hero--split .page-hero__main { grid-column: 1 / span 8; }
.page-hero--split .page-hero__side { grid-column: 9 / -1; padding-bottom: 8px; }
@media (max-width: 900px) { .page-hero--split .page-hero__main, .page-hero--split .page-hero__side { grid-column: 1 / -1; } .page-hero--split .page-hero__side { margin-top: 32px; } }
.mobile-menu__inner:focus { outline: none; }
