/* ==========================================================================
   OMPIDES — feuille de style
   Ivoire & nuit, un seul accent ocre (le Sahel). Instrument Serif + Geist.
   Thème clair / sombre : variables ci-dessous.
   ========================================================================== */

:root {
  --bg: #f3eee5;
  --bg-2: #ebe4d6;
  --surface: #fbf8f2;
  --ink: #111a21;
  --ink-2: #56616a;
  --line: rgba(17, 26, 33, .13);
  --line-strong: rgba(17, 26, 33, .85);
  --accent: #a95a17;
  --accent-ink: #8f4c14;
  --accent-soft: rgba(180, 98, 28, .1);
  --night: #0c1218;
  --night-2: #131b23;
  --on-night: #efe9de;
  --on-night-2: #9da7af;
  --tile: #fbf8f2;
  --shadow: 0 30px 60px -30px rgba(17, 26, 33, .35);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --container: 1360px;
  --pad: clamp(20px, 4.5vw, 64px);
  --header-h: 84px;
  --radius: clamp(14px, 1.6vw, 24px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1116; --bg-2: #111921; --surface: #141d26;
    --ink: #f0eae0; --ink-2: #9ca6ae;
    --line: rgba(240, 234, 224, .12); --line-strong: rgba(240, 234, 224, .8);
    --accent: #e29a55; --accent-ink: #eaa968; --accent-soft: rgba(226, 154, 85, .12);
    --night: #070b0f; --night-2: #0e151c;
    --tile: #efe9de;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1116; --bg-2: #111921; --surface: #141d26;
  --ink: #f0eae0; --ink-2: #9ca6ae;
  --line: rgba(240, 234, 224, .12); --line-strong: rgba(240, 234, 224, .8);
  --accent: #e29a55; --accent-ink: #eaa968; --accent-soft: rgba(226, 154, 85, .12);
  --night: #070b0f; --night-2: #0e151c;
  --tile: #efe9de;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
/* grain très léger, pour la matière */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 500; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 500; }
.skip-link:focus { top: 16px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

h2 em, .about-lead em, .hero-title em, .contact-title em { font-family: var(--serif); font-style: italic; color: var(--accent); }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 8px 8px 8px 26px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:not(:has(.btn-ic)) { padding-right: 26px; }
.btn-ic {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  transition: transform .45s var(--ease), background-color .35s var(--ease);
}
.btn:hover .btn-ic { transform: rotate(-45deg); }
.btn-light { background: #f6f1e8; color: #111a21; }
.btn-light .btn-ic { background: #111a21; color: #f6f1e8; }
.btn-light:hover { background: #fff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent .btn-ic { background: rgba(255,255,255,.18); }
.btn-accent:hover { background: var(--accent-ink); }
:root[data-theme="dark"] .btn-accent, :root[data-theme="dark"] .btn-accent:hover { color: #1a0f06; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-accent { color: #1a0f06; } }
.btn-outline { border: 1px solid var(--line-strong); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-small { min-height: 44px; padding: 6px 20px; font-size: .88rem; }
.btn-small:has(.btn-ic) { padding: 5px 5px 5px 20px; }
.btn-small .btn-ic { width: 32px; height: 32px; }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.round-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- Interrupteurs : langue & thème ---------- */
.lang-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
  border: 1px solid var(--line); isolation: isolate;
}
.lang-switch::before {
  content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), background-color .5s;
}
.lang-switch[data-active="en"]::before { transform: translateX(100%); }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 11px 6px 7px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); border-radius: 999px;
  transition: color .35s var(--ease);
}
.lang-switch a[aria-current] { color: var(--bg); }
.lang-switch a:not([aria-current]):hover { color: var(--ink); }
.flag-wrap { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; }
.flag { width: 100%; height: 100%; display: block; }

.theme-switch { display: inline-flex; align-items: center; padding: 4px; }
.theme-switch .track {
  position: relative; width: 64px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 9px; color: var(--ink-2);
  transition: background-color .4s var(--ease), border-color .4s;
}
.theme-switch .ic { width: 14px; height: 14px; position: relative; z-index: 1; transition: color .4s var(--ease); }
.theme-switch .knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); transition: transform .5s var(--ease), background-color .5s;
}
.theme-switch .ic-sun { color: var(--bg); }
.theme-switch[aria-checked="true"] .knob { transform: translateX(30px); }
.theme-switch[aria-checked="true"] .ic-sun { color: var(--ink-2); }
.theme-switch[aria-checked="true"] .ic-moon { color: var(--bg); }

/* Variante claire des interrupteurs sur la photo du héros */
.site-header:not(.is-solid) .lang-switch,
.site-header:not(.is-solid) .theme-switch .track { border-color: rgba(255,255,255,.35); }
.site-header:not(.is-solid) .lang-switch::before,
.site-header:not(.is-solid) .theme-switch .knob { background: #f6f1e8; }
.site-header:not(.is-solid) .lang-switch a { color: rgba(255,255,255,.8); }
.site-header:not(.is-solid) .lang-switch a[aria-current] { color: #111a21; }
.site-header:not(.is-solid) .theme-switch .track { color: rgba(255,255,255,.75); }
.site-header:not(.is-solid) .theme-switch .ic-sun { color: #111a21; }
.site-header:not(.is-solid) .theme-switch[aria-checked="true"] .ic-sun { color: rgba(255,255,255,.75); }
.site-header:not(.is-solid) .theme-switch[aria-checked="true"] .ic-moon { color: #111a21; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; color: #fff;
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s, transform .5s var(--ease);
}
.site-header.is-solid {
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; letter-spacing: .14em; }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.nav { margin: 0 auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 8px 14px; font-size: .92rem; font-weight: 450; opacity: .82;
  transition: opacity .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.site-header:not(.is-solid) .header-cta { background: #f6f1e8; color: #111a21; }
.site-header.is-solid .header-cta { background: var(--ink); color: var(--bg); }
.header-cta:hover { background: var(--accent) !important; color: #fff !important; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; position: relative; opacity: .9; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 22px; transform: rotate(-45deg); }

/* Menu mobile */
.menu-open .site-header { background: transparent; box-shadow: none; color: var(--on-night); backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .site-header .header-cta { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--night); color: var(--on-night);
  padding: calc(var(--header-h) + 24px) var(--pad) 32px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.mobile-nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.05; transform: translateY(100%); transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 50ms + 150ms); }
.mobile-nav a span { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; color: var(--on-night-2); }
.mobile-menu.is-open .mobile-nav a { transform: none; }
.mobile-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mobile-menu .lang-switch, .mobile-menu .theme-switch .track { border-color: rgba(255,255,255,.2); }
.mobile-menu .lang-switch::before, .mobile-menu .theme-switch .knob { background: var(--on-night); }
.mobile-menu .lang-switch a { color: var(--on-night-2); }
.mobile-menu .lang-switch a[aria-current] { color: var(--night); }
.mobile-menu .theme-switch .track { color: var(--on-night-2); }
.mobile-menu .theme-switch .ic-sun { color: var(--night); }
.mobile-menu .theme-switch[aria-checked="true"] .ic-sun { color: var(--on-night-2); }
.mobile-menu .theme-switch[aria-checked="true"] .ic-moon { color: var(--night); }
.mobile-menu > .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Héros ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #0c1218;
  min-height: 100svh; display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.12); transition: transform 2.8s var(--ease); }
.is-loaded .hero-media img { transform: scale(1.02); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,12,16,.55) 0%, rgba(8,12,16,0) 22%),
    linear-gradient(90deg, rgba(8,12,16,.6) 0%, rgba(8,12,16,.15) 60%, rgba(8,12,16,0) 100%),
    linear-gradient(0deg, rgba(8,12,16,.92) 0%, rgba(8,12,16,.35) 42%, rgba(8,12,16,0) 70%);
}
.hero-inner { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: clamp(18px, 2.5vw, 28px); }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(226,154,85,.6); animation: pulse 2.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(226,154,85,0); } 100% { box-shadow: 0 0 0 0 rgba(226,154,85,0); } }
.hero-title { font-family: var(--serif); font-size: clamp(3.2rem, 9.6vw, 9.6rem); line-height: .9; letter-spacing: -.025em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 110ms + 200ms); }
.js.is-loaded .hero-title .line > span { transform: none; }
.hero-title em { color: #f0b277; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 52px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.22); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .82rem; color: rgba(255,255,255,.7); text-align: right; }
.hero-meta span:first-child { color: #fff; font-size: .95rem; }
.js .hero-kicker, .js .hero-bottom { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .8s, transform 1s var(--ease) .8s; }
.js.is-loaded .hero-kicker, .js.is-loaded .hero-bottom { opacity: 1; transform: none; }
.scroll-cue { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 64px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 12vw, 168px) 0; }
.section-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2, .about-lead { font-family: var(--serif); font-size: clamp(2.6rem, 5.6vw, 5.2rem); line-height: 1; letter-spacing: -.02em; margin-top: 22px; }
.head-intro { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; margin-top: 22px; line-height: 1.55; }
.head-split { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 64px; align-items: end; }
.head-split .eyebrow { grid-column: 1 / -1; }
.head-split h2 { margin-top: 0; }
.head-split .head-intro { margin-top: 0; justify-self: end; }

/* Révélations au défilement */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(18% 0 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease); }
.js [data-reveal="img"] img { transform: scale(1.15); transition: transform 1.8s var(--ease); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-reveal="img"].is-in img { transform: none; }

/* À propos */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); }
.about-aside { display: flex; flex-direction: column; gap: 40px; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.seal { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.seal text { font-family: var(--sans); font-size: 13px; font-weight: 500; text-transform: uppercase; fill: var(--ink-2); }
.seal img { width: 104px; height: 104px; border-radius: 50%; box-shadow: var(--shadow); }
@keyframes spin { to { transform: rotate(360deg); } }
.about-lead { margin-top: 0; font-size: clamp(2.1rem, 4.2vw, 4rem); line-height: 1.08; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 88px); align-items: end; }
.about-figure { border-radius: var(--radius); overflow: hidden; }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% center; }
.about-body { color: var(--ink-2); font-size: 1.12rem; line-height: 1.7; }
.signature { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.signature-name { font-family: var(--serif); font-size: 2rem; line-height: 1.1; font-style: italic; }
.signature-role { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line-strong); }
.fact { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 6vw, 5.6rem); line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.fact span { color: var(--ink-2); font-size: .95rem; max-width: 18ch; }

/* Zones : bandeau défilant */
.zones { padding: 0 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.zones .eyebrow { display: flex; margin-bottom: 28px; }
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 2.5vw, 30px) 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee p { display: flex; align-items: center; flex-shrink: 0; font-family: var(--serif); font-size: clamp(3rem, 7.5vw, 7.2rem); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.marquee span:nth-of-type(even) { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee i { font-style: normal; font-size: .32em; color: var(--accent); margin: 0 .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Domaines : index */
.domains-section { background: var(--bg-2); }
.domains { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--line-strong); counter-reset: d; }
.domain {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 4px 12px;
  padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.domain::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--accent-soft);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.domain > * { position: relative; z-index: 1; }
.domain-num { font-size: .82rem; color: var(--accent-ink); font-variant-numeric: tabular-nums; padding-left: 4px; }
.domain-name { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -.015em; transition: transform .6s var(--ease); }
.domain-note { grid-column: 2; font-size: .92rem; color: var(--ink-2); }
.domain:hover::before { transform: scaleY(1); }
.domain:hover .domain-name { transform: translateX(12px); font-style: italic; }

/* Activités : cartes empilées */
.cards { display: flex; flex-direction: column; gap: 28px; }
.card {
  display: grid; grid-template-columns: 1fr 1.08fr; min-height: 560px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.card-media { position: relative; overflow: hidden; background: var(--night); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-tag {
  position: absolute; left: 20px; top: 20px; padding: 8px 14px; border-radius: 999px;
  background: rgba(12,18,24,.55); color: #fff; font-size: .78rem; letter-spacing: .04em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18);
}
.card-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(226,154,85,.45), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(180,98,28,.55), transparent 60%),
    #2a1a0f;
  color: #f6e7d4;
}
.card-panel span { font-family: var(--serif); font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.card-panel span:nth-child(even) { font-style: italic; color: #f0b277; padding-left: .6em; }
.card-body { padding: clamp(28px, 3.6vw, 56px); display: flex; flex-direction: column; }
.card-count { font-size: .82rem; letter-spacing: .1em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.card-count span { color: var(--ink-2); }
.card h3 { font-family: var(--serif); font-size: clamp(1.8rem, 2.5vw, 2.5rem); line-height: 1.05; letter-spacing: -.015em; margin: 18px 0 28px; }
.card-facts { margin: 0; display: grid; gap: 0; }
.card-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.card-facts dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.card-facts dd { margin: 0; font-size: .95rem; line-height: 1.5; }
.card-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-logos img { height: 56px; width: auto; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.card-list { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.card-list li { position: relative; padding-left: 22px; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.card-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 1px; background: var(--accent); }
@media (min-width: 1024px) and (min-height: 760px) {
  .card { position: sticky; top: calc(var(--header-h) + 24px + var(--n) * 18px); }
}

/* Galerie : rail horizontal */
.gallery { background: var(--night); color: var(--on-night); overflow: hidden; }
.gallery .eyebrow { color: var(--on-night-2); }
.gallery h2 em { color: #f0b277; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.gallery-head .section-head { margin-bottom: 0; }
.rail-controls { display: flex; align-items: center; gap: 12px; }
.rail-hint { font-size: .82rem; color: var(--on-night-2); margin-right: 8px; }
.gallery .round-btn { border-color: rgba(255,255,255,.2); color: var(--on-night); }
.gallery .round-btn:hover { background: var(--on-night); color: var(--night); }
.rail {
  display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 0 max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  scroll-padding: 0 max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  cursor: grab; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .slide button { pointer-events: none; }
.slide { flex: 0 0 auto; height: clamp(300px, 46vw, 560px); aspect-ratio: var(--r); scroll-snap-align: start; }
.slide button { width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; display: block; background: var(--night-2); }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; user-select: none; -webkit-user-drag: none; }
.slide button:hover img { transform: scale(1.04); }
.rail-progress { height: 1px; background: rgba(255,255,255,.14); margin-top: clamp(28px, 3vw, 44px); position: relative; overflow: hidden; }
.rail-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--on-night); transform-origin: left; transform: scaleX(var(--p, .1)); transition: transform .2s linear; }

/* Partenaires : bande défilante */
.partners { overflow: hidden; }
.logo-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logos { display: flex; flex-shrink: 0; gap: 16px; padding-right: 16px; }
.logos li {
  flex: 0 0 auto; width: clamp(200px, 22vw, 290px); aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: var(--tile); border: 1px solid var(--line); display: grid; place-items: center; padding: 26px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.logos li:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.logos img { max-height: 100px; max-width: 72%; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* Contact */
.contact { padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.contact-title { font-family: var(--serif); font-size: clamp(3.6rem, 12vw, 11.5rem); line-height: .88; letter-spacing: -.035em; margin-top: 22px; }
.contact-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 48px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-strong); }
.contact-top .head-intro { margin: 0; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: clamp(36px, 4vw, 56px) 0; }
.contact-grid h3 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; font-family: var(--sans); }
.contact-list, .contact-list a { font-size: 1.1rem; line-height: 1.7; overflow-wrap: anywhere; }
.contact-list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.contact-list a:hover { background-size: 100% 1px; color: var(--accent-ink); }
.offices span { color: var(--ink-2); font-size: .92rem; }
.contact-media { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.contact-media figure, .map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--bg-2); }
.contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(12,18,24,.6); color: #fff; font-size: .8rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
:root[data-theme="dark"] .map { filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map { filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); padding-top: clamp(72px, 8vw, 112px); font-size: .94rem; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand p { color: var(--on-night); max-width: 32ch; line-height: 1.5; }
.footer-brand span { color: var(--on-night-2); font-size: .85rem; }
.footer-title { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--on-night); margin-bottom: 18px; }
.footer-list li + li { margin-top: 9px; }
.footer-list a { transition: color .3s; overflow-wrap: anywhere; }
.footer-list a:hover, .footer-bottom a:hover { color: var(--on-night); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); color: var(--on-night); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social svg { width: 17px; height: 17px; }
.wordmark {
  font-family: var(--serif); font-size: clamp(5rem, 23vw, 22rem); line-height: .78; letter-spacing: -.04em; text-align: center;
  margin: clamp(56px, 7vw, 96px) 0 0; color: transparent; -webkit-text-stroke: 1px rgba(239,233,222,.16);
  user-select: none; white-space: nowrap;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: 28px 0 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.footer-bottom .lang-switch { border-color: rgba(255,255,255,.18); }
.footer-bottom .lang-switch::before { background: var(--on-night); }
.footer-bottom .lang-switch a { color: var(--on-night-2); }
.footer-bottom .lang-switch a[aria-current] { color: var(--night); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 120; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Visionneuse ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-night); }
.lightbox::backdrop { background: rgba(6, 9, 12, .94); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 96px 48px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 12px; }
.lightbox figcaption { margin-top: 16px; font-size: .85rem; color: var(--on-night-2); min-height: 1.4em; }
.lightbox .round-btn { position: absolute; border-color: rgba(255,255,255,.2); color: var(--on-night); }
.lightbox .round-btn:hover { background: var(--on-night); color: var(--night); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav a { padding: 8px 10px; }
  .nav a::after { left: 10px; right: 10px; }
  .header-cta { display: none; }
}
@media (max-width: 1080px) {
  .nav, .site-header .lang-switch, .site-header .theme-switch { display: none; }
  .menu-btn { display: block; }
  .header-tools { margin-left: auto; }
  .header-cta { display: inline-flex; }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; flex-direction: row; align-items: center; justify-content: space-between; }
  .seal { width: 150px; height: 150px; }
  .seal img { width: 80px; height: 80px; }
  .head-split { grid-template-columns: 1fr; }
  .head-split .head-intro { justify-self: start; }
  .card { grid-template-columns: 1fr; min-height: 0; }
  .card-media { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 72px; }
  body { font-size: 1rem; }
  .header-cta { display: none; }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero-meta { align-items: flex-start; text-align: left; }
  .about-cols { grid-template-columns: 1fr; }
  .about-figure img { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { margin-top: 28px; }
  .domains { grid-template-columns: 1fr; }
  .domain { grid-template-columns: 48px 1fr; }
  .card-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .rail-hint { display: none; }
  .slide { height: clamp(260px, 72vw, 420px); }
  .logos li { padding: 18px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-media { grid-template-columns: 1fr; }
  .contact-media figure, .map-wrap { min-height: 260px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:nth-child(4) { grid-column: 1 / -1; }
  .footer-list a { overflow-wrap: normal; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lightbox figure { padding: 72px 12px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="img"], .js [data-reveal="img"] img, .js .hero-title .line > span, .js .hero-kicker, .js .hero-bottom { opacity: 1; transform: none; clip-path: none; }
  .marquee-track, .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}
