/* ==========================================================================
   Atelier Ébéniste — feuille de style
   Direction : éditorial artisanal — crème / brun bois / brun noir
   Typographie : Fraunces (display) + Outfit (texte)
   ========================================================================== */

:root {
  --bg: #FAF6EF;
  --surface: #FFFFFF;
  --ink: #241C14;
  --ink-soft: #59493A;
  --accent: #7C5230;
  --accent-strong: #5F3D22;
  --accent-light: #C89B6D;
  --cream-line: #E8DDCC;
  --dark: #1E1710;
  --dark-2: #2A2118;
  --on-dark: #F3ECE1;
  --on-dark-soft: #C9BCAA;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  --radius: 6px;
  --shadow-soft: 0 20px 60px -20px rgba(36, 28, 20, .25);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-signature: cubic-bezier(.65, 0, .12, 1);
  --dur: 700ms;

  /* Étalonnage photo commun : unifie les sources en une même « commande » */
  --grade: saturate(.88) contrast(1.06) brightness(.96) sepia(.14) hue-rotate(-6deg);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 var(--space-3); }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent-light); }
h2 em { color: var(--accent); }

h1 { font-size: clamp(2.7rem, 7.2vw, 5.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 var(--space-2); }

a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

.section { padding-block: var(--space-7); }
.section-alt { background: #F2EADD; }
.section-dark { background: var(--dark); color: var(--on-dark); }

.kicker {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.kicker::before { content: ""; width: 42px; height: 1px; background: var(--accent-light); flex: none; }
.section-dark .kicker { color: var(--accent-light); }

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 54ch; }
.section-dark .lead { color: var(--on-dark-soft); }

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: none; }

/* ---------- Boutons (pas de translation au survol — couleur uniquement) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }

:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

/* ==========================================================================
   Titres — révélation par mots masqués (script.js découpe en .w > .wi)
   ========================================================================== */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; transform: translateY(120%); }
.split.is-visible .wi {
  transform: none;
  transition: transform .9s var(--ease-signature);
  transition-delay: calc(var(--base-d, 0s) + var(--i) * 70ms);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 22px;
  transition: box-shadow .35s ease, padding .35s ease;
  color: #fff;
}
/* Le fond flouté vit dans un pseudo-élément : un backdrop-filter posé sur
   le header lui-même ferait du header le référentiel du menu mobile fixed,
   qui s'afficherait écrasé dans la barre après scroll. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: transparent;
  transition: background-color .35s ease;
}
.site-header.is-scrolled {
  padding-block: 12px;
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .4);
}
.site-header.is-scrolled::before {
  background: rgba(30, 23, 16, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; color: var(--accent-light); flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.brand-name em { font-style: italic; color: var(--accent-light); }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.main-nav > a:not(.nav-cta) {
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: .05em;
  position: relative;
  padding-block: 6px;
  opacity: .92;
  transition: opacity .2s ease;
}
.main-nav > a:not(.nav-cta):hover { opacity: 1; }
.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent-light);
  transition: right .3s var(--ease-out);
}
.main-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 11px 22px; }
.nav-foot { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: inherit; /* iOS donne aux <button> un bleu système par défaut */
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span { width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero — éditorial, aligné à gauche
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--grade);
  transform: scale(1.06);
  animation: hero-settle 2.2s var(--ease-signature) forwards;
}
@keyframes hero-settle { to { transform: none; } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 14, 8, .78) 0%, rgba(20, 14, 8, .45) 55%, rgba(20, 14, 8, .25) 100%),
    linear-gradient(to top, rgba(20, 14, 8, .65), transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
  padding: 150px 0 120px;
}
.hero .kicker { color: var(--accent-light); }
.hero .kicker::before { background: var(--accent-light); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(255, 255, 255, .85);
  max-width: 52ch;
  margin: var(--space-3) 0 var(--space-4);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-foot {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  margin-inline: auto;
  width: min(1160px, 100% - 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.hero-foot p { margin: 0; }
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
  color: rgba(255, 255, 255, .75);
  transition: color .2s ease;
}
.scroll-hint:hover { color: #fff; }
.scroll-hint svg { width: 16px; height: 16px; animation: hint-bob 2.4s ease-in-out infinite; }
@keyframes hint-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Entrées du hero */
.reveal-hero { opacity: 0; transform: translateY(26px); animation: rise var(--dur) var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Chiffres
   ========================================================================== */
.stats { background: var(--dark); color: var(--on-dark); padding-block: var(--space-5); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); }

/* ==========================================================================
   Savoir-faire
   ========================================================================== */
.craft-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

.craft-media { position: relative; padding-bottom: 90px; }
.frame { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: var(--grade); transition: transform 1.2s var(--ease-out); }
.frame-small img { aspect-ratio: 3 / 2; }
.frame:hover img { transform: scale(1.04); }
.frame-small {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 58%;
  border: 6px solid var(--bg);
}

.craft-points { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-3); }
.craft-points li { display: flex; gap: 18px; align-items: flex-start; }
.craft-points h3 { margin-bottom: 4px; }
.craft-points p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.point-icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--cream-line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}
.point-icon svg { width: 24px; height: 24px; }

/* ==========================================================================
   Bandeau essences (marquee)
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--cream-line);
  padding-block: 26px;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ink);
  white-space: nowrap;
}
.marquee i { font-style: normal; color: var(--accent-light); font-size: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Réalisations — mosaïque éditoriale
   ========================================================================== */
.section-head { max-width: 720px; margin-bottom: var(--space-5); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-3); }
.filter {
  padding: 9px 20px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.filter:hover { border-color: var(--accent-light); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.swipe-hint { display: none; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #DED3C0;
  cursor: pointer;
  grid-column: span 5;
  aspect-ratio: 4 / 3;
}
/* Rythme mosaïque : larges et étroites alternées, deux par rangée (5+7 / 7+5) */
.card:nth-child(4n+1) { grid-column: span 7; aspect-ratio: 3 / 2; }
.card:nth-child(4n+4) { grid-column: span 7; aspect-ratio: 3 / 2; }
/* Filtré : grille régulière, la mosaïque n'a plus de sens */
.gallery-grid.is-filtered .card { grid-column: span 6; aspect-ratio: 3 / 2; }

.card img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform 1s var(--ease-out); }
.card:hover img { transform: scale(1.05); }
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 8, .82) 0%, rgba(20, 14, 8, .28) 45%, rgba(20, 14, 8, .05) 70%);
  opacity: .9;
  transition: opacity .4s ease;
}
.card:hover::after { opacity: 1; }
.card-meta { position: absolute; z-index: 1; inset: auto 0 0; padding: 24px; color: #fff; }
.card-cat {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.card-meta h3 { margin: 6px 0 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; }
.card.is-hidden { display: none; }

/* ==========================================================================
   Bandeau citation
   ========================================================================== */
.quote-band {
  position: relative;
  background:
    linear-gradient(rgba(30, 23, 16, .84), rgba(30, 23, 16, .84)),
    url("https://images.unsplash.com/photo-1621295693450-080546d2ec8e?w=1600&q=70&auto=format&fit=crop") center / cover fixed;
  color: var(--on-dark);
  padding-block: var(--space-6);
  text-align: center;
}
.quote-band blockquote { margin: 0 auto; max-width: 800px; }
.quote-band p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}
.quote-band cite { font-style: normal; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-light); }

/* ==========================================================================
   Témoignages
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi {
  margin: 0;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stars { display: flex; gap: 4px; }
.stars svg { width: 16px; height: 16px; fill: var(--accent-light); }
.testi blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-soft); flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 14px; }
.testi strong { display: block; font-weight: 600; font-size: .98rem; }
.testi figcaption span:not(.avatar) { font-size: .85rem; color: var(--ink-soft); }
.avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .04em;
}

/* ==========================================================================
   Contact / Devis
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }

.contact-info { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: 20px; }
.contact-info li { display: flex; gap: 16px; align-items: center; color: var(--on-dark-soft); }
.contact-info a { color: var(--on-dark); transition: color .2s; }
.contact-info a:hover { color: var(--accent-light); }
.contact-info svg { flex: none; width: 22px; height: 22px; color: var(--accent-light); }

.quote-form {
  position: relative;
  background: var(--dark-2);
  border: 1px solid rgba(200, 155, 109, .18);
  border-radius: 10px;
  padding: clamp(28px, 4vw, 44px);
}
.quote-form h3 { font-size: 1.5rem; margin-bottom: var(--space-3); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; letter-spacing: .06em; margin-bottom: 8px; color: var(--on-dark-soft); }
.field label span { color: var(--accent-light); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(243, 236, 225, .18);
  border-radius: var(--radius);
  background: rgba(250, 246, 239, .05);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 300;
  transition: border-color .25s ease, background-color .25s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23C89B6D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select:invalid { color: rgba(243, 236, 225, .45); }
.field option { color: var(--ink); background: #fff; }
.field ::placeholder { color: rgba(243, 236, 225, .38); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  background: rgba(250, 246, 239, .08);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #D9705B; }
.field-error { min-height: 0; margin: 6px 0 0; font-size: .82rem; color: #E28D7B; }
.field-error:empty { margin: 0; }

.form-note { font-size: .82rem; color: var(--on-dark-soft); margin: 14px 0 0; text-align: center; }

.form-success[hidden] { display: none; }
.form-success {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--dark-2);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 40px;
  animation: rise .5s var(--ease-out);
}
.form-success svg { width: 60px; height: 60px; color: var(--accent-light); }
.form-success p { font-size: 1.05rem; color: var(--on-dark-soft); }
.form-success strong { color: var(--on-dark); font-size: 1.2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #171209; color: var(--on-dark-soft); padding-block: var(--space-5); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-4); align-items: start; }
.footer-brand .brand-name { color: var(--on-dark); font-size: 1.3rem; }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.footer-nav { display: grid; gap: 10px; justify-items: start; }
.footer-nav a { transition: color .2s; }
.footer-nav a:hover { color: var(--accent-light); }
.footer-legal { text-align: right; }
.credits { font-size: .8rem; opacity: .6; }

/* ==========================================================================
   Barre CTA mobile
   ========================================================================== */
.cta-bar[hidden] { display: none; }
.cta-bar {
  position: fixed;
  z-index: 90;
  inset: auto 0 0;
  display: none;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(23, 18, 9, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(200, 155, 109, .25);
  transform: translateY(105%);
  transition: transform .4s var(--ease-signature);
}
.cta-bar.is-shown { transform: none; }
.cta-bar-btn { flex: 1; padding-block: 14px; }
.cta-bar-tel {
  flex: none;
  width: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 155, 109, .4);
  border-radius: var(--radius);
  color: var(--accent-light);
  transition: background-color .25s ease;
}
.cta-bar-tel:hover { background: rgba(200, 155, 109, .12); }
.cta-bar-tel svg { width: 22px; height: 22px; }

/* ==========================================================================
   Lightbox — transition depuis la vignette (clone animé par script.js)
   ========================================================================== */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 13, 8, .93);
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  animation: fade-in .35s ease;
}
@keyframes fade-in { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  filter: var(--grade);
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .8);
}
.lightbox.is-animating figure { visibility: hidden; }
.lightbox figcaption { color: var(--on-dark-soft); text-align: center; margin-top: 16px; font-size: .95rem; }
.lightbox-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(250, 246, 239, .08);
  border: 1px solid rgba(250, 246, 239, .2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color .25s ease;
}
.lightbox-close:hover { background: rgba(250, 246, 239, .18); }
.lightbox-close svg { width: 20px; height: 20px; }

.flip-clone {
  position: fixed;
  z-index: 210;
  object-fit: cover;
  border-radius: var(--radius);
  filter: var(--grade);
  transform-origin: top left;
  transition: transform .55s var(--ease-signature);
  will-change: transform;
}

/* ==========================================================================
   Révélations au scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .section { padding-block: var(--space-6); }
  .testi-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { text-align: left; grid-column: 1 / -1; }
  .card, .card:nth-child(4n+1), .card:nth-child(4n+4) { grid-column: span 6; aspect-ratio: 3 / 2; }
}

@media (max-width: 820px) {
  .craft-grid { grid-template-columns: 1fr; }
  .craft-media { max-width: 520px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    background: #171209;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    gap: 34px;
  }
  .main-nav > a:not(.nav-cta) { font-size: 1.3rem; }
  .main-nav.is-open { opacity: 1; pointer-events: auto; }
  .site-header.menu-open { box-shadow: none; }
  .site-header.menu-open::before { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-foot {
    display: block;
    position: absolute;
    bottom: calc(30px + env(safe-area-inset-bottom));
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--on-dark-soft);
  }

  /* --- Galerie : rail horizontal à encliquetage, pensé pour le pouce --- */
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 14px;
  }
  .swipe-hint svg { width: 18px; height: 18px; }

  .gallery-grid, .gallery-grid.is-filtered {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    margin-inline: calc((100% - 100vw) / 2);
    padding-inline: max(24px, calc((100vw - 100%) / 2));
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .card, .card:nth-child(4n+1), .card:nth-child(4n+4),
  .gallery-grid.is-filtered .card {
    flex: 0 0 82%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    scroll-snap-align: center;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .hero-content { padding: 130px 0 150px; }
  .hero-foot p { display: none; }
  .hero-foot { justify-content: center; border-top: 0; }
  .hero .kicker::before { display: none; }
  .br-desktop { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; }
  .frame-small { right: 0; }
  .quote-band { background-attachment: scroll; }
  .cta-bar { display: flex; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; }
}

/* ==========================================================================
   Accessibilité — mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero { opacity: 1; transform: none; animation: none; transition: none; }
  .split .wi { transform: none; transition: none; }
  .scroll-hint svg { animation: none; }
  .hero-media img { animation: none; transform: none; }
  .marquee-track { animation: none; }
  .frame img, .card img { transition: none; }
  .flip-clone { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
