/* ==========================================================================
   Studio 30 — feuille de style
   Palette : noir encre, papier, accent orange-rouge. Polices auto-hébergées.
   ========================================================================== */

@font-face {
    font-family: "Anton";
    src: url("../fonts/anton-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-ext-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ink: #0b0b0c;
    --ink-2: #17171a;
    --ink-3: #26262b;
    --paper: #f4f1ea;
    --white: #ffffff;
    --accent: #ff4d2e;
    --accent-deep: #c4301a;
    --muted: #62626a;
    --line: rgba(11, 11, 12, .12);
    --line-light: rgba(255, 255, 255, .16);

    --font-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px -12px rgba(0, 0, 0, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 200;
    background: var(--accent); color: var(--ink); padding: .7rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Typographie ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.display--light { color: var(--white); }
.eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-deep); margin-bottom: .9rem;
}
.eyebrow--light { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; margin-top: 1rem; }
.lead--light { color: rgba(255, 255, 255, .72); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
    transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #ff6a4f; box-shadow: 0 10px 28px -10px rgba(255, 77, 46, .8); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-ghost { border-color: var(--line-light); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--ink); color: var(--ink); margin-left: .5rem; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-small { padding: .65rem 1.2rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(11, 11, 12, .86);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line-light); color: var(--white);
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .6); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand-text {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
    font-size: 1.35rem; line-height: 1; display: flex; flex-direction: column; gap: .25rem;
}
.brand-text small {
    font-family: var(--font-body); font-size: .62rem; font-weight: 500; letter-spacing: .12em;
    color: rgba(255, 255, 255, .6);
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { display: flex; gap: 1.6rem; }
.nav ul a {
    text-decoration: none; font-weight: 500; font-size: .98rem; color: rgba(255, 255, 255, .78);
    padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav ul a:hover { color: var(--white); }
.nav ul a[aria-current="page"] { color: var(--white); border-color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
    .brand-text small { display: none; }
    .js .nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
        background: transparent; border: 1px solid var(--line-light);
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
        display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px;
        transition: transform .3s var(--ease), opacity .2s;
    }
    .nav-toggle-bars { position: relative; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

    .js .nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem 1.25rem 1.6rem;
        background: var(--ink); border-bottom: 1px solid var(--line-light);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    }
    .js .nav.is-open { opacity: 1; transform: none; visibility: visible; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav ul a { display: block; padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line-light); }
    .nav ul a[aria-current="page"] { border-bottom-color: var(--accent); }
    .nav .btn { width: 100%; }
    /* Sans JavaScript : la navigation reste visible sur deux lignes. */
    html:not(.js) .site-header { height: auto; position: static; }
    html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .8rem; }
    html:not(.js) .nav { flex-wrap: wrap; gap: .8rem; }
    html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
    html:not(.js) .nav ul a { border: 0; padding: .3rem 0; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--white); background: var(--ink);
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
    isolation: isolate;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(900px 520px at 85% 10%, rgba(255, 77, 46, .28), transparent 60%),
        radial-gradient(700px 480px at 0% 100%, rgba(255, 255, 255, .07), transparent 60%);
}
.hero-bg {
    position: absolute; right: -4vw; top: 50%; transform: translateY(-50%); z-index: -1;
    font-family: var(--font-display); line-height: .8; user-select: none; pointer-events: none;
    font-size: clamp(16rem, 46vw, 46rem);
    color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .1);
}
.hero-inner { position: relative; }
.hero-title {
    font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
    font-size: clamp(2.9rem, 8.2vw, 7rem); line-height: .96; letter-spacing: .005em;
    max-width: 14ch; text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .75); max-width: 56ch; margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-stats {
    display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-top: 1.6rem; border-top: 1px solid var(--line-light);
}
.hero-stats dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.hero-stats dd { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .03em; margin-top: .15rem; }

/* Bandeau défilant */
.ticker { background: var(--accent); color: var(--ink); overflow: hidden; white-space: nowrap; border-block: 1px solid var(--ink); }
.ticker-track { display: inline-flex; animation: ticker 38s linear infinite; }
.ticker span {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
    font-size: 1.25rem; padding: .7rem 0;
}
.ticker span::after { content: "✦"; margin: 0 1.6rem; font-size: .9rem; vertical-align: .12em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-cta { margin-top: 2.5rem; text-align: center; }
.empty { padding: 2rem; text-align: center; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.split .btn { margin-top: 1.6rem; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- Onglets ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.tab {
    padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent;
    font-weight: 600; font-size: .92rem; cursor: pointer; transition: background-color .2s, color .2s;
}
.tab:hover { background: rgba(11, 11, 12, .07); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }

/* ---------- Publications ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-grid [hidden] { display: none !important; }
.post-card {
    position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 22px 44px -16px rgba(0, 0, 0, .3); }
.post-inner { display: flex; flex-direction: column; height: 100%; }
.post-media { position: relative; aspect-ratio: 16 / 10; background: var(--ink-2); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-media--empty {
    display: flex; align-items: flex-end; justify-content: space-between; padding: 1.1rem 1.2rem; overflow: hidden;
    background: linear-gradient(135deg, var(--ink) 0%, #25100b 100%); color: var(--white);
}
.post-media-30 {
    position: absolute; right: -.4rem; top: 10%; transform: translateY(-50%); line-height: .8;
    font-family: var(--font-display); font-size: 11rem; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .16);
}
.post-media-label { position: relative; font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .8rem; color: var(--muted); margin-bottom: .7rem; }
.tag {
    display: inline-block; padding: .22rem .6rem; border-radius: 999px; background: var(--ink); color: var(--white);
    font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.post-title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.post-text { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.post-title a { color: inherit; text-decoration: none; }
.post-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.post-stretch:focus-visible { outline: none; }
.post-stretch:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; }
.post-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-top: auto; padding-top: 1.1rem; }
.post-more { font-weight: 700; font-size: .92rem; color: var(--accent-deep); }
.post-alt { position: relative; z-index: 2; font-size: .82rem; font-weight: 600; color: var(--muted); }
.post-alt:hover { color: var(--ink); }
/* Lien « Modifier », visible seulement par un administrateur connecté */
.post-edit { position: relative; z-index: 2; font-size: .78rem; font-weight: 600; color: var(--muted); text-decoration: none;
    padding: .1rem .5rem; border: 1px dashed currentColor; border-radius: 999px; opacity: .75; }
.post-edit:hover, .post-edit:focus-visible { opacity: 1; color: var(--accent-deep); }
.post-more span { display: inline-block; transition: transform .25s var(--ease); }
.post-card:hover .post-more span { transform: translateX(5px); }

.post-card--featured { grid-column: span 2; }
.post-card--featured .post-inner { flex-direction: row; }
.post-card--featured .post-media { flex: 1.15; aspect-ratio: auto; min-height: 340px; }
.post-card--featured .post-body { flex: 1; justify-content: center; padding: 2rem; }
.post-card--featured .post-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.post-card--featured .post-text { font-size: 1.02rem; }

@media (max-width: 1000px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .post-grid { grid-template-columns: 1fr; }
    .post-card--featured { grid-column: auto; }
    .post-card--featured .post-inner { flex-direction: column; }
    .post-card--featured .post-media { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
    .post-card--featured .post-body { padding: 1.3rem 1.4rem 1.5rem; }
}

/* ---------- Rubriques ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.topic-grid--three { grid-template-columns: repeat(3, 1fr); }
.topic {
    position: relative; padding: 1.8rem 1.6rem 2rem; border: 1.5px solid var(--line); border-radius: var(--radius);
    background: var(--white); transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.topic:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--accent); display: block; margin-bottom: 1.6rem; }
.topic h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; letter-spacing: .02em; margin-bottom: .6rem; }
.topic p { color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .topic-grid, .topic-grid--three { grid-template-columns: 1fr; } }

/* ---------- Formats ---------- */
.format-list li { display: grid; gap: .25rem; padding: 1.3rem 0; border-top: 1px solid var(--line-light); }
.format-list li:last-child { border-bottom: 1px solid var(--line-light); }
.format-list strong { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em; }
.format-list span { color: rgba(255, 255, 255, .68); }

/* ---------- À propos ---------- */
.about-teaser { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-card { display: grid; place-items: center; }
.about-card img { border-radius: 50%; box-shadow: var(--shadow); }
.partners { margin: 1.4rem 0 1.8rem; font-size: .95rem; color: var(--muted); }
.partners span { font-weight: 700; color: var(--ink); }
@media (max-width: 720px) { .about-teaser { grid-template-columns: 1fr; } .about-card { justify-items: start; } .about-card img { width: 140px; height: 140px; } }

.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; margin-bottom: .8rem; font-size: 1.5rem; }
.prose h2.display { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-top: 0; margin-bottom: 1rem; }
.prose p { margin-top: 1rem; }
.prose .display + p { margin-top: 0; }
.prose p + h2.display { margin-top: 2.6rem; }
.prose--narrow { max-width: 760px; }
.prose a { color: var(--accent-deep); font-weight: 600; }
.side-card {
    position: sticky; top: calc(var(--header-h) + 24px); padding: 2rem; border-radius: var(--radius);
    background: var(--paper); text-align: center;
}
.side-card img { margin: 0 auto 1rem; border-radius: 50%; }
.side-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.8rem; letter-spacing: .03em; }
.check-list { margin: 1rem 0 1.6rem; text-align: left; display: inline-block; }
.check-list li { padding: .3rem 0 .3rem 1.7rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-deep); font-weight: 800; }
.side-card--dark { background: var(--ink); color: var(--white); text-align: left; }
.side-card--dark h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.8rem; margin-bottom: 1.2rem; }
.contact-list li { display: grid; gap: .1rem; padding: 1rem 0; border-top: 1px solid var(--line-light); }
.contact-list span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.contact-list a { text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--accent); }
@media (max-width: 880px) { .prose-grid { grid-template-columns: 1fr; } .side-card { position: static; } }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--accent); color: var(--ink); padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-band .display--light { color: var(--ink); max-width: 18ch; }
.cta-band .lead--light { color: rgba(11, 11, 12, .75); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band .btn-light { background: var(--ink); color: var(--white); }
.cta-band .btn-light:hover { background: var(--ink-3); }

/* ---------- Pages internes ---------- */
.page-hero {
    position: relative; overflow: hidden; background: var(--ink); color: var(--white);
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 360px at 90% 0%, rgba(255, 77, 46, .24), transparent 65%);
}
.page-hero .container { position: relative; }
.page-title {
    font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1;
    font-size: clamp(2.6rem, 7vw, 5rem); max-width: 18ch; text-wrap: balance;
}
.page-hero--center { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.page-hero--center .page-title, .page-hero--center .hero-lead { margin-inline: auto; }
.page-hero--center .btn { margin-top: 1.8rem; }
.error-code { font-family: var(--font-display); font-size: clamp(7rem, 24vw, 16rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--accent); }

/* ---------- Formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
    width: 100%; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid rgba(11, 11, 12, .25);
    background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 77, 46, .3); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .88rem; font-weight: 600; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .7rem; }
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--ink); }
.field--check label { font-weight: 400; font-size: .92rem; color: var(--muted); }
.field--check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-size: .98rem; }
.alert--ok { background: #e6f4ea; border: 1px solid #1e7a3c; color: #14532d; }
.alert--error { background: #fdecea; border: 1px solid #b3261e; color: #7a1812; }

/* ---------- Plugin Facebook (après clic) ---------- */
.fb-embed { min-height: 360px; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--white); }
.fb-embed-consent { padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; gap: 1rem; justify-items: start; min-height: 360px; align-content: center; }
.fb-embed-consent h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2rem; letter-spacing: .02em; }
.fb-embed-consent p:not(.eyebrow) { color: rgba(255, 255, 255, .7); font-size: .98rem; }
.fb-embed iframe { display: block; width: 100%; height: 720px; border: 0; background: var(--white); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-brand img { border-radius: 50%; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255, 255, 255, .65); max-width: 34ch; font-size: .96rem; }
.footer-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; color: var(--accent); margin-bottom: 1rem; }
.footer-list li { padding: .25rem 0; font-size: .96rem; color: rgba(255, 255, 255, .78); }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.4rem 0 1.8rem; border-top: 1px solid var(--line-light); font-size: .85rem; color: rgba(255, 255, 255, .5);
}
.footer-admin { font-size: .78rem; color: rgba(255, 255, 255, .45); text-decoration: none; letter-spacing: .04em; }
.footer-admin:hover, .footer-admin:focus-visible { color: var(--accent); text-decoration: underline; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .ticker-track { animation: none; }
}
@media print {
    .site-header, .ticker, .cta-band, .fb-embed, .tabs { display: none !important; }
    .hero, .page-hero { background: none; color: #000; }
}

/* ---------- Textes éditables : paragraphes multiples ---------- */
.lead p + p, .hero-lead p + p, .topic p + p, .fb-embed-consent p + p { margin-top: .8em; }

/* ---------- Vidéo liée à une publication ---------- */
.post-watch { position: relative; z-index: 2; margin-top: 1rem; }
.post-video-btn span[aria-hidden] { font-size: .8em; }
.video-dialog {
    width: min(1100px, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem);
    padding: 0; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--white); overflow: auto;
}
.video-dialog::backdrop { background: rgba(5, 5, 6, .82); backdrop-filter: blur(4px); }
.video-dialog video { display: block; width: 100%; max-height: 76dvh; background: #000; }
.video-dialog-title { padding: 1rem 1.3rem 1.2rem; font-weight: 700; }
.video-dialog-close {
    position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .18); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.video-dialog-close:hover { background: rgba(255, 255, 255, .32); }
@media (max-width: 640px) { .video-dialog { width: 100vw; max-height: 100dvh; border-radius: 0; } }

/* ---------- Icône vidéo au centre de l'image ---------- */
.video-mark {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
    margin: 0; padding: 0; border: 0; font: inherit; color: var(--white); text-align: center;
    background: radial-gradient(circle at center, rgba(11, 11, 12, .45) 0%, rgba(11, 11, 12, .15) 45%, rgba(11, 11, 12, 0) 70%);
    pointer-events: none;   /* pendant le délai : le clic traverse et ouvre l'article */
}
.video-mark--play { pointer-events: auto; cursor: pointer; }
.video-mark {
    --mark: #1d4ed8;        /* bleu : vidéo à voir sur Sudinfo (pendant le délai) */
    --mark-deep: #172554;
}
.video-mark--play {
    --mark: #15803d;        /* vert : vidéo lisible ici */
    --mark-deep: #052e16;
}
.video-mark-icon {
    position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
    background: var(--mark); color: var(--white);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .92), 0 14px 32px -8px rgba(0, 0, 0, .7);
    transition: transform .3s var(--ease);
}
.video-mark-icon svg { width: 38px; height: 38px; margin-left: 5px; }
.video-mark-icon::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid var(--mark);
    animation: video-pulse 2.2s ease-out infinite;
}
@keyframes video-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
.video-mark-label {
    padding: .45rem 1rem; border-radius: 999px; background: var(--mark-deep); color: var(--white);
    font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6);
}
.post-card:hover .video-mark-icon, .video-mark--play:focus-visible .video-mark-icon { transform: scale(1.1); }
.video-mark--play:focus-visible { outline: 3px solid var(--mark); outline-offset: -3px; }
.post-video-btn { background: #15803d; border-color: #15803d; color: var(--white); }
.post-video-btn:hover, .post-video-btn:focus-visible { background: #166534; border-color: #166534; color: var(--white); }
.post-card--featured .video-mark-icon { width: 104px; height: 104px; }
.post-card--featured .video-mark-icon svg { width: 50px; height: 50px; margin-left: 6px; }
.post-card--featured .video-mark-label { font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .video-mark-icon::after { animation: none; opacity: 0; } }
.stats-optout { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--paper); }

/* ---------- Pagination de la page Reportages ---------- */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 2.2rem; }
.pager .btn { margin: 0; }
.pager > :first-child { justify-self: start; }
.pager > :last-child { justify-self: end; }
.pager-info { margin: 0; font-weight: 700; color: var(--ink-2); }
@media (max-width: 640px) {
    .pager { grid-template-columns: 1fr; justify-items: center; }
    .pager > :first-child, .pager > :last-child { justify-self: center; }
    .pager > span:empty { display: none; }
    .pager-info { order: -1; }
}

/* ---------- Veille de l'actualité ---------- */
.tabs a.tab { text-decoration: none; color: inherit; }
.tabs a.tab[aria-current="page"] { background: var(--ink); color: var(--white); }
.veille-week-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.veille-synth { max-width: 860px; }
.veille-summary { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.6rem); }
.veille-summary h3 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.veille-summary h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.veille-summary p { margin: 0 0 .9rem; }
.veille-summary ul { margin: .4rem 0 1rem; padding-left: 1.2rem; }
.veille-summary li { margin: .35rem 0; }
.cites { font-size: .7em; line-height: 0; margin-left: .1em; white-space: nowrap; }
.cites a, .veille-teaser-list .cites a { display: inline-block; min-width: 1.45em; padding: .05em .3em; margin: 0 .08em; border-radius: 999px;
    background: var(--paper); color: var(--accent-deep); font-weight: 700; text-align: center; text-decoration: none; }
.cites a:hover, .cites a:focus-visible { background: var(--accent-deep); color: var(--white); }
.veille-disclaimer { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.veille-archive { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: 1.2rem; font-size: .92rem; }
.veille-archive span { font-weight: 700; }
.veille-filters { display: grid; gap: .6rem; margin: -.4rem 0 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
    font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); }
.chips--small .chip { font-size: .78rem; padding: .25rem .7rem; }
.veille-count { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 0 0 .4rem; }
.veille-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.4rem; }
.veille-item { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.veille-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0 0 .35rem; font-size: .78rem; color: var(--muted); }
.veille-cc { padding: .05rem .4rem; border-radius: 4px; background: var(--ink); color: var(--white); font-weight: 700; font-size: .7rem; letter-spacing: .06em; }
.veille-source { font-weight: 700; color: var(--ink); }
.veille-theme { padding: .05rem .5rem; border-radius: 999px; background: var(--paper); font-weight: 600; }
.veille-title { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.veille-title a { color: inherit; text-decoration: none; }
.veille-title a:hover, .veille-title a:focus-visible { color: var(--accent-deep); text-decoration: underline; }
.veille-extract { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); }
.veille-tr { margin: .3rem 0 0; font-size: .76rem; color: var(--muted); font-style: italic; }
@media (max-width: 880px) { .veille-list { grid-template-columns: 1fr; } }
.veille-teaser .display { color: var(--white); }
.veille-teaser-period { color: rgba(255, 255, 255, .7); margin: .2rem 0 0; }
.veille-teaser-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.veille-teaser-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.veille-teaser-list li { position: relative; padding-left: 1.4rem; line-height: 1.5; }
.veille-teaser-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.veille-teaser-list a { color: var(--white); }
.veille-teaser-list .cites a { background: rgba(255, 255, 255, .12); color: var(--white); }
.veille-teaser-src { display: block; font-size: .8rem; color: rgba(255, 255, 255, .6); }
