/* ==========================================================================
   Anne Geffrelot, peintures : thème "Baie"
   Palette : bleu encre de la Baie, sable, brume. Typo : Cormorant Garamond + Jost.
   ========================================================================== */

:root {
    --ink: #111824;
    --ink-2: #1a2434;
    --navy: #2b3950;
    --paper: #f6f3ec;
    --paper-2: #ebe6d8;
    --sand: #e2d9b5;
    --sand-deep: #b9a56d;
    --sea: #a9cbe3;
    --sea-deep: #55809f;
    --text: #232a36;
    --text-soft: #5b6574;
    --on-dark: #e9e7e1;
    --on-dark-soft: #aeb6c2;
    --line: rgba(35, 42, 54, .14);
    --line-light: rgba(233, 231, 225, .18);

    --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --font-text: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

    --header-h: 76px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section-y: clamp(4rem, 9vw, 8rem);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-text);
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

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

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .6rem 1rem;
    background: var(--paper); color: var(--ink); transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); }

/* ---------- Typographie ---------- */

.eyebrow {
    font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
    color: var(--sea-deep); margin-bottom: 1.1rem;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow--light { color: var(--sea); }
.eyebrow--sand { color: var(--sand); }
.eyebrow--center { text-align: center; }

.section-title {
    font-family: var(--font-display); font-weight: 500; font-style: italic;
    font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.005em;
    color: var(--ink); margin-bottom: 1.5rem;
}
.section-title--light { color: var(--on-dark); }
.section-title--center { text-align: center; }

.richtext > * + * { margin-top: 1.1em; }
.richtext p { max-width: 62ch; }
.richtext a { color: var(--sea-deep); }
.richtext strong { font-weight: 500; }
.richtext--light { color: var(--on-dark); }
.richtext--light a { color: var(--sea); }
.richtext--center { text-align: center; }
.richtext--center p { margin-inline: auto; }
.richtext h2, .richtext h3 { font-family: var(--font-display); font-weight: 500; font-style: italic; color: inherit; line-height: 1.2; }
.richtext h2 { font-size: 1.8rem; margin-top: 2rem; }
.richtext h3 { font-size: 1.4rem; margin-top: 1.6rem; }

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.9rem; border: 1px solid transparent; border-radius: 2px;
    font-family: var(--font-text); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
    text-decoration: none; line-height: 1.2; cursor: pointer;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--sand); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--navy); }
.btn--ghost { border-color: var(--line-light); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--sand); color: var(--sand); }

/* ---------- Header ---------- */

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    color: var(--on-dark);
    transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-solid {
    background: rgba(17, 24, 36, .86);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line-light);
}
.site-header__inner {
    height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: .9rem; line-height: 1; text-decoration: none; position: relative; z-index: 2; }
.brand__mark { width: 50px; height: auto; opacity: 1; filter: brightness(1.9) contrast(1.1); transition: transform .5s var(--ease), opacity .3s; }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.06); opacity: 1; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-style: italic; font-size: 1.85rem; font-weight: 500; color: var(--sea); letter-spacing: .01em; }
.brand__tag { font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: .35rem; padding-left: .15rem; }

.site-nav { display: flex; align-items: center; gap: 2.2rem; }
.site-nav__list { display: flex; gap: 2rem; }
.site-nav__list a {
    position: relative; display: inline-block; padding: .4rem 0; text-decoration: none;
    font-size: .8rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
}
.site-nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sand);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__list a[aria-current="page"] { color: var(--sand); }

.social { display: flex; gap: .6rem; }
.social a {
    display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-light);
    border-radius: 50%; transition: background .3s, color .3s, border-color .3s;
}
.social a:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }

.nav-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; background: none; border: 0; padding: 0; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2.5rem;
        background: var(--ink); padding: 6rem var(--gutter) 3rem;
        opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; }
    .site-nav__list { flex-direction: column; align-items: center; gap: 1.2rem; }
    .site-nav__list a { font-family: var(--font-display); font-style: italic; font-size: 2rem; letter-spacing: 0; text-transform: none; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Hero accueil ---------- */

.hero {
    position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--on-dark);
    background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: slow-zoom 24s ease-out both; }
.hero__veil {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(17, 24, 36, .55) 0%, rgba(17, 24, 36, .15) 35%, rgba(17, 24, 36, .85) 100%);
}
.hero__content { padding-block: calc(var(--header-h) + 3rem) clamp(4rem, 9vw, 7rem); }
.hero__title {
    max-width: 16ch; font-family: var(--font-display); font-weight: 500; font-style: italic;
    font-size: clamp(2.6rem, 7.2vw, 6rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 1.5rem;
}
.hero__sub { max-width: 52ch; font-size: 1.15rem; color: var(--on-dark); opacity: .9; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
    position: absolute; right: var(--gutter); bottom: 2.5rem; width: 1px; height: 64px; padding: 0; border: 0; background: rgba(233, 231, 225, .3); overflow: hidden;
}
.hero__scroll span { display: block; width: 100%; height: 100%; background: var(--sand); animation: scroll-line 2.2s var(--ease) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* ---------- Titre de page ---------- */

.page-hero {
    position: relative; isolation: isolate; background: var(--ink); color: var(--on-dark); text-align: center;
    padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(3rem, 6vw, 5rem); overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(60% 90% at 50% 0%, rgba(85, 128, 159, .28), transparent 70%);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero__title {
    font-family: var(--font-display); font-weight: 500; font-style: italic;
    font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.05; max-width: 20ch; margin-inline: auto;
}
.page-hero__sub { max-width: 56ch; margin: 1.4rem auto 0; color: var(--on-dark-soft); }
.page-hero__sub p + p { margin-top: .3rem; }

/* ---------- Exposition à la une ---------- */

.highlight { background: var(--sand); padding-block: var(--section-y); }
.highlight__grid { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: center; }
.highlight__badge { width: 120px; margin-bottom: 1.5rem; }
.highlight .eyebrow { color: #6e5f33; }
.highlight__poster { box-shadow: 0 30px 60px -25px rgba(17, 24, 36, .45); max-width: 480px; justify-self: center; }
@media (min-width: 900px) { .highlight__grid { grid-template-columns: 1.05fr .95fr; } .highlight__poster { justify-self: end; } }

/* ---------- Vidéos ---------- */

.video-strip { background: var(--sand); padding: 0 0 var(--section-y); }
.video-strip__head { max-width: 640px; margin-bottom: 2.2rem; }
.video-strip__head .section-title { margin-bottom: .8rem; }
.video-strip__intro { color: #4a4430; }
.video-strip__list { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 640px) { .video-strip__list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.video-strip__list .yt { aspect-ratio: 16 / 10; height: auto; }

.video-feature { background: var(--ink); color: var(--on-dark); padding-block: var(--section-y); text-align: center; }
.video-feature__inner { max-width: 960px; }
.video-feature .section-title { max-width: 24ch; margin-inline: auto; }
.video-feature__player { aspect-ratio: 16 / 9; margin-top: 2rem; background: #000; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); }
.video-feature__player iframe { width: 100%; height: 100%; border: 0; display: block; }

.yt {
    position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ink-2); overflow: hidden; border-radius: 2px; text-align: left; color: var(--on-dark);
}
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.yt:hover img { transform: scale(1.05); }
.yt__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 24, 36, 0) 45%, rgba(17, 24, 36, .85) 100%); transition: opacity .3s; }
.yt__label { position: absolute; left: .9rem; right: .9rem; bottom: .8rem; font-size: .85rem; line-height: 1.35; }
.yt__label-cta { display: block; margin-bottom: .2rem; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.yt__play {
    position: absolute; left: 50%; top: 42%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
    background: rgba(246, 243, 236, .92); transition: transform .3s var(--ease);
}
.yt__play::before {
    content: ""; position: absolute; left: 26px; top: 20px; border-left: 17px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}

/* ---------- Préface ---------- */

.preface { background: var(--paper); padding-block: var(--section-y); }
.preface__quote {
    font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.55; text-align: center; color: var(--ink);
}
.preface__quote > * + * { margin-top: 1.2em; }
.preface__quote::before {
    content: "\201C"; display: block; font-size: 5rem; line-height: .6; color: var(--sand-deep); margin-bottom: .6rem;
}
.preface__author { margin-top: 2rem; text-align: center; font-size: .95rem; color: var(--text-soft); }
.preface__author strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--ink); }

/* ---------- Carrousel ---------- */

.slider { position: relative; background: var(--ink); color: var(--on-dark); }
.slider__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; min-height: clamp(460px, 78vh, 760px); scroll-snap-align: start; display: flex; align-items: flex-end; isolation: isolate; }
.slide__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.slide__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 24, 36, 0) 25%, rgba(17, 24, 36, .82) 100%); }
.slide__body { padding-block: 3rem clamp(4rem, 7vw, 5.5rem); }
.slide__title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; margin-bottom: .8rem; }
.slide__text { max-width: 54ch; margin-bottom: 1.8rem; color: var(--on-dark); opacity: .92; }
.slider__nav {
    position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center;
    background: rgba(17, 24, 36, .35); border: 1px solid var(--line-light); border-radius: 50%; color: var(--on-dark);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s, color .3s;
}
.slider__nav:hover { background: var(--paper); color: var(--ink); }
.slider__nav--prev { left: var(--gutter); }
.slider__nav--next { right: var(--gutter); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; gap: .6rem; z-index: 3; }
.slider__dot { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(233, 231, 225, .35); transition: background .3s, width .3s; }
.slider__dot[aria-selected="true"] { background: var(--sand); width: 44px; }
@media (max-width: 640px) { .slider__nav { display: none; } }

/* ---------- Image et texte ---------- */

.split { padding-block: var(--section-y); background: var(--paper); }
.split--dark { background: var(--ink-2); color: var(--on-dark); }
.split--dark .section-title { color: var(--on-dark); }
.split--dark .richtext a { color: var(--sea); }
.split--dark .btn--dark { background: var(--paper); color: var(--ink); }
.split--dark .btn--dark:hover { background: var(--sand); }
.split__grid { display: grid; gap: clamp(2rem, 6vw, 5.5rem); grid-template-columns: 1fr; align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.split__body p:last-child { margin-top: 2rem; }
@media (min-width: 900px) {
    .split__grid { grid-template-columns: 1fr 1fr; }
    .split--reverse .split__media { order: 2; }
    .split__media { position: relative; isolation: isolate; }
    .split__media::before {
        content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid var(--sand-deep); z-index: -1; opacity: .7;
    }
    .split--reverse .split__media::before { inset: 1.4rem 1.4rem -1.4rem -1.4rem; }
}
.split.has-portrait .split__media img { aspect-ratio: 3 / 4; }

/* ---------- Texte sur image ---------- */

.band { position: relative; isolation: isolate; color: var(--on-dark); padding-block: var(--section-y); background: var(--ink); overflow: hidden; }
.band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band__veil { position: absolute; inset: 0; z-index: -1; background: rgba(17, 24, 36, .72); }
.band .richtext p { font-size: 1.08rem; }

/* ---------- Expositions ---------- */

.expos { background: var(--ink); color: var(--on-dark); padding-block: var(--section-y); }
.expos__cols { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .expos__cols { grid-template-columns: 1fr 1fr; } }
.expos__heading {
    font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--sand);
    padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line-light);
}
.expos__list li {
    display: grid; grid-template-columns: 4.2rem 1fr; column-gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line-light);
}
.expos__year { grid-row: span 2; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; color: var(--sea); }
.expos__name { font-weight: 400; color: var(--on-dark); }
.expos__place { font-size: .92rem; color: var(--on-dark-soft); }
.page-hero + .expos { padding-top: clamp(2rem, 4vw, 3.5rem); }
.expos__more { margin-top: 3rem; text-align: center; }

/* ---------- Liste des galeries ---------- */

.works-index { background: var(--paper); padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }
.works-index__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .works-index__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
    .works-index__grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
    .work-card:nth-child(3n + 2) { margin-top: 3.5rem; }
}
.work-card__link { display: block; text-decoration: none; }
.work-card__media { display: block; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card__link:hover .work-card__media img { transform: scale(1.05); }
.work-card__body { display: block; padding: 1.4rem .2rem 0; }
.work-card__title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.8rem; line-height: 1.15; color: var(--ink); margin-bottom: .6rem; }
.work-card__text {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-soft); font-size: .98rem; line-height: 1.6;
}
.work-card__more {
    display: inline-block; margin-top: 1rem; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
    color: var(--sea-deep); border-bottom: 1px solid currentColor; padding-bottom: .2rem; transition: color .3s;
}
.work-card__link:hover .work-card__more { color: var(--ink); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination a { min-width: 2.6rem; padding: .55rem .9rem; text-align: center; text-decoration: none; border: 1px solid var(--line); font-size: .85rem; letter-spacing: .08em; transition: background .3s, color .3s; }
.pagination a:hover, .pagination a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.works-index__cta { margin-top: clamp(3rem, 6vw, 5rem); text-align: center; }

/* ---------- Entête de galerie ---------- */

.gallery-intro { background: var(--ink); color: var(--on-dark); padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 5rem); position: relative; isolation: isolate; }
.gallery-intro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 15% 0%, rgba(85, 128, 159, .3), transparent 70%); }
.gallery-intro__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .gallery-intro__grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.gallery-intro__title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.05; margin-bottom: 1.6rem; }
.gallery-intro__meta { display: grid; gap: .5rem; padding: 1.1rem 1.3rem; margin-bottom: 1.5rem; border-left: 2px solid var(--sand); background: rgba(233, 231, 225, .06); font-size: .95rem; }
.gallery-intro__meta li:first-child { color: var(--sand); font-weight: 400; }
.gallery-intro__poster { max-width: 340px; }
.gallery-intro__poster img { width: 100%; box-shadow: 0 25px 50px -20px rgba(0, 0, 0, .6); }

/* ---------- Oeuvres d'une galerie ---------- */

.works { background: var(--ink); padding: 0 0 var(--section-y); }
.works__masonry { columns: 1; column-gap: clamp(1.2rem, 3vw, 2.5rem); }
@media (min-width: 640px) { .works__masonry { columns: 2; } }
@media (min-width: 1000px) { .works__masonry { columns: 3; } }
.work { break-inside: avoid; margin-bottom: clamp(1.8rem, 3vw, 2.8rem); }
.work__link { display: block; overflow: hidden; cursor: zoom-in; background: var(--ink-2); }
.work__link img { width: 100%; transition: transform .9s var(--ease); }
.work__link:hover img { transform: scale(1.03); }
.work__caption { margin-top: .8rem; font-size: .9rem; line-height: 1.5; color: var(--on-dark-soft); }

.lightbox {
    position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 2rem;
    background: rgba(10, 14, 22, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { max-width: min(92vw, 1100px); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lightbox__img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox__caption { color: var(--on-dark); font-size: .95rem; text-align: center; max-width: 70ch; }
.lightbox__btn {
    position: absolute; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid var(--line-light); border-radius: 50%; color: var(--on-dark);
}
.lightbox__btn:hover { background: var(--paper); color: var(--ink); }
.lightbox__btn--close { top: 1.2rem; right: 1.2rem; }
.lightbox__btn--prev { left: 1.2rem; top: 50%; margin-top: -24px; }
.lightbox__btn--next { right: 1.2rem; top: 50%; margin-top: -24px; }

/* ---------- Partenaires ---------- */

.partners { background: var(--paper); padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }
.partners__grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .partners__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .partners__grid { grid-template-columns: repeat(3, 1fr); } }
.partner { padding: 2rem 1.8rem; border: 1px solid var(--line); background: #fff9; transition: border-color .3s, transform .3s var(--ease), background .3s; }
.partner:hover { border-color: var(--sand-deep); transform: translateY(-3px); background: #fff; }
.partner__name { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.7rem; line-height: 1.15; color: var(--ink); }
.partner__role { margin-top: .3rem; color: var(--text-soft); font-size: .95rem; }
.partner__link { display: inline-block; margin-top: 1rem; font-size: .88rem; color: var(--sea-deep); word-break: break-all; }

/* ---------- Contact ---------- */

.contact { background: var(--paper); padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }
.contact__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.3fr; } }
.contact__phone { margin-top: 1.5rem; font-family: var(--font-display); font-size: 2rem; font-style: italic; color: var(--ink); }
.contact__phone a { text-decoration: none; }
.contact__place { color: var(--text-soft); }

.form__field { margin-bottom: 1.4rem; }
.form__label { display: block; margin-bottom: .4rem; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.form__input {
    width: 100%; padding: .9rem 0; background: transparent; border: 0; border-bottom: 1px solid rgba(35, 42, 54, .35); border-radius: 0;
    font: inherit; font-size: 1.05rem; color: var(--ink); transition: border-color .3s;
}
.form__input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
textarea.form__input { resize: vertical; min-height: 9rem; }

.form-message-success, .form-message-error { display: none; margin-top: 1.4rem; padding: 1rem 1.2rem; border-left: 3px solid; font-size: .98rem; }
.form-message-success { border-color: #3d7a5c; background: #3d7a5c1a; color: #24523b; }
.form-message-error { border-color: #a14444; background: #a144441a; color: #6d2323; }

/* ---------- Texte simple ---------- */

.prose { background: var(--paper); padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }
.prose__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
.prose__body { max-width: 760px; }
.prose--with-media .prose__body { max-width: none; }
@media (min-width: 900px) { .prose--with-media .prose__grid { grid-template-columns: 340px 1fr; align-items: start; } .prose__media { position: sticky; top: calc(var(--header-h) + 2rem); } }
.prose__media img { width: 100%; border-radius: 2px; box-shadow: 0 25px 50px -25px rgba(17, 24, 36, .5); }
.prose--with-media .richtext { columns: 1; }
@media (min-width: 1100px) { .prose--with-media .richtext { columns: 2; column-gap: 3rem; } .prose--with-media .richtext p { break-inside: avoid-column; } }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--ink-2); color: var(--on-dark); padding-top: clamp(3rem, 6vw, 5rem); }
.site-footer__inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (min-width: 860px) { .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; text-align: left; justify-items: start; } }
.site-footer__sign { width: 64px; opacity: .8; margin-bottom: 1rem; }
.site-footer__name { font-family: var(--font-display); font-style: italic; font-size: 1.9rem; color: var(--sea); line-height: 1.1; }
.site-footer__baseline { margin-top: .4rem; color: var(--on-dark-soft); font-size: .95rem; max-width: 34ch; }
.site-footer__nav ul { display: grid; gap: .55rem; }
.site-footer__nav a { text-decoration: none; font-size: .9rem; letter-spacing: .08em; }
.site-footer__nav a:hover { color: var(--sand); text-decoration: underline; }
.site-footer__contact { display: grid; gap: .6rem; justify-items: inherit; }
.site-footer__contact a { text-decoration: none; }
.site-footer__contact > p:first-child a { font-family: var(--font-display); font-size: 1.6rem; font-style: italic; }
.site-footer__contact .social { margin-top: .6rem; }
.site-footer__copy { margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.4rem var(--gutter); border-top: 1px solid var(--line-light); text-align: center; font-size: .8rem; color: var(--on-dark-soft); }

/* ---------- Blocks communs (common.*) ---------- */

.block-title, .block-text, .block-image, .block-form-wrap { width: min(100% - 2 * var(--gutter), 760px); margin: 2.5rem auto; }
.block-title-heading { margin: 0 0 .6rem; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; color: var(--ink); }
.block-title-subtitle { margin: 0 0 1.5rem; color: var(--text-soft); }
.block-title[data-align="center"] { text-align: center; }
.block-title[data-align="right"] { text-align: right; }
.block-text { line-height: 1.75; }
.block-text[data-align="center"] { text-align: center; }
.block-text p + p { margin-top: 1em; }
.block-image-media { width: 100%; height: auto; display: block; }
.block-image-caption { margin-top: .6rem; font-size: .88rem; color: var(--text-soft); }
.block-form-field { margin-bottom: 1.4rem; }
.block-form-label { display: block; margin-bottom: .4rem; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.block-form-input { width: 100%; padding: .8rem 0; background: transparent; border: 0; border-bottom: 1px solid rgba(35, 42, 54, .35); border-radius: 0; font: inherit; color: var(--ink); }
.block-form-input:focus { outline: none; border-bottom-color: var(--ink); }
.block-form-checkbox { margin-right: .5rem; accent-color: var(--ink); }
.block-form-submit { padding: .95rem 1.9rem; border: 0; border-radius: 2px; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.block-form-submit:hover { background: var(--navy); }

/* ---------- Apparition au scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

.yt:hover .yt__play { transform: scale(1.1); }

.video-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.5rem; background: rgba(10, 14, 22, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.video-modal.is-open { opacity: 1; visibility: visible; }
.video-modal__frame { width: min(92vw, 1100px); aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame--short { width: auto; height: min(86vh, 900px); aspect-ratio: 9 / 16; max-width: 92vw; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid var(--line-light); border-radius: 50%; color: var(--on-dark); }
.video-modal__close:hover { background: var(--paper); color: var(--ink); }
