/* ============================================================
   Atelier du Nombre d'Or — Editorial luxury theme
   Palette : blanc & or
   ============================================================ */

:root {
  --white: #ffffff;
  --cream: #faf8f3;
  --cream-2: #f3efe6;
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --muted: #8c857a;
  --gold: #b8893c;
  --gold-deep: #9a6f2c;
  --gold-light: #d9b878;
  --line: #e7e0d4;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) avoids creating a scroll container, which would
     break the sticky header. */
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
em { font-style: italic; }

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

/* ---------- Typographic helpers ---------- */
.eyebrow,
.section-index,
.contact__label,
.topbar__tag {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gold-deep);
}
.section-index { display: block; margin-bottom: 1.2rem; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  color: var(--ink);
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 720px; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; max-width: none; flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  width: fit-content; max-width: 100%;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 400;
  padding-bottom: 4px; border-bottom: 1px solid var(--gold);
  transition: gap 0.3s ease, color 0.3s ease;
}
.link-arrow::after { content: "→"; color: var(--gold); transition: transform 0.3s ease; }
.link-arrow:hover { color: var(--gold-deep); gap: 0.9em; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.9em;
  padding: 1rem 2.2rem;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-deep); }
.btn--ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--gold); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #cfc8bb;
}
.topbar__inner {
  width: 100%;
  padding: 0.55rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.topbar__lang { display: flex; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.18em; }
.topbar__lang a { color: #8a8478; transition: color 0.25s; }
.topbar__lang a.is-active, .topbar__lang a:hover { color: var(--gold-light); }
.topbar__tag { color: #fff; }

/* ---------- Header ---------- */
/* The injected wrapper would otherwise box the sticky header to its own
   (header-tall) height; display:contents removes that box so the header
   sticks across the whole page. */
[data-site-header] { display: contents; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 30px rgba(28,26,23,0.07); }
.site-header__inner {
  width: 100%;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem;
}
.site-header__inner > .brand { grid-column: 1; justify-self: start; }
.site-header__inner > .nav { grid-column: 2; justify-self: center; }
.site-header__inner > .site-header__right { grid-column: 3; justify-self: end; }
/* Keep the logo and the right cluster (flags + burger/close) above the
   full-screen off-canvas menu, so the close button stays visible. */
.site-header__inner > .brand,
.site-header__inner > .site-header__right { position: relative; z-index: 95; }
.site-header__right { display: flex; align-items: center; gap: clamp(0.8rem, 1.6vw, 1.3rem); }

/* Language switch (flags) */
.lang-switch { display: flex; align-items: center; gap: 0.45rem; }
.lang-switch__btn {
  background: none; border: none; padding: 2px; cursor: pointer; line-height: 0;
  opacity: 0.45; transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang-switch__btn:hover { opacity: 0.85; }
.lang-switch__btn.is-active { opacity: 1; }
.flag { height: 15px; width: auto; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
/* Desktop Contact button (right). The in-list Contact is hidden on
   desktop and only used inside the mobile off-canvas menu. */
.site-header__cta {
  display: inline-flex; align-items: center; gap: 0.5em;
  border: 1px solid var(--gold); padding: 0.55rem 1.3rem; color: var(--gold-deep);
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.site-header__cta:hover { background: var(--gold); color: #fff; }
.site-header__cta .icon { font-size: 1.05em; }
.brand { display: flex; flex-direction: column; line-height: 1.05; flex: none; }
.brand__logo { display: block; height: 52px; width: auto; max-width: none; flex: none; }
.brand__name {
  font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink);
}
.brand__sub {
  font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-deep); margin-top: 3px;
}

/* ---------- Nav ---------- */
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
/* On desktop the Contact is the standalone .site-header__cta on the right;
   the in-list one only appears inside the mobile off-canvas menu. */
.nav__item--cta { display: none; }
.nav__list a {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding: 0.4rem 0;
  transition: color 0.25s ease;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--gold); padding: 0.55rem 1.3rem !important; color: var(--gold-deep) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--gold); color: #fff !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 26px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(20,17,12,0.78) 0%, rgba(20,17,12,0.45) 45%, rgba(20,17,12,0.2) 100%);
}
.hero__content {
  max-width: var(--container); width: 100%; margin-inline: auto;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter);
}
.hero .eyebrow { color: var(--gold-light); }
.hero__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.5rem); line-height: 0.98; letter-spacing: 0.01em;
  margin: 1.2rem 0; max-width: 14ch;
}
.hero__title em { color: var(--gold-light); }
.hero__lead {
  max-width: 46ch; font-size: 1.08rem; color: #fff;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1px solid rgba(255,255,255,0.5); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; border-radius: 2px;
  background: var(--gold-light); transform: translateX(-50%);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 14px); } }

/* ---------- Intro ---------- */
.intro { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--white); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.intro__text p { color: var(--ink-soft); font-size: 1.18rem; margin: 1.6rem 0 2rem; max-width: 56ch; }
.intro__media { overflow: hidden; }
.intro__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

/* ---------- Pillars ---------- */
.pillars { padding-bottom: clamp(4rem, 9vw, 8rem); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--cream); display: flex; flex-direction: column; overflow: hidden; }
.pillar__media { aspect-ratio: 16 / 10; overflow: hidden; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pillar:hover .pillar__media img { transform: scale(1.05); }
.pillar__body { padding: clamp(1.7rem, 3vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.pillar__body p { flex: 1; }
.pillar__body .link-arrow { margin-top: auto; }
.pillar__num { font-family: var(--font-serif); font-size: 2rem; color: var(--gold); display: block; margin-bottom: 1rem; }
.pillar h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; margin-bottom: 0.8rem; }
.pillar p { color: var(--ink-soft); margin-bottom: 1.6rem; }

/* ---------- Split feature ---------- */
.feature--split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.feature__media { min-height: 420px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body {
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 6vw, 6rem);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--cream); gap: 1.4rem;
}
.feature__body p { color: var(--ink-soft); max-width: 52ch; }
.feature__body .btn { align-self: flex-start; margin-top: 0.8rem; }
/* Keep the underlined link hugging its text (otherwise it stretches to
   the column width as a flex item, making the gold border too long). */
.feature__body .link-arrow { align-self: flex-start; }

/* ---------- Savoir-faire ---------- */
.savoir { padding: clamp(4rem, 9vw, 8rem) 0; }
.savoir__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.card__media { overflow: hidden; aspect-ratio: 4/5; margin-bottom: 1.5rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); }

/* ---------- Quote ---------- */
.quote {
  position: relative; padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  text-align: center; color: #fff; overflow: hidden;
}
.quote__bg { position: absolute; inset: 0; z-index: -2; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Dark overlay for legibility — sits ABOVE the image (positive z-index inside .quote__bg). */
.quote__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(18,13,7,0.58);
}
.quote__inner { position: relative; z-index: 1; max-width: min(94vw, 1180px); margin-inline: auto; }
.quote__inner p {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.5rem; line-height: 1.5;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5);
}
/* On wide screens the haïku fits on a single line. */
@media (min-width: 1025px) {
  .quote__inner p { font-size: 2.1rem; white-space: nowrap; }
}
.quote__inner cite {
  display: block; margin-top: 2rem; font-style: normal;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* ---------- Créations / gallery ---------- */
.creations { padding: clamp(4rem, 9vw, 8rem) 0 0; }
.creations__gallery {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 4px;
}
.tile { position: relative; overflow: hidden; background: var(--cream-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.tile:hover img { transform: scale(1.06); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile__cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 1.5rem 1.4rem 1.2rem;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
  background: linear-gradient(transparent, rgba(18,15,11,0.72));
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.tile:hover .tile__cap { opacity: 1; transform: translateY(0); }

/* ---------- Band (formations / actualités) ---------- */
.band { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--cream); }
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.band__col { border-top: 2px solid var(--gold); padding-top: 2rem; }
.band__col h2 { margin-bottom: 1.2rem; }
.band__col p { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 46ch; }

/* ---------- Contact ---------- */
.contact { padding: clamp(5rem, 11vw, 9rem) 0; background: var(--ink); color: #efe9dd; text-align: center; }
.contact__inner { max-width: 780px; margin-inline: auto; }
.contact .section-index { color: var(--gold-light); }
.contact__title {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.1;
  font-size: clamp(2.2rem, 6vw, 4rem); margin: 1.2rem 0 1.5rem;
}
.contact__title em { color: var(--gold-light); }
.contact__lead { color: #fff; font-weight: 400; max-width: 52ch; margin: 0 auto 3rem; font-size: 1.1rem; }
.contact__details {
  display: flex; justify-content: center; gap: clamp(2.5rem, 8vw, 6rem);
  margin-bottom: 3rem; flex-wrap: wrap; text-align: left;
}
.contact__label { display: block; margin-bottom: 0.7rem; }
.contact__details p { color: #fff; }
.contact__details a { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.contact__details a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { background: #14110c; color: #9a9285; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__inner {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__brand .brand__name { color: #f0eadd; font-size: 1.5rem; }
.site-footer__brand p { max-width: 38ch; margin-top: 0.6rem; }
.site-footer__nav { display: block; }
.site-footer__nav-title {
  color: #f0eadd; font-family: var(--font-serif); font-weight: 500;
  font-size: 1.1rem; letter-spacing: 0.03em; margin-bottom: 1.2rem;
}
.site-footer__nav-cols {
  column-count: 2; column-gap: 2.8rem;
}
.site-footer__nav-cols a {
  display: block; padding: 0.42rem 0;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.25s;
  break-inside: avoid;
}
.site-footer__nav-cols a:hover { color: var(--gold-light); }
.site-footer__bottom {
  max-width: var(--container); margin-inline: auto; padding: 1.6rem var(--gutter);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem;
}
.site-footer__bottom a:hover { color: var(--gold-light); }
.site-footer__credit {
  font-size: 0.66rem; letter-spacing: 0.12em; color: rgba(154,146,133,0.6);
}
.site-footer__credit a {
  color: rgba(154,146,133,0.85); letter-spacing: 0.18em; transition: color 0.25s;
}
.site-footer__credit a:hover { color: var(--gold-light); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nav__list { gap: 1.2rem; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro .section-index { padding-top: 0; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: flex-end; }

  /* Back to a simple two-zone bar on mobile: logo left, burger right. */
  .site-header__inner { display: flex; justify-content: space-between; }
  .site-header__cta { display: none; }
  .nav-toggle { display: flex; }
  /* Full-screen overlay menu on mobile/tablet (no narrow side panel). */
  .nav {
    position: fixed; inset: 0; width: 100%; height: 100dvh;
    background: var(--white); padding: calc(var(--header-h) + 2.2rem) var(--gutter) 2.5rem;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(.5,0,.2,1);
    z-index: 90; overflow-y: auto;
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; max-width: 520px; margin-inline: auto; }
  .nav__list li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: 1.15rem 0; font-size: 1.05rem; }
  .nav__list .nav__item > a { display: flex; align-items: center; width: 100%; }
  .nav__list a::after { display: none; }
  .nav__item--cta { display: block; margin-left: 0; }
  .nav__cta {
    border: none !important; padding: 1.1rem 0 !important; color: var(--gold-deep) !important;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(18,15,11,0.4); z-index: 80;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

  .pillars__grid { grid-template-columns: 1fr; }
  .feature--split { grid-template-columns: 1fr; }
  .feature__media { min-height: 320px; }
  .savoir__grid { grid-template-columns: 1fr 1fr; }
  .creations__gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .tile--wide { grid-column: span 2; }
  .tile--tall { grid-row: span 1; }
  .band__grid { grid-template-columns: 1fr; }
  .section-head--row { align-items: flex-start; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .brand__name { font-size: 1.2rem; }
  .brand__sub { font-size: 0.55rem; letter-spacing: 0.24em; }
  .brand__logo { height: 40px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .savoir__grid { grid-template-columns: 1fr; }
  .creations__gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .tile--wide { grid-column: span 1; }
  .contact__details { flex-direction: column; gap: 1.8rem; text-align: center; }
}

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

/* Reveal on scroll — only hidden when JS is active, so content never
   stays invisible if scripts (GSAP) fail to load. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* When GSAP drives the motion it sets inline styles; this no-op keeps the
   CSS-fallback transition from fighting the tween. */
.gsap-active [data-reveal] { transition: none; }

/* ============================================================
   Dropdown navigation
   ============================================================ */
.nav__item { position: relative; }
.nav__item > a { display: inline-flex; align-items: center; gap: 0.4em; }
.nav__caret {
  width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; transition: transform 0.3s ease; opacity: 0.7;
}
.nav__sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px);
  min-width: 270px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(28,26,23,0.12); padding: 0.6rem 0;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 50;
}
.nav__sub::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav__item--has-children:hover .nav__sub,
.nav__item--has-children:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__item--has-children:hover .nav__caret { transform: rotate(-135deg); }
.nav__sub li { width: 100%; }
.nav__sub a {
  display: block; padding: 0.6rem 1.4rem; font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: none; color: var(--ink-soft); white-space: nowrap;
}
.nav__sub a::after { display: none; }
.nav__sub a:hover { background: var(--cream); color: var(--gold-deep); }
.nav__sub li.is-active a { color: var(--gold-deep); }
.nav__item.is-active > a { color: var(--ink); }

/* ============================================================
   Inner-page hero
   ============================================================ */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(4rem, 11vw, 9rem) 0 clamp(3rem, 7vw, 6rem);
  display: flex; align-items: flex-end; min-height: 46vh;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,17,12,0.5) 0%, rgba(20,17,12,0.35) 40%, rgba(20,17,12,0.82) 100%);
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero__title {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.05;
  font-size: clamp(2.4rem, 6.5vw, 5rem); margin: 1rem 0 0.8rem; max-width: 18ch;
}
.page-hero__title em { color: var(--gold-light); }
.page-hero__lead { max-width: 52ch; color: #fff; font-size: 1.1rem; }
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { margin: 0 0.5em; opacity: 0.6; }

/* Page header without photo — dark band so the text stays white,
   consistent with the image-based heroes across the site. */
.page-head--light {
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(184,137,60,0.18) 0%, rgba(28,26,23,0) 55%),
    linear-gradient(160deg, #1c1a17 0%, #2a2620 55%, #1c1a17 100%);
  color: #fff; text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-head--light .page-hero__title { color: #fff; margin-inline: auto; }
.page-head--light .page-hero__lead { margin-inline: auto; color: #fff; }
.page-head--light .eyebrow { color: var(--gold-light); }
.page-head--light .breadcrumb { color: rgba(255,255,255,0.8); }
.page-head--light .breadcrumb a { color: var(--gold-deep); }

/* ============================================================
   Prose / article
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .section-title { color: #fff; }
.section--ink p { color: #fff; font-weight: 400; }

.prose { max-width: 760px; margin-inline: auto; }
.prose--wide { max-width: 880px; }
.prose p { color: var(--ink-soft); margin-bottom: 1.4rem; font-size: 1.08rem; }
.prose h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 2.6rem 0 1rem; color: var(--ink);
}
.prose h4 {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep);
  margin: 2.2rem 0 0.8rem; font-weight: 400;
}
.prose .lead {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5; color: var(--ink); margin-bottom: 2rem;
}
.prose blockquote {
  border-left: 2px solid var(--gold); padding: 0.4rem 0 0.4rem 1.6rem; margin: 2rem 0;
  font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft);
}
.prose blockquote cite { display: block; font-size: 0.8rem; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.8rem; }
.prose ul { margin: 0 0 1.6rem; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ============================================================
   Split feature (alternating)
   ============================================================ */
.feature--reverse .feature__media { order: 2; }
.feature--light .feature__body { background: var(--white); }
.feature--cream { background: var(--cream); }

/* ============================================================
   Déontologie / numbered list
   ============================================================ */
.deon { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.deon li { background: #fff; padding: clamp(1.6rem, 3vw, 2.4rem); list-style: none; }
.deon li .n { font-family: var(--font-serif); color: var(--gold); font-size: 1.6rem; display: block; margin-bottom: 0.6rem; }
.deon li p { color: var(--ink-soft); margin: 0; }

/* ============================================================
   Materials list
   ============================================================ */
.matieres { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.matiere {
  border: 1px solid var(--gold); color: var(--gold-deep);
  padding: 0.5rem 1.1rem; font-size: 0.8rem; letter-spacing: 0.08em; border-radius: 40px;
}

/* ============================================================
   Stats band
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.stat .stat__num { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold); line-height: 1; }
.stat .stat__label { display: block; margin-top: 0.6rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.section--ink .stat .stat__label { color: rgba(239,233,221,0.7); }

/* ============================================================
   Mini cards grid (hub / index pages)
   ============================================================ */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.mini-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(28,26,23,0.1); }
.mini-card__media { aspect-ratio: 3/2; overflow: hidden; }
.mini-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.mini-card:hover .mini-card__media img { transform: scale(1.05); }
.mini-card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.mini-card__body h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; margin-bottom: 0.5rem; }
.mini-card__body p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.2rem; flex: 1; }

/* ============================================================
   Table of contents (index style)
   ============================================================ */
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.toc__item { display: flex; align-items: baseline; gap: 1.2rem; padding: 1.6rem 2rem; background: #fff; transition: background 0.3s ease; }
.toc__item:hover { background: var(--cream); }
.toc__item .toc__n { font-family: var(--font-serif); color: var(--gold); font-size: 1.2rem; }
.toc__item h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; margin: 0; }
.toc__item p { color: var(--muted); font-size: 0.9rem; margin: 0.2rem 0 0; }

/* ============================================================
   Testimonials (formations)
   ============================================================ */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.testimonial { background: #fff; border: 1px solid var(--line); padding: clamp(1.8rem, 3vw, 2.6rem); }
.testimonial p { font-family: var(--font-serif); font-style: italic; font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1.4rem; }
.testimonial .author { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.testimonial::before { content: "\201C"; font-family: var(--font-serif); font-size: 3.5rem; line-height: 0.6; color: var(--gold-light); display: block; }

/* ============================================================
   Timeline (actualités)
   ============================================================ */
.timeline { max-width: 820px; margin-inline: auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 2.6rem 2.6rem; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--gold); background: #fff; }
.timeline__date { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.timeline__item h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; margin: 0.3rem 0 0.6rem; }
.timeline__item p { color: var(--ink-soft); margin: 0; }

/* ============================================================
   Logo / clients grid
   ============================================================ */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-grid figure { margin: 0; aspect-ratio: 3/2; display: flex; align-items: center; justify-content: center; background: #fff; padding: 1.5rem; }
.logo-grid img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.4s ease, opacity 0.4s ease; }
.logo-grid figure:hover img { filter: none; opacity: 1; }
.logo-name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; color: var(--ink-soft); text-align: center; letter-spacing: 0.02em; transition: color 0.4s ease; }
.logo-grid figure:hover .logo-name { color: var(--gold-deep); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-top: 1.6rem; }
.contact-info dd { margin: 0.3rem 0 0; color: var(--ink-soft); }
.contact-info dd a:hover { color: var(--gold-deep); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field input, .field textarea {
  border: 1px solid var(--line); background: #fff; padding: 0.85rem 1rem; font: inherit; color: var(--ink);
  transition: border-color 0.25s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 140px; }
.map-embed { width: 100%; aspect-ratio: 16/8; border: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); filter: grayscale(0.2); }

/* ============================================================
   Poem
   ============================================================ */
.poem { text-align: center; padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.poem__verse { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.9; color: var(--ink); }
.poem__author { margin-top: 2.5rem; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }

/* ============================================================
   Gallery (masonry-like)
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; grid-auto-flow: dense; }
.gallery-grid > * { display: block; overflow: hidden; aspect-ratio: 1; background: var(--cream-2); margin: 0; }
.gallery-grid > *.span-2 { grid-column: span 2; aspect-ratio: 2; }
.gallery-grid > *.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.gallery-grid > *:hover img { transform: scale(1.06); }

/* CTA strip */
.cta-strip { text-align: center; }
.cta-strip h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.cta-strip p { max-width: 50ch; margin: 0 auto 2.2rem; color: var(--ink-soft); }
.section--ink .cta-strip p { color: #fff; font-weight: 400; }

.site-footer__addr { font-size: 0.84rem; margin-top: 0.8rem; line-height: 1.7; }

/* ============================================================
   Responsive additions
   ============================================================ */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  /* Dropdowns become accordions inside the off-canvas menu */
  .nav__item { width: 100%; }
  .nav__caret { margin-left: auto; transition: transform 0.3s ease; }
  .nav__item.is-open .nav__caret { transform: rotate(-135deg); }
  .nav__sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; border: none; box-shadow: none; padding: 0 0 0.6rem;
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav__item.is-open .nav__sub { max-height: 600px; }
  .nav__sub a { padding: 0.7rem 0 0.7rem 1.2rem; font-size: 0.9rem; color: var(--muted); }
  .nav__item--has-children > a { justify-content: flex-start; }

  .feature--reverse .feature__media { order: 0; }
  .deon { grid-template-columns: 1fr; }
  .toc { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a.span-2 { grid-column: span 2; }
}

@media (max-width: 540px) {
  .mini-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid a.span-2, .gallery-grid a.tall { grid-column: span 1; grid-row: span 1; aspect-ratio: 1; }
}

/* ============================================================
   Icons (Lucide) + GSAP-driven motion
   ============================================================ */

/* Lucide renders inline <svg>; keep them crisp, gold, aligned to text.
   Stroke width slightly thinner than default for an editorial feel. */
.icon,
[data-lucide] {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.125em;
  stroke-width: 1.5;
  flex: none;
}
svg.lucide { stroke-width: 1.5; }

/* A small gold motif placed before eyebrows / section indexes. */
.eyebrow .icon,
.section-index .icon { color: var(--gold); margin-right: 0.55em; vertical-align: -0.1em; }
.section-index { display: inline-flex; align-items: center; }
.intro .section-index, .pillars .section-index { display: flex; }

/* Pillars: a round gold-outlined icon badge above the roman numeral. */
.pillar__icon {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--gold-deep);
  font-size: 1.35rem; margin-bottom: 1.1rem;
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}
.pillar:hover .pillar__icon { border-color: var(--gold); color: var(--white); background: var(--gold); }
.pillar__num { font-size: 1rem; letter-spacing: 0.3em; color: var(--muted); }

/* Inline icon inside buttons / links. */
.btn .icon { font-size: 1.1em; margin: 0; vertical-align: -0.18em; }
.btn--icon-left .icon { margin-left: 0; margin-right: 0.7em; }

/* Contact page definition list: leading gold icon on each term. */
.contact-info dt .icon { color: var(--gold); margin-right: 0.55em; font-size: 0.95em; vertical-align: -0.12em; }

/* Leading gold icon inside body text (e.g. philosophy principles). */
.icon--lead { color: var(--gold); margin-right: 0.5em; vertical-align: -0.12em; }

/* Stat blocks: gold icon above the number. */
.stat__icon { color: var(--gold); font-size: 1.5rem; margin-bottom: 0.6rem; }

/* Testimonials: oversized gold quotation mark. */
.testimonial__mark { color: var(--gold-light); font-size: 2rem; opacity: 0.55; margin-bottom: 0.4rem; }

/* Card / list titles can carry a leading icon. */
.card h3 .icon, .mini-card h3 .icon,
.toc__item h3 .icon, .timeline__item h3 .icon { color: var(--gold-deep); margin-right: 0.5em; font-size: 1.1em; vertical-align: -0.12em; }
.timeline__item h3 .icon { font-size: 1em; }

/* Feature lists with icon bullets (replaces plain dashes in some sections). */
.icon-list { display: grid; gap: 1rem; margin: 1.6rem 0; }
.icon-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.icon-list .icon { color: var(--gold-deep); font-size: 1.25rem; margin-top: 0.15em; }

/* Contact detail blocks: icon + text. */
.contact__label .icon { font-size: 1.05em; margin-right: 0.5em; color: var(--gold-light); vertical-align: -0.14em; }

/* Hero scroll cue: a chevron icon below the dot. */
.hero__scroll .icon { display: block; color: var(--gold-light); font-size: 1.3rem; margin: 0.4rem auto 0; opacity: 0.8; }

/* ---------- Footer: contact rows + social ---------- */
.site-footer__contact { display: grid; gap: 0.7rem; margin-top: 1.3rem; }
.site-footer__contact a, .site-footer__contact span.row {
  display: inline-flex; align-items: center; gap: 0.7em; font-size: 0.85rem; color: #b8b0a2;
}
.site-footer__contact .icon { color: var(--gold); font-size: 1.05em; }
.site-footer__contact a:hover { color: var(--gold-light); }
.site-footer__social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.site-footer__social a {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.14); color: #cfc7b8; font-size: 1.05rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.site-footer__social a:hover { border-color: var(--gold); color: #14110c; background: var(--gold); }

/* Topbar tag icon. */
.topbar__tag .icon { color: var(--gold); margin-right: 0.5em; vertical-align: -0.14em; }
/* Nav CTA icon. */
.nav__cta .icon { font-size: 1.05em; margin-right: 0.45em; vertical-align: -0.15em; }

/* ---------- Entrance animation initial states (JS only) ---------- */
/* Hero / page-hero children start offset; GSAP clears them on load.
   Guarded by .js so non-JS visitors see content immediately. */
.js .anim-in { opacity: 0; }
.gsap-active .anim-in { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .anim-in { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Body-copy size coherence
   All running text shares one size (headings keep their own scale).
   ============================================================ */
:root { --text: 1.0625rem; }
.intro__text p,
.hero__lead,
.contact__lead,
.page-hero__lead,
.prose p,
.prose li,
.mini-card__body p,
.toc__item p,
.timeline__item p,
.deon li p,
.testimonial p,
.band__col p { font-size: var(--text); line-height: 1.75; }
@media (max-width: 540px) { :root { --text: 1rem; } }

/* ============================================================
   News band (homepage Actualités) — full-width image feature
   ============================================================ */
.news-band {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  color: #fff; text-align: center;
}
.news-band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--news-bg); background-size: cover; background-position: center;
}
.news-band__overlay { position: absolute; inset: 0; z-index: -1; background: rgba(18,15,11,0.7); }
.news-band__inner { max-width: 620px; margin-inline: auto; }
.news-band .eyebrow { color: var(--gold-light); justify-content: center; display: inline-flex; }
.news-band .section-title { color: #fff; margin: 1rem 0 1.2rem; }
.news-band p { color: #fff; font-weight: 400; margin-bottom: 2.2rem; }

/* ============================================================
   Frieze — horizontal chronological strip (inspiration sources)
   ============================================================ */
.frieze { margin: 2.2rem 0 1rem; }
.frieze__track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 1.2rem; -webkit-overflow-scrolling: touch;
}
.frieze__item {
  flex: 1 0 200px; min-width: 200px; scroll-snap-align: start;
  position: relative; padding: 1.9rem 1.4rem 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.frieze__item::before {
  content: ""; position: absolute; top: -5px; left: 1.4rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--white);
  transition: transform 0.3s ease, background 0.3s ease;
}
.frieze__item:hover::before { transform: scale(1.35); background: var(--gold-deep); }
.frieze__date { color: var(--gold-deep); font-size: 0.8rem; letter-spacing: 0.12em; }
.frieze__name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; line-height: 1.15; color: var(--ink); }
.frieze__role { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
/* slim scrollbar for the frieze */
.frieze__track::-webkit-scrollbar { height: 3px; }
.frieze__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
@media (max-width: 640px) { .frieze__item { flex-basis: 76%; min-width: 76%; } }

/* ============================================================
   Mega menu — Savoir-faire (image cards)
   ============================================================ */
/* position:static makes the panel's containing block the .site-header
   (which is positioned), so left:50% centres it in the viewport rather
   than under the (left-of-centre) Savoir-faire tab. */
.nav__item--mega { position: static; }
.nav__mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 12px);
  width: min(1080px, 94vw);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 26px 56px rgba(28,26,23,0.16);
  padding: 1.1rem; z-index: 60;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
/* Invisible bridge up to the trigger tab so hover persists across the gap. */
.nav__mega::before { content: ""; position: absolute; top: -28px; left: 0; right: 0; height: 28px; }
.nav__item--mega:hover .nav__mega,
.nav__item--mega:focus-within .nav__mega {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.nav__mega-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 0.5rem !important; border-radius: 2px;
  transition: background 0.25s ease; text-transform: none; letter-spacing: 0;
}
.nav__mega-card::after { display: none !important; }
.nav__mega-card:hover { background: var(--cream); }
.nav__mega-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--cream-2); }
.nav__mega-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.nav__mega-card:hover .nav__mega-thumb img { transform: scale(1.06); }
.nav__mega-text { display: flex; flex-direction: column; }
.nav__mega-label {
  font-family: var(--font-serif); font-size: 1.06rem; font-weight: 500;
  color: var(--ink); text-transform: none; letter-spacing: 0; line-height: 1.15;
}
.nav__mega-desc {
  font-size: 0.72rem; letter-spacing: 0.03em; text-transform: none;
  color: var(--muted); margin-top: 3px;
}
.nav__mega-card.is-active .nav__mega-label { color: var(--gold-deep); }


/* Mobile: the mega becomes part of the accordion, cards stacked as rows. */
@media (max-width: 1024px) {
  .nav__mega {
    position: static; width: auto; transform: none;
    opacity: 1; visibility: visible; box-shadow: none; border: none;
    padding: 0 0 0.6rem; max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav__item.is-open .nav__mega { max-height: 1800px; }
  .nav__item--mega:hover .nav__mega, .nav__item--mega:focus-within .nav__mega { transform: none; }
  .nav__mega-grid { grid-template-columns: 1fr; gap: 0; }
  .nav__mega-grid .nav__mega-card { display: flex; flex-direction: row; align-items: center; gap: 0.9rem; padding: 0.65rem 0 !important; }
  .nav__mega-thumb { width: 66px; flex: none; aspect-ratio: 1; }
}

/* ============================================================
   Lightbox — enlarged preview of gallery images
   ============================================================ */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw; background: rgba(16,13,9,0.93);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { margin: 0; display: flex; }
.lightbox__stage img {
  max-width: min(1100px, 90vw); max-height: 90vh; width: auto; height: auto;
  object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.lightbox.is-open .lightbox__stage img { animation: lb-zoom 0.35s ease; }
@keyframes lb-zoom { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.6rem;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 2.4rem; line-height: 1; opacity: 0.8; transition: opacity 0.25s, color 0.25s;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.lightbox__prev { left: 1.4rem; }
.lightbox__next { right: 1.4rem; }
.lightbox__close:hover { opacity: 1; color: var(--gold-light); }
.lightbox__nav:hover { background: var(--gold); border-color: var(--gold); color: #14110c; }
@media (max-width: 640px) {
  .lightbox__nav { width: 2.8rem; height: 2.8rem; font-size: 1.5rem; }
  .lightbox__prev { left: 0.6rem; } .lightbox__next { right: 0.6rem; }
}

/* ============================================================
   Client / partner logo wall
   ============================================================ */
.client-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.client-wall figure {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 2px;
  min-height: 168px; padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.client-wall figure:hover { box-shadow: 0 16px 34px rgba(28,26,23,0.09); transform: translateY(-3px); border-color: var(--gold-light); }
.client-wall img { max-width: 100%; max-height: 82px; width: auto; object-fit: contain; }
.client-wall figcaption {
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); text-align: center; line-height: 1.4;
}
@media (max-width: 980px) { .client-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .client-wall { grid-template-columns: repeat(2, 1fr); } .client-wall figure { min-height: 140px; } }

/* ============================================================
   Charte qualité — aligned blocks (4 + 3)
   ============================================================ */
.charte { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 2.6vw, 2.4rem); }
.charte__item { border-top: 2px solid var(--gold); padding-top: 1.3rem; }
.charte__n { display: block; font-family: var(--font-serif); color: var(--gold-deep); font-size: 1.05rem; letter-spacing: 0.22em; margin-bottom: 0.5rem; }
.charte__title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; color: var(--ink); margin-bottom: 0.55rem; }
.charte__text { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 1024px) { .charte { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .charte { grid-template-columns: 1fr; } }

/* Frame gallery — show whole frames (contained) on white cards */
.gallery-grid--frames > * { background: #fff; border: 1px solid var(--line); }
.gallery-grid--frames img { object-fit: contain; padding: clamp(0.8rem, 2vw, 1.6rem); }

/* Two-image documentary pair (with captions) */
.media-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2.2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.media-duo figure { margin: 0; }
.media-duo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--cream-2); border: 1px solid var(--line); }
.media-duo figcaption { margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .media-duo { grid-template-columns: 1fr; } }

/* ============================================================
   Press / publications list (cover + full text, per row)
   ============================================================ */
.press-list { display: flex; flex-direction: column; }
.press-item {
  display: grid; grid-template-columns: 190px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  padding: clamp(1.8rem, 4vw, 3rem) 0; border-top: 1px solid var(--line);
}
.press-item:first-child { border-top: none; padding-top: 0; }
.press-item__cover {
  aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--cream-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.press-item__cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; transition: transform 0.5s ease; }
.press-item:hover .press-item__cover img { transform: scale(1.03); }
.press-item__body h3 { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 500; line-height: 1.2; color: var(--ink); }
.press-item__body p { color: var(--ink-soft); margin-top: 0.7rem; max-width: 62ch; }
@media (max-width: 680px) {
  .press-item { grid-template-columns: 1fr; gap: 1.1rem; }
  .press-item__cover { max-width: 180px; }
}

/* ---------- Video player (videos page) ---------- */
.video-player {
  display: block; width: 100%; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line);
}
.video-credit { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 1.1rem; }

/* ============================================================
   "Next page" CTA (bottom of every page, before the footer)
   ============================================================ */
.next-page { text-align: center; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); }

/* ============================================================
   Principles list (philosophy) — compact, elegant
   ============================================================ */
.principles { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); }
.principle {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line);
}
.principle__n {
  font-family: var(--font-serif); font-size: 1.7rem; font-weight: 500;
  color: var(--gold); line-height: 1; flex: none; min-width: 1.8ch;
}
.principle__text {
  font-family: var(--font-serif); font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500; color: var(--ink); line-height: 1.25;
}
@media (max-width: 680px) { .principles { grid-template-columns: 1fr; } }

/* ============================================================
   Downloadable documents (certification)
   ============================================================ */
.doc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.doc-list a {
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.doc-list a:hover { border-color: var(--gold); color: var(--ink); background: var(--cream); }
.doc-list .icon { color: var(--gold-deep); font-size: 1.2rem; flex: none; }
.doc-list span { flex: 1; font-size: 0.95rem; line-height: 1.4; }
.doc-list__dl { color: var(--muted); font-size: 1.05rem; flex: none; }
.doc-list a:hover .doc-list__dl { color: var(--gold-deep); }
@media (max-width: 680px) { .doc-list { grid-template-columns: 1fr; } }

/* ============================================================
   Footer — affiliations & labels (under social, left column)
   ============================================================ */
.site-footer__labels {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem; margin-top: 1.5rem; max-width: 40ch;
}
.site-footer__labels img {
  height: 42px; width: auto;
  background: #fff; padding: 5px 7px; border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  filter: saturate(0.92);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.site-footer__labels img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* ============================================================
   Responsive video embed (YouTube)
   ============================================================ */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(28,26,23,0.18);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* ============================================================
   Formulaire de contact — honeypot + messages de statut
   ============================================================ */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.form-status {
  margin-top: 1.2rem; padding: 0.85rem 1.1rem; border-radius: 4px;
  font-size: 0.92rem; line-height: 1.5;
}
.form-status--ok {
  background: rgba(58,125,68,0.10); color: #2f6b39;
  border: 1px solid rgba(58,125,68,0.30);
}
.form-status--error {
  background: rgba(168,52,40,0.08); color: #9a3327;
  border: 1px solid rgba(168,52,40,0.28);
}
