/* Audell : galerie éditoriale (accueil + pages projet). Voir DESIGN.md */
:root {
    --a-ink: #141414;
    --a-paper: #ffffff;
    --a-muted: #5f5f5f;      /* 6,4:1 sur blanc */
    --a-line: #e6e3de;
    --a-gold: #b08a43;       /* feuille d'or du visuel d'accueil : filets et soulignés seulement */
    --a-gutter: clamp(16px, 3.2vw, 56px);
    --a-gap: clamp(16px, 2vw, 32px);
    --a-serif: 'Cormorant Garamond', Georgia, serif;
    --a-sans: 'Schibsted Grotesk', system-ui, sans-serif;
    --a-s-1: clamp(.8125rem, .79rem + .1vw, .875rem);
    --a-s0: clamp(1.0625rem, 1.03rem + .15vw, 1.1875rem);
    --a-s1: clamp(1.3rem, 1.2rem + .45vw, 1.6rem);
    --a-s2: clamp(1.9rem, 1.6rem + 1.4vw, 2.9rem);
    --a-s3: clamp(2.6rem, 1.9rem + 3.4vw, 5.4rem);
}

body { font-family: var(--a-sans); color: var(--a-ink); }
:focus-visible { outline: 2px solid var(--a-ink); outline-offset: 3px; }

/* ── Galerie ─────────────────────────────────────────── */
.g-gallery { padding-bottom: clamp(48px, 8vw, 140px); }
.g-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--a-gap);
    padding-inline: var(--a-gutter);
    margin-top: clamp(56px, 9vw, 168px);
    align-items: start;
}
.g-row:first-child { margin-top: 0; }
.g-fig { margin: 0; min-width: 0; }
.g-full { padding-inline: 0; }
.g-full .g-fig { grid-column: 1 / -1; }
.g-full .g-media { aspect-ratio: auto; height: min(100svh, calc(100vw / (var(--ar)))); max-height: 100svh; }
.g-full .g-cap { padding-inline: var(--a-gutter); }
.g-left .g-fig { grid-column: 1 / 10; }
.g-right .g-fig { grid-column: 4 / 13; }
.g-pair { margin-top: clamp(40px, 6vw, 112px); }
.g-pair .g-fig:first-child { grid-column: 1 / 7; }
.g-pair .g-fig:last-child { grid-column: 7 / 13; margin-top: clamp(48px, 10vw, 200px); }
.g-narrow-left .g-fig { grid-column: 2 / 7; }
.g-narrow-right .g-fig { grid-column: 7 / 12; }

.g-media { position: relative; overflow: hidden; background: #ece9e4; aspect-ratio: var(--ar, 3 / 2); }
.g-media img, .g-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.g-link { display: block; }
.g-link img, .g-link video { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.g-link:hover img, .g-link:hover video { transform: scale(1.015); }

.g-play {
    position: absolute; left: 12px; bottom: 12px; z-index: 2;
    font: 500 var(--a-s-1)/1 var(--a-sans); color: var(--a-ink);
    background: var(--a-paper); border: 0; padding: .7em 1em; cursor: pointer;
}
.g-play[hidden] { display: none; }

.g-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1.5rem; margin-top: .75rem; }
.g-cap-title {
    font-family: var(--a-serif); font-style: italic; font-size: var(--a-s1); line-height: 1.2;
    color: var(--a-ink); text-decoration: none; text-wrap: balance;
    background: linear-gradient(var(--a-gold), var(--a-gold)) 0 100% / 0 1px no-repeat;
    transition: background-size .5s ease;
}
.g-cap-title:hover, .g-cap-title:focus-visible { background-size: 100% 1px; }
.g-cap-meta { font-size: var(--a-s-1); color: var(--a-muted); font-variant-numeric: tabular-nums; }

/* ── Accueil ─────────────────────────────────────────── */
.is-home #app > header { display: none !important; }
.is-home main { padding-bottom: 0 !important; }
.h-top {
    position: absolute; top: 0; left: 0; right: 0; z-index: 20;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.4rem var(--a-gutter); color: #fff;
}
.h-brand { font-size: 1.3rem; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: #fff; text-decoration: none; }
.h-nav { display: flex; align-items: center; gap: 1.8rem; font-size: .95rem; }
.h-nav a { color: #fff; text-decoration: none; text-underline-offset: 6px; }
.h-nav a:hover, .h-nav a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; }
.h-lang { display: flex; gap: .6rem; margin-left: .6rem; }
.h-lang a { opacity: .6; } .h-lang a.on { opacity: 1; }
.h-menu { display: none; position: relative; }
.h-menu summary { list-style: none; cursor: pointer; color: #fff; font-size: .95rem; padding: .4rem 0; }
.h-menu summary::-webkit-details-marker { display: none; }
.h-menu[open] .h-sheet { display: flex; }
.h-sheet {
    display: none; flex-direction: column; gap: .9rem;
    position: absolute; right: 0; top: 2.4rem; min-width: 220px;
    background: var(--a-paper); padding: 1.2rem 1.4rem; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.h-sheet a { color: var(--a-ink); text-decoration: none; font-size: 1.05rem; }

.h-hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; color: #fff; background: #1d1b18; }
.h-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.h-hero-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--a-gutter); }
.h-mono { height: clamp(90px, 15vh, 160px); width: auto; margin-bottom: 1.6rem; }
.h-word { font-size: clamp(1.25rem, 3.2vw, 2.3rem); font-weight: 400; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; line-height: 1.1; }
.h-tag { margin-top: 1.4rem; font-family: var(--a-serif); font-style: italic; font-size: var(--a-s1); }
.h-down { position: absolute; z-index: 2; left: 50%; bottom: 1.6rem; transform: translateX(-50%); color: #fff; font-size: var(--a-s-1); text-decoration: none; opacity: .85; }
.h-down:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.h-lead { padding: clamp(64px, 10vw, 160px) var(--a-gutter) clamp(48px, 7vw, 112px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--a-gap); }
.h-lead p { grid-column: 2 / 10; margin: 0; font-family: var(--a-serif); font-size: var(--a-s2); line-height: 1.3; text-wrap: balance; }

.h-index { border-top: 1px solid var(--a-line); margin: 0 var(--a-gutter); padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 8vw, 128px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--a-gap); row-gap: 2.5rem; }
.h-index h2 { grid-column: 1 / 4; margin: 0; font-family: var(--a-serif); font-style: italic; font-weight: 400; font-size: var(--a-s2); line-height: 1.1; }
.h-index-cols { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2rem var(--a-gap); }
.h-index h3 { margin: 0 0 .7rem; font-size: var(--a-s-1); font-weight: 600; letter-spacing: .02em; }
.h-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.h-index li a { color: var(--a-ink); text-decoration: none; font-size: var(--a-s0); line-height: 1.35; }
.h-index li a:hover, .h-index li a:focus-visible { text-decoration: underline; text-decoration-color: var(--a-gold); text-underline-offset: 5px; }

/* ── Page projet ─────────────────────────────────────── */
.p-head { padding: clamp(24px, 4vw, 56px) var(--a-gutter) clamp(40px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--a-gap); row-gap: 2rem; }
.p-cat { grid-column: 1 / -1; font-size: var(--a-s-1); color: var(--a-muted); }
.p-cat a { color: inherit; text-underline-offset: 4px; }
.p-title { grid-column: 1 / 11; margin: 0; font-size: var(--a-s3); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.p-desc { grid-column: 1 / 8; margin: 0; max-width: 66ch; font-size: var(--a-s0); line-height: 1.6; text-wrap: pretty; color: #2b2b2b; }
.p-facts { grid-column: 9 / 13; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.4rem; align-self: start; font-size: var(--a-s-1); border-top: 1px solid var(--a-ink); padding-top: 1rem; }
.p-facts dt { color: var(--a-muted); }
.p-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.p-foot { border-top: 1px solid var(--a-line); margin: 0 var(--a-gutter); padding: 2rem 0 1rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.p-foot a { color: var(--a-ink); text-decoration: none; font-family: var(--a-serif); font-style: italic; font-size: var(--a-s1); }
.p-foot a:hover, .p-foot a:focus-visible { text-decoration: underline; text-decoration-color: var(--a-gold); text-underline-offset: 6px; }
.p-foot small { display: block; font-family: var(--a-sans); font-style: normal; font-size: var(--a-s-1); color: var(--a-muted); }
.p-empty { padding: 0 var(--a-gutter) 4rem; color: var(--a-muted); }

@media (max-width: 1023px) {
    .h-nav { display: none; }
    .h-menu { display: block; }
}
@media (max-width: 767px) {
    .g-row { margin-top: 40px; row-gap: 40px; }
    .g-row .g-fig, .g-pair .g-fig:first-child, .g-pair .g-fig:last-child { grid-column: 1 / -1; margin-top: 0; }
    .g-narrow-left .g-fig, .g-narrow-right .g-fig { grid-column: 1 / -1; }
    .g-full .g-media { height: auto; max-height: 82svh; aspect-ratio: var(--ar, 3 / 2); }
    .g-cap { margin-top: .6rem; }
    .h-lead p { grid-column: 1 / -1; }
    .h-index h2, .h-index-cols { grid-column: 1 / -1; }
    .p-title, .p-desc, .p-facts { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .g-link img, .g-link video, .g-cap-title { transition: none; }
    .g-link:hover img, .g-link:hover video { transform: none; }
}

/* ── Pied de page commun : lisibilité ─────────────────── */
footer .text-detail { font-size: 12px; letter-spacing: .14em; color: #5f5f5f; }
footer .text-\[9px\] { font-size: 11px; letter-spacing: .12em; color: #6b6b6b; }
footer .text-\[9px\] a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
