/* ==========================================================================
   MLD Group — design system
   Tokens issus de MLD-GROUP.pen (variables Pencil)
   ========================================================================== */

:root {
  --noir: #171719;
  --anthracite: #292a2d;
  --anthracite-2: #202124;
  --mineral: #77797d;
  --cream: #f5f4f0;
  --cream-2: #ecebe3;
  --white: #ffffff;
  --gold: #c7a45a;
  --gold-ink: #8c6e2e;
  --text-on-dark-muted: #a9aaae;
  --text-on-light-muted: #5e6064;
  --line-dark: rgb(255 255 255 / 0.14);
  --line-light: rgb(23 23 25 / 0.14);
  --error: #b3402e;
  --success: #3f7a54;

  --font-heading: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 6px;
  --gutter: clamp(20px, 5.6vw, 80px);
  --section-y: clamp(80px, 8.9vw, 128px);
  --maxw: 1440px;
  --header-h: 110px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Couleurs contextuelles (fond clair par défaut) */
  --bg: var(--cream);
  --fg: var(--noir);
  --muted: var(--text-on-light-muted);
  --accent: var(--gold-ink);
  --line: var(--line-light);
}

.theme-dark,
.section--dark,
.section--anthracite {
  --bg: var(--noir);
  --fg: var(--white);
  --muted: var(--text-on-dark-muted);
  --accent: var(--gold);
  --line: var(--line-dark);
}
.section--anthracite { --bg: var(--anthracite-2); }
.section--cream-2 { --bg: var(--cream-2); }
.section--white { --bg: var(--white); }

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--noir);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden]:not(.mega):not(.mobile-menu) { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--noir); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--noir);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

main { display: block; padding-top: var(--header-h); }
body:has(.site-header[data-theme="overlay"]) main { padding-top: 0; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
}
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--flush-top { padding-top: 0; }

.stack { display: flex; flex-direction: column; gap: var(--stack, 24px); }

.grid {
  display: grid;
  gap: var(--grid-gap, 32px);
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
}
.grid--3 { --cols: 3; }
.grid--4 { --cols: 4; }
@media (max-width: 1080px) {
  .grid--4 { --cols: 2; }
  .grid--3 { --cols: 2; }
}
@media (max-width: 720px) {
  .grid, .grid--3, .grid--4 { --cols: 1; }
}

/* En-tête de section : titre à gauche, intro à droite */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px 80px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head > .stack { --stack: 24px; }
.section-head__intro { color: var(--muted); font-size: 17px; max-width: 46ch; }
.section-head--single { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6.7vw, 96px);
  align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

.display,
.h1,
.h2,
.h3,
.h4,
.lead-title {
  font-family: var(--font-heading);
  color: var(--fg);
  text-wrap: balance;
}

.display {
  font-size: clamp(48px, 7.2vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h1 {
  font-size: clamp(42px, 5.6vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.031em;
}
.h2 {
  font-size: clamp(34px, 3.9vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.028em;
}
.lead-title {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.h4 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); max-width: 56ch; }
.text { color: var(--muted); font-size: 16px; line-height: 1.65; }
.text-sm { color: var(--muted); font-size: 14px; line-height: 1.6; }
.text p + p { margin-top: 1em; }
.accent { color: var(--accent); }

/* Surtitre : numéro — filet — libellé */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.eyebrow__num { font-family: var(--font-heading); color: var(--accent); letter-spacing: 0.08em; }
.eyebrow__rule {
  width: 32px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
}
.is-revealed .eyebrow__rule,
.eyebrow.is-revealed .eyebrow__rule { animation: rule-in 0.9s var(--ease-out) both 0.15s; }
@keyframes rule-in { from { transform: scaleX(0); } }

/* --------------------------------------------------------------------------
   Boutons & liens
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition:
    color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
  will-change: transform;
}
.btn::before {
  /* Remplissage qui monte au survol */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover, rgb(255 255 255 / 0.08));
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease-out);
}
.btn:active { transform: scale(0.98); }

@media (hover: hover) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover .icon { transform: translateX(4px); }
  .btn:hover .icon:has(use[href$="#phone"]) { transform: rotate(-12deg) scale(1.08); }
}

.btn--primary {
  --btn-bg: var(--gold);
  --btn-fg: var(--noir);
  --btn-border: var(--gold);
  --btn-hover: #d6b56c;
}
.btn--primary:hover { box-shadow: 0 10px 30px -12px rgb(199 164 90 / 0.65); }

.btn--secondary {
  --btn-fg: var(--noir);
  --btn-border: var(--line-light);
  --btn-hover: var(--noir);
}
.btn--secondary:hover { --btn-fg: var(--white); border-color: var(--noir); }

.btn--ghost-dark {
  --btn-fg: var(--white);
  --btn-border: var(--line-dark);
  --btn-hover: rgb(255 255 255 / 0.08);
}
.btn--ghost-dark:hover { border-color: rgb(255 255 255 / 0.4); }

.btn--dark {
  --btn-bg: var(--noir);
  --btn-fg: var(--white);
  --btn-border: var(--noir);
  --btn-hover: var(--anthracite);
}

.btn--sm { padding: 12px 20px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--anthracite);
  color: var(--white);
  transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn--gold { background: var(--gold); color: var(--noir); }

/* Lien fléché souligné d’or */
.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.link-arrow::after,
.link-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
}
.link-arrow::before { opacity: 0.45; }
.link-arrow::after {
  height: 1.5px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease-out);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.45s var(--ease-out); }
@media (hover: hover) {
  .link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
  .link-arrow:hover .icon { transform: translate(3px, -3px); }
}

/* Puces / étiquettes */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  transition: border-color 0.3s, background-color 0.3s;
}
a.chip:hover { border-color: var(--accent); }

.badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgb(23 23 25 / 0.7);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  pointer-events: none;
}
.badge .icon { width: 12px; height: 12px; }
.badge--demo {
  top: 16px;
  bottom: auto;
  background: var(--gold);
  color: var(--noir);
  font-weight: 600;
}
.badge--static { position: static; }

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.meta strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mineral);
}

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--cream-2);
  color: var(--text-on-light-muted);
  font-size: 13px;
}
.notice .icon { width: 16px; height: 16px; color: var(--gold-ink); }
.theme-dark .notice, .section--dark .notice { background: var(--anthracite); color: var(--text-on-dark-muted); }

/* --------------------------------------------------------------------------
   Médias
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--anthracite);
  aspect-ratio: var(--ratio, 4 / 3);
}
.media > img,
.media > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--media-scale, 1)) translate3d(0, var(--parallax, 0px), 0);
  transition: transform 1.1s var(--ease-out);
}
.media[data-parallax] > img { --media-scale: 1.12; transition: none; }

/* Révélation : rideau qui se lève (pseudo-élément, pour ne pas fausser l’IntersectionObserver) */
.js .media[data-reveal]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  background: var(--bg);
  transform-origin: top;
  transition: transform 1.25s var(--ease-out);
  pointer-events: none;
}
.js .media[data-reveal].is-revealed::after { transform: scaleY(0); }
.js .media[data-reveal] > img { --media-scale: 1.18; }
.js .media[data-reveal].is-revealed > img { --media-scale: 1; transition: transform 1.6s var(--ease-out); }
.js .media[data-reveal][data-parallax].is-revealed > img { --media-scale: 1.12; transition: transform 1.6s var(--ease-out); }

@media (hover: hover) {
  .card-link:hover .media > img { --media-scale: 1.05; }
  .card-link:hover .media[data-parallax] > img { --media-scale: 1.16; }
}

/* --------------------------------------------------------------------------
   Animations d’apparition
   -------------------------------------------------------------------------- */

.js [data-reveal]:not(.media) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal="fade"]:not(.media) { transform: none; }
.js [data-reveal].is-revealed:not(.media) { opacity: 1; transform: none; }

/* Titres découpés en lignes/mots */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-word > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 38ms + var(--d, 0) * 1ms);
}
.is-revealed .split-word > span,
[data-split].is-revealed .split-word > span { transform: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  --h-bg: rgb(245 244 240 / 0.92);
  --h-fg: var(--noir);
  --h-muted: var(--text-on-light-muted);
  --h-line: var(--line-light);
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--h-fg);
  background: var(--h-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.6s var(--ease-out),
    background-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out);
  view-transition-name: site-header;
}
.site-header[data-theme="dark"],
.site-header[data-theme="overlay"] {
  --h-bg: rgb(23 23 25 / 0.94);
  --h-fg: var(--white);
  --h-muted: var(--text-on-dark-muted);
  --h-line: var(--line-dark);
}
.site-header[data-theme="overlay"]:not(.is-scrolled):not(.is-open) { --h-bg: rgb(23 23 25 / 0.4); }
.site-header.is-hidden:not(.is-open) { transform: translateY(-100%); }

.site-header__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 34px;
  padding-inline: 48px;
  border-bottom: 1px solid var(--h-line);
  font-size: 12px;
  color: var(--h-muted);
  overflow: hidden;
  transition: height 0.45s var(--ease-out), opacity 0.3s, border-color 0.3s;
}
.site-header.is-scrolled .site-header__utility { height: 0; opacity: 0; border-color: transparent; }
.site-header__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--h-fg);
  font-weight: 500;
}
.site-header__mail .icon { width: 14px; height: 14px; color: var(--gold); }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding-inline: 48px;
  border-bottom: 1px solid var(--h-line);
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__medallion {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.8s var(--ease-out);
}
.logo:hover .logo__medallion { transform: rotate(-18deg) scale(1.04); }
.logo__wordmark { display: flex; flex-direction: column; gap: 2px; }
.logo__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.logo__tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}
.site-header[data-theme="light"] .logo__tagline { color: var(--gold-ink); }

.nav__list { display: flex; align-items: center; gap: 32px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--h-fg);
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__link:hover::after,
.nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"],
[data-nav-group][data-active] > .nav__link,
.nav__trigger[aria-expanded="true"] { color: var(--gold); font-weight: 700; }
.site-header[data-theme="light"] .nav__link[aria-current="page"],
.site-header[data-theme="light"] [data-nav-group][data-active] > .nav__link,
.site-header[data-theme="light"] .nav__trigger[aria-expanded="true"] { color: var(--gold-ink); }
.nav__chevron { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.nav__trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.site-header__actions { display: flex; align-items: center; gap: 24px; }
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.site-header__phone .icon { color: var(--gold); width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.site-header__phone:hover .icon { transform: rotate(-14deg); }
.site-header[data-theme="light"] .site-header__phone .icon { color: var(--gold-ink); }
.site-header__call,
.burger { display: none; }

.site-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.site-header__progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* Burger animé */
.burger__lines { position: relative; width: 18px; height: 12px; }
.burger__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.burger__lines span:first-child { top: 2px; }
.burger__lines span:last-child { top: 8px; }
.burger[aria-expanded="true"] .burger__lines span:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1280px) {
  .nav__list { gap: 24px; }
  .site-header__phone { display: none; }
}
@media (max-width: 1080px) {
  .site-header__utility,
  .nav,
  .site-header__actions > .btn { display: none; }
  .site-header__bar { height: 72px; padding-inline: 20px; }
  .site-header__call,
  .burger { display: inline-grid; }
  .site-header__actions { gap: 10px; }
  .site-header[data-theme="light"] .site-header__call { background: var(--cream-2); color: var(--noir); }
}

/* --------------------------------------------------------------------------
   Méga-menu
   -------------------------------------------------------------------------- */

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  color: var(--noir);
  --fg: var(--noir);
  --muted: var(--text-on-light-muted);
  --accent: var(--gold-ink);
  --line: var(--line-light);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-out);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.5);
}
.mega.is-open { clip-path: inset(0 0 -40px 0); }
.mega[hidden] { display: block; visibility: hidden; }
.mega.is-open[hidden] { visibility: visible; }

.mega__inner {
  display: grid;
  --mega-pad: 80px;
  grid-template-columns: 228px 1px minmax(0, 1fr) 210px 216px;
  gap: 44px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 48px var(--mega-pad);
}
.mega__inner::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  background: var(--line-light);
}
.mega__intro { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.mega__intro .link-arrow { white-space: nowrap; }
.mega__col { display: flex; flex-direction: column; gap: 8px; }
.mega__title { font-family: var(--font-heading); font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.mega__text { font-size: 14px; color: var(--text-on-light-muted); }
.mega__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  padding-bottom: 4px;
}
.mega__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 10px;
  border-radius: var(--radius);
  transition: background-color 0.35s var(--ease-out);
}
.mega__card img { width: 46px; height: 46px; border-radius: var(--radius); object-fit: cover; transition: transform 0.6s var(--ease-out); }
.mega__card > span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mega__card strong { font-family: var(--font-heading); font-size: 16px; font-weight: 600; }
.mega__card small { font-size: 13px; color: var(--text-on-light-muted); line-height: 1.4; }
.mega__card .icon { width: 16px; height: 16px; color: var(--gold-ink); transition: transform 0.4s var(--ease-out); }
.mega__card:hover,
.mega__card:focus-visible,
.mega__card[aria-current="page"] { background: var(--cream-2); }
.mega__card:hover img { transform: scale(1.08); }
.mega__card:hover .icon { transform: translateX(4px); }

.mega__links li + li a { border-top: 1px solid var(--line-light); }
.mega__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s, padding 0.4s var(--ease-out);
}
.mega__links .icon { width: 18px; height: 18px; color: var(--gold-ink); }
.mega__links a:hover { padding-left: 6px; color: var(--gold-ink); }

.mega__visual {
  position: relative;
  min-height: 272px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--noir);
}
.mega__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s, transform 1.2s var(--ease-out);
}
.mega__visual img.is-swapping { opacity: 0; transform: scale(1.06); }
.mega__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(23 23 25 / 0) 40%, rgb(23 23 25 / 0.9) 100%);
}
.mega__visual .badge { top: 14px; bottom: auto; left: 14px; }
.mega__visual figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}
.mega__kicker {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(80px, calc((100% - var(--maxw)) / 2 + 80px));
  background: var(--cream-2);
  font-size: 13px;
  color: var(--text-on-light-muted);
}
.mega__foot-actions { display: flex; gap: 28px; }
.mega__foot-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--noir);
  font-weight: 600;
}
.mega__foot-actions .icon { width: 16px; height: 16px; }
.mega__foot-actions a:first-child .icon { color: var(--gold-ink); }

/* Apparition échelonnée du contenu du méga-menu */
.mega .mega__intro,
.mega .mega__col,
.mega .mega__visual {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.mega.is-open .mega__intro,
.mega.is-open .mega__col,
.mega.is-open .mega__visual { opacity: 1; transform: none; }
.mega.is-open .mega__col { transition-delay: 0.08s; }
.mega.is-open .mega__col--narrow { transition-delay: 0.14s; }
.mega.is-open .mega__visual { transition-delay: 0.2s; }

.mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(23 23 25 / 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.mega-backdrop.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1080px) {
  .mega,
  .mega-backdrop { display: none !important; }
}
@media (max-width: 1280px) {
  .mega__inner { grid-template-columns: 210px 1px minmax(0, 1fr) 210px; padding-inline: 48px; }
  .mega__foot { padding-inline: 48px; }
  .mega__visual { display: none; }
}

/* --------------------------------------------------------------------------
   Menu mobile
   -------------------------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 12px 20px 32px;
  background: var(--noir);
  color: var(--white);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
  --fg: var(--white);
  --muted: var(--text-on-dark-muted);
  --line: var(--line-dark);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; }

.mobile-menu__list > li {
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__list > li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(2) { transition-delay: 0.17s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(4) { transition-delay: 0.27s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(6) { transition-delay: 0.37s; }

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
}
.mobile-menu__link[aria-current="page"] { color: var(--gold); }
.mobile-menu__toggle .icon { width: 20px; height: 20px; color: var(--text-on-dark-muted); transition: transform 0.4s var(--ease-out); }
.mobile-menu__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--gold); }

.mobile-menu__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.mobile-menu__panel > div { overflow: hidden; }
.mobile-menu__toggle[aria-expanded="true"] + .mobile-menu__panel { grid-template-rows: 1fr; }
.mobile-menu__panel > div > :last-child { margin-bottom: 22px; }

.mobile-menu__label {
  margin: 4px 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.mobile-menu__thumbs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.mobile-menu__thumbs a { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.mobile-menu__thumbs img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.mobile-menu__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.mobile-menu__chips a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.mobile-menu__chips .icon { width: 14px; height: 14px; color: var(--text-on-dark-muted); }
.mobile-menu__all { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 14px; font-weight: 600; }
.mobile-menu__all .icon { width: 16px; height: 16px; }

.mobile-menu__foot { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 15px; }
.mobile-menu__mail .icon { color: var(--gold); width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Fil d’Ariane
   -------------------------------------------------------------------------- */

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}
.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb [aria-current="page"] { color: var(--fg); font-weight: 500; }

/* --------------------------------------------------------------------------
   Hero de page
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(100svh, 900px);
  overflow: hidden;
  background: var(--noir);
  color: var(--white);
  --fg: var(--white);
  --muted: var(--cream-2);
  --accent: var(--gold);
  --line: var(--line-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08) translate3d(0, var(--parallax, 0px), 0);
  animation: hero-zoom 2.4s var(--ease-out) both;
}
@keyframes hero-zoom { from { transform: scale(1.22); filter: brightness(0.6); } }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(23 23 25 / 0.95) 0%, rgb(23 23 25 / 0.6) 55%, rgb(23 23 25 / 0.2) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero__content .lead { color: var(--cream-2); max-width: 620px; }
.hero__strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px 56px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  background: rgb(23 23 25 / 0.7);
  backdrop-filter: blur(8px);
}
.hero__strip .badge { position: static; margin-left: auto; }

.pole {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.pole__num { font-family: var(--font-heading); font-size: 14px; font-weight: 800; color: var(--gold); }
.pole__name { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.pole__detail { display: block; font-size: 14px; color: var(--text-on-dark-muted); }

/* Hero clair (pages intérieures) */
.page-hero {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: var(--section-y);
}
.page-hero .breadcrumb { margin-bottom: clamp(32px, 4vw, 56px); }

/* --------------------------------------------------------------------------
   Cartes & listes
   -------------------------------------------------------------------------- */

.card { display: flex; flex-direction: column; gap: 16px; }
.card-link { display: flex; flex-direction: column; gap: 16px; }
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.card__top .icon { width: 16px; height: 16px; color: var(--fg); transition: transform 0.45s var(--ease-out); }
.card-link:hover .card__top .icon { transform: translate(3px, -3px); }
.card__title { transition: color 0.3s; }
.card-link:hover .card__title { color: var(--accent); }

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--fg);
}
.check-list .icon { width: 16px; height: 16px; color: var(--accent); }

/* Étapes numérotées */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 40px 32px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.step__num {
  font-family: var(--font-heading);
  font-size: clamp(36px, 3vw, 44px);
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step__line { flex: 1; height: 1px; background: var(--line); transform-origin: left; }
.js .step[data-reveal] .step__line { transform: scaleX(0); transition: transform 1.2s var(--ease-out) 0.3s; }
.js .step.is-revealed .step__line { transform: none; }
@media (max-width: 1080px) { .steps { --cols: 2; } }
@media (max-width: 600px) { .steps { --cols: 1; } }

/* Engagements */
.commitment {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.commitment .icon { width: 22px; height: 22px; color: var(--accent); margin-bottom: 8px; transition: transform 0.6s var(--ease-out); }
.commitment:hover .icon { transform: translateY(-3px) rotate(-8deg); }

/* Liste de services (icône ronde + titre + texte) */
.service-list > li {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.service-list > li,
.service-list__row { display: flex; gap: 20px; align-items: flex-start; }
.service-list__row > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.service-list .h4 { font-weight: 700; transition: color 0.3s; }
a.service-list__row:hover .h4 { color: var(--accent); }
.service-list > li:last-child { border-bottom: 1px solid var(--line); }
.service-list__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--anthracite);
  color: var(--gold);
  transition: background-color 0.4s, color 0.4s;
}
.service-list > li:hover .service-list__icon { background: var(--gold); color: var(--noir); }
.section:not(.section--dark):not(.section--anthracite) .service-list__icon { background: var(--cream-2); color: var(--gold-ink); }

/* --------------------------------------------------------------------------
   FAQ (accordéon)
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  text-align: left;
  color: var(--fg);
}
.faq__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s, color 0.4s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__q:hover .faq__icon { border-color: var(--fg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 26px; max-width: 72ch; color: var(--muted); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--fg); }
.field__label span { color: var(--muted); font-weight: 400; }
.field__input {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--noir);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
textarea.field__input { min-height: 140px; resize: vertical; }
.field__input::placeholder { color: #9a9ca0; }
.field__input:hover { border-color: rgb(23 23 25 / 0.3); }
.field__input:focus { outline: none; border-color: var(--noir); box-shadow: 0 0 0 3px rgb(199 164 90 / 0.25); }
.field.is-invalid .field__input { border-color: var(--error); box-shadow: 0 0 0 3px rgb(179 64 46 / 0.12); }
.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--error);
}
.field__error .icon { width: 14px; height: 14px; }
.field.is-invalid .field__error { display: flex; animation: shake 0.4s var(--ease-out); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}
.choice span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: box-shadow 0.3s, background-color 0.3s;
}
.choice span:hover { border-color: var(--noir); }
.choice input:checked + span { background: var(--noir); color: var(--white); border-color: var(--noir); }
.choice input:checked + span::before { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px var(--noir); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice span:active { transform: scale(0.97); }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--mineral);
  border-radius: 3px;
  color: var(--white);
  transition: background-color 0.25s, border-color 0.25s;
}
.check__box .icon { width: 12px; height: 12px; stroke-width: 3; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.3s var(--ease-out); }
.check input:checked + .check__box { background: var(--noir); border-color: var(--noir); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme-dark .check input:checked + .check__box,
.cookies .check input:checked + .check__box { background: var(--gold); border-color: var(--gold); color: var(--noir); }
.check.is-invalid .check__box { border-color: var(--error); }
.check a { text-decoration: underline; text-underline-offset: 2px; }

.form__success {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgb(63 122 84 / 0.1);
  color: var(--success);
  font-size: 15px;
}
.form__success .icon { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.cta-final .container { display: flex; flex-direction: column; gap: 32px; }
.cta-final__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6.2vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
}
.cta-final__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-final__bottom .lead { color: var(--text-on-dark-muted); max-width: 560px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 96px var(--gutter) 32px;
  border-top: 1px solid var(--line-dark);
  background: var(--noir);
  color: var(--white);
  --fg: var(--white);
  --muted: var(--text-on-dark-muted);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 48px 40px;
  max-width: calc(var(--maxw) - 2 * 80px);
  width: 100%;
  margin-inline: auto;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 360px; }
.site-footer__brand p { font-size: 14px; color: var(--text-on-dark-muted); }
.site-footer__title {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 14px; position: relative; transition: color 0.3s; }
.site-footer__col ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.site-footer__col ul a:hover { color: var(--gold); }
.site-footer__col ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-footer__phone { display: block; font-family: var(--font-heading); font-size: 20px !important; font-weight: 600; margin-bottom: 10px; }
.site-footer__mail { display: block; margin-bottom: 12px; }
.site-footer__zone { font-size: 12px; color: var(--text-on-dark-muted); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  max-width: calc(var(--maxw) - 2 * 80px);
  width: 100%;
  margin-inline: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: var(--text-on-dark-muted);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__bottom a,
.site-footer__bottom button { font-size: 12px; transition: color 0.3s; }
.site-footer__bottom a:hover,
.site-footer__bottom button:hover { color: var(--white); }

@media (max-width: 1080px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer { padding-bottom: 104px; }
  .site-footer__top { grid-template-columns: 1fr; }
}

/* Barre d’action mobile */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgb(23 23 25 / 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out);
}
.mobile-bar .btn { padding: 14px 18px; }
.mobile-bar.is-visible { transform: none; }
@media (max-width: 720px) { .mobile-bar { display: grid; } }

/* --------------------------------------------------------------------------
   Bandeau cookies
   -------------------------------------------------------------------------- */

.cookies {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  max-width: 1080px;
  margin-inline: auto;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--noir);
  color: var(--white);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5);
  --fg: var(--white);
  --muted: var(--text-on-dark-muted);
  --line: var(--line-dark);
  transform: translateY(calc(100% + 40px));
  transition: transform 0.7s var(--ease-out);
}
.cookies[hidden] { display: none; }
.cookies.is-visible { transform: none; }
.cookies__text { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-on-dark-muted); }
.cookies__title { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--white); }
.cookies__prefs { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cookies__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
@media (max-width: 900px) {
  .cookies { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; padding: 20px; }
  .cookies__actions .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Curseur contextuel (« Voir ») sur les visuels cliquables
   -------------------------------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--noir);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform 0.45s var(--ease-out);
}
.cursor.is-active { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   Transitions de page (View Transitions entre documents)
   -------------------------------------------------------------------------- */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 0.45s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 0.75s var(--ease-out) both; }
::view-transition-group(site-header) { animation-duration: 0.45s; }

@keyframes vt-out {
  to { opacity: 0; transform: translateY(-24px); filter: blur(4px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(40px); clip-path: inset(8% 0 0 0); }
}

/* --------------------------------------------------------------------------
   Mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal]:not(.media) { opacity: 1; transform: none; }
  .js .media[data-reveal]::after { display: none; }
  .split-word > span { transform: none; }
  @view-transition { navigation: none; }
}
