/* Dor de Paris — feuille de style unique.
   Fond beige, accents vert forêt et bordeaux. Typographie monumentale, angles vifs sauf les boutons en pilule,
   mouvements lents en cubic-bezier(0.19, 1, 0.22, 1). */

:root {
  --beige: #EDE5D8;
  --beige-2: #F5F0E7;
  --beige-3: #E0D5C3;
  --vert: #0B3D33;
  --vert-2: #145446;
  --bordeaux: #6B1E2A;
  --bordeaux-2: #84283A;
  --bordeaux-deep: #3E0F18;
  --encre: #1C1714;

  --bg: var(--beige);
  --bg-2: var(--beige-2);
  --ink: var(--encre);
  --ink-2: #6A5E53;
  --line: rgba(28, 23, 20, .18);
  --line-soft: rgba(28, 23, 20, .09);
  --accent: var(--bordeaux);
  --accent-hover: var(--bordeaux-2);
  --on-accent: var(--beige-2);
  --green: var(--vert);
  --motif: var(--vert);
  --error: #9B2C24;
  --todo-bg: rgba(107, 30, 42, .1);

  --f-title: "Cinzel", "Times New Roman", serif;
  --f-accent: "Cormorant Garamond", "Times New Roman", serif;
  --f-text: "Jost", ui-sans-serif, system-ui, sans-serif;

  --t-label: 11px;
  --t-small: 14px;
  --t-body: 17px;
  --t-lead: clamp(18px, 1.5vw, 21px);
  --t-h4: clamp(19px, 1.7vw, 22px);
  --t-h3: clamp(30px, 3.6vw, 48px);
  --t-h2: clamp(34px, 5vw, 70px);
  --t-display-2: clamp(42px, 7.2vw, 112px);
  --t-display: clamp(56px, 10.5vw, 176px);

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --slow: 1.25s;
  --mid: .8s;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header-h: 72px;
  --pill: 75px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1411;
    --bg-2: #241C18;
    --ink: var(--beige);
    --ink-2: #B5A895;
    --line: rgba(237, 229, 216, .22);
    --line-soft: rgba(237, 229, 216, .1);
    --accent: #A8384A;
    --accent-hover: #BD4A5C;
    --green: #7FA69A;
    --motif: var(--beige);
    --error: #F0A497;
    --todo-bg: rgba(237, 229, 216, .12);
  }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 var(--t-body)/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
html.has-intro body { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; max-width: 65ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
main { position: relative; z-index: 1; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 20px; border-radius: var(--pill); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
mark.todo { background: var(--todo-bg); color: inherit; padding: 0 .25em; outline: 1px dashed currentColor; outline-offset: -1px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- fond : grain, logo, fil du curseur */

.grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; background: url(/assets/grain.svg) 0 0 / 220px 220px repeat; opacity: .28; mix-blend-mode: multiply; animation: grain 9s steps(9) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } }
@media (prefers-color-scheme: dark) { .grain { mix-blend-mode: soft-light; opacity: .55; } }

.bg-logo { position: fixed; z-index: 0; pointer-events: none; right: -18vw; top: 50%; width: min(62vw, 820px); transform: translateY(-46%); color: var(--motif); opacity: .09; }
.bg-logo svg { width: 100%; height: auto; overflow: visible; animation: bg-float 22s ease-in-out infinite; }
.bg-squares { transform-box: fill-box; transform-origin: center; animation: bg-spin 80s linear infinite; }
@keyframes bg-float { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(-1.2%, -2.2%) rotate(-2deg); } 66% { transform: translate(1%, 1.6%) rotate(1.5deg); } }
@keyframes bg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bg-logo svg, .bg-squares { animation: none; } }
.bg-arch { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0)); }
.bg-squares rect { opacity: 0; transition: opacity .6s ease; }
.bg-squares rect.on { opacity: .45; }
@media (max-width: 960px) { .bg-logo { right: -45vw; width: 120vw; opacity: .07; } }

.thread { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 70; pointer-events: none; }

/* ---------------------------------------------------------------- typographie */

.label { font: 400 var(--t-label)/1.4 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px; }
.h2, .h3, .display-2, .hero-title .ht-1, .dor-word, .congress-date, .svc-title { font-family: var(--f-title); letter-spacing: .05em; text-transform: uppercase; }
.h2 { font-size: var(--t-h2); line-height: 1.02; }
.h3 { font-size: var(--t-h3); line-height: 1.05; }
.h4 { font: 400 var(--t-h4)/1.3 var(--f-text); letter-spacing: .01em; }
.display-2 { font-size: var(--t-display-2); line-height: .98; letter-spacing: .03em; }
.accent { font-family: var(--f-accent); font-style: italic; font-weight: 300; text-transform: none; letter-spacing: 0; }
.lead { font-size: var(--t-lead); line-height: 1.6; }

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 11px 34px; border-radius: var(--pill); border: 1px solid transparent;
  font: 400 15px/1.2 var(--f-text); letter-spacing: .05em; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--mid) var(--ease), border-color var(--mid) var(--ease), letter-spacing var(--mid) var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform var(--mid) var(--ease); }
.btn:hover { letter-spacing: .09em; }
.btn:hover::before { transform: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary::before { background: var(--accent-hover); }
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }
.btn--light { color: var(--beige-2); border-color: rgba(245, 240, 231, .55); }
.btn--light::before { background: var(--beige-2); }
.btn--light:hover { color: var(--encre); border-color: var(--beige-2); }
.btn--sm { min-height: 36px; padding: 7px 20px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 30px; }
.link-arrow { font-size: 15px; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--accent); }
.link-arrow::after { content: "\00a0→"; display: inline-block; transition: transform var(--mid) var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------------------------------------------------------------- motifs */

.xs { color: var(--motif); }
.xs.is-stitch rect { opacity: 0; animation: stitch .01s linear forwards; animation-delay: calc(var(--i) * var(--stitch-step, 14ms) + var(--stitch-start, 0ms)); }
@keyframes stitch { to { opacity: 1; } }
.divider { display: flex; align-items: center; gap: 18px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.divider span { flex: 1; height: 1px; background: var(--line); }
.divider-mark { width: 26px; height: 26px; color: var(--accent); }
.altita { overflow: hidden; height: 12px; opacity: .6; }
.altita .xs { height: 12px; width: auto; max-width: none; color: currentColor; }

.ia-band { --h: clamp(46px, 5.4vw, 80px); --c1: var(--vert); --c2: var(--bordeaux); position: relative; z-index: 1; height: var(--h); overflow: hidden; }
@media (prefers-color-scheme: dark) { .ia-band { --c1: var(--beige); --c2: #A8384A; } }
.ia-band span { position: absolute; inset: 0; -webkit-mask: var(--tile) 0 0 / auto 100% repeat-x; mask: var(--tile) 0 0 / auto 100% repeat-x; animation: ia-drift 70s linear infinite; }
.ia-band--rev span { animation-direction: reverse; }
.ia-a { background: var(--c1); }
.ia-b { background: var(--c2); }
@keyframes ia-drift { to { -webkit-mask-position: calc(var(--h) * var(--ratio) * -4) 0; mask-position: calc(var(--h) * var(--ratio) * -4) 0; } }
html.js .ia-band span { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s steps(40, end); }
html.js .ia-band.is-in span { clip-path: inset(0 0 0 0); }
.band--accent .ia-band, .ia-band--footer { --c1: var(--beige); --c2: #D9A3AB; }
.ia-band--footer { --h: clamp(40px, 4.4vw, 64px); margin-top: 24px; }

/* ---------------------------------------------------------------- en-tête */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 0 var(--gutter); color: var(--ink);
  transition: background-color var(--mid) var(--ease), transform var(--mid) var(--ease), border-color var(--mid) var(--ease), color var(--mid) var(--ease);
  border-bottom: 1px solid transparent;
}
html.on-hero .site-header:not(.is-solid) { color: var(--beige-2); }
html.on-hero .site-header:not(.is-solid) .btn--ghost { color: var(--beige-2); border-color: rgba(245, 240, 231, .6); }
html.on-hero .site-header:not(.is-solid) .clocks small { color: rgba(245, 240, 231, .7); }
.site-header.is-solid { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line-soft); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: block; color: inherit; }
.logo-h { height: 34px; width: auto; }
.main-nav ul { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 40px); }
.main-nav a, .footer-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.nav-mark, .li-mark { width: 7px; height: 7px; flex: none; color: var(--accent); opacity: 0; transform: scale(.4) rotate(-45deg); transition: opacity .4s ease, transform var(--mid) var(--ease); }
html.on-hero .site-header:not(.is-solid) .nav-mark { color: currentColor; }
.main-nav a:hover .nav-mark, .main-nav a[aria-current] .nav-mark { opacity: 1; transform: none; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.clocks { display: flex; gap: 14px; font-size: 12px; font-variant-numeric: tabular-nums; }
.clocks span { display: flex; flex-direction: column; line-height: 1.2; }
.clocks small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.lang-switch { display: flex; gap: 10px; font-size: 12px; letter-spacing: .12em; }
.lang-switch a { text-decoration: none; opacity: .55; padding: 4px 0; }
.lang-switch a[aria-current], .lang-switch a:hover { opacity: 1; text-decoration: underline; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.menu-toggle-lines { width: 22px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform var(--mid) var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { transform: scaleY(0); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bordeaux-deep); color: var(--beige);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path var(--slow) var(--ease); overflow: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu ol a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; text-decoration: none; font: 400 clamp(32px, 9vw, 56px)/1.1 var(--f-title); letter-spacing: .05em; text-transform: uppercase; }
.mm-num { font: 400 11px var(--f-text); letter-spacing: .2em; opacity: .6; }
.mm-foot { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.mobile-menu .clocks small { color: rgba(237, 229, 216, .7); }
.mm-motif { position: absolute; right: -40px; bottom: 90px; width: 260px; color: var(--beige); opacity: .08; }
html.menu-open .site-header { color: var(--beige) !important; background: transparent; border-color: transparent; backdrop-filter: none; }
html.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- intro (logo) */

.intro { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--bordeaux-deep); color: var(--beige); }
html.js.has-intro .intro { display: grid; }
.intro-inner { width: min(62vw, 560px); }
.intro-logo { width: 100%; height: auto; overflow: visible; transform-origin: 50% 47.7%; }
.intro-arch { stroke-dasharray: 1; stroke-dashoffset: 1; animation: arch-draw 1.3s var(--ease) .15s forwards; }
.intro-stitches rect { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); animation: stitch-pop .5s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * 26ms); }
.intro-word { clip-path: inset(0 50% 0 50%); animation: word-open 1.4s var(--ease) 1.35s forwards; }
@keyframes arch-draw { to { stroke-dashoffset: 0; } }
@keyframes stitch-pop { to { opacity: 1; transform: none; } }
@keyframes word-open { to { clip-path: inset(0 0 0 0); } }
.intro.is-leaving { pointer-events: none; animation: intro-fade 1.1s var(--ease) .35s forwards; }
.intro.is-leaving .intro-logo { animation: through-door 1.5s cubic-bezier(.7, 0, .2, 1) forwards; }
.intro.is-leaving .intro-word { animation: none; clip-path: none; opacity: 0; transition: opacity .3s; }
@keyframes through-door { to { transform: scale(16); } }
@keyframes intro-fade { to { opacity: 0; visibility: hidden; } }
.intro-skip { position: absolute; right: var(--gutter); bottom: 24px; background: none; border: 0; color: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; cursor: pointer; }

[data-hero] { opacity: 0; transform: translateY(36px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
[data-hero="2"] { transition-delay: 90ms; }
[data-hero="3"] { transition-delay: 180ms; }
[data-hero="4"] { transition-delay: 270ms; }
[data-hero="5"] { transition-delay: 360ms; }
html.has-intro .xs.is-stitch rect { animation-play-state: paused; }
html.is-ready [data-hero], html.no-js [data-hero] { opacity: 1; transform: none; }
html.js [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero plein écran */

.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--beige-2); overflow: hidden; isolation: isolate; background: var(--bordeaux-deep); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: -2; }
.slide { position: absolute; inset: 0; margin: 0; clip-path: inset(18% 34% 0 34% round 50vw 50vw 0 0); opacity: 0; transition: clip-path 1.8s var(--ease), opacity .01s linear 1.8s; }
.slide.is-active { clip-path: inset(0 0 0 0 round 0); opacity: 1; z-index: 1; transition: clip-path 1.8s var(--ease), opacity .01s; }
.slide.is-leaving { opacity: 1; z-index: 0; clip-path: inset(0 0 0 0 round 0); transition: none; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; transform: scale(1.12); }
.slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-shade { z-index: -1; background: rgba(28, 12, 12, .42); }
.hero-shade::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: rgba(28, 12, 12, .35); -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); }
.hero-archline { position: absolute; z-index: -1; left: 50%; bottom: 0; height: 92%; width: auto; transform: translateX(-50%); color: rgba(245, 240, 231, .35); }
.hero-archline path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease) .3s; }
html.is-ready .hero-archline path { stroke-dashoffset: 0; }
.hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
.hero-eyebrow { color: rgba(245, 240, 231, .78); }
.hero-title { display: flex; flex-direction: column; margin: 0 0 28px; }
.hero-title .ht-1 { font-size: var(--t-display); line-height: .86; letter-spacing: .03em; margin-left: -.04em; }
.hero-title .ht-2 { font-size: calc(var(--t-display) * .44); line-height: 1.05; margin-top: .15em; max-width: 18ch; }
.hero-copy { font-size: var(--t-lead); line-height: 1.6; max-width: 52ch; color: rgba(245, 240, 231, .9); }
.hero-foot { display: flex; justify-content: flex-end; gap: 18px; padding-bottom: 28px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 240, 231, .7); }
.hero-count { font-variant-numeric: tabular-nums; }
.hero .scroll-badge { color: var(--beige-2); }
.scroll-badge { position: absolute; left: var(--gutter); bottom: 22px; z-index: 3; width: 100px; height: 100px; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.scroll-badge > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.scroll-badge text { font: 400 9.6px var(--f-text); letter-spacing: .2em; text-transform: uppercase; fill: currentColor; }
.scroll-badge-mark { width: 16px; height: 16px; color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .scroll-badge { display: none; }

/* ---------------------------------------------------------------- arche */

.arch { margin: 0; }
.arch-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 9999px 9999px 0 0; outline: 1px solid var(--line); outline-offset: 10px; background: var(--bg-2); }
.arch picture, .arch img { width: 100%; height: 100%; }
.arch img { object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease), opacity .9s var(--ease); }
.arch.is-in img, .no-js .arch img { transform: none; }
.stitch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.has-stitch.is-stitched .stitch-canvas { opacity: 1; }
.has-stitch.is-stitched img { opacity: 0; }
.arch--empty .arch-frame { display: grid; place-items: center; align-content: center; gap: 24px; padding: 24px; text-align: center; font-size: var(--t-small); }
.arch-placeholder { width: 90px; color: var(--accent); opacity: .5; }

/* ---------------------------------------------------------------- photos */

.photo { margin: 0; position: relative; }
.photo-frame { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.photo--tall .photo-frame { aspect-ratio: 3 / 4.4; }
.photo--square .photo-frame { aspect-ratio: 1; }
.photo--card .photo-frame { aspect-ratio: 4 / 5; }
.photo--arch .photo-frame { aspect-ratio: 3 / 4; border-radius: 9999px 9999px 0 0; }
.photo--free .photo-frame { aspect-ratio: auto; }
.photo--bleed, .photo--bleed .photo-frame { position: absolute; inset: 0; aspect-ratio: auto; }
.photo picture, .photo img { display: block; width: 100%; height: 100%; }
.photo img { object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.16); filter: url(#duo); will-change: transform; }
.photo--free img { height: auto; transform: none; }
.photo img.photo-color { position: absolute; inset: 0; z-index: 1; height: 100%; filter: none; -webkit-clip-path: circle(0 at var(--mx, 50%) var(--my, 50%)); clip-path: circle(0 at var(--mx, 50%) var(--my, 50%)); transition: clip-path 1.1s var(--ease), -webkit-clip-path 1.1s var(--ease); }
.photo.is-color img.photo-color { -webkit-clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
html.js .photo .photo-frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
html.js .photo--arch .photo-frame { clip-path: inset(100% 0 0 0 round 9999px 9999px 0 0); }
html.js .photo.is-in .photo-frame { clip-path: inset(0 0 0 0); }
html.js .photo--arch.is-in .photo-frame { clip-path: inset(0 0 0 0 round 9999px 9999px 0 0); }
html.js .photo--bleed .photo-frame { clip-path: none; }
.gallery-caption { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 28px; }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(72px, 11vw, 160px) 0; position: relative; z-index: 1; }
.section-head { margin-bottom: clamp(32px, 5vw, 64px); }

/* manifeste : les mots s'allument au défilement */
.mf { font: 300 clamp(34px, 5.6vw, 88px)/1.08 var(--f-accent); letter-spacing: -.005em; max-width: 20ch; }
.mf-line { display: block; }
.mf .w { opacity: .14; transition: opacity .5s ease, color .5s ease; }
.mf .w.on { opacity: 1; }
.mf-accent { font-style: italic; color: var(--accent); }
.mf-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-top: clamp(40px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.mf-foot .lead { margin: 0; }
.mf-foot .actions { margin: 0; }

/* pourquoi moi */
.reason-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: 32px; }
.reason-list li { border-top: 1px solid var(--ink); padding-top: 28px; }
.reason-mark { width: 44px; height: 44px; color: var(--accent); margin-bottom: 22px; }
.reason-list li:nth-child(2) .reason-mark { color: var(--green); }
.reason-list h3 { margin-bottom: 10px; font-size: clamp(21px, 2vw, 26px); }
.reason-list p { color: var(--ink-2); }

/* services en cartes */
.svc-cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.svc-card { grid-column: span 4; }
.svc-card--1, .svc-card--2 { grid-column: span 6; }
.svc-card--2 { margin-top: clamp(40px, 8vw, 120px); }
.svc-card a { display: block; text-decoration: none; }
.svc-card .photo-frame { transition: transform 1.2s var(--ease); }
.svc-card a:hover .photo-frame { transform: scale(.98); }
.svc-meta { display: grid; gap: 6px; padding-top: 18px; }
.svc-num { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.svc-title { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; }
.svc-line { color: var(--ink-2); max-width: 42ch; }
.svc-quote { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.svc-quote span { display: inline-block; transition: transform var(--mid) var(--ease); }
.svc-card a:hover .svc-quote span { transform: translateX(6px); }

/* galerie à onglets */
.gallery-tabs ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.gtab { background: none; border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 20px; font-size: 13px; letter-spacing: .08em; cursor: pointer; transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.gtab:hover { border-color: var(--ink); }
.gtab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Grille en mosaïque : chaque photo s'étend sur autant de rangées de 2px que sa hauteur (calculé dans main.js).
   Pas de colonnes CSS : Safari y casse l'effet de couleur au survol hors de la première colonne. */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 2px; column-gap: clamp(12px, 1.6vw, 22px); align-items: start; }
.g-item { margin-bottom: clamp(12px, 1.6vw, 22px); }
.g-grid[data-filter="all"] .g-item:not([data-featured]) { display: none; }
.g-item.is-hidden { display: none; }

/* congrès (bandeau bordeaux) */
.band--accent { position: relative; z-index: 1; background: var(--bordeaux); color: var(--beige-2); }
.band--accent .label, .band--accent .disclaimer { color: rgba(245, 240, 231, .75); }
.band--accent .link-arrow { color: var(--beige-2); }
.congress { padding: 18px 0; }
.congress-inner { padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(64px, 9vw, 140px); }
.congress-date { font-size: clamp(52px, 13vw, 220px); line-height: .9; letter-spacing: .02em; margin: 0 0 clamp(32px, 5vw, 72px); white-space: nowrap; max-width: none; }
.congress-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.congress .h2 { font-size: clamp(30px, 4vw, 56px); }
.disclaimer { font-size: 13px; margin-top: 28px; }
.congress-page .congress { padding-top: calc(var(--header-h) + 18px); }

/* qui vous répond */
.teaser-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.teaser-photo { max-width: 440px; width: 100%; }
.teaser-text .h2 { margin-bottom: 24px; }

/* étapes */
.step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: 40px; }
.step-list li { border-top: 1px solid var(--ink); padding-top: 22px; }
.step-num { display: block; font: 300 italic clamp(56px, 6vw, 96px)/1 var(--f-accent); margin-bottom: 18px; color: var(--accent); }
.step-list h3 { margin-bottom: 10px; }
.step-list p { color: var(--ink-2); font-size: 16px; }

/* appel final sur photo */
.final-cta { position: relative; z-index: 1; min-height: 80svh; display: flex; align-items: center; color: var(--beige-2); overflow: hidden; isolation: isolate; background: var(--bordeaux-deep); }
.final-media { position: absolute; inset: 0; z-index: -1; }
.final-media::after { content: ""; position: absolute; inset: 0; background: rgba(40, 12, 16, .55); }
.final-media .photo img { filter: none; }
.final-inner { padding-top: 120px; padding-bottom: 120px; }
.final-cta .display-2 { max-width: 16ch; margin-bottom: 36px; }

/* ---------------------------------------------------------------- dor */

.dor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: center; margin-top: 32px; }
.dor-arch { aspect-ratio: 3 / 4; max-width: 400px; width: 100%; border: 1px solid var(--line); border-radius: 9999px 9999px 0 0; display: grid; place-items: center; padding: 18%; background: var(--bg-2); }
.dor-symbol { width: 100%; height: auto; color: var(--accent); }
.dor-head { font-family: var(--f-accent); font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 28px; }
.dor-word { font-size: clamp(64px, 11vw, 168px); line-height: .9; display: inline-block; margin-right: .06em; vertical-align: -.08em; letter-spacing: .08em; color: var(--accent); }
.dor-head em { font-weight: 300; }
.dor-gram { font-style: italic; color: var(--ink-2); }
.dor-def { font: 300 italic clamp(26px, 3.2vw, 44px)/1.2 var(--f-accent); max-width: 26ch; margin-bottom: 24px; }
.dor-note { color: var(--ink-2); }
.name-text { columns: 2 280px; column-gap: 48px; margin-top: clamp(40px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.name-text p { font-size: var(--t-lead); break-inside: avoid; }

/* ---------------------------------------------------------------- à propos */

.about-hero { position: relative; z-index: 1; padding: calc(var(--header-h) + clamp(48px, 8vw, 120px)) 0 clamp(40px, 6vw, 80px); }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 110px); align-items: end; }
.about-lead { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.15; color: var(--accent); margin-top: 28px; }
.about-arch { max-width: 560px; width: 100%; justify-self: end; }
/* Portrait en entier (photo en paysage) : cadre rectangulaire au lieu de l'arche. */
.about-arch .arch-frame { aspect-ratio: 4 / 3; border-radius: 6px; }
.about-arch img { object-fit: contain; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.story-col p { font-size: var(--t-lead); line-height: 1.7; }
.dropcap::first-letter { float: left; font: 400 5.2em/.8 var(--f-title); margin: .06em .12em 0 0; color: var(--accent); }
.about-strip { position: relative; z-index: 1; padding-bottom: 40px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); align-items: end; }
.strip-2 { margin-bottom: 14%; }
.strip-4 { margin-bottom: 6%; }
.quote { margin: 0; font: 300 italic clamp(30px, 4.4vw, 64px)/1.15 var(--f-accent); max-width: 22ch; color: var(--accent); }
.quote cite { display: block; margin-top: 24px; font: 400 12px var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); font-style: normal; }
.commit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: 48px; }
.commit-list li { padding: 28px 0; border-top: 1px solid var(--line); }
.commit-mark { width: 18px; height: 18px; color: var(--accent); margin-bottom: 18px; }
.commit-list h3 { margin-bottom: 8px; }
.commit-list p { color: var(--ink-2); }

/* ---------------------------------------------------------------- pages internes */

.page-head { position: relative; z-index: 1; padding: calc(var(--header-h) + clamp(56px, 10vw, 150px)) 0 clamp(48px, 7vw, 100px); overflow: hidden; }
.page-head--small { padding-bottom: 24px; }
.page-motif { position: absolute; right: -40px; top: calc(var(--header-h) + 10px); width: clamp(180px, 26vw, 380px); opacity: .08; color: var(--accent); --stitch-step: 18ms; }
.page-intro { max-width: 62ch; margin-top: 28px; }
.subnav { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: transform .45s var(--ease, ease), visibility 0s; }
.scrolling-down .subnav { transform: translateY(calc(-100% - var(--header-h))); visibility: hidden; transition: transform .45s var(--ease, ease), visibility 0s .45s; }
.subnav ul { display: flex; gap: 28px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.subnav a { white-space: nowrap; text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.subnav a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-legal a { color: inherit; }
.steps-guide { max-width: 46ch; margin-top: 48px; font-size: 1.15rem; line-height: 1.6; }

.service-block { position: relative; z-index: 1; padding: clamp(64px, 9vw, 140px) 0; border-bottom: 1px solid var(--line-soft); }
.service-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.service-media { position: relative; padding-bottom: 12%; }
.service-media .service-arch { max-width: 460px; width: 100%; }
.service-photo2 { position: absolute; right: -4%; bottom: 0; width: 46%; z-index: 2; }
.service-photo2 .photo-frame { outline: 8px solid var(--bg); }
.service-block--alt .service-media { order: 2; }
@media (min-width: 961px) { .service-media { position: sticky; top: calc(var(--header-h) + 72px); } .service-block--alt .service-photo2 { right: auto; left: -4%; } }
.service-body .sr-num { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.service-body .h2 { margin: 8px 0 24px; }
.included { margin: 0 0 32px; }
.included li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.included .li-mark, .quote-tag .li-mark { opacity: 1; transform: none; width: 8px; height: 8px; }
.options { margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.options li { border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 16px; font-size: 14px; }
.formulas { margin: 0 0 20px; max-width: 62ch; }
.formulas dt { font-family: var(--f-title); letter-spacing: .08em; text-transform: uppercase; margin-top: 16px; }
.formulas dd { margin: 4px 0 0; color: var(--ink-2); }
.quote-tag { display: flex; align-items: center; gap: 12px; font-weight: 400; margin-top: 24px; color: var(--accent); }
.notice { font-size: 14px; border-left: 1px solid currentColor; padding-left: 14px; margin-top: 28px; }
.launch-note { position: relative; z-index: 1; padding: clamp(48px, 7vw, 100px) var(--gutter); }

.congress-photos-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: clamp(16px, 3vw, 48px); align-items: end; }
.cp-2 { margin-bottom: 12%; }

/* contact */
.contact-section { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.contact-form { display: grid; gap: 22px; max-width: 680px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.req { color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 10px 0; font-size: 18px; font-weight: 300; min-height: 46px; appearance: none; -webkit-appearance: none; }
.field textarea { border: 1px solid var(--ink); padding: 12px 14px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select option { color: #000; background: #fff; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 14px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.field--check label { text-transform: none; letter-spacing: 0; font-size: 15px; line-height: 1.5; }
.field-error { color: var(--error); font-size: 14px; margin: -8px 0 0; font-weight: 400; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.form-status { min-height: 1.5em; margin: 0; }
.form-preview { white-space: pre-wrap; font: 300 15px/1.5 var(--f-text); background: var(--bg-2); padding: 18px 20px; border-left: 1px solid var(--accent); margin: 0; }
.direct-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.direct-list .label { margin: 0; }
.direct-list a { font-size: 18px; text-decoration: none; user-select: all; }
.contact-photo { max-width: 320px; margin-top: 40px; }

.legal { position: relative; z-index: 1; padding-bottom: clamp(72px, 10vw, 140px); }
.legal section { padding: 28px 0; border-top: 1px solid var(--line-soft); }
.legal h2 { margin-bottom: 12px; }
.nf .display-2 { margin-bottom: 48px; }
.nf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.nf-block { border-top: 1px solid var(--line); padding-top: 22px; }
.nf-block .h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 14px; }

/* ---------------------------------------------------------------- pied de page */

.site-footer { position: relative; z-index: 1; background: var(--vert); color: var(--beige); overflow: hidden; padding-bottom: 32px; }
.site-footer .label { color: rgba(237, 229, 216, .66); margin-top: 28px; }
.footer-motif { position: absolute; right: -30px; bottom: -40px; width: clamp(200px, 26vw, 360px); color: var(--beige); opacity: .06; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: clamp(56px, 8vw, 110px); padding-bottom: 56px; position: relative; }
.footer-symbol { width: 92px; margin-bottom: 26px; }
.footer-tagline { font: 300 italic clamp(22px, 2.4vw, 30px)/1.3 var(--f-accent); max-width: 22ch; }
.footer-mail { text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-links li { padding: 5px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(237, 229, 216, .2); font-size: 13px; color: rgba(237, 229, 216, .75); position: relative; }
.footer-bottom p { margin: 0; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1180px) { .clocks { display: none; } .mobile-menu .clocks { display: flex; } }
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .main-nav, .header-tools > .lang-switch, .header-tools > .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { grid-template-columns: 1fr auto; }
  .logo-h { height: 30px; }
  .hero-title .ht-1 { font-size: clamp(60px, 19vw, 130px); }
  .hero-title .ht-2 { font-size: clamp(30px, 8.6vw, 60px); }
  .hero-archline { height: 70%; }
  .hero-foot { justify-content: space-between; }
  .mf-foot, .teaser-grid, .dor, .service-grid, .about-hero-grid, .contact-grid, .congress-cols, .story-grid { grid-template-columns: 1fr; }
  .reason-list { grid-template-columns: 1fr; }
  .svc-card, .svc-card--1, .svc-card--2 { grid-column: span 12; margin-top: 0; }
  .svc-card--3, .svc-card--4 { grid-column: span 6; }
  .g-grid { grid-template-columns: 1fr 1fr; }
  .dor-arch { max-width: 280px; }
  .about-arch { justify-self: start; max-width: none; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .service-block--alt .service-media { order: 0; }
  .service-media { max-width: 420px; }
  .congress-photos-grid { grid-template-columns: 1fr 1fr; }
  .cp-1 { grid-row: span 2; }
  .step-list { grid-template-columns: 1fr 1fr; }
  .commit-list, .nf-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .svc-card--3, .svc-card--4 { grid-column: span 12; }
  .step-list, .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .congress-date { font-size: clamp(40px, 14vw, 80px); white-space: normal; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js [data-reveal], [data-hero] { opacity: 1; transform: none; }
  .ia-band span, .grain, .slide.is-active img { animation: none !important; }
  .mf .w { opacity: 1; }
  .thread { display: none; }
}
