/* ==========================================================
   CHARLOTS RUGBY CLUB AGEN — feuille de style
   Direction : sobre, éditoriale, haut de gamme.
   Bleu nuit (héritage bleu & blanc agenais) · ivoire · laiton discret.
   Typographies : Bodoni Moda (titres) + Hanken Grotesk (texte).
   ========================================================== */

/* ---------- Jetons de design (modifiez les couleurs ici) ---------- */
:root {
    --ink: #0E1A2C;          /* bleu nuit profond */
    --ink-2: #14243B;
    --ink-3: #1D3253;
    --paper: #F6F1E7;        /* ivoire chaud */
    --paper-2: #EDE6D6;
    --paper-3: #E2D9C4;
    --text: #1B2434;
    --muted: #5A6272;
    --gold: #B8955A;         /* laiton vieilli */
    --gold-soft: #D9C39A;
    --gold-deep: #7B5D2B;    /* version lisible sur ivoire */
    --line: rgba(14, 26, 44, .16);
    --line-light: rgba(246, 241, 231, .18);
    --danger: #8E2B2B;
    --ok: #2F6B4F;

    /* Couleurs du logo — à utiliser avec parcimonie (touches, jamais en aplat) */
    --c-yellow: #FDCD15;
    --c-purple: #805286;
    --c-coral: #F15E52;
    --c-green: #33A249;

    --f-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
    --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --wrap: 1180px;
    --pad: clamp(1.25rem, 4vw, 2.5rem);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 860px; }

/* ---------- Typographie ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .9rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold-deep); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 2.25rem; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-soft); }

.display {
    font-family: var(--f-display); font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.012em;
    max-width: 22ch; text-wrap: balance;
    font-variant-numeric: lining-nums;
}
.display--light { color: var(--paper); }
.lead + p { margin-top: 2rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.7; max-width: 62ch; margin-top: 1.5rem; color: var(--text); }

/* ---------- En-tête ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
    color: var(--paper);
}
/* Le fond flouté est un pseudo-élément : un backdrop-filter sur le header lui-même
   piégerait le menu mobile (position: fixed) dans la hauteur de l'en-tête. */
.site-header::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: rgba(14, 26, 44, .92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-light);
    opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 1; }
.site-header__inner {
    max-width: var(--wrap); margin-inline: auto; padding: 0 var(--pad);
    height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--paper); }
.brand__logo { width: 49px; height: 54px; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-size: 1.55rem; letter-spacing: .04em; font-weight: 500; }
.brand__sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; margin-top: .4rem; color: var(--gold-soft); }

.nav__list { display: flex; align-items: center; gap: 2.4rem; }
.nav__list a {
    position: relative; text-decoration: none; padding: .4rem 0;
    font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(246, 241, 231, .86);
    transition: color .3s;
}
.nav__list a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--paper); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--paper); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.site-header.is-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 860px) {
    .burger { display: block; }
    .nav {
        position: fixed; inset: 0; z-index: -1;
        background: var(--ink);
        padding: calc(var(--header-h) + 3rem) var(--pad) 3rem;
        opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
        overflow-y: auto;
    }
    .site-header.is-open .nav { opacity: 1; visibility: visible; }
    .nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
    .nav__list li { width: 100%; border-bottom: 1px solid var(--line-light); }
    .nav__list a {
        display: block; padding: 1.3rem 0;
        font-family: var(--f-display); font-style: italic; font-size: 2rem; letter-spacing: 0; text-transform: none; font-weight: 400;
    }
    .nav__list a::after { display: none; }
    .nav__list a[aria-current="page"] { color: var(--gold-soft); }
}

/* ---------- Boutons ---------- */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: 1rem 1.9rem; border: 1px solid transparent; border-radius: 2px;
    font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold::before { background: var(--paper); }

.btn--ghost-light { border-color: rgba(246, 241, 231, .45); color: var(--paper); }
.btn--ghost-light::before { background: var(--paper); }
.btn--ghost-light:hover { color: var(--ink); border-color: var(--paper); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { background: var(--gold-deep); }

.link-arrow { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .35rem; }
.link-arrow span { display: inline-block; transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--paper);
    min-height: 100dvh; display: flex; align-items: center;
    padding: calc(var(--header-h) + 3rem) 0 5rem;
    background: var(--ink);
}
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 520px at 82% 18%, rgba(184, 149, 90, .17), transparent 62%),
        radial-gradient(700px 500px at 5% 100%, rgba(29, 50, 83, .9), transparent 70%),
        linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 60%, #0A1423 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero__title {
    font-family: var(--f-display); font-weight: 400;
    font-size: clamp(2.8rem, 7.2vw, 6rem); line-height: .98; letter-spacing: -.02em;
    text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--gold-soft); }
.hero__text { margin-top: 1.75rem; max-width: 52ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(246, 241, 231, .78); }
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__art { color: var(--gold); display: flex; align-items: center; justify-content: center; }
.hero__art { flex-direction: column; gap: 1.5rem; }
.hero__emblem { position: relative; width: min(100%, 520px); aspect-ratio: 1; display: grid; place-items: center; animation: drift 1.6s var(--ease) both; }
.hero__rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); }
.hero__logo { position: relative; width: 66%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .38)); }
.hero__caption { font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); text-align: center; }
.hero__photo { position: relative; width: min(100%, 430px); margin-inline: auto; animation: drift 1.6s var(--ease) both; }
.hero__photo::before {
    content: ''; position: absolute; inset: 0; transform: translate(16px, 16px);
    border: 1px solid var(--gold); z-index: 0;
}
.hero__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-3); }

.hero__scroll {
    position: absolute; left: 50%; bottom: 1.75rem; width: 1px; height: 54px; background: var(--line-light);
    transform: translateX(-50%); overflow: hidden;
}
.hero__scroll span { position: absolute; inset: 0; background: var(--gold); transform: translateY(-100%); animation: scrollcue 2.4s var(--ease) infinite; }

@keyframes drift { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 860px) {
    .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 2.5rem); }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__art { order: -1; align-items: flex-start; gap: .75rem; }
    .hero__emblem { width: 230px; margin-left: -.5rem; }
    .hero__caption { text-align: left; }
    .hero__photo { width: min(78%, 320px); margin-inline: 0; margin-bottom: 1rem; }
    .hero__scroll { display: none; }
}

/* ---------- Repères chiffrés ---------- */
.figures { background: var(--paper-2); border-block: 1px solid var(--line); }
.figures__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.figure-item { padding: 2.25rem 1.5rem 2.25rem 0; }
.figure-item + .figure-item { padding-left: clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.figure-item__num { font-family: var(--f-display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; font-variant-numeric: lining-nums; color: var(--ink); }
.figure-item__label { margin-top: .6rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--tint { background: var(--paper-2); }
.section__head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.section__row .eyebrow { margin-bottom: 1rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.pillar { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.pillar__num { font-family: var(--f-display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--gold-deep); }
.pillars .pillar:nth-child(1) .pillar__num { color: var(--c-purple); }
.pillars .pillar:nth-child(2) .pillar__num { color: var(--c-coral); }
.pillars .pillar:nth-child(3) .pillar__num { color: var(--c-green); }
.pillar__title { font-family: var(--f-display); font-weight: 500; font-size: 1.75rem; margin: 1.1rem 0 .8rem; }
.pillar p:last-child { color: var(--muted); max-width: 36ch; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar p:last-child { max-width: none; } }

/* ---------- Prochain rendez-vous ---------- */
.next { background: var(--ink-2); color: var(--paper); padding-block: clamp(3.5rem, 8vw, 6rem); border-block: 1px solid var(--ink-3); }
.next__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.next__date { display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid var(--line-light); padding-right: clamp(2rem, 6vw, 5rem); }
.next__day { font-family: var(--f-display); font-size: clamp(4.5rem, 12vw, 8rem); line-height: .9; color: var(--gold-soft); font-variant-numeric: lining-nums; }
.next__month { margin-top: .8rem; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 241, 231, .7); font-weight: 600; }
.next__place { margin-top: 1.1rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-soft); }
.next__text { margin-top: .8rem; max-width: 56ch; color: rgba(246, 241, 231, .78); }
@media (max-width: 720px) {
    .next__inner { grid-template-columns: 1fr; }
    .next__date { border-right: 0; border-bottom: 1px solid var(--line-light); padding: 0 0 1.75rem; flex-direction: row; align-items: baseline; gap: 1rem; }
}

/* ---------- Derniers moments ---------- */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 19vw, 230px); gap: .75rem; }
.moments__item { position: relative; display: block; overflow: hidden; background: var(--paper-3); }
.moments__item:first-child { grid-column: span 2; grid-row: span 2; }
.moments__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.moments__item:hover img { transform: scale(1.03); }
.moments--1, .moments--2, .moments--3, .moments--4 { grid-auto-rows: auto; }
.moments--1 { grid-template-columns: 1fr; }
.moments--2 { grid-template-columns: repeat(2, 1fr); }
.moments--3 { grid-template-columns: repeat(3, 1fr); }
.moments--1 .moments__item:first-child, .moments--2 .moments__item:first-child,
.moments--3 .moments__item:first-child, .moments--4 .moments__item:first-child { grid-column: auto; grid-row: auto; }
.moments--1 .moments__item img, .moments--2 .moments__item img,
.moments--3 .moments__item img, .moments--4 .moments__item img { aspect-ratio: 4 / 3; }
@media (max-width: 720px) {
    .moments, .moments--3, .moments--4 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .moments--3 .moments__item img, .moments--4 .moments__item img { aspect-ratio: auto; }
    .moments__item:first-child { grid-column: span 2; grid-row: span 1; }
    .moments--1 { grid-template-columns: 1fr; }
}

.empty { border: 1px dashed var(--gold-deep); padding: clamp(2rem, 5vw, 4rem); text-align: left; max-width: 640px; }
.empty__title { font-family: var(--f-display); font-size: 1.7rem; margin-bottom: .6rem; }
.empty p:last-child { color: var(--muted); }

/* ---------- Bandeau final ---------- */
.cta { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta__line { font-family: var(--f-display); font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.01em; }
.cta__line em {
    color: var(--ink);
    background: linear-gradient(90deg, var(--c-yellow) 0 25%, var(--c-purple) 25% 50%, var(--c-coral) 50% 75%, var(--c-green) 75% 100%) left bottom / 100% 4px no-repeat;
    padding-bottom: .12em;
}

/* ---------- En-tête de page intérieure ---------- */
.page-head { background: linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--paper); padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -8%; top: -30%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; border: 1px solid rgba(184, 149, 90, .28); border-radius: 50%; box-shadow: 0 0 0 44px rgba(184, 149, 90, 0), 0 0 0 45px rgba(184, 149, 90, .12); pointer-events: none; }
.page-head__inner { position: relative; z-index: 1; }
.page-head__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1; letter-spacing: -.02em; }
.page-head__title em { color: var(--gold-soft); }
.page-head__lead { margin-top: 1.4rem; max-width: 54ch; font-size: 1.15rem; color: rgba(246, 241, 231, .78); }

/* ---------- Charte ---------- */
.charter { counter-reset: none; }
.charter__item { display: grid; grid-template-columns: clamp(3.5rem, 9vw, 6rem) 1fr; gap: 1rem; padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.charter__item:last-child { border-bottom: 1px solid var(--line); }
.charter__num { font-family: var(--f-display); font-style: italic; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; color: var(--gold-deep); }
.charter__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin-bottom: 1rem; }
.charter__body p { max-width: 60ch; color: var(--text); }
.charter__body p + p { margin-top: .9rem; }

.prose h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; margin: 2.75rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 66ch; }
.prose a { color: var(--gold-deep); }

/* ---------- Galerie ---------- */
.section--gallery { padding-top: clamp(2.5rem, 5vw, 4rem); }
.gallery-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2rem; }
.tabs__item { text-decoration: none; font-family: var(--f-display); font-size: 1.5rem; color: var(--muted); padding-bottom: .3rem; border-bottom: 1px solid transparent; }
.tabs__item span { font-family: var(--f-body); font-size: .72rem; letter-spacing: .1em; vertical-align: super; color: var(--gold-deep); }
.tabs__item[aria-current="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters a { display: inline-block; text-decoration: none; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.masonry { column-count: 3; column-gap: .9rem; }
.masonry__item { position: relative; display: block; margin-bottom: .9rem; break-inside: avoid; overflow: hidden; background: var(--paper-3); cursor: zoom-in; }
.masonry__item img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.masonry__item:hover img { transform: scale(1.03); }
.masonry__cap {
    position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; font-size: .88rem; color: var(--paper);
    background: linear-gradient(to top, rgba(14, 26, 44, .85), transparent);
    opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.masonry__item:hover .masonry__cap, .masonry__item:focus-visible .masonry__cap { opacity: 1; transform: none; }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 480px) { .masonry { column-gap: .5rem; } .masonry__item { margin-bottom: .5rem; } }
@media (hover: none) { .masonry__cap { display: none; } }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2rem 1.5rem; }
.video-card { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.video-card__frame { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink-2) center / cover no-repeat; overflow: hidden; }
.video-card__frame::after { content: ''; position: absolute; inset: 0; background: rgba(14, 26, 44, .28); transition: background-color .4s; }
.video-card:hover .video-card__frame::after { background: rgba(14, 26, 44, .12); }
.video-card__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border: 1px solid var(--paper); border-radius: 50%; color: var(--paper); background: rgba(14, 26, 44, .35); transition: transform .5s var(--ease), background-color .4s; }
.video-card__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-card:hover .video-card__play { transform: scale(1.08); background: var(--gold); border-color: var(--gold); color: var(--ink); }
.video-card__title { display: block; margin-top: .9rem; font-family: var(--f-display); font-size: 1.2rem; line-height: 1.25; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 3.5rem; font-size: .85rem; letter-spacing: .08em; }
.pagination a { font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.pagination span { color: var(--muted); }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #070D18; animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 94vw; }
.lightbox__media img, .lightbox__media video { max-width: 92vw; max-height: 78dvh; width: auto; height: auto; object-fit: contain; }
.lightbox__media iframe { width: min(92vw, 1100px); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.lightbox__caption { min-height: 1.5em; max-width: 70ch; text-align: center; color: rgba(246, 241, 231, .85); font-size: .95rem; padding-inline: 1rem; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: none; border: 1px solid var(--line-light); border-radius: 50%; color: var(--paper); font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.lightbox__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox__close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; margin-top: -26px; }
.lightbox__next { right: 1rem; top: 50%; margin-top: -26px; }
@media (max-width: 720px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; margin: 0; } .lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; } }

/* ---------- Contact & formulaires ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.info-list > div { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 1px solid var(--line); }
.info-list dt { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .35rem; }
.info-list dd { font-size: 1.1rem; }
.info-list a { text-decoration-color: var(--gold); }

.field { margin-bottom: 1.75rem; }
.field label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea {
    width: 100%; padding: .7rem 0; font: inherit; font-size: 1.08rem; color: var(--ink);
    background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
    transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-deep); box-shadow: 0 1px 0 var(--gold-deep); }
.field--error input, .field--error textarea { border-bottom-color: var(--danger); }
.field__error { margin-top: .4rem; font-size: .9rem; color: var(--danger); }
.form-note { margin-top: 1.25rem; font-size: .85rem; color: var(--muted); max-width: 52ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.25rem; margin-bottom: 2rem; border-left: 3px solid var(--gold); background: var(--paper-2); }
.notice--success { border-left-color: var(--ok); }
.notice--error { border-left-color: var(--danger); }

/* ---------- Filet tricolore (couleurs du logo) ---------- */
.tricolor { height: 3px; background: linear-gradient(90deg, var(--c-yellow) 0 25%, var(--c-purple) 25% 50%, var(--c-coral) 50% 75%, var(--c-green) 75% 100%); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(246, 241, 231, .78); }
.site-footer__grid { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.site-footer__logo { width: 86px; height: auto; margin-bottom: 1.25rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; }
.site-footer__name { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--paper); letter-spacing: .03em; }
.site-footer__sub { margin-top: .5rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); }
.site-footer__blurb { margin-top: 1.5rem; max-width: 34ch; font-size: .98rem; }
.site-footer__title { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1rem; }
.site-footer__col li { padding-block: .22rem; }
.site-footer a { text-decoration-color: rgba(217, 195, 154, .5); }
.site-footer a:hover { color: var(--paper); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-light); font-size: .82rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ---------- Apparition au défilement (discrète) ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
    .reveal.is-visible { opacity: 1; transform: none; }
    .pillars .reveal:nth-child(2), .figures__grid .reveal:nth-child(2) { transition-delay: .12s; }
    .pillars .reveal:nth-child(3), .figures__grid .reveal:nth-child(3) { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
