/* ==========================================================================
   ARCHICRAFT — feuille de style
   Concept : l'or du logo sur l'encre de la planche. Fond encre, filets dorés,
   cartouche sur chaque page, profondeur 3D (maquette, inclinaison des cartes).
   ========================================================================== */

/* Thème clair par défaut ; le bouton de l'en-tête pose data-theme="dark" sur <html>.
   Les noms restent ceux du thème encre : --ink = fond, --ivory = titres. */
:root {
  --ink: #FFFFFF;          /* fond */
  --ink-2: #F8F5EE;        /* surfaces */
  --ink-3: #FFFFFF;        /* cartes */
  --ivory: #16140F;        /* titres */
  --ivory-2: #46413A;      /* texte courant */
  --stone: #7A7366;        /* texte secondaire */
  --gold: #94702A;         /* or lisible sur blanc */
  --gold-hi: #7A5A1C;
  --gold-lo: #C9A24A;
  --gold-soft: rgba(165, 127, 49, .10);
  --line: rgba(148, 112, 42, .20);   /* filets */
  --line-2: rgba(148, 112, 42, .45);
  --gold-grad: linear-gradient(115deg, #8A6524 0%, #C9A24A 22%, #F3DE97 45%, #C9A24A 62%, #9C7530 80%, #E2C477 100%);
  --gold-ink: linear-gradient(115deg, #6E5018 0%, #9C7529 24%, #C9A24A 45%, #9C7529 64%, #6E5018 82%, #A88232 100%);
  --on-gold: #17130A;
  --header-bg: rgba(255, 255, 255, .84);
  --glass: rgba(255, 255, 255, .74);
  --glare: rgba(201, 162, 74, .14);
  --welcome-bg: linear-gradient(135deg, #FAF3E3 0%, #FFFFFF 65%);
  --band-bg: radial-gradient(800px 300px at 15% 0%, rgba(201, 162, 74, .16), transparent 70%), linear-gradient(135deg, #F8F0DE, #FFFFFF);
  --map-filter: grayscale(.5) sepia(.25) contrast(1.02);
  --err: #B3412C;
  --ok: #2E6B3C;
  --stage-shadow: 0 40px 80px -44px rgba(90, 66, 20, .45), inset 0 0 0 1px rgba(148, 112, 42, .08);
  --hud-shadow: none;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

/* Thème sombre (et pied de page toujours sombre) */
:root[data-theme="dark"], .site-footer {
  --ink: #0B0B0C;
  --ink-2: #111113;
  --ink-3: #18181B;
  --ivory: #EFE8D8;
  --ivory-2: #CDC5B3;
  --stone: #958E80;
  --gold: #C9A24A;
  --gold-hi: #F0D88E;
  --gold-lo: #8A6524;
  --gold-soft: rgba(201, 162, 74, .12);
  --line: rgba(201, 162, 74, .18);
  --line-2: rgba(201, 162, 74, .42);
  --gold-ink: var(--gold-grad);
  --header-bg: rgba(11, 11, 12, .78);
  --glass: rgba(11, 11, 12, .65);
  --glare: rgba(240, 216, 142, .16);
  --welcome-bg: linear-gradient(135deg, #15120c 0%, #0B0B0C 65%);
  --band-bg: radial-gradient(800px 300px at 15% 0%, rgba(201, 162, 74, .16), transparent 70%), linear-gradient(135deg, #16120b, #0b0b0c);
  --map-filter: grayscale(1) invert(.92) sepia(.5) saturate(1.5) hue-rotate(-8deg) brightness(.85) contrast(1.05);
  --err: #E88B78;
  --ok: #9ED3A8;
  --stage-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(0, 0, 0, .4);
  --hud-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* Logos : variante à tours noires sur fond clair, tours ivoire sur fond sombre */
:root:not([data-theme="dark"]) .logo-on-dark, :root[data-theme="dark"] .logo-on-light { display: none; }

/* Passage d'un thème à l'autre : cercle qui s'ouvre depuis le bouton */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-in .7s var(--ease); }
@keyframes theme-in { from { clip-path: circle(0 at var(--tx, 90%) var(--ty, 40px)); } to { clip-path: circle(150vmax at var(--tx, 90%) var(--ty, 40px)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 85% -8%, rgba(201, 162, 74, .09), transparent 60%),
    var(--ink);
  color: var(--ivory-2);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px;
}
.skip:focus { left: 8px; }

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

/* Texte doré (dégradé brossé, comme le logo) */
.gold, .sheet--page h1, .step-num, .values li, .hl .gold-w {
  background: var(--gold-ink);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .gold, .sheet--page h1, .hl .gold-w { animation: shimmer 7s ease-in-out infinite alternate; }
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Titres animés : les mots montent un à un, flou qui se dissipe, filet doré qui se trace */
.hl .w { display: inline-block; vertical-align: top; overflow: hidden; padding: .12em .03em .14em; margin: -.12em -.03em -.14em; }
.hl .wi { display: inline-block; }
.sheet--page h1.hl { background: none; animation: none; color: var(--ivory); }
.gold-phrase { background: linear-gradient(var(--gold), var(--gold)) 0 96% / 100% 2px no-repeat; }
.js-motion .hl .wi {
  opacity: 0; filter: blur(8px); transform: translateY(105%) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease), opacity .9s ease, filter 1s ease;
  transition-delay: calc(var(--hd, 0s) + var(--i, 0) * 75ms);
}
.js-motion .hl.in .wi { opacity: 1; filter: blur(0); transform: none; }
.js-motion .gold-phrase { background-size: 0 2px; transition: background-size 1.2s var(--ease) var(--ud, .9s); }
.js-motion .hl.in .gold-phrase { background-size: 100% 2px; }
.js-motion .hl::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .15s; }
.js-motion .hl.in::before { transform: none; }
.js-motion .eyebrow { opacity: 0; letter-spacing: .7em; transition: opacity 1s ease, letter-spacing 1.4s var(--ease); }
.js-motion .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
.js-motion .eyebrow.in { opacity: 1; letter-spacing: .3em; }
.js-motion .eyebrow.in::before { transform: none; }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
h1, h2, h3 { font-weight: 300; margin: 0; letter-spacing: -0.01em; color: var(--ivory); }
h1 {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: .98; font-stretch: 125%; font-weight: 250; letter-spacing: -0.03em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.05; font-stretch: 118%; letter-spacing: -0.025em; }
h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 600; font-stretch: 100%; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.35rem); line-height: 1.55; max-width: 46ch; color: var(--ivory-2); }
.muted { color: var(--stone); }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 26px;
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; color: var(--gold);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold-grad); flex: none; }

/* Filet doré au-dessus des grands titres de section */
.section-head h2::before, .split > h2::before, .cta-band h2::before {
  content: ""; display: block; width: 48px; height: 2px; margin-bottom: 24px; background: var(--gold-grad);
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* Fond flouté sur un pseudo-élément : un backdrop-filter sur l'en-tête lui-même
   deviendrait le bloc conteneur du menu mobile en position fixe. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.menu-open .site-header::before { background: var(--ink); }
.site-header::after { /* progression de lecture */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px;
  width: calc(var(--progress, 0) * 100%); background: var(--gold-grad);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 42px; width: auto; }
.brand-name { display: grid; line-height: 1.05; }
.brand-word { font-stretch: 125%; font-weight: 700; font-size: 1.08rem; letter-spacing: .06em; color: var(--ivory); }
.brand-word b {
  font-weight: 700; background: var(--gold-ink); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand small { font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--stone); font-weight: 500; margin-top: 3px; }
/* Nom arabe, comme sur le logo : pas d'espacement (les lettres doivent rester liées), justifié sous ARCHICRAFT */
.brand small[lang="ar"] {
  font-family: "Noto Kufi Arabic", var(--f); font-size: .68rem; line-height: 1.5; letter-spacing: 0; text-transform: none;
  color: var(--gold); margin-top: 1px; text-align: justify; text-align-last: justify;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-size: .96rem; padding: 6px 0; position: relative; color: var(--ivory-2); transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--gold-hi); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold-hi); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; position: relative;
  background: var(--gold-grad); background-size: 220% 100%; background-position: 0% 50%;
  color: var(--on-gold); border: 0;
  font: 600 .96rem/1 var(--f); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 28px -14px rgba(201, 162, 74, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: background-position .7s var(--ease), transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(201, 162, 74, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--ghost { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--gold-soft); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.btn--light { /* même rendu doré sur fond sombre */ }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-2);
  width: 48px; height: 48px; cursor: pointer; padding: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: var(--gold-hi); margin: 0 auto; position: relative;
  transition: transform .25s var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Outils de l'en-tête : bouton clair / sombre */
.header-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.theme-toggle {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--gold);
  transition: border-color .2s, color .2s, background-color .2s;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-hi); background: var(--gold-soft); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.theme-toggle .sun, .theme-toggle .moon { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .theme-toggle .sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .moon { opacity: 0; transform: rotate(90deg) scale(.4); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 36px; }
  .header-tools { gap: 8px; }
  .theme-toggle, .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  body.menu-open { overflow: hidden; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--ink); counter-reset: nav;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav > * { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .55s var(--ease); }
  .menu-open .nav > * { opacity: 1; transform: none; }
  .nav > :nth-child(2) { transition-delay: .04s; } .nav > :nth-child(3) { transition-delay: .08s; }
  .nav > :nth-child(4) { transition-delay: .12s; } .nav > :nth-child(5) { transition-delay: .16s; }
  .nav > :nth-child(6) { transition-delay: .2s; } .nav > :nth-child(7) { transition-delay: .24s; }
  .nav > a:not(.btn) {
    counter-increment: nav; display: flex; align-items: baseline; gap: 16px;
    font-size: 1.85rem; font-stretch: 120%; font-weight: 300; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ivory);
  }
  .nav > a:not(.btn)::before { content: counter(nav, decimal-leading-zero); font-size: .72rem; font-weight: 500; font-stretch: 100%; letter-spacing: .14em; color: var(--gold); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 28px; font-size: 1rem; font-stretch: 100%; font-weight: 600; width: 100%; border: none; color: var(--on-gold); }
  .nav-contact { display: grid; gap: 10px; margin: 28px 0 0; font-size: .95rem; }
  .nav-contact a { color: var(--ivory-2); text-decoration: none; }
}
@media (min-width: 901px) { .nav .nav-cta-mobile, .nav-contact { display: none; } }
@media (max-width: 420px) { .brand small:not([lang="ar"]) { display: none; } .brand img { height: 36px; } }

/* --------------------------------------------------------------------------
   Sol en perspective (grille dorée qui file vers l'horizon)
   -------------------------------------------------------------------------- */
.hero, .sheet { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero::before, .sheet::before {
  content: ""; position: absolute; z-index: -1; left: -50%; right: -50%; bottom: -2%; height: 62%;
  background-image:
    linear-gradient(rgba(201, 162, 74, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 74, .22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}
.hero::after, .sheet::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(700px 420px at 75% 40%, rgba(201, 162, 74, .13), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before, .sheet::before { animation: floor 5s linear infinite; }
}
@keyframes floor { to { background-position: 0 64px; } }

/* --------------------------------------------------------------------------
   Accueil : texte + maquette 3D
   -------------------------------------------------------------------------- */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
  padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px);
  min-height: min(calc(100svh - var(--header-h)), 900px);
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.2rem); margin-bottom: .45em; }
.hero .lead { margin-bottom: 34px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stage { margin: 0; position: relative; }
.stage-frame {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(closest-side at 50% 55%, rgba(201, 162, 74, .10), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .06)),
    var(--ink);
  box-shadow: var(--stage-shadow);
}
/* repères d'angle de la planche */
.stage-frame::before, .stage-frame::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none; width: 26px; height: 26px;
}
.stage-frame::before { top: 8px; left: 8px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.stage-frame::after { right: 8px; bottom: 8px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }

.stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .8s ease; cursor: grab; touch-action: pan-y;
}
.stage.is-3d canvas { opacity: 1; }
.stage[data-mode="plan"] canvas { cursor: pointer; }
.stage.is-dragging canvas { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 6%; }
.stage.is-3d .stage-fallback { display: none; }
.stage-photo {
  /* centrée et sans zoom : la caméra 3D est calée sur ce cadrage exact (voir PHOTO dans hero3d.js) */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  opacity: var(--render, 0); pointer-events: none;
}
.stage:not(.is-3d) .stage-photo { display: none; }
.stage-hud {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding: 16px 44px 40px; display: flex; justify-content: space-between; gap: 12px;
  background: linear-gradient(to bottom, rgba(11, 11, 12, calc(var(--render, 0) * .8)), transparent);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); pointer-events: none;
  text-shadow: var(--hud-shadow);
}
.stage:not(.is-3d) .stage-hud { display: none; }
.stage-link {
  position: absolute; z-index: 4; left: 20px; bottom: 20px;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease);
}
.stage[data-mode="rendu"] .stage-link { opacity: 1; transform: none; pointer-events: auto; }

.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; min-height: 50px; }
.stage-modes { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); background: var(--glass); }
.stage-modes button {
  display: flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 16px;
  background: transparent; border: 0; color: var(--ivory-2); font: 500 .86rem var(--f); cursor: pointer; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.stage-modes button span { color: var(--gold); font-size: .68rem; letter-spacing: .1em; }
.stage-modes button:hover { color: var(--gold-hi); }
.stage-modes button[aria-pressed="true"] { background: var(--gold-grad); background-size: 220% 100%; color: var(--on-gold); }
.stage-modes button[aria-pressed="true"] span { color: var(--on-gold); }
.stage-hint { margin: 0; font-size: .78rem; color: var(--stone); }
.stage:not(.is-3d) .stage-bar { display: none; }
.stage:not([data-mode="3d"]) .stage-hint { visibility: hidden; }

/* Dessin SVG de repli (sans WebGL) */
.drawing { width: 100%; height: auto; overflow: visible; }
.drawing .ln { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: square; }
.drawing .ln-thin { fill: none; stroke: var(--gold); stroke-width: .7; }
.drawing .ln-hatch { fill: none; stroke: var(--gold-lo); stroke-width: .5; }
.drawing .ln-ocre { fill: none; stroke: var(--gold-hi); stroke-width: 1; }
.drawing .dim { fill: none; stroke: var(--stone); stroke-width: .6; }
.drawing text { font-family: var(--f); font-size: 11px; fill: var(--stone); }
.drawing .glass { fill: var(--gold); opacity: .12; }
@media (prefers-reduced-motion: no-preference) {
  .drawing .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: trace 2.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
  .drawing .fade { opacity: 0; animation: appear .8s ease forwards; animation-delay: var(--d, 1.8s); }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .stage-frame { aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) {
  .stage-bar { flex-direction: column; align-items: stretch; }
  .stage-modes button { flex: 1; justify-content: center; padding: 0 8px; font-size: .8rem; }
  .stage-modes button span { display: none; }
  .stage-hint { text-align: center; }
}

/* Cartouche : bloc-titre de planche, sur toutes les pages */
.cartouche {
  display: grid; grid-template-columns: repeat(4, auto); width: fit-content; max-width: 100%;
  margin: 28px 0 0; border: 1px solid var(--line-2); font-size: .8rem; line-height: 1.3;
  background: var(--glass); backdrop-filter: blur(6px);
}
.cartouche div { padding: 9px 16px; border-right: 1px solid var(--line); }
.cartouche div:last-child { border-right: 0; }
.cartouche dt { color: var(--gold); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; }
.cartouche dd { margin: 2px 0 0; font-weight: 600; white-space: nowrap; color: var(--ivory); }
.cartouche a { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.cartouche a:hover { border-color: var(--gold-hi); }
@media (max-width: 560px) {
  .cartouche { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .cartouche div:nth-child(2) { border-right: 0; }
  .cartouche div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Planche des pages intérieures + cube doré en 3D */
.sheet .wrap { position: relative; padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.sheet--page h1 { max-width: 14ch; padding-bottom: .08em; }
.sheet--page .lead { max-width: 52ch; margin-top: 20px; }
.cube3d {
  position: absolute; right: var(--gutter); top: 50%; width: 220px; height: 220px; margin-top: -110px;
  perspective: 900px; pointer-events: none;
}
.cube3d .cube { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg); }
.cube3d .cube--in { inset: 60px; }
.cube3d i { position: absolute; inset: 0; border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(201, 162, 74, .08), transparent 60%); }
.cube3d .cube--in i { border-color: var(--gold); background: rgba(201, 162, 74, .10); }
.cube3d i:nth-child(1) { transform: translateZ(110px); }
.cube3d i:nth-child(2) { transform: rotateY(180deg) translateZ(110px); }
.cube3d i:nth-child(3) { transform: rotateY(90deg) translateZ(110px); }
.cube3d i:nth-child(4) { transform: rotateY(-90deg) translateZ(110px); }
.cube3d i:nth-child(5) { transform: rotateX(90deg) translateZ(110px); }
.cube3d i:nth-child(6) { transform: rotateX(-90deg) translateZ(110px); }
.cube3d .cube--in i:nth-child(1) { transform: translateZ(50px); }
.cube3d .cube--in i:nth-child(2) { transform: rotateY(180deg) translateZ(50px); }
.cube3d .cube--in i:nth-child(3) { transform: rotateY(90deg) translateZ(50px); }
.cube3d .cube--in i:nth-child(4) { transform: rotateY(-90deg) translateZ(50px); }
.cube3d .cube--in i:nth-child(5) { transform: rotateX(90deg) translateZ(50px); }
.cube3d .cube--in i:nth-child(6) { transform: rotateX(-90deg) translateZ(50px); }
@media (prefers-reduced-motion: no-preference) {
  .cube3d .cube { animation: spin 22s linear infinite; }
  .cube3d .cube--in { animation: spin-in 14s linear infinite; }
}
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes spin-in { from { transform: rotateX(30deg) rotateY(360deg); } to { transform: rotateX(30deg) rotateY(0); } }
@media (max-width: 900px) { .cube3d { display: none; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 { max-width: 16ch; }

/* Inclinaison 3D + reflet doré qui suit le pointeur */
[data-tilt] {
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
}
[data-tilt].is-tilting { transition: transform .08s linear; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glare), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-tilt]:hover::after { opacity: 1; }

/* Apparition au défilement */
.js-motion .reveal { opacity: 0; translate: 0 36px; transition: opacity 1s var(--ease), translate 1s var(--ease); transition-delay: var(--rd, 0s); }
.js-motion .reveal.in { opacity: 1; translate: 0 0; }

/* Deux métiers : Conception / Élaboration */
.trades { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.trade {
  padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
}
.trade:hover { border-color: var(--line-2); }
.trade-icon { width: 56px; height: 56px; margin-bottom: 28px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; }
.trade-icon .acc { stroke: var(--gold-hi); stroke-width: 1.6; }
.trade h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; font-stretch: 122%; letter-spacing: -0.02em; margin-bottom: 20px; }
.trade p { color: var(--ivory-2); }
.trade .link { margin-top: auto; padding-top: 16px; }
.link {
  font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--gold-hi);
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px; width: fit-content; transition: border-color .2s, gap .25s var(--ease);
}
.link::after { content: "→"; }
.link:hover { border-color: var(--gold-hi); gap: 14px; }
@media (max-width: 760px) { .trades { grid-template-columns: 1fr; } }

/* Mot d'accueil */
.welcome { background: var(--welcome-bg); border-block: 1px solid var(--line); }
.welcome .wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.welcome .mark { margin: 0; }
.welcome .mark img { width: 100%; max-width: 340px; height: auto; filter: drop-shadow(0 20px 40px rgba(201, 162, 74, .18)); }
.welcome blockquote {
  margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.25; font-weight: 300; font-stretch: 108%;
  letter-spacing: -0.01em; max-width: 30ch; color: var(--ivory); position: relative;
}
.welcome blockquote::before {
  content: "“"; display: block; font-size: 5rem; line-height: .6; margin-bottom: 8px;
  background: var(--gold-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.welcome p { color: var(--ivory-2); }
.welcome .btn { margin-top: 32px; }
@media (max-width: 760px) {
  .welcome .wrap { grid-template-columns: 1fr; }
  .welcome .mark img { max-width: 240px; }
  /* Sur smartphone, le mot d'accueil est centré sous le logo */
  .welcome .wrap > div { text-align: center; }
  .welcome blockquote, .welcome .wrap > div > p { margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   Références
   -------------------------------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.project { grid-column: span 4; text-decoration: none; display: block; }
.projects--feature .project:first-child { grid-column: span 7; grid-row: span 2; }
.projects--feature .project:not(:first-child) { grid-column: span 5; }
.projects--feature .project:nth-child(n+4) { grid-column: span 6; }
.projects--feature .project:nth-child(n+4) .project-media { aspect-ratio: 16 / 9; }
.project-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--ink-3); border: 1px solid var(--line);
  transition: border-color .3s;
}
/* repères d'angle dorés */
.project-media::before, .gallery button::before {
  content: ""; position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--gold-hi), var(--gold-hi)) top left / 24px 1px no-repeat,
    linear-gradient(var(--gold-hi), var(--gold-hi)) top left / 1px 24px no-repeat,
    linear-gradient(var(--gold-hi), var(--gold-hi)) top right / 24px 1px no-repeat,
    linear-gradient(var(--gold-hi), var(--gold-hi)) top right / 1px 24px no-repeat,
    linear-gradient(var(--gold-hi), var(--gold-hi)) bottom left / 24px 1px no-repeat,
    linear-gradient(var(--gold-hi), var(--gold-hi)) bottom left / 1px 24px no-repeat,
    linear-gradient(var(--gold-hi), var(--gold-hi)) bottom right / 24px 1px no-repeat,
    linear-gradient(var(--gold-hi), var(--gold-hi)) bottom right / 1px 24px no-repeat;
  opacity: 0; transform: scale(1.04); transition: opacity .4s, transform .5s var(--ease);
}
.project:hover .project-media::before, .gallery button:hover::before { opacity: 1; transform: none; }
.project-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 11, 12, .55), transparent 45%);
}
.projects--feature .project:first-child .project-media { aspect-ratio: auto; height: calc(100% - 64px); min-height: 360px; }
.project-media img, .gallery img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.06) contrast(1.05) brightness(.9);
  transition: transform .8s var(--ease), filter .6s;
}
.project:hover .project-media img { transform: scale(1.05); filter: saturate(1.1) contrast(1.05) brightness(1); }
.project:hover .project-media { border-color: var(--line-2); }
.project-media img[src*="bureaux-1"] { object-position: 50% 28%; }
.project-media img[src*="villa-1"] { object-position: 50% 55%; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.project-meta h3 { font-size: 1.2rem; transition: color .2s; }
.project-meta span { color: var(--gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.project:hover h3 { color: var(--gold-hi); }
@media (max-width: 900px) {
  .project, .projects--feature .project:first-child, .projects--feature .project:not(:first-child) { grid-column: span 6; grid-row: auto; }
  .projects--feature .project:first-child .project-media { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 600px) {
  .project, .projects--feature .project:first-child, .projects--feature .project:not(:first-child) { grid-column: 1 / -1; }
}
.project[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); background: transparent;
  font: 500 .95rem var(--f); color: var(--ivory-2); cursor: pointer; transition: color .2s, border-color .2s;
}
.filter:hover { border-color: var(--gold); color: var(--gold-hi); }
.filter[aria-pressed="true"] { background: var(--gold-grad); background-size: 220% 100%; color: var(--on-gold); border-color: transparent; }
.count { color: var(--stone); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Valeurs
   -------------------------------------------------------------------------- */
.values { border-block: 1px solid var(--line); background: var(--ink-2); }
.values ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.values li {
  padding: clamp(22px, 3vw, 40px) 12px; text-align: center; position: relative;
  font-size: clamp(1rem, 1.7vw, 1.45rem); font-stretch: 125%; font-weight: 300; letter-spacing: -0.01em;
}
.values li + li { border-left: 1px solid var(--line); }
.values li + li::before {
  content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  background: var(--gold); transform: rotate(45deg);
}
@media (max-width: 760px) {
  .values ul { grid-template-columns: 1fr 1fr; }
  .values li { border-bottom: 1px solid var(--line); }
  .values li:nth-child(odd) { border-left: 0; }
  .values li:nth-child(odd)::before { display: none; }
  .values li:last-child { grid-column: 1 / -1; border-left: 0; border-bottom: 0; }
  .values li:last-child::before { display: none; }
}

/* --------------------------------------------------------------------------
   Processus (Conception)
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 120px 1fr 1.3fr; gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-2);
}
.step:last-child { border-bottom: 1px solid var(--line-2); }
.step-num { font-size: clamp(2.6rem, 5vw, 4.4rem); font-stretch: 125%; font-weight: 200; line-height: .9; }
.step h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; font-stretch: 110%; }
.step h3 small { display: block; font-size: .78rem; font-weight: 500; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-stretch: 100%; margin-top: 10px; }
.step ul { margin: 0; padding: 0; list-style: none; }
.step li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--line); }
.step li:last-child { border-bottom: 0; }
.step li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
@media (max-width: 820px) { .step { grid-template-columns: 1fr; gap: 12px; } }

/* Chaîne complète du projet */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-2); padding: 0; margin: 0; }
.chain li { list-style: none; padding: 20px 18px 24px; border-right: 1px solid var(--line); position: relative; }
.chain li:last-child { border-right: 0; }
.chain b { display: block; font-stretch: 115%; font-weight: 500; font-size: 1.05rem; margin-bottom: 4px; color: var(--ivory); }
.chain span { font-size: .88rem; color: var(--stone); }
.chain .is-here { background: var(--gold-grad); background-size: 220% 100%; }
.chain .is-here b { color: var(--on-gold); }
.chain .is-here span { color: #3b2d10; }
@media (max-width: 820px) {
  .chain { grid-template-columns: 1fr; }
  .chain li { border-right: 0; border-bottom: 1px solid var(--line); }
  .chain li:last-child { border-bottom: 0; }
}

/* Piliers (Élaboration) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.pillar { padding: 34px; background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); }
.pillar h3 { margin-bottom: 14px; font-stretch: 112%; font-weight: 500; }
.pillar h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--gold-grad); margin-bottom: 18px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Bandeau devis */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--band-bg);
  border-block: 1px solid var(--line-2);
}
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: clamp(56px, 7vw, 96px); }
.cta-band h2 { max-width: 18ch; }
.cta-band .muted { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Page projet
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.gallery button {
  position: relative; padding: 0; border: 1px solid var(--line); cursor: zoom-in; display: block; width: 100%;
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); transition: border-color .3s;
}
.gallery button:hover { border-color: var(--line-2); }
.gallery button:hover img { transform: scale(1.04); filter: saturate(1.1) contrast(1.05) brightness(1); }
.gallery button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery button:first-child img { object-position: 50% 62%; }
/* Deux vues paysage : côte à côte, même format */
.gallery--pair button:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
.gallery--pair button:first-child img { object-position: 50% 50%; }
/* Deux vues dont une verticale (Plateaux bureaux) : côte à côte, même hauteur */
.gallery--duo { grid-template-columns: .62fr 1fr; }
.gallery--duo button, .gallery--duo button:first-child { grid-column: auto; aspect-ratio: auto; height: clamp(420px, 56vw, 780px); }
.gallery--duo button:first-child img { object-position: 50% 30%; }
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery button:first-child { aspect-ratio: 4 / 3; }
  .gallery--duo button, .gallery--duo button:first-child { height: auto; aspect-ratio: 4 / 3; }
  .gallery--duo button:first-child { aspect-ratio: 2 / 3; }
}

.project-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.project-nav a { padding: 32px 0; text-decoration: none; }
.project-nav a + a { text-align: right; border-left: 1px solid var(--line); }
.project-nav small { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.project-nav b { font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 300; font-stretch: 118%; color: var(--ivory); transition: color .2s; }
.project-nav a:hover b { color: var(--gold-hi); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 6, 7, .96);
  display: grid; place-items: center; padding: 64px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px #000; }
.lightbox button {
  position: absolute; background: rgba(11, 11, 12, .6); color: var(--gold-hi); border: 1px solid var(--line-2);
  width: 52px; height: 52px; font-size: 1.4rem; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.lightbox button:hover { border-color: var(--gold); background: var(--gold-soft); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; color: var(--gold); font-size: .85rem; letter-spacing: .14em; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) img { animation: lb-in .4s var(--ease); }
}
@keyframes lb-in { from { opacity: 0; transform: perspective(900px) rotateX(8deg) scale(.96); } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.coords { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line-2); }
.coords li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.coords dt, .coords .k { color: var(--gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding-top: .3em; }
.coords a { text-decoration: none; font-weight: 600; color: var(--ivory); transition: color .2s; }
.coords a:hover { color: var(--gold-hi); }
.map { border: 1px solid var(--line-2); aspect-ratio: 4 / 3; width: 100%; overflow: hidden; }
.map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: var(--map-filter);
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .76rem; font-weight: 500; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  font: 400 1rem var(--f); color: var(--ivory);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 12px 0; border-radius: 0; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field select option { background: var(--ink-2); color: var(--ivory); }
.field textarea { min-height: 150px; resize: vertical; border: 1px solid var(--line-2); padding: 14px; background: rgba(255, 255, 255, .015); }
.field ::placeholder { color: var(--stone); opacity: .8; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.field textarea:focus { box-shadow: inset 0 0 0 1px var(--gold); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ivory); box-shadow: 0 0 0 1000px var(--ink) inset; }
.field .err { color: var(--err); font-size: .85rem; min-height: 1em; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.form-actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid var(--line-2); }
.form-status[hidden] { display: none; }
.form-status.ok { border-color: var(--ok); color: var(--ok); }
.form-status.ko { border-color: var(--err); color: var(--err); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer { background: #080809; color: var(--stone); font-size: .95rem; border-top: 1px solid var(--line-2); }
.site-footer .wrap { padding-block: clamp(56px, 7vw, 96px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-logo { display: inline-block; margin-bottom: 22px; }
.footer-logo img { width: 210px; height: auto; }
.footer-top h4 { margin: 0 0 16px; color: var(--gold); font-weight: 500; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-top a { text-decoration: none; transition: color .2s; }
.footer-top a:hover { color: var(--gold-hi); }
.footer-top address { font-style: normal; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; flex-wrap: wrap; color: #6f695e; font-size: .85rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* Bouton WhatsApp flottant */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: #1f7a4a; color: #fff; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(201, 162, 74, .5), 0 10px 26px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease);
}
.wa:hover { background: #17633b; transform: translateY(-2px); }
.wa svg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   Mobile : barre d'actions, ajustements tactiles
   -------------------------------------------------------------------------- */
html { -webkit-tap-highlight-color: transparent; }
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--header-bg); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid var(--line); transition: transform .35s var(--ease);
  }
  .mbar a {
    min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 .9rem/1 var(--f); color: var(--ivory); text-decoration: none; border: 1px solid var(--line-2);
    transition: transform .15s, background-color .2s;
  }
  .mbar svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
  .mbar .mbar-cta { background: var(--gold-grad); background-size: 220% 100%; color: var(--on-gold); border: 0; }
  .mbar a:active { transform: scale(.97); background-color: var(--gold-soft); }
  .menu-open .mbar { transform: translateY(110%); }
  .wa { display: none; }
  .site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .section { padding-block: 56px; }
  .eyebrow, .js-motion .eyebrow.in { letter-spacing: .16em; font-size: .7rem; gap: 10px; }
  .eyebrow::before { width: 28px; }
  .welcome .mark img { max-width: 220px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero-grid { padding-block: 24px 40px; gap: 28px; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.2rem); }
  .hero .lead { margin-bottom: 26px; }
  .sheet-actions .btn { flex: 1 1 100%; }
  .hero .cartouche { display: none; }
  .stage-hud { padding: 14px 40px 32px; white-space: nowrap; }
  .stage-hud > span + span { display: none; }
  .sheet .wrap { padding-block: 48px 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-top > :nth-child(-n+2) { grid-column: 1 / -1; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; scroll-snap-align: start; }
  .lb-prev, .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); transform: none; }
  .lb-count { bottom: calc(32px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .mbar { gap: 6px; padding-inline: 8px; }
  .mbar a { gap: 6px; font-size: .82rem; }
  .mbar svg { width: 16px; height: 16px; }
}
@media (hover: none) {
  .btn:active, .filter:active, .theme-toggle:active, .menu-toggle:active { transform: scale(.97); }
}

/* Utilitaires */
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
