/* ==========================================================================
   Démo 1 — « Révélateur »
   Concept : la chambre noire. Les images se révèlent comme un tirage dans
   le bain, la navigation emprunte la planche contact et le bord de film.
   Mobile d'abord, puis tablette et grand écran.
   ========================================================================== */

:root {
    --ink: #0e0d0b;
    --ink-2: #161411;
    --ink-3: #221f1a;
    --paper: #ece5d8;
    --paper-2: #e2d9c8;
    --paper-dim: rgba(236, 229, 216, 0.74);
    --mute: #a39a8b;
    --mute-dark: #5f574b;
    --sepia: #c9a263;
    --sepia-dark: #7a5a26;
    --line: rgba(236, 229, 216, 0.16);
    --line-dark: rgba(14, 13, 11, 0.16);
    --error: #f0a08a;

    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --gx: 1.25rem;
    --header-h: 4.25rem;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 700px) {
    :root { --gx: 2rem; }
}

@media (min-width: 1000px) {
    :root { --header-h: 5rem; }
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; }

h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }

ol, ul { padding: 0; list-style: none; }

em { font-style: italic; }

main:focus { outline: none; }

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

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

.skip-link {
    position: fixed;
    top: 0.75rem; left: 0.75rem;
    z-index: 400;
    padding: 0.75rem 1rem;
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s;
}

.skip-link:focus { transform: none; }

.wrap {
    width: calc(100% - (var(--gx) * 2));
    margin-inline: auto;
}

@media (min-width: 1000px) {
    .wrap { width: min(92vw, 1760px); }
}

.mono {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sepia);
}

.eyebrow::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: currentColor;
}

.eyebrow--dark { color: var(--sepia-dark); }

.section-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.3rem, 7vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.section-title em,
.page-title em,
.hero__title em { color: var(--sepia); font-weight: 300; }

.page-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.6rem, 9vw, 6.4rem);
    line-height: 0.98;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.page-title--xl { font-size: clamp(2.9rem, 11vw, 9rem); }

/* ---------- Boutons et liens ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.1rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.35s var(--ease-soft), color 0.35s var(--ease-soft), border-color 0.35s, transform 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--sepia); }

.btn--ghost { border-color: rgba(236, 229, 216, 0.5); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(236, 229, 216, 0.08); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left calc(100% - 0.55rem) / 0 1px no-repeat;
    transition: background-size 0.45s var(--ease), color 0.3s;
}

.link-arrow:hover { background-size: 100% 1px; color: var(--sepia); }
.link-arrow--dark:hover { color: var(--sepia-dark); }

.round-btn {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.round-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.round-btn:disabled { opacity: 0.35; cursor: default; background: transparent; color: var(--paper); }

/* ---------- Entrée de page ---------- */

.entree {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    background: var(--ink);
    pointer-events: none;
    animation: entree-out 0.6s var(--ease-soft) 0.95s forwards;
}

.entree__mono {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-style: italic;
    letter-spacing: 0.2em;
    color: var(--paper);
    animation: entree-mono 0.9s var(--ease) both;
}

.entree__line {
    width: 9rem;
    height: 1px;
    background: var(--sepia);
    transform-origin: left;
    animation: entree-line 0.85s var(--ease) both;
}

.entree__label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mute);
}

@keyframes entree-out { to { opacity: 0; visibility: hidden; } }
@keyframes entree-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes entree-mono { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }

.sans-entree .entree,
.no-js .entree { display: none; }

/* ---------- Grain ambiant ---------- */

.grain {
    position: fixed;
    inset: -50%;
    z-index: 90;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); }
    80% { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

/* ---------- En-tête ---------- */

.masthead {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-h);
    padding-inline: var(--gx);
    background: linear-gradient(180deg, rgba(14, 13, 11, 0.7), rgba(14, 13, 11, 0));
    transition: background-color 0.4s, transform 0.45s var(--ease), height 0.3s;
}

@media (min-width: 1000px) {
    .masthead { padding-inline: 4vw; }
}

.masthead.is-scrolled {
    background-color: rgba(14, 13, 11, 0.9);
    border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) {
    .masthead.is-scrolled { background-color: rgba(14, 13, 11, 0.78); backdrop-filter: blur(10px); }
}

.masthead.is-hidden { transform: translateY(-100%); }

.masthead__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 44px;
    text-decoration: none;
}

.masthead__mono {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--paper-dim);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}

.masthead__name {
    display: grid;
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.05;
}

.masthead__name small {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
}

@media (max-width: 380px) {
    .masthead__name { font-size: 1rem; }
}

.masthead__inline { display: none; }

.masthead__inline ul { display: flex; gap: 2.2rem; }

.masthead__inline a {
    position: relative;
    display: inline-block;
    padding-block: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--paper-dim);
    transition: color 0.3s;
}

.masthead__inline a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.3rem;
    height: 1px;
    background: var(--sepia);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}

.masthead__inline a:hover,
.masthead__inline a[aria-current="page"] { color: var(--paper); }

.masthead__inline a:hover::after,
.masthead__inline a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.masthead__actions { display: flex; align-items: center; gap: 1.25rem; }

.masthead__cta {
    display: none;
    min-height: 44px;
    align-items: center;
    padding-inline: 1.1rem;
    border: 1px solid rgba(236, 229, 216, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.masthead__cta:hover,
.masthead__cta[aria-current="page"] { background: var(--paper); color: var(--ink); }

.masthead__index {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.25rem;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.masthead__index-lines { display: grid; gap: 6px; width: 1.6rem; }
.masthead__index-lines i { display: block; height: 1px; background: currentColor; transition: transform 0.35s var(--ease); }
.masthead__index-lines i:last-child { width: 65%; justify-self: end; }
.masthead__index:hover .masthead__index-lines i:last-child { transform: scaleX(1.54); transform-origin: right; }

@media (min-width: 700px) {
    .masthead__cta { display: inline-flex; }
}

@media (min-width: 1180px) {
    .masthead__inline { display: block; }
}

/* ---------- Menu index plein écran ---------- */

.index-menu {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    background: var(--ink);
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: opacity 0.35s, clip-path 0.7s var(--ease);
}

.index-menu.is-open { opacity: 1; clip-path: inset(0 0 0 0); }
.index-menu[hidden] { display: none; }

.index-menu__preview { display: none; position: relative; overflow: hidden; }

.index-menu__preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    filter: grayscale(0.4) brightness(0.7);
    transition: opacity 0.7s var(--ease-soft), transform 1.4s var(--ease);
}

.index-menu__preview img.is-active { opacity: 1; transform: scale(1); }

.index-menu__panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem var(--gx) 2rem;
    overflow-y: auto;
}

.index-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(var(--header-h) - 1rem);
}

.index-menu__label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }

.index-menu__close {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.index-menu__x { position: relative; width: 1.4rem; height: 1.4rem; }
.index-menu__x::before,
.index-menu__x::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: currentColor;
    transform: rotate(45deg);
}
.index-menu__x::after { transform: rotate(-45deg); }

.index-menu__list { display: grid; }

.index-menu__list a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-block: 0.35rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.index-menu__num { font-family: var(--mono); font-size: 0.72rem; color: var(--sepia); min-width: 1.6rem; }

.index-menu__text {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.4rem, 10vw, 5.4rem);
    line-height: 1.1;
    transition: transform 0.5s var(--ease), color 0.3s;
}

.index-menu__list a:hover .index-menu__text,
.index-menu__list a:focus-visible .index-menu__text { transform: translateX(0.8rem); font-style: italic; color: var(--sepia); }

.index-menu__list a[aria-current="page"] .index-menu__text { font-style: italic; }
.index-menu__list a[aria-current="page"] .index-menu__num::after { content: " •"; }

.index-menu.is-open .index-menu__list li { animation: menu-in 0.8s var(--ease) both; }
.index-menu.is-open .index-menu__list li:nth-child(2) { animation-delay: 0.05s; }
.index-menu.is-open .index-menu__list li:nth-child(3) { animation-delay: 0.1s; }
.index-menu.is-open .index-menu__list li:nth-child(4) { animation-delay: 0.15s; }
.index-menu.is-open .index-menu__list li:nth-child(5) { animation-delay: 0.2s; }

@keyframes menu-in { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

.index-menu__sub-title { margin-bottom: 0.5rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.index-menu__sub ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.index-menu__sub a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; color: var(--paper-dim); }
.index-menu__sub a:hover { color: var(--sepia); }

.index-menu__linkedin { align-self: flex-start; display: inline-flex; min-height: 44px; align-items: center; gap: 0.4rem; color: var(--paper-dim); }
.index-menu__social { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

@media (min-width: 900px) {
    .index-menu { grid-template-columns: 42% 1fr; }
    .index-menu__preview { display: block; }
    .index-menu__panel { padding: 1rem 4vw 3rem; justify-content: space-between; }
}

/* ---------- Animations de texte et de révélation ---------- */

.js [data-split] .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    /* Place pour les jambages (g, p, q) malgré l'interlignage serré */
    padding-bottom: 0.25em;
    margin-bottom: -0.25em;
}

.js [data-split] .w > span {
    display: inline-block;
    transform: translateY(145%);
    transition: transform 1.15s var(--ease);
    transition-delay: calc(var(--i, 0) * 45ms);
}

.js [data-split].is-in .w > span { transform: none; }

.js [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

/* La révélation : l'image monte comme un tirage dans le bain */
.develop { overflow: hidden; }

.js .develop img {
    filter: grayscale(1) brightness(0.22) contrast(1.4);
    transform: scale(1.08);
    transition: filter 1.9s var(--ease-soft), transform 2.4s var(--ease);
}

.js .develop.is-in img { filter: none; transform: scale(1); }

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

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }

.hero__poster,
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
}

.hero__video { z-index: 1; animation: hero-drift 24s ease-in-out infinite alternate; }

@keyframes hero-drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(14, 13, 11, 0.5) 0%, rgba(14, 13, 11, 0) 22%, rgba(14, 13, 11, 0) 50%, rgba(14, 13, 11, 0.85) 100%),
        linear-gradient(90deg, rgba(14, 13, 11, 0.4), rgba(14, 13, 11, 0) 55%);
}

.hero__content {
    position: relative;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 5.5rem;
}

.hero__kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--paper-dim);
}

.hero__kicker .mono { color: var(--sepia); }

.hero__title {
    max-width: 15ch;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.65rem, 11vw, 9.2rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.hero__bottom {
    display: grid;
    gap: 1.75rem;
    margin-top: 1.75rem;
}

.hero__lead { max-width: 38ch; font-size: 1.02rem; color: var(--paper-dim); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__actions .btn { flex: 1 1 12rem; }

.hero__edge {
    position: absolute;
    left: 0; right: 0; bottom: 1.4rem;
    margin-inline: auto;
    display: none;
    align-items: center;
    gap: 1.25rem;
    color: var(--paper-dim);
    padding-right: 15rem;
}

.hero__edge-line { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }

.hero__edge-line::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 30%;
    background: var(--sepia);
    animation: edge-run 3.2s var(--ease-soft) infinite;
}

@keyframes edge-run { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.video-toggle {
    position: absolute;
    right: var(--gx);
    bottom: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.6rem;
    border: 1px solid var(--line);
    background: rgba(14, 13, 11, 0.4);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.video-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.video-toggle__icon { position: relative; width: 0.75rem; height: 0.8rem; margin-inline: auto; }

.video-toggle__icon::before,
.video-toggle__icon::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 3px;
    background: currentColor;
}

.video-toggle__icon::before { left: 1px; }
.video-toggle__icon::after { right: 1px; }

.video-toggle[aria-pressed="true"] .video-toggle__icon::before {
    left: 2px;
    width: 0; height: 0;
    background: none;
    border-left: 10px solid currentColor;
    border-top: 6.5px solid transparent;
    border-bottom: 6.5px solid transparent;
}

.video-toggle[aria-pressed="true"] .video-toggle__icon::after { display: none; }

@media (min-width: 700px) {
    .hero__content { padding-bottom: 6.5rem; }
    .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 1000px) {
    .hero__edge { display: flex; }
    .video-toggle { right: 4vw; bottom: 0.75rem; padding: 0 1rem; }
    .video-toggle__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .video-toggle__icon { margin: 0; }
    .hero__bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; margin-top: 2.5rem; }
    .hero__lead { font-size: 1.12rem; }
    .hero__title { max-width: 17ch; }
}

/* ---------- Parcours (chapitres) ---------- */

.chapters { padding-block: clamp(5rem, 12vw, 10rem) clamp(3rem, 8vw, 6rem); }

.chapters__head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.chapters__head .section-title { max-width: 16ch; }

.chapters__visual { display: none; }

.chapters__steps { display: grid; gap: 4rem; }

.chapter__mobile-img { margin-bottom: 1.5rem; aspect-ratio: 4 / 3; }
.chapter__mobile-img img { width: 100%; height: 100%; object-fit: cover; }

.chapter__num { display: block; margin-bottom: 0.75rem; color: var(--sepia); font-size: 0.85rem; }

.chapter__title {
    margin-bottom: 1rem;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 6vw, 3.4rem);
    line-height: 1.05;
}

.chapter p { max-width: 46ch; color: var(--paper-dim); }

.chapter .link-arrow { margin-top: 1.25rem; }

@media (min-width: 900px) {
    .chapters__grid {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 6vw;
    }

    .chapters__visual {
        display: block;
        position: sticky;
        top: calc(var(--header-h) + 4vh);
        height: calc(100vh - var(--header-h) - 8vh);
        align-self: start;
    }

    .chapters__frame { position: relative; height: 100%; overflow: hidden; background: var(--ink-2); }

    .chapters__frame img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        clip-path: inset(100% 0 0 0);
        filter: grayscale(1) brightness(0.4);
        transform: scale(1.08);
        transition: clip-path 1.2s var(--ease), filter 1.8s var(--ease-soft), transform 2s var(--ease);
    }

    .chapters__frame img.is-active { clip-path: inset(0 0 0 0); filter: none; transform: scale(1); z-index: 1; }

    .chapters__counter {
        position: absolute;
        left: 1.25rem; bottom: 1.25rem;
        z-index: 2;
        padding: 0.4rem 0.7rem;
        background: rgba(14, 13, 11, 0.7);
    }

    .chapters__steps { gap: 0; }

    .chapter {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 78vh;
        opacity: 0.28;
        transition: opacity 0.6s var(--ease-soft);
    }

    .chapter.is-current { opacity: 1; }
    .chapter__mobile-img { display: none; }
    .no-js .chapter { opacity: 1; }
}

/* ---------- Domaines (liste éditoriale) ---------- */

.domains { position: relative; padding-block: clamp(4rem, 10vw, 8rem); border-top: 1px solid var(--line); }

.domains__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.domains__intro { max-width: 52ch; color: var(--paper-dim); }

.domains__list { border-top: 1px solid var(--line); }

.domain { border-bottom: 1px solid var(--line); }

.domain__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "num title go"
        "thumb thumb thumb"
        "text text text";
    align-items: center;
    gap: 0.9rem 1rem;
    padding-block: 1.75rem;
    text-decoration: none;
}

.domain__num { grid-area: num; color: var(--sepia); }

.domain__title {
    grid-area: title;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2rem, 7vw, 4.8rem);
    line-height: 1;
    transition: transform 0.6s var(--ease), color 0.3s;
}

.domain__thumb { grid-area: thumb; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.domain__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

.domain__text { grid-area: text; max-width: 48ch; color: var(--paper-dim); }

.domain__go {
    grid-area: go;
    display: grid;
    place-items: center;
    width: 2.9rem; height: 2.9rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}

.domain__link:hover .domain__title,
.domain__link:focus-visible .domain__title { color: var(--sepia); font-style: italic; transform: translateX(0.6rem); }
.domain__link:hover .domain__go { background: var(--paper); color: var(--ink); transform: rotate(-45deg); }
.domain__link:hover .domain__thumb img { transform: scale(1.04); }

.domains__float { display: none; }

@media (min-width: 900px) {
    .domain__link {
        grid-template-columns: 5rem minmax(0, 1.2fr) minmax(0, 1fr) 3rem;
        grid-template-areas: "num title text go";
        gap: 2rem;
        padding-block: 2.4rem;
    }
    .domain__thumb { display: none; }

    .domains__float {
        display: block;
        position: fixed;
        left: 0; top: 0;
        z-index: 60;
        width: clamp(16rem, 22vw, 26rem);
        aspect-ratio: 4 / 5;
        overflow: hidden;
        pointer-events: none;
        opacity: 0;
        clip-path: inset(50% 0 50% 0);
        transition: opacity 0.35s, clip-path 0.6s var(--ease);
    }
    .domains__float.is-visible { opacity: 1; clip-path: inset(0 0 0 0); }
    .domains__float img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- Planche contact (bande de film) ---------- */

.strip { padding-block: clamp(4rem, 10vw, 8rem); background: var(--ink-2); }

.strip__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.strip__nav { display: flex; align-items: center; gap: 1rem; }
.strip__progress { min-width: 4.5rem; text-align: center; color: var(--paper-dim); }

.strip__track {
    position: relative;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gx);
    padding: 0 var(--gx) 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--mute-dark) transparent;
    overscroll-behavior-x: contain;
}

@media (min-width: 1000px) {
    .strip__track { padding-inline: 4vw; scroll-padding-inline: 4vw; gap: 1.5rem; }
}

.frame {
    position: relative;
    flex: 0 0 82%;
    scroll-snap-align: start;
    padding: 1.6rem 0.9rem 1rem;
    background: #0a0908;
    text-decoration: none;
}

/* Perforations du film, purement 2D */
.frame::before,
.frame::after {
    content: "";
    position: absolute;
    left: 0.6rem; right: 0.6rem;
    height: 0.55rem;
    background: repeating-linear-gradient(90deg, rgba(236, 229, 216, 0.22) 0 0.7rem, transparent 0.7rem 1.4rem);
}

.frame::before { top: 0.5rem; }
.frame::after { bottom: 0.4rem; }

.frame__edge {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
    color: var(--sepia);
}

.frame__img { display: block; aspect-ratio: 4 / 5; }
.frame__img img { width: 100%; height: 100%; object-fit: cover; }

.frame__meta { display: grid; gap: 0.2rem; padding: 1rem 0.2rem 1.2rem; }

.frame__title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.05;
    transition: color 0.3s;
}

.frame__sub { color: var(--mute); font-size: 0.65rem; }

.frame:hover .frame__title { color: var(--sepia); font-style: italic; }

@media (min-width: 700px) {
    .frame { flex-basis: 46%; }
}

@media (min-width: 1100px) {
    .frame { flex-basis: 30%; }
}

/* ---------- Références (section papier) ---------- */

.refs { padding-block: clamp(4.5rem, 10vw, 8.5rem); background: var(--paper); color: var(--ink); }

.refs__grid { display: grid; gap: 3rem; }

.refs__intro p { max-width: 46ch; margin-top: 1.25rem; color: var(--mute-dark); }
.refs__intro .section-title em { color: var(--sepia-dark); }

.refs__lists { display: grid; gap: 2.5rem; }

.refs__block { border-top: 1px solid var(--line-dark); padding-top: 1rem; }

.refs__label { margin-bottom: 0.9rem; color: var(--sepia-dark); }

.refs__words { display: flex; flex-wrap: wrap; gap: 0.1rem 0; }

.refs__words li {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.8rem, 5.2vw, 3.6rem);
    line-height: 1.15;
}

.refs__words li:not(:last-child)::after { content: "·"; margin-inline: 0.45em; color: var(--sepia-dark); }
.refs__words em { color: var(--mute-dark); }
.refs__words--small li { font-size: clamp(1.5rem, 3.8vw, 2.6rem); }

.refs__plain { display: grid; gap: 0.6rem; }
.refs__plain li { font-size: 1.05rem; padding-left: 1.4rem; position: relative; }
.refs__plain li::before { content: "—"; position: absolute; left: 0; color: var(--sepia-dark); }

@media (min-width: 1000px) {
    .refs__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; }
    .refs__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- Citation ---------- */

.quote {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 82vh;
    min-height: 82svh;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.quote__media { position: absolute; inset: -12% 0; z-index: -2; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }

.quote__veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(14, 13, 11, 0.55), rgba(14, 13, 11, 0.9)); }

.quote__inner { padding-block: 6rem; }

.quote blockquote p {
    max-width: 18ch;
    margin-inline: auto;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.4rem, 8vw, 7rem);
    line-height: 1;
}

.quote blockquote em { color: var(--sepia); }
.quote figcaption { margin-top: 2rem; color: var(--paper-dim); }

/* ---------- Premier échange ---------- */

.start { padding-block: clamp(4.5rem, 10vw, 9rem); }

.start__grid { display: grid; gap: 2.5rem; align-items: center; }

.start__img { aspect-ratio: 4 / 5; max-height: 80vh; }
.start__img img { width: 100%; height: 100%; object-fit: cover; }

.start__copy > p { margin-top: 1.25rem; color: var(--paper-dim); }

.start__list { display: grid; margin: 1.5rem 0 2.25rem; border-top: 1px solid var(--line); }

.start__list li {
    display: flex;
    gap: 1.25rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
}

.start__list .mono { color: var(--sepia); padding-top: 0.3rem; }

.start--compact .start__img { aspect-ratio: 5 / 4; }

@media (min-width: 900px) {
    .start__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; }
}

/* ---------- Pages intérieures : en-têtes ---------- */

.page-head { padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 8vw, 6rem); }

.page-head__grid { display: grid; gap: 2.5rem; align-items: end; }

.page-head__lead { max-width: 50ch; margin-top: 1.5rem; font-size: 1.08rem; color: var(--paper-dim); }

.page-head__media { position: relative; aspect-ratio: 4 / 3; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head__media figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.35rem 0.6rem; background: rgba(14, 13, 11, 0.7); }

.page-head__cols { display: grid; gap: 2rem; margin-top: 1rem; }

.page-head__jump { display: grid; border-top: 1px solid var(--line); align-self: end; }
.page-head__jump a {
    display: flex;
    justify-content: space-between;
    min-height: 3.2rem;
    align-items: center;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, padding 0.4s var(--ease);
}
.page-head__jump a:hover { color: var(--sepia); padding-left: 0.5rem; }

@media (min-width: 900px) {
    .page-head__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; }
    .page-head__media { aspect-ratio: 5 / 4; }
    .page-head__cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8vw; margin-top: 2.5rem; }
}

.breadcrumb { margin-bottom: 1.75rem; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }

.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--mute-dark); }

.breadcrumb a { display: inline-block; padding-block: 0.6rem; text-decoration: none; color: var(--paper-dim); }
.breadcrumb a:hover { color: var(--sepia); }
.breadcrumb [aria-current="page"] { padding-block: 0.6rem; color: var(--paper); }

/* ---------- À propos ---------- */

.bio { padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 8rem); border-top: 1px solid var(--line); }

.bio__grid { display: grid; gap: 2.5rem; }

.bio__title { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--paper-dim); max-width: 24ch; }

.bio__thumb { display: none; margin-top: 2rem; aspect-ratio: 3 / 2; }
.bio__thumb img { width: 100%; height: 100%; object-fit: cover; }

.bio__text { display: grid; gap: 1.5rem; max-width: 62ch; }

.bio__text p { font-family: var(--serif); font-size: clamp(1.3rem, 3.2vw, 1.75rem); line-height: 1.45; }

.bio__drop::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;
    font-size: 4.2em;
    line-height: 0.8;
    font-style: italic;
    color: var(--sepia);
}

.bio__pull {
    padding-block: 1.25rem;
    border-block: 1px solid var(--line);
    font-style: italic;
    font-size: clamp(1.7rem, 4.5vw, 2.7rem) !important;
    line-height: 1.2 !important;
    color: var(--sepia);
}

@media (min-width: 1000px) {
    .bio__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 6vw; }
    .bio__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
    .bio__thumb { display: block; }
}

.eras { padding-block: clamp(4rem, 10vw, 8rem); background: var(--ink-2); }

.eras__list { display: grid; margin-top: 3rem; border-top: 1px solid var(--line); }

.era {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
    padding-block: 2rem;
    border-bottom: 1px solid var(--line);
}

.era__num { font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 0.9; color: var(--sepia); }
.era h3 { margin-bottom: 0.6rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; }
.era p { max-width: 50ch; color: var(--paper-dim); }

@media (min-width: 900px) {
    .eras__list { grid-template-columns: 1fr 1fr; column-gap: 5vw; }
    .era { grid-template-columns: 6rem 1fr; padding-block: 3rem; }
    .era__num { font-size: 4.5rem; }
}

.mountain { position: relative; padding-bottom: clamp(4rem, 10vw, 8rem); }

.mountain__video { position: relative; height: 58vh; height: 58svh; overflow: hidden; background: url("../images/apropos-brume-sm.jpg") center / cover; }

.mountain__video video { width: 100%; height: 100%; object-fit: cover; }

.mountain__video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 13, 11, 0.2) 40%, var(--ink)); }

.mountain__credit { position: absolute; right: var(--gx); top: calc(var(--header-h) * 0.3); z-index: 1; color: var(--paper-dim); font-size: 0.6rem; }

.mountain__grid { position: relative; display: grid; gap: 2.5rem; margin-top: -6rem; }

.mountain__copy p:not(.eyebrow) { max-width: 50ch; margin-top: 1.25rem; color: var(--paper-dim); }

.mountain__works { display: grid; gap: 1rem; }
.mountain__works figure { position: relative; }
.mountain__works img { width: 100%; height: 100%; object-fit: cover; }
.mountain__works figure:first-child { aspect-ratio: 16 / 7; }
.mountain__works figure:last-child { aspect-ratio: 16 / 9; width: 80%; justify-self: end; }
.mountain__works figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.3rem 0.55rem; background: rgba(14, 13, 11, 0.7); }

@media (min-width: 1000px) {
    .mountain__video { height: 72vh; }
    .mountain__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; align-items: end; margin-top: -14rem; }
}

.next-step { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }

.next-step__grid { display: grid; gap: 2rem; }

.next-step__links { display: grid; border-top: 1px solid var(--line); }

.next-card {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 1rem;
    min-height: 5rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.next-card .mono { color: var(--sepia); }
.next-card__title { font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2.3rem); transition: color 0.3s, transform 0.5s var(--ease); }
.next-card:hover .next-card__title { color: var(--sepia); font-style: italic; transform: translateX(0.5rem); }
.next-card__go { font-size: 1.3rem; }

@media (min-width: 900px) {
    .next-step__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; align-items: start; }
}

/* ---------- Prestations ---------- */

.offer { padding-block: clamp(3.5rem, 9vw, 7.5rem); border-top: 1px solid var(--line); }

.offer__grid { display: grid; gap: 3rem; align-items: center; }

.offer__media { position: relative; padding-bottom: 12%; }
.offer__main { aspect-ratio: 4 / 3; }
.offer__main img,
.offer__second img { width: 100%; height: 100%; object-fit: cover; }

.offer__second {
    position: absolute;
    right: -0.25rem;
    bottom: 0;
    width: 44%;
    aspect-ratio: 1;
    border: 6px solid var(--ink);
}

.offer__num { display: block; margin-bottom: 1rem; color: var(--sepia); }

.offer__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1; }

.offer__lead { margin-top: 1.25rem; max-width: 46ch; font-size: 1.08rem; color: var(--paper-dim); }

.offer__points { display: grid; margin: 1.75rem 0 2.25rem; border-top: 1px solid var(--line); }
.offer__points li { padding: 0.8rem 0 0.8rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.offer__points li::before { content: "—"; position: absolute; left: 0; color: var(--sepia); }

@media (min-width: 900px) {
    .offer__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 6vw; }
    .offer--reverse .offer__media { order: 2; }
    .offer--reverse .offer__second { right: auto; left: -2rem; }
    .offer__second { right: -2rem; border-width: 10px; }
}

.principles { padding-block: clamp(4rem, 10vw, 8rem); background: var(--ink-2); }

.principles__head { margin-bottom: 2.5rem; }

.principles__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--mute-dark) transparent;
}

.principle { scroll-snap-align: start; padding: 1.5rem 1.25rem 1.25rem; border-left: 1px solid var(--sepia); }

.principle__word { display: block; margin-bottom: 1rem; font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--sepia); }

.principle p { color: var(--paper-dim); }

@media (min-width: 900px) {
    .principles__rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 2.5vw; }
}

/* ---------- Pages de prestation ---------- */

.detail-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 88vh;
    min-height: 88svh;
    overflow: hidden;
    isolation: isolate;
}

.detail-hero__media { position: absolute; inset: -8% 0; z-index: -2; }
.detail-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.detail-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(14, 13, 11, 0.6), rgba(14, 13, 11, 0.2) 30%, rgba(14, 13, 11, 0.55) 60%, rgba(14, 13, 11, 0.95)),
        linear-gradient(90deg, rgba(14, 13, 11, 0.75), rgba(14, 13, 11, 0.2) 70%);
}

.detail-hero__content { padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 7vw, 5rem); }
.detail-hero__content .page-title { max-width: 17ch; }
.detail-hero__lead { max-width: 52ch; margin-top: 1.5rem; font-size: 1.08rem; color: var(--paper-dim); }

.detail-intro { padding-block: clamp(4rem, 9vw, 7rem); }

.detail-intro__grid { display: grid; gap: 2rem; }

.detail-intro__text { display: grid; gap: 1.25rem; max-width: 60ch; }
.detail-intro__text p { font-size: 1.08rem; color: var(--paper-dim); }
.detail-intro__text a { color: var(--sepia); }

@media (min-width: 900px) {
    .detail-intro__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; }
    .detail-intro__text p:first-child { font-family: var(--serif); font-size: 1.7rem; line-height: 1.35; color: var(--paper); }
}

.detail-scope { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--ink-2); }

.scope-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }

.scope-list__row { display: grid; gap: 0.4rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }

.scope-list dt { font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.1; }
.scope-list dt .mono { color: var(--sepia); margin-right: 0.6rem; vertical-align: middle; }
.scope-list dd { color: var(--paper-dim); max-width: 52ch; }

@media (min-width: 900px) {
    .scope-list__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; align-items: baseline; padding-block: 1.8rem; }
}

.detail-gallery { padding-block: clamp(4rem, 9vw, 7rem); }

.detail-gallery__head { display: grid; gap: 0.5rem; margin-bottom: 2.5rem; }
.detail-gallery__note { color: var(--mute); font-size: 0.9rem; }

/* Galerie : glissement horizontal sur mobile, mosaïque sur grand écran */
.mosaic,
.series__grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--mute-dark) transparent;
    overscroll-behavior-x: contain;
}

.mosaic__item,
.series__item { flex: 0 0 82%; scroll-snap-align: start; aspect-ratio: 4 / 5; }

.mosaic__btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--ink-2);
    cursor: zoom-in;
    overflow: hidden;
}

.mosaic__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 1.9s var(--ease-soft); }
.mosaic__btn:hover img { transform: scale(1.035); }

@media (min-width: 900px) {
    .mosaic {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: clamp(12rem, 17vw, 22rem);
        gap: 1rem;
        overflow: visible;
    }
    .mosaic__item { aspect-ratio: auto; }
    .mosaic__item--1 { grid-column: span 7; grid-row: span 2; }
    .mosaic__item--2 { grid-column: span 5; }
    .mosaic__item--3 { grid-column: span 5; }
    .mosaic__item--4 { grid-column: span 4; grid-row: span 1; }
    .mosaic__item--5 { grid-column: span 4; }
    .mosaic__item--6 { grid-column: span 4; }
    .mosaic__item--5:last-child { grid-column: span 8; }
}

.related { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }

.related__grid { display: grid; gap: 2rem; }

.related__list { display: grid; border-top: 1px solid var(--line); }

.related__link {
    display: grid;
    grid-template-columns: 5rem 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.related__thumb { aspect-ratio: 1; overflow: hidden; }
.related__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.related__title { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); transition: color 0.3s; }
.related__link:hover .related__title { color: var(--sepia); font-style: italic; }
.related__link:hover .related__thumb img { transform: scale(1.08); }

@media (min-width: 900px) {
    .related__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; }
}

.detail-cta { padding-block: clamp(5rem, 11vw, 9rem); background: var(--paper); color: var(--ink); text-align: center; }
.detail-cta__inner { display: grid; justify-items: center; gap: 1.5rem; }
.detail-cta .section-title { max-width: 18ch; }
.detail-cta .section-title em { color: var(--sepia-dark); }
.detail-cta p { max-width: 52ch; color: var(--mute-dark); }
.detail-cta .btn--light { background: var(--ink); color: var(--paper); }
.detail-cta .btn--light:hover { background: var(--sepia-dark); }

/* ---------- Réalisations ---------- */

.series-nav {
    position: sticky;
    top: var(--header-h);
    transition: top 0.45s var(--ease);
    z-index: 50;
    background: rgba(14, 13, 11, 0.94);
    border-block: 1px solid var(--line);
}

.series-nav__list {
    position: relative;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding-inline: var(--gx);
    scrollbar-width: none;
}

.series-nav__list::-webkit-scrollbar { display: none; }

.series-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.2rem;
    padding-inline: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.88rem;
    color: var(--paper-dim);
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.series-nav a .mono { color: var(--sepia); }
.series-nav a:hover,
.series-nav a.is-active { color: var(--paper); border-bottom-color: var(--sepia); }

@media (min-width: 1000px) {
    .series-nav__list { padding-inline: 4vw; justify-content: space-between; }
}

.series { padding-block: clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 3.5rem); }

.header-hidden .series-nav { top: 0; }

.series__head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }

.series__num { color: var(--sepia); }

.series__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 7vw, 5.2rem); line-height: 1; }

.series__meta { display: grid; gap: 0.6rem; max-width: 52ch; }
.series__meta p { color: var(--paper-dim); }
.series__orig { color: var(--mute) !important; }

/* Planche contact complète de chaque série (repliable, fonctionne sans JavaScript) */
.sheet { margin-top: 2.5rem; border-top: 1px solid var(--line); }

.sheet__toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 3.75rem;
    padding-block: 0.75rem;
    list-style: none;
    cursor: pointer;
}

.sheet__toggle::-webkit-details-marker { display: none; }
.sheet__toggle::marker { content: ""; }

.sheet__label { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.1; transition: color 0.3s; }
.sheet__opened { display: none; }
.sheet[open] .sheet__closed { display: none; }
.sheet[open] .sheet__opened { display: inline; }
.sheet__toggle:hover .sheet__label { color: var(--sepia); font-style: italic; }

.sheet__count { margin-left: auto; color: var(--mute); white-space: nowrap; }

.sheet__icon { position: relative; flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; transition: transform 0.4s var(--ease), background-color 0.3s; }
.sheet__icon::before,
.sheet__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 1px; margin-left: -0.45rem; background: currentColor; }
.sheet__icon::after { transform: rotate(90deg); }
.sheet[open] .sheet__icon { transform: rotate(45deg); }
.sheet__toggle:hover .sheet__icon { background: var(--paper); color: var(--ink); }

.sheet__note { margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--mute); }

.sheet__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.5rem;
    background: #0a0908;
}

.sheet__btn {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--ink-2);
    cursor: zoom-in;
}

.sheet__btn img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) brightness(0.92); transition: transform 0.7s var(--ease), filter 0.4s; }
.sheet__btn:hover img,
.sheet__btn:focus-visible img { transform: scale(1.06); filter: none; }

.sheet__num { position: absolute; left: 0.3rem; top: 0.3rem; padding: 0.1rem 0.3rem; background: rgba(10, 9, 8, 0.72); color: var(--sepia); font-size: 0.55rem; }

@media (min-width: 600px) {
    .sheet__grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1000px) {
    .sheet__grid { grid-template-columns: repeat(8, 1fr); gap: 0.5rem; padding: 0.75rem; }
}

@media (min-width: 900px) {
    .series__head { grid-template-columns: 6rem minmax(0, 1.1fr) minmax(0, 1fr); gap: 3vw; align-items: end; }

    .series__grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: clamp(11rem, 15vw, 20rem);
        gap: 1rem;
        overflow: visible;
    }

    .series__item { aspect-ratio: auto; }

    .series--a .series__item--1 { grid-column: span 8; grid-row: span 2; }
    .series--a .series__item--2,
    .series--a .series__item--3 { grid-column: span 4; }
    .series--a .series__item--4,
    .series--a .series__item--5 { grid-column: span 6; }

    .series--b .series__item--1 { grid-column: 1 / -1; grid-row: span 2; }
    .series--b .series__item--2,
    .series--b .series__item--3,
    .series--b .series__item--4,
    .series--b .series__item--5 { grid-column: span 3; }

    .series--c .series__grid { grid-auto-rows: clamp(14rem, 21vw, 28rem); }
    .series--c .series__item { grid-column: span 4; }
    .series--c .series__item--2,
    .series--c .series__item--5 { transform: translateY(3rem); }

    .series--d .series__item--1 { grid-column: span 6; grid-row: span 2; }
    .series--d .series__item--2,
    .series--d .series__item--3,
    .series--d .series__item--4,
    .series--d .series__item--5 { grid-column: span 3; }
    .series--d .series__item--6 { grid-column: 1 / -1; }

    .series--e .series__item--1 { grid-column: 1 / -1; grid-row: span 2; }
    .series--e .series__item--2 { grid-column: span 7; }
    .series--e .series__item--3 { grid-column: span 5; }
    .series--e .series__item--4 { grid-column: span 4; }
    .series--e .series__item--5 { grid-column: span 4; }
    .series--e .series__item--6 { grid-column: span 4; }
    .series--c { padding-bottom: calc(clamp(4rem, 9vw, 7rem) + 3rem); }
}

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

.contact { display: grid; }

.contact__media { position: relative; height: 46vh; height: 46svh; overflow: hidden; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__media-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 13, 11, 0.5), rgba(14, 13, 11, 0.1) 40%, var(--ink)); }
.contact__media-copy { position: absolute; left: var(--gx); bottom: 1rem; color: var(--paper-dim); }

.contact__body { padding: 1rem var(--gx) clamp(4rem, 9vw, 7rem); }

.contact__lead { max-width: 48ch; margin: 1.25rem 0 2rem; font-size: 1.08rem; color: var(--paper-dim); }

.contact__alt { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact__alt-title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.contact__alt-links { display: flex; flex-wrap: wrap; gap: 0 2rem; }

@media (min-width: 1000px) {
    .contact { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); min-height: 100vh; }
    .contact__media { position: sticky; top: 0; height: 100vh; }
    .contact__body { padding: calc(var(--header-h) + 3rem) 6vw 6rem 5vw; max-width: 980px; }
}

.form { display: grid; gap: 1.5rem; }

.form__legend { margin-bottom: 0.8rem; padding: 0; font-size: 0.9rem; font-weight: 600; }

.form__types { margin: 0; padding: 0; border: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line);
    font-size: 0.9rem;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--sepia); outline-offset: 3px; }
.chip:hover span { border-color: var(--paper-dim); }

.field { display: grid; gap: 0.4rem; }

.field label { font-size: 0.9rem; font-weight: 600; }
.req, .opt { font-weight: 400; color: var(--mute); font-size: 0.82rem; }

.field input,
.field textarea {
    width: 100%;
    min-height: 3.1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--ink-2);
    color: var(--paper);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.25s, background-color 0.25s;
}

.field textarea { resize: vertical; min-height: 9rem; }

.field input::placeholder,
.field textarea::placeholder { color: #857d70; }

.field input:focus,
.field textarea:focus { border-color: var(--sepia); background: var(--ink-3); outline: none; }

.field__help { font-size: 0.82rem; color: var(--mute); }
.field__error { font-size: 0.86rem; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }

.has-error input,
.has-error textarea { border-color: var(--error); }

.field-row { display: grid; gap: 1.5rem; }

@media (min-width: 700px) {
    .field-row { grid-template-columns: 1fr 1fr; }
}

.check { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 1.3rem; height: 1.3rem; min-height: 0 !important; margin-top: 0.2rem; accent-color: var(--sepia); flex: 0 0 auto; }

.form__submit { display: grid; gap: 0.8rem; justify-items: start; }
.form__demo { font-size: 0.82rem; color: var(--mute); }

.notice { padding: 1rem 1.25rem; border-left: 3px solid var(--sepia); background: var(--ink-2); }
.notice[hidden] { display: none; }
.notice__title { font-weight: 600; margin-bottom: 0.25rem; }
.notice a { color: var(--sepia); }
.notice--error { border-left-color: var(--error); }
.notice--demo { margin-bottom: 1.5rem; }

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

.footer { padding-block: clamp(4rem, 9vw, 7rem) 2rem; border-top: 1px solid var(--line); background: var(--ink); }

.footer__inner { display: grid; gap: 3.5rem; }

.footer__big {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.3em;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.8rem, 11vw, 9rem);
    line-height: 0.95;
    text-decoration: none;
}

.footer__big em { color: var(--sepia); }
.footer__arrow { display: inline-block; transition: transform 0.6s var(--ease); }
.footer__big:hover .footer__arrow { transform: translateX(1.5rem); }

.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.footer__title { margin-bottom: 0.6rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }

.footer__col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--paper-dim); transition: color 0.3s; }
.footer__col a:hover,
.footer__col a[aria-current="page"] { color: var(--paper); }
.footer__col a[aria-current="page"]::before { content: "— "; color: var(--sepia); white-space: pre; }

.footer__base { display: grid; gap: 0.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--mute); }

@media (min-width: 900px) {
    .footer__cols { grid-template-columns: repeat(3, 1fr); }
    .footer__base { grid-template-columns: 1fr auto; }
}

/* ---------- Barre d'actions mobile ---------- */

.action-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 110;
    display: grid;
    grid-template-columns: auto 1fr;
    border: 1px solid var(--line);
    background: rgba(14, 13, 11, 0.94);
    transform: translateY(150%);
    transition: transform 0.5s var(--ease);
}

.action-bar.is-visible { transform: none; }
.action-bar[hidden] { display: none; }

.action-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 3.2rem;
    padding-inline: 1.1rem;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.action-bar__cta { background: var(--paper); color: var(--ink); white-space: nowrap; }

@media (max-width: 400px) {
    .action-bar a { padding-inline: 0.7rem; font-size: 0.72rem; letter-spacing: 0.02em; }
    .action-bar__cta span { display: none; }
}

@media (max-width: 899px) {
    .footer { padding-bottom: 6rem; }
}

@media (min-width: 900px) {
    .action-bar { display: none; }
}

/* ---------- Visionneuse ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 350;
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 0.75rem;
    padding: 4rem var(--gx) calc(1rem + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 8, 7, 0.97);
    opacity: 0;
    transition: opacity 0.35s;
}

.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__stage { display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 74vh; max-height: 74svh; object-fit: contain; }

.lightbox__caption { text-align: center; color: var(--paper-dim); font-size: 0.92rem; }

.lightbox__controls { display: flex; justify-content: center; align-items: center; gap: 1rem; }

.lightbox__btn,
.lightbox__close {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding-inline: 1rem;
    border: 1px solid var(--line);
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.lightbox__btn:hover,
.lightbox__close:hover { background: var(--paper); color: var(--ink); }

.lightbox__count { font-family: var(--mono); font-size: 0.75rem; color: var(--mute); min-width: 4rem; text-align: center; }

.lightbox__close { position: absolute; top: 0.75rem; right: var(--gx); }

/* ---------- Filet de sécurité si main.js ne s'exécute pas ---------- */

.anim-failed [data-split] .w > span,
.anim-failed [data-reveal],
.anim-failed .develop img { opacity: 1 !important; transform: none !important; filter: none !important; }
.anim-failed .chapter { opacity: 1 !important; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }

    .entree, .grain { display: none; }
    .hero__video, .mountain__video video { display: none; }
    .video-toggle { display: none; }
    .js [data-split] .w > span { transform: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js .develop img { filter: none; transform: none; }
    .chapter { opacity: 1 !important; }
    [data-parallax] { transform: none !important; }
}
