/* =========================================================
   Habitek Conseil – Feuille de style principale
   Palette issue du logo : bleu marine / anthracite / taupe
   ========================================================= */

/* ---------- Polices hébergées sur le site (licence SIL Open Font License) ----------
   Inter : police variable (400 à 700) en un seul fichier par jeu de caractères ;
   le jeu « latin » couvre tout le français (é, œ, €, espaces fines…), « latin-ext » n'est chargé qu'au besoin. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Mrs Saint Delafield";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/mrs-saint-delafield-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: "Mrs Saint Delafield";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/mrs-saint-delafield-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy:       #0b2c5e;
  --navy-500:   #1a4480;
  --navy-900:   #061c3f;
  --ink:        #1b202b;
  --text:       #2f3033;
  --muted:      #676c75;
  --taupe:      #7a6e63;
  --taupe-300:  #b9ada0;
  --sand:       #f7f5f2;
  --white:      #ffffff;
  --line:       #e6e2dc;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap:    1920px;
  --gutter:  clamp(20px, 4vw, 80px);
  --radius:  3px;

  --header-h: 96px;
  --logo-h:   64px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io:  cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss03";
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Chiffres alignés (numéros de téléphone) */
.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Groupe de mots insécable (ex. « Parlons-en ») */
.nowrap { white-space: nowrap; }

/* Icônes au trait */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon { width: 14px; height: 14px; }

/* Accessibilité */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform .25s var(--ease-out);
}

.skip-link:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 4px;
}

main:focus { outline: none; }

/* =========================================================
   BOUTONS & LIENS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover { background: var(--navy-900); }

.btn--light {
  background: var(--white);
  color: var(--navy);
}

.btn--light:hover { background: var(--sand); }

.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--taupe);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow--light { color: var(--taupe-300); }

.link-more {
  display: inline-block;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid rgba(11, 44, 94, .25);
  transition: border-color .3s;
}

.link-more:hover { border-bottom-color: var(--navy); }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .78);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}

.topbar__contact {
  display: flex;
  align-items: center;
}

.topbar__contact li {
  display: flex;
  align-items: center;
}

.topbar__contact li + li::before {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 22px;
  background: rgba(255, 255, 255, .18);
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  transition: color .25s;
}

.topbar a:hover { color: var(--white); }
.topbar .icon { color: rgba(255, 255, 255, .45); }

.lang {
  display: flex;
  align-items: center;
}

.lang__link {
  padding: 2px 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .45);
}

.lang__link + .lang__link::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin: 0 12px;
  vertical-align: -1px;
  background: rgba(255, 255, 255, .25);
}

.lang__link.is-active { color: var(--white); }

/* =========================================================
   HEADER (pleine largeur)
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
}

.header.is-scrolled {
  --header-h: 76px;
  --logo-h: 50px;
}

.header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s;
}

.header.is-scrolled .header__bg { box-shadow: 0 8px 30px -18px rgba(6, 28, 63, .35); }
.header.is-mega-open .header__bg { box-shadow: none; }

.header__inner {
  display: flex;
  align-items: stretch;
  gap: clamp(24px, 3vw, 56px);
  min-height: var(--header-h);
  transition: min-height .4s var(--ease-out);
}

/* Trait de construction */
.header__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  height: 1px;
  background: var(--navy);
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Logo ---------- */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__layers {
  position: relative;
  display: block;
  height: var(--logo-h);
  aspect-ratio: 720 / 403;
  transition: height .4s var(--ease-out);
}

.brand__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand__layer--window { transform-origin: 51.2% 29.8%; }

/* Slogan du logo, en texte pour rester lisible */
.brand__tagline {
  display: block;
  margin-left: 22px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  white-space: nowrap;
}

.brand__tagline strong {
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 1499px) {
  .brand__tagline { display: none; }
}

/* ---------- Navigation ---------- */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 2vw, 40px);
}

.nav__item { display: flex; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transition: color .3s;
}

.nav__label { position: relative; }

/* Soulignement fin : entre par la gauche, sort par la droite */
.nav__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .4s var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active,
.nav__item--mega.is-open .nav__toggle { color: var(--navy); }

.nav__link:hover .nav__label::after,
.nav__link.is-active .nav__label::after,
.nav__item--mega.is-open .nav__label::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* Menu des offres ouvert : lui seul est mis en avant */
.header.is-mega-open .nav__link.is-active { color: var(--ink); }
.header.is-mega-open .nav__link.is-active .nav__label::after {
  transform: scaleX(0);
  transform-origin: 100% 50%;
}

.nav__chevron {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
  transition: transform .35s var(--ease-out);
}

.nav__item--mega.is-open .nav__chevron { transform: rotate(180deg); }

.nav__footer { display: none; }

/* ---------- Méga-menu pleine largeur ---------- */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 3;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 70px -40px rgba(6, 28, 63, .4);
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .5s var(--ease-out), opacity .3s, visibility 0s linear .5s;
}

.nav__item--mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 -100px 0);
  transition: clip-path .55s var(--ease-out), opacity .25s, visibility 0s;
}

.mega__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr) minmax(280px, 1fr);
  gap: clamp(32px, 4vw, 80px);
  padding-top: 52px;
  padding-bottom: 56px;
}

.mega__intro,
.mega__list > li,
.mega__card {
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}

.nav__item--mega.is-open .mega__intro,
.nav__item--mega.is-open .mega__list > li,
.nav__item--mega.is-open .mega__card { opacity: 1; }

.nav__item--mega.is-open .mega__intro                  { transition-delay: .1s; }
.nav__item--mega.is-open .mega__list > li:nth-child(1) { transition-delay: .14s; }
.nav__item--mega.is-open .mega__list > li:nth-child(2) { transition-delay: .18s; }
.nav__item--mega.is-open .mega__list > li:nth-child(3) { transition-delay: .22s; }
.nav__item--mega.is-open .mega__list > li:nth-child(4) { transition-delay: .26s; }
.nav__item--mega.is-open .mega__list > li:nth-child(5) { transition-delay: .30s; }
.nav__item--mega.is-open .mega__card                   { transition-delay: .24s; }

.mega__title {
  margin: 20px 0 14px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--navy);
}

.mega__text {
  margin-bottom: 28px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* Liste des offres */
.mega__list { border-top: 1px solid var(--line); }
.mega__list > li { border-bottom: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  transition: background-color .3s;
}

.service:hover { background: var(--sand); }

.service__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  transition: background-color .3s, color .3s, border-color .3s;
}

.service__icon svg { width: 20px; height: 20px; }

.service:hover .service__icon {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.service strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--ink);
  transition: color .3s;
}

.service:hover strong { color: var(--navy); }

.service small {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Carte contact */
.mega__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 36px 34px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
}

/* Motif de toits discret, rappel du logo */
.mega__card::before,
.mega__card::after {
  content: "";
  position: absolute;
  transform: rotate(45deg);
  pointer-events: none;
}

.mega__card::before {
  top: 34px;
  right: -70px;
  width: 200px;
  height: 200px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.mega__card::after {
  top: 70px;
  right: 60px;
  width: 120px;
  height: 120px;
  border-top: 1px solid rgba(185, 173, 160, .3);
  border-left: 1px solid rgba(185, 173, 160, .3);
}

.mega__card-title {
  position: relative;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.mega__card-text {
  position: relative;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .7);
}

.mega__card-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 24px;
}

.mega__card-line {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  transition: color .25s;
}

.mega__card-line:first-child {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.mega__card-line:hover { color: var(--white); }

.mega__card .btn {
  position: relative;
  margin-top: auto;
}

/* ---------- Actions ---------- */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- Burger ---------- */
.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s;
}

.burger:hover { border-color: var(--navy); }

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--navy);
  transition: transform .4s var(--ease-out), opacity .2s, top .3s var(--ease-out);
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }

.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Voile derrière le méga-menu ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 28, 63, .3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility 0s linear .35s;
}

.overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s;
}

/* ---------- Espace client ---------- */
.header__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color .3s, background-color .3s, color .3s;
}

.header__account svg { width: 18px; height: 18px; }

.header__account:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(640px, calc(100vh - 136px));
  min-height: max(640px, calc(100svh - 136px));
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
}

/* Zone photo + texte (la bande d'engagements reste sur fond blanc) */
.hero__stage {
  position: relative;
  flex: 1;
  display: flex;
}

/* ---------- Photo en fondu sur la droite ---------- */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  z-index: 0;
  overflow: hidden;
}

/* Fondu du blanc (à gauche) vers la photo */
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .12) 14%, rgba(0, 0, 0, .5) 30%, rgba(0, 0, 0, .9) 48%, #000 60%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .12) 14%, rgba(0, 0, 0, .5) 30%, rgba(0, 0, 0, .9) 48%, #000 60%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: clamp(56px, 8vh, 110px);
  padding-bottom: clamp(48px, 6vh, 90px);
}

.hero__content { max-width: 640px; }

.hero__title {
  margin: 26px 0 24px;
  font-size: clamp(36px, 3.8vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--navy);
}

.hero__title em {
  font-style: normal;
  color: var(--taupe);
}

.hero__lead {
  max-width: 560px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__actions .btn { height: 54px; padding: 0 32px; }

.btn--outline {
  color: var(--navy);
  border: 1px solid rgba(11, 44, 94, .3);
  background: rgba(255, 255, 255, .6);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--white);
}

/* ---------- Engagements : bandeau bleu marine qui clôt le hero ---------- */
.hero__band {
  position: relative;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
}

/* fin liseré taupe en haut du bandeau */
.hero__band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--taupe);
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px 40px 40px 0;
}

.hero__trust li + li {
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.hero__trust svg {
  width: 30px;
  height: 30px;
  color: var(--taupe-300);
  stroke-width: 1.4;
}

.hero__trust strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--white);
}

.hero__trust span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
}

/* =========================================================
   L'ENTREPRISE : photo pleine hauteur à gauche, contenu à droite
   ========================================================= */
.about {
  position: relative;
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 780px;
}

/* ---------- Photo collée au bord gauche, fondue vers le blanc ---------- */
.about__media {
  position: relative;
  overflow: hidden;
}

.about__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, rgba(0, 0, 0, .75) 62%, rgba(0, 0, 0, .3) 82%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 45%, rgba(0, 0, 0, .75) 62%, rgba(0, 0, 0, .3) 82%, transparent 100%);
}

/* ---------- Contenu ---------- */
.about__content {
  display: flex;
  align-items: center;
  padding: clamp(72px, 7vw, 120px) var(--gutter) clamp(72px, 7vw, 120px) clamp(24px, 3vw, 64px);
}

.about__inner { max-width: 620px; }

.about__title {
  margin: 22px 0 28px;
  font-size: clamp(30px, 2.5vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--navy);
}

.about__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}

.about__text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

/* Points forts : grille 2 × 2 avec filets fins */
.about__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 44px 0;
  border-top: 1px solid var(--line);
}

.about__features li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.about__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(11, 44, 94, .06);
  color: var(--navy);
}

.about__icon svg { width: 22px; height: 22px; stroke-width: 1.6; }

.about__feature-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.about__feature-body p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
}

.about__actions .btn { height: 54px; padding: 0 32px; }

.about__phone {
  display: flex;
  flex-direction: column;
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.about__phone small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.about__phone .num {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  transition: color .25s;
}

.about__phone:hover .num { color: var(--navy-500); }

/* =========================================================
   LES MOTS DE FABRICE : texte à gauche, photo à droite
   ========================================================= */
.founder {
  position: relative;
  background: var(--white);
  padding: clamp(80px, 8vw, 140px) 0 0;
}

/* Les deux colonnes ont la même hauteur : le cadre photo
   s'aligne exactement sur le bloc de texte (du sur-titre au bouton) */
.founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 120px);
  align-items: stretch;
}

/* ---------- Contenu ---------- */
.founder__content { display: flex; }

.founder__inner { max-width: 640px; }

.founder__title {
  position: relative;
  margin: 30px 0 32px;
  padding-top: 34px;
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--navy);
}

/* Guillemet décoratif */
.founder__mark {
  position: absolute;
  top: -18px;
  left: -4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 400;
  line-height: 1;
  color: var(--taupe-300);
}

.founder__text p {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
}

.founder__text p + p { margin-top: 18px; }

.founder__text p:first-child { color: var(--ink); }

/* Signature */
.founder__sign {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 40px 0 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.founder__signature {
  font-family: "Mrs Saint Delafield", cursive;
  font-size: 58px;
  line-height: 1;
  color: var(--navy);
  transform: translateY(6px);
}

.founder__id {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.founder__id strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.founder__id span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--taupe);
}

.founder .btn { height: 54px; padding: 0 32px; }

/* ---------- Portrait dans un cadre aligné sur le texte ---------- */
.founder__media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.founder__media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  /* fondu progressif vers le blanc sur le bas du portrait */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, .6) 80%, rgba(0, 0, 0, .15) 93%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, .6) 80%, rgba(0, 0, 0, .15) 93%, transparent 100%);
}

.js .founder__media.reveal img {
  transform: scale(1.05);
  transition: transform 1.8s var(--ease-out);
}

.js .founder__media.reveal.is-visible img { transform: none; }

/* =========================================================
   ZONES D'INTERVENTION : bandeau à défilement continu
   ========================================================= */
.zones {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
}

/* liseré taupe, comme le bandeau des engagements */
.zones::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 3px;
  background: var(--taupe);
}

.zones__inner {
  display: flex;
  align-items: stretch;
}

/* Bloc fixe à gauche */
.zones__label {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 36px 48px 36px var(--gutter);
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.zones__pin {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: var(--taupe-300);
}

.zones__pin svg { width: 20px; height: 20px; stroke-width: 1.6; }

.zones__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--taupe-300);
}

.zones__title {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  color: var(--white);
}

/* Défilement */
.zones__viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.zones__track {
  display: flex;
  width: max-content;
  animation: zonesMarquee 48s linear infinite;
}

.zones__viewport:hover .zones__track { animation-play-state: paused; }

.zones__list { display: flex; align-items: center; }

.zones__list li {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .88);
}

/* séparateur : petit toit taupe, rappel du logo */
.zones__list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--taupe-300);
  border-left: 1.5px solid var(--taupe-300);
  transform: translateY(2px) rotate(45deg);
}

/* les deux listes sont identiques : -50 % = une liste exactement, boucle sans à-coup */
@keyframes zonesMarquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   DEMANDE DE CONTACT : bandeau pleine largeur, fondu depuis le blanc
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  /* les premiers pixels sont blancs : pas de liseré à la jonction avec la section précédente */
  background: linear-gradient(180deg, #fff 0, #fff 6px, var(--navy) 6px);
  color: var(--white);
}

/* Fondu du blanc (section précédente) vers le bleu marine */
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 320px;
  pointer-events: none;
  /* dégradé adouci (courbe progressive) : blanc pur au départ, aucune arête visible */
  background: linear-gradient(180deg,
    #fff 0%,
    #fff 10%,
    rgba(255, 255, 255, .985) 16%,
    rgba(255, 255, 255, .95) 22%,
    rgba(255, 255, 255, .89) 28%,
    rgba(255, 255, 255, .81) 34%,
    rgba(255, 255, 255, .72) 40%,
    rgba(255, 255, 255, .62) 46%,
    rgba(255, 255, 255, .51) 52%,
    rgba(255, 255, 255, .41) 58%,
    rgba(255, 255, 255, .31) 64%,
    rgba(255, 255, 255, .22) 70%,
    rgba(255, 255, 255, .14) 77%,
    rgba(255, 255, 255, .07) 85%,
    rgba(255, 255, 255, .02) 93%,
    rgba(255, 255, 255, 0) 100%);
}

.cta__wrap {
  position: relative;
  z-index: 2;
}

/* Photo sur la droite, fondue dans le bleu marine */
.cta__media {
  position: absolute;
  top: 8px; /* démarre sous la partie 100 % blanche du fondu : aucun liseré */
  right: 0;
  bottom: 0;
  width: 60%;
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 25%, rgba(0, 0, 0, .85) 55%, #000 75%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 25%, rgba(0, 0, 0, .85) 55%, #000 75%);
}

.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 44, 94, .55) 0%, rgba(11, 44, 94, .15) 60%, rgba(11, 44, 94, .05) 100%);
}

.cta__content {
  max-width: 640px;
  padding: 250px 0 clamp(56px, 5vw, 80px);
}

.cta__title {
  margin: 18px 0 14px;
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--white);
}

.cta__text {
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
  margin-top: 28px;
}

.cta__actions .btn { height: 54px; padding: 0 34px; }

.cta__phone {
  display: flex;
  flex-direction: column;
  padding-left: 36px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.cta__phone small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .6);
}

.cta__phone .num {
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .68);
  font-size: 14.5px;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--taupe);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 80px);
  padding: clamp(64px, 6vw, 96px) 0 clamp(48px, 5vw, 72px);
}

/* Logo passé en blanc pour le fond sombre */
.footer__logo img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__about {
  max-width: 360px;
  margin: 24px 0 28px;
  line-height: 1.7;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer__contact li + li { margin-top: 12px; }

.footer__contact svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--taupe-300);
}

.footer__contact a,
.footer__contact address {
  font-style: normal;
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
  transition: color .25s;
}

.footer__contact a:hover { color: var(--white); }

.footer__title {
  margin: 8px 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__links li + li { margin-top: 12px; }

.footer__links a {
  position: relative;
  transition: color .25s;
}

.footer__links a:hover { color: var(--white); }

/* liste des villes (texte utile au référencement local) */
.footer__zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* chaque ville mène à son secteur sur la page « Zones d'intervention » */
.footer__zones a {
  display: block;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  transition: color .25s, border-color .25s;
}

.footer__zones a:hover { color: var(--white); border-color: rgba(255, 255, 255, .4); }

/* Horaires d'ouverture */
.footer__hours { display: grid; gap: 2px; line-height: 1.55; color: rgba(255, 255, 255, .85); }

/* Fiche Google, réseaux sociaux, avis */
.footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }

.footer__social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: rgba(255, 255, 255, .85);
  transition: background-color .25s, border-color .25s, color .25s;
}

.footer__social-link svg { width: 18px; height: 18px; }
.footer__social-link:hover { background: var(--taupe); border-color: var(--taupe); color: var(--white); }

.footer__review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  transition: background-color .25s, border-color .25s;
}

.footer__review svg { width: 16px; height: 16px; color: #e8c37a; }
.footer__review:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-left: auto;
}

.footer__legal a { transition: color .25s; }
.footer__legal a:hover { color: var(--white); }

.footer__top-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  color: var(--white);
  transition: background-color .25s, border-color .25s;
}

.footer__top-link svg { width: 18px; height: 18px; stroke-width: 2; }

.footer__top-link:hover {
  background: var(--taupe);
  border-color: var(--taupe);
}

/* =========================================================
   CONNEXION : formulaire à gauche, photo fondue à droite
   ========================================================= */
.auth {
  position: relative;
  background: var(--white);
}

.auth__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 720px;
}

/* Formulaire centré dans sa colonne (à égale distance du bord et de la photo) */
.auth__content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 6vw, 110px) clamp(24px, 3vw, 56px) clamp(96px, 8vw, 150px) var(--gutter);
}

/* Même largeur pour toutes les pages de l'espace (connexion, inscription, mot de passe…) */
.auth__inner {
  width: 100%;
  max-width: 520px;
}

.auth__title {
  margin: 20px 0 14px;
  font-size: clamp(30px, 2.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--navy);
}

.auth__lead {
  margin-bottom: 36px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.auth__help {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

.auth__help p { margin-bottom: 12px; }

.auth__secure {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.auth__secure svg { width: 16px; height: 16px; color: var(--taupe); }

.auth__media {
  position: relative;
  overflow: hidden;
}

.auth__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 45%, rgba(0, 0, 0, .75) 62%, rgba(0, 0, 0, .3) 82%, transparent 100%);
          mask-image: linear-gradient(270deg, #000 0%, #000 45%, rgba(0, 0, 0, .75) 62%, rgba(0, 0, 0, .3) 82%, transparent 100%);
}

/* ---------- Formulaires ---------- */
.form__field + .form__field { margin-top: 22px; }

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}

.form__control { position: relative; }

.form__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
  transition: color .25s;
}

.form__input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 46px;
  border: 1px solid #d9d4cd;
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}

.form__input::placeholder { color: #a3a6ad; }

.form__input:hover { border-color: #bfb8ae; }

.form__input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 44, 94, .12);
}

.form__control:focus-within .form__icon { color: var(--navy); }

.form__input[aria-invalid="true"] { border-color: #b3261e; }

/* Bouton afficher / masquer le mot de passe */
.form__reveal {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: var(--muted);
  transform: translateY(-50%);
  transition: color .25s, background-color .25s;
}

.form__reveal:hover { color: var(--navy); background: var(--sand); }
.form__reveal svg { width: 18px; height: 18px; }
.form__eye-off { display: none; }
.form__reveal[aria-pressed="true"] .form__eye { display: none; }
.form__reveal[aria-pressed="true"] .form__eye-off { display: block; }

.form__submit { height: 54px; margin-top: 32px; }

/* ---------- Messages ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 3px solid;
  font-size: 14.5px;
  line-height: 1.55;
}

.alert svg { width: 20px; height: 20px; margin-top: 1px; }

.alert--error {
  border-color: #b3261e;
  background: #fbeeed;
  color: #7a1c16;
}

.alert--success {
  border-color: #2e7d4f;
  background: #edf6f0;
  color: #1f5a38;
}

/* ---------- Liens sous le formulaire : « Créer un compte » à gauche, « Mot de passe oublié » à droite ---------- */
.auth__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
}

.auth__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  transition: color .25s;
}

.auth__link svg {
  width: 17px;
  height: 17px;
  color: var(--taupe);
  transition: color .25s;
}

.auth__link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease-out);
}

.auth__link:hover { color: var(--navy-500); }
.auth__link:hover svg { color: var(--navy-500); }
.auth__link:hover span { background-size: 100% 1px; }

/* Code de double authentification (6 chiffres) */
.otp-input {
  height: 66px;
  padding-left: .55em;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .55em;
  text-align: center;
  color: var(--navy);
}

.otp-input::placeholder { letter-spacing: .55em; color: #c9c3bb; }
.otp-input--pin { letter-spacing: .9em; padding-left: .9em; }

/* ---------- Recherche d'entreprise (liste de suggestions) ---------- */
.combo { position: relative; }

.combo__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 320px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 48px -24px rgba(6, 28, 63, .35);
}

.combo__list[hidden] { display: none; }

.combo__option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

.combo__option:hover,
.combo__option[aria-selected="true"] { background: var(--sand); }

.combo__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}

.combo__meta {
  font-size: 12.5px;
  color: var(--muted);
}

.combo__status {
  padding: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.combo__credit {
  padding: 8px 12px 2px;
  font-size: 11px;
  letter-spacing: .04em;
  text-align: right;
  color: #9a9ca1;
}

/* ---------- Téléphone international (indicatif + drapeau) ---------- */
.phone {
  position: relative;
  display: flex;
}

.phone__toggle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 12px 0 14px;
  border: 1px solid #d9d4cd;
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--sand);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color .25s;
}

.phone__toggle:hover { background: #efebe5; }
.phone__toggle[aria-expanded="true"] { background: #efebe5; }

/* Drapeaux : planche flag-icons (MIT) — France par défaut, les autres positionnés par phone-input.js */
.phone__flag {
  flex-shrink: 0;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  /* planche en double résolution (768 × 576) affichée à 384 × 288 : nette sur écran haute définition */
  background: url("/assets/img/flags.webp") no-repeat -72px -72px / 384px 288px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}

.phone__dial { font-variant-numeric: tabular-nums; }

.phone__chevron {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: var(--muted);
  transition: transform .3s var(--ease-out);
}

.phone__toggle[aria-expanded="true"] .phone__chevron { transform: rotate(180deg); }

.phone__input {
  flex: 1;
  min-width: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.phone__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 25;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 48px -24px rgba(6, 28, 63, .35);
}

.phone__panel[hidden] { display: none; }

.phone__search {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}

.phone__search:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 44, 94, .12);
}

.phone__list {
  max-height: 280px;
  margin-top: 6px;
  overflow-y: auto;
}

.phone__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}

.phone__option:hover,
.phone__option[aria-selected="true"] { background: var(--sand); }
.phone__option.is-current { font-weight: 600; color: var(--navy); }
.phone__option-name { flex: 1; min-width: 0; }

.phone__option-dial {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.phone__separator {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.phone__empty {
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
}

.company-picked {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-left: 3px solid #2e7d4f;
  border-radius: var(--radius);
  background: #edf6f0;
  font-size: 14px;
  color: #1f5a38;
}

.company-picked[hidden] { display: none; }
.company-picked svg { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }

.vat-suggest {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--navy);
  text-align: left;
  border-bottom: 1px dashed rgba(11, 44, 94, .4);
  transition: border-color .25s;
}

.vat-suggest[hidden] { display: none; }
.vat-suggest:hover { border-bottom-color: var(--navy); }

.auth__switch {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--muted);
}

.auth__switch .link-more { margin-left: 6px; }

.resend { margin-bottom: 24px; }


/* ---------- Champs sans icône, lignes, aides, erreurs ---------- */
.form__input--plain { padding: 0 16px; }
.form__input--plain.form__input--reveal { padding-right: 52px; }

.form__select {
  appearance: none;
  padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2c5e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
  cursor: pointer;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.form__row > .form__field + .form__field { margin-top: 0; }
.form__row + .form__field,
.form__field + .form__row { margin-top: 22px; }
.form__row--postal { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

.form__optional { font-weight: 400; color: var(--muted); }

.form__hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.form__error {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #b3261e;
}

.form__error[hidden] { display: none; }

/* Champ piège anti-robot : hors écran (pas display:none, que certains robots détectent) */
.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Inscription en étapes ---------- */
.wizard__progress { margin-bottom: 30px; }

.wizard__progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.wizard__progress-step {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--taupe);
}

.wizard__progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.wizard__bar {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

.wizard__bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--navy);
  transition: width .45s var(--ease-out);
}

.wizard__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Sans JavaScript : étapes les unes sous les autres, séparées */
.wizard:not(.is-enhanced) .wizard__step + .wizard__step {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.wizard__step[hidden] { display: none; }

.wizard__title {
  display: block;
  margin-bottom: 24px;
  padding: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--navy);
}

.wizard__title:focus { outline: none; }

.wizard__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
}

.wizard__nav .btn { height: 52px; min-width: 150px; }
.wizard__nav .btn[hidden] { display: none; }
.wizard__nav [data-wizard-next],
.wizard__nav [data-wizard-submit] { margin-left: auto; }

/* Cartes de choix (particulier / professionnel) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice { position: relative; cursor: pointer; }

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid #d9d4cd;
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}

.choice:hover .choice__box { border-color: #bfb8ae; }

.choice__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: rgba(11, 44, 94, .06);
  color: var(--navy);
  transition: background-color .25s, color .25s;
}

.choice__icon svg { width: 22px; height: 22px; }

.choice__box strong { font-size: 16px; font-weight: 600; color: var(--navy); }
.choice__box small { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.choice input:checked + .choice__box {
  border-color: var(--navy);
  background: rgba(11, 44, 94, .03);
  box-shadow: 0 0 0 1px var(--navy);
}

.choice input:checked + .choice__box .choice__icon { background: var(--navy); color: var(--white); }

.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--navy-500);
  outline-offset: 3px;
}

/* Règles du mot de passe */
.pw-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.pw-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .25s;
}

.pw-rules li::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1.5px solid #c9c3bb;
  border-radius: 50%;
  transition: background-color .25s, border-color .25s;
}

.pw-rules li.is-ok { color: #1f5a38; }

.pw-rules li.is-ok::before {
  border-color: #2e7d4f;
  background: #2e7d4f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 9px;
}

/* Case à cocher */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}

.checkbox input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
}

.checkbox a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* Récapitulatif */
.review {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px 20px;
  margin: 0 0 26px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
  font-size: 14.5px;
}

.review[hidden] { display: none; }
.review dt { font-weight: 600; color: var(--muted); }
.review dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* =========================================================
   ESPACE CLIENT (page d'accueil du compte)
   ========================================================= */
.account {
  padding: clamp(72px, 7vw, 120px) 0 clamp(96px, 8vw, 150px);
  background: var(--white);
}

.account__title {
  margin: 20px 0 14px;
  font-size: clamp(30px, 2.4vw, 42px);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--navy);
}

.account__lead {
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
}

.account__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 760px;
  margin-top: 40px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--taupe);
}

.account__card strong { display: block; font-weight: 600; color: var(--ink); }

.account__info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
}

.account__meta {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Apparition au défilement (fondu, sans déplacement) ---------- */
.js .reveal {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.js .reveal.is-visible { opacity: 1; }

.js .about__media.reveal img {
  transform: scale(1.05);
  transition: transform 1.8s var(--ease-out);
}

.js .about__media.reveal.is-visible img { transform: none; }

/* =========================================================
   CONSTRUCTION ANIMÉE DU HEADER
   Sobre : le trait se trace, le fond monte, le logo s'assemble,
   les textes apparaissent en fondu (sans déplacement).
   ========================================================= */
.js .topbar                 { animation: fadeIn .8s ease backwards; }
.js .header__line           { animation: lineDraw 1.3s var(--ease-io) .2s both; }
.js .header__bg             { animation: bgRise .7s var(--ease-out) .7s backwards; }

.js .brand__layer--taupe    { animation: roofSlide .8s var(--ease-out) .95s both; }
.js .brand__layer--navy     { animation: roofDrop .8s var(--ease-out) 1.05s both; }
.js .brand__layer--window   { animation: fadeIn .5s ease 1.55s both; }
.js .brand__layer--word     { animation: fadeIn .9s ease 1.25s both; }
.js .brand__layer--conseil  { animation: fadeIn .9s ease 1.45s both; }
.js .brand__tagline         { animation: fadeIn .9s ease 1.65s backwards; }

.js .nav__item              { animation: fadeIn .7s ease backwards; }
.js .nav__item:nth-child(1) { animation-delay: 1.3s; }
.js .nav__item:nth-child(2) { animation-delay: 1.38s; }
.js .nav__item:nth-child(3) { animation-delay: 1.46s; }
.js .nav__item:nth-child(4) { animation-delay: 1.54s; }
.js .nav__item:nth-child(5) { animation-delay: 1.62s; }

.js .header__actions        { animation: fadeIn .7s ease 1.7s backwards; }

/* ---------- Hero : photo qui apparaît, textes en fondu ---------- */
.js .hero__media img               { animation: heroPhoto 2.4s var(--ease-out) .5s backwards; }
.js .hero__content > *             { animation: fadeIn .9s ease backwards; }
.js .hero__content > :nth-child(1) { animation-delay: 1.2s; }
.js .hero__content > :nth-child(2) { animation-delay: 1.35s; }
.js .hero__content > :nth-child(3) { animation-delay: 1.5s; }
.js .hero__content > :nth-child(4) { animation-delay: 1.65s; }
.js .hero__trust li                { animation: fadeIn .9s ease backwards; }
.js .hero__trust li:nth-child(1)   { animation-delay: 1.9s; }
.js .hero__trust li:nth-child(2)   { animation-delay: 2s; }
.js .hero__trust li:nth-child(3)   { animation-delay: 2.1s; }

/* En attente du chargement des polices/images : tout reste figé */
.js:not(.is-ready) .topbar,
.js:not(.is-ready) .header,
.js:not(.is-ready) .header *,
.js:not(.is-ready) .hero * { animation-play-state: paused; }

@keyframes heroPhoto {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lineDraw {
  0%   { opacity: 1; transform: scaleX(0); }
  50%  { opacity: 1; transform: scaleX(1); }
  75%  { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes bgRise {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes roofSlide {
  from { opacity: 0; transform: translate(-8%, 6%); }
  to   { opacity: 1; transform: none; }
}

@keyframes roofDrop {
  from { opacity: 0; transform: translateY(-14%); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .mega__inner { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
  .mega__intro { display: none; }
}

@media (max-width: 1100px) {
  :root { --header-h: 80px; --logo-h: 52px; }
  .header.is-scrolled { --header-h: 68px; --logo-h: 44px; }

  .header__inner {
    align-items: center;
    justify-content: space-between;
  }

  .burger { display: block; }

  /* Panneau mobile plein écran */
  .nav {
    position: fixed;
    top: var(--drawer-top, 120px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px var(--gutter) 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease, visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .nav__item { animation: none; }

  .nav__item {
    display: block;
    border-bottom: 1px solid var(--line);
  }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 13.5px;
  }

  .nav__label::after { display: none; }

  /* Offres en accordéon */
  .mega {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    clip-path: none;
    transition: none;
  }

  .nav__item--mega.is-open .mega {
    display: block;
    clip-path: none;
  }

  .mega__inner {
    display: block;
    padding: 0 0 16px;
  }

  .mega__intro,
  .mega__card { display: none; }

  .mega__list { border-top: 0; }

  .mega__list > li {
    border-bottom: 0;
    opacity: 1;
  }

  .service {
    grid-template-columns: 38px 1fr;
    gap: 16px;
    padding: 9px 0;
  }

  .service:hover { background: none; }
  .service small { display: none; }
  .service__icon { width: 38px; height: 38px; }
  .service__icon svg { width: 18px; height: 18px; }
  .service strong { font-size: 15px; font-weight: 500; }

  .nav__footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 32px;
  }

  .nav__footer-line {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
  }

  .nav__footer-line:first-child {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
  }

  .nav__footer .btn { margin-top: 20px; }
}

@media (max-width: 900px) {
  .topbar__contact .topbar__address { display: none; }
}

@media (max-width: 640px) {
  .header__cta { display: none; }
}

@media (max-width: 480px) {
  .topbar__contact .topbar__email { display: none; }
}

/* ---------- Espace client & hero : adaptations ---------- */
@media (max-width: 1600px) {
  .header__account { width: 48px; padding: 0; }
  .header__account-label { display: none; }
}

@media (max-width: 1100px) {
  .header__account { width: 46px; height: 46px; }

  /* Photo sous le texte, fondue depuis le blanc vers le bas */
  .hero { min-height: 0; }
  .hero__stage { flex-direction: column; }
  .hero__inner { order: 1; padding-bottom: 8px; }

  .hero__media {
    position: relative;
    order: 2;
    width: 100%;
    height: clamp(260px, 48vw, 420px);
  }

  .hero__media img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .6) 30%, #000 60%);
            mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .6) 30%, #000 60%);
  }
}

@media (max-width: 900px) {
  .hero__trust { grid-template-columns: 1fr; }
  .hero__trust li,
  .hero__trust li + li { padding: 22px 0; border-left: 0; }
  .hero__trust li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
}

@media (max-width: 640px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- L'entreprise : adaptations ---------- */
@media (max-width: 1000px) {
  .about__grid { grid-template-columns: 1fr; min-height: 0; }
  .about__media { height: clamp(320px, 62vw, 520px); }
  /* sur mobile, la photo se fond vers le blanc par le bas */
  .about__media img {
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .about__content { padding: 24px var(--gutter) 80px; }
  .about__inner { max-width: none; }
}

@media (max-width: 600px) {
  .about__features { grid-template-columns: 1fr; gap: 0; }
  .about__phone { padding-left: 0; border-left: 0; }
  .about__actions .btn { width: 100%; }
}

/* ---------- Connexion : adaptations ---------- */
@media (max-width: 1000px) {
  .auth__grid { grid-template-columns: 1fr; min-height: 0; }
  .auth__media { display: none; }
  .auth__content { justify-content: flex-start; padding: 56px var(--gutter) 120px; }
}

@media (max-width: 560px) {
  .form__row,
  .form__row--postal,
  .choice-grid,
  .pw-rules { grid-template-columns: 1fr; }
  .form__row > .form__field + .form__field { margin-top: 22px; }
  .review { grid-template-columns: 1fr; gap: 2px; }
  .review dd { margin-bottom: 10px; }
  .wizard__nav .btn { min-width: 0; flex: 1; }
}

/* ---------- Zones d'intervention : adaptations ---------- */
@media (max-width: 900px) {
  .zones__inner { flex-direction: column; }
  .zones__label { padding: 28px var(--gutter); border-right: 0; }
  .zones__title { white-space: normal; }
  .zones__viewport { padding: 24px 0; }
}

/* ---------- Contact & footer : adaptations ---------- */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .cta__media { width: 100%; opacity: .35; }
  .cta__media img {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3), #000);
            mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3), #000);
  }
}

@media (max-width: 600px) {
  .cta { min-height: 0; }
  .cta::before { height: 220px; }
  .cta__content { padding: 180px 0 56px; }
  .cta__phone { padding-left: 0; border-left: 0; }
  .cta__actions .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__legal { margin-left: 0; }
}

/* ---------- Les mots de Fabrice : adaptations ---------- */
@media (max-width: 1000px) {
  .founder__grid { grid-template-columns: 1fr; gap: 40px; }
  .founder__media { order: -1; min-height: 0; height: clamp(360px, 80vw, 540px); }
  .founder__inner { max-width: none; }
}

@media (max-width: 600px) {
  .founder__sign { flex-direction: column; align-items: flex-start; gap: 12px; }
  .founder__id { padding-left: 0; border-left: 0; }
  .founder .btn { width: 100%; }
}

/* Pas d'animation si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   ESPACE CLIENT – Réponse à une demande de rendez-vous (personne externe)
   ========================================================= */
.rdv-card {
  display: grid;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf8f5;
}

.rdv-card.is-cancelled { opacity: .7; }

.rdv-card__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 20px;
}

.rdv-card__row + .rdv-card__row { border-top: 1px solid var(--line); }

.rdv-card dt {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}

.rdv-card dt svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--taupe);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rdv-card dd { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.5; color: var(--navy); }
.rdv-card__sub { font-size: 14px; font-weight: 400; color: var(--muted); }
.rdv-card__notes { font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }

.rdv-form { margin-top: 28px; }
.form__textarea { height: auto; min-height: 96px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.rdv-form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rdv-form__actions .btn { height: 52px; flex: 1 1 200px; }

@media (max-width: 560px) {
  .rdv-card__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
}

/* =========================================================
   PAGES LÉGALES (mentions légales, politique de confidentialité)
   En-tête · sommaire fixe à gauche · contenu structuré en sections
   ========================================================= */
.legal-hero {
  position: relative;
  padding: clamp(44px, 7vh, 80px) 0 clamp(40px, 6vh, 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(11, 44, 94, .08), transparent 60%),
    linear-gradient(180deg, var(--sand), var(--white));
}

.legal-hero__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13px; color: var(--muted); animation: legalRise .7s var(--ease-out) both; }
.legal-hero__crumbs a { color: var(--muted); transition: color .2s; }
.legal-hero__crumbs a:hover { color: var(--navy); }
.legal-hero__crumbs svg { width: 13px; height: 13px; color: var(--taupe-300); }
.legal-hero__crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.legal-hero .eyebrow { animation: legalRise .7s .08s var(--ease-out) both; }

.legal-hero__title {
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--navy);
  animation: legalRise .8s .14s var(--ease-out) both;
}

.legal-hero__title em { font-style: normal; color: var(--taupe); }
.legal-hero__lead { max-width: 720px; margin-top: 18px; font-size: 16.5px; line-height: 1.7; color: var(--muted); animation: legalRise .8s .2s var(--ease-out) both; }
.legal-hero__meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--muted); animation: legalRise .8s .26s var(--ease-out) both; }
.legal-hero__meta svg { width: 15px; height: 15px; color: var(--taupe); }

@keyframes legalRise { from { opacity: 0; transform: translateY(14px); } }

.legal {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 96px);
  padding-top: clamp(44px, 7vh, 84px);
  padding-bottom: clamp(72px, 10vh, 128px);
}

/* Sommaire */
.legal__toc { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 16px; font-size: 13.5px; }
.legal__toc > p { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.legal__toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--line); }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: 10px; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; line-height: 1.45; color: var(--muted); transition: color .2s, border-color .2s; }
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--taupe-300); }
.legal__toc a:hover { border-left-color: var(--taupe-300); color: var(--navy); }

/* Contenu */
.legal__body { max-width: 820px; font-size: 15.5px; line-height: 1.85; color: var(--text); }
.legal__body section, .legal__body h3[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body section + section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.legal__body h2 { margin: 0 0 16px; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--navy); }
.legal__body h3 { margin: 24px 0 8px; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p, .legal__body p + .legal__facts, .legal__body .legal__facts + p, .legal__body p + .legal__scroll, .legal__body .legal__scroll + p { margin-top: 14px; }
.legal__body a { color: var(--navy); border-bottom: 1px solid rgba(11, 44, 94, .25); transition: border-color .2s; }
.legal__body a:hover { border-bottom-color: var(--navy); }
.legal__body strong { font-weight: 600; color: var(--ink); }
.legal__body ul.legal__list { display: grid; gap: 8px; padding-left: 0; }
.legal__body ul.legal__list li { position: relative; padding-left: 22px; }
.legal__body ul.legal__list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 1px; background: var(--taupe); }

.legal__facts { display: grid; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--sand); }
.legal__facts > div { display: grid; grid-template-columns: minmax(160px, 230px) minmax(0, 1fr); gap: 16px; padding: 13px 20px; }
.legal__facts > div + div { border-top: 1px solid var(--line); }
.legal__facts dt { font-size: 14px; color: var(--muted); }
.legal__facts dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }

.legal__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.legal__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.legal__table th { padding: 12px 18px; background: var(--sand); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-align: left; text-transform: uppercase; color: var(--taupe); }
.legal__table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table td:first-child { font-weight: 500; color: var(--ink); }

.legal__note { display: flex; gap: 12px; margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--navy); border-radius: 0 6px 6px 0; background: rgba(11, 44, 94, .05); font-size: 14.5px; line-height: 1.7; }
.legal__note svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; color: var(--navy); }

@media (max-width: 980px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; padding: 20px 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--sand); }
}

@media (max-width: 640px) {
  .legal__facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; }
  .legal__body { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-hero__crumbs, .legal-hero .eyebrow, .legal-hero__title, .legal-hero__lead, .legal-hero__meta { animation: none; }
}
