/* =============================================================
   SANDRINE NOSBÉ — DESIGN SYSTEM
   Éco-conçu · RGESN · RGAA AA
   ============================================================= */

/* ─── FONTS AUTO-HÉBERGÉES (Charte GP La France insoumise) ─── */

/* Titres — Pennypacker Condensed Extra Bold */
@font-face {
    font-family: 'Pennypacker';
    src: url('../fonts/pennypacker/Pennypacker-CondensedExtraBold.woff2') format('woff2');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

/* Corps — Zalando Sans Regular / Bold */
@font-face {
    font-family: 'Zalando Sans';
    src: url('../fonts/zalando-sans/ZalandoSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../fonts/zalando-sans/ZalandoSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Surtitres / dates — Zalando Sans Expanded Medium */
@font-face {
    font-family: 'Zalando Sans Expanded';
    src: url('../fonts/zalando-sans/ZalandoSansExpanded-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ─── VARIABLES CSS ──────────────────────────────────────── */

:root {
    /* Couleurs principales (charte GP LFI) */
    --couleur-violet:       #9b36de;
    --couleur-violet-hover: #8420c9;
    --couleur-rose:         #ff1054;
    --couleur-rose-hover:   #e00d49;
    --couleur-rose-fonce:   #c80d44; /* version AA pour petit texte / boutons / liens */
    --couleur-vert:         #17ce5d;
    --couleur-jaune:        #fff75c;
    --couleur-noir:         #1c1c1c;
    --couleur-blanc:        #FFFFFF;
    --couleur-creme:        #FFFCF4;

    /* Couleurs complémentaires / secondaires */
    --couleur-violet-clair: #fc6beb;
    --couleur-bleu:         #4e4edd;
    --couleur-cyan:         #54e4e8;
    --couleur-orange:       #ffa227;

    /* Alias rétro-compat (l'ancien thème utilisait rouge/charbon) */
    --couleur-rouge:        var(--couleur-rose);
    --couleur-rouge-hover:  var(--couleur-rose-hover);
    --couleur-charbon:      #1c1c1c;

    /* Dégradés officiels charte GP */
    --gradient-rose:  linear-gradient(90deg, #6c1054 0%, #ff1054 100%);
    --gradient-vert:  linear-gradient(90deg, #17488d 0%, #17ce5d 100%);
    --gradient-jaune: linear-gradient(90deg, #b40f15 0%, #fff75c 100%);

    /* Dégradé signature (hero) — violet → rose */
    --gradient-lfi:   linear-gradient(135deg, #9b36de 0%, #6c1054 55%, #ff1054 100%);
    --gradient-lfi-h: linear-gradient(90deg, #9b36de 0%, #ff1054 100%);

    /* Typographie (charte GP) */
    --font-titre:    'Pennypacker', 'Arial Narrow', sans-serif;
    --font-body:     'Zalando Sans', system-ui, -apple-system, sans-serif;
    --font-surtitre: 'Zalando Sans Expanded', 'Zalando Sans', system-ui, sans-serif;

    /* Tailles typographiques (fluid) */
    --h1:    clamp(60px, 10vw, 120px);
    --h2:    clamp(36px, 6vw, 72px);
    --h2-sm: clamp(28px, 4vw, 48px);
    --h3:    clamp(20px, 3vw, 28px);
    --body:  17px;
    --small: 13px;
    --label: 12px;

    /* Espacements */
    --section-padding:     clamp(60px, 10vh, 120px);
    --container-max:       1400px;
    --container-padding:   clamp(20px, 5vw, 80px);
    --gap:                 clamp(20px, 4vw, 48px);
    --gap-sm:              clamp(12px, 2vw, 24px);

    /* Transitions */
    --transition:      200ms ease;
    --transition-slow: 400ms ease;

    /* Bordures */
    --radius: 0;
}

/* ─── RESET & BASE ───────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: var(--body);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    background-color: #0a0a0a;
    color: var(--couleur-blanc);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Sélection de texte */
::selection {
    background-color: rgba(155, 54, 222, 0.35);
    color: var(--couleur-creme);
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--couleur-charbon); }
::-webkit-scrollbar-thumb { background: var(--couleur-rouge); }
::-webkit-scrollbar-thumb:hover { background: #cc0042; }

/* ─── TYPOGRAPHIE ────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titre);
    text-transform: uppercase;
    font-weight: 700;
    /* 1.08 plutôt que 1 : évite que les lignes se touchent dès qu'un titre
       (Pennypacker, très condensé) passe sur 2 lignes ou plus */
    line-height: 1.08;
    letter-spacing: -0.01em;
}

h1 { font-size: var(--h1); font-weight: 900; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

.titre-multiligne {
    line-height: 1.08;
}

p {
    line-height: 1.65;
    max-width: 72ch;
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration: none;
}

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

.sn-icon-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

img {
    height: auto;
}

/* ─── CONTENEUR ──────────────────────────────────────────── */

.container {
    width: min(var(--container-max), 100%);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ─── SECTION PADDING ────────────────────────────────────── */

.section {
    padding-block: var(--section-padding);
}

/* Séparateurs subtils entre sections consécutives de même fond */
#travail-parlementaire,
#actualites {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ─── GRILLES ────────────────────────────────────────────── */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    list-style: none;
    padding-left: 0;
    margin-block: 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap-sm);
    list-style: none;
    padding-left: 0;
    margin-block: 0;
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    /* Vidéos HP : 1 colonne (cards trop petites en 2 colonnes gênaient le tap sur le bouton play) */
    .grid-4.videos-hp-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ─── TYPOGRAPHIE UTILITAIRES ────────────────────────────── */

.text-creme   { color: var(--couleur-creme) !important; }
.text-violet  { color: var(--couleur-violet); }
.text-rouge   { color: var(--couleur-rose-fonce); } /* AA sur fond clair (5.84:1) */
.text-charbon { color: var(--couleur-charbon); }

.uppercase  { text-transform: uppercase; }
.label-caps {
    font-family: var(--font-surtitre);
    font-size: var(--label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* Charte GP : titres droits en Pennypacker (l'ancien skew M27 est neutralisé) */
.titre-skew {
    display: inline-block;
    transform: none;
    text-wrap: balance;
}

/* ─── TITRAILLE (charte GP) — texte surligné sur fond couleur ─── */
/* Reproduit les "formats spécifiques" de la charte : libellé noir
   sur fond de couleur vive, façon marqueur. À utiliser sur les
   surtitres/labels de section. */
.titraille {
    display: inline-block;
    font-family: var(--font-titre);
    text-transform: uppercase;
    font-weight: 900;
    /* ≥18.66px bold = "grand texte" WCAG → seuil contraste 3:1 respecté */
    font-size: clamp(19px, 1.6vw, 22px);
    line-height: 1.2;
    color: var(--couleur-noir);
    background: var(--couleur-jaune);
    /* Padding généreux : les majuscules accentuées (É, À…) du Pennypacker
       débordent facilement d'un fond trop ajusté sans cette marge. */
    padding: 0.2em 0.45em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    letter-spacing: 0.01em;
}
.titraille--sm    { font-size: 13px; padding: 4px 10px; letter-spacing: 0.02em; }
.titraille--violet { background: var(--couleur-violet); color: var(--couleur-blanc); }
.titraille--rose   { background: var(--couleur-rose);   color: var(--couleur-blanc); }
.titraille--vert   { background: var(--couleur-vert);   color: var(--couleur-noir); }
.titraille--jaune  { background: var(--couleur-jaune);  color: var(--couleur-noir); }
.titraille--bleu   { background: var(--couleur-bleu);   color: var(--couleur-blanc); }
/* En petit format, le rose vif n'atteint pas 4.5:1 → version foncée AA */
.titraille--sm.titraille--rose { background: var(--couleur-rose-fonce); }

/* Titre avec dégradé en clip */
.titre-gradient {
    background: var(--gradient-lfi);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── BOUTONS ────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 36px;
    min-height: 48px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    position: relative;
}

.btn-violet {
    background-color: var(--couleur-rouge);
    color: var(--couleur-creme);
    border-color: var(--couleur-rouge);
}

.btn-violet:hover,
.btn-violet:focus-visible {
    background-color: transparent;
    color: var(--couleur-rouge);
    border-color: var(--couleur-rouge);
    box-shadow: 0 4px 16px rgba(255, 16, 84, 0.25);
}

.btn-rouge {
    background-color: var(--couleur-rouge);
    color: var(--couleur-creme);
    border-color: var(--couleur-rouge);
}

.btn-rouge:hover,
.btn-rouge:focus-visible {
    background-color: transparent;
    color: var(--couleur-rouge);
    border-color: var(--couleur-rouge);
    box-shadow: 0 4px 16px rgba(255, 16, 84, 0.25);
}

.btn-outline-creme {
    background-color: transparent;
    color: var(--couleur-creme);
    border-color: var(--couleur-creme);
}

.btn-outline-creme:hover,
.btn-outline-creme:focus-visible {
    background-color: var(--couleur-creme);
    color: var(--couleur-charbon);
    box-shadow: 0 4px 16px rgba(255, 252, 244, 0.2);
}

.btn-outline-charbon {
    background-color: transparent;
    color: var(--couleur-charbon);
    border-color: var(--couleur-charbon);
}

.btn-outline-charbon:hover,
.btn-outline-charbon:focus-visible {
    background-color: var(--couleur-charbon);
    color: var(--couleur-creme);
    box-shadow: 0 4px 16px rgba(28, 28, 28, 0.18);
}

/* Lien texte avec flèche */
.lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: gap var(--transition);
}

.lien-fleche:hover,
.lien-fleche:focus-visible {
    gap: 14px;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 72px;
    background-color: rgba(33, 35, 32, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color var(--transition-slow), backdrop-filter var(--transition-slow);
}

.nav.is-scrolled {
    background-color: rgba(33, 35, 32, 0.98);
    backdrop-filter: blur(12px);
}

/* Homepage : nav transparente sur le hero, devient sombre au scroll */
body.home .nav:not(.is-scrolled) {
    background-color: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
}

.nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 28px);
}

.nav__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav__logo img {
    width: clamp(104px, 11vw, 150px);
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.nav__liste {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.45vw, 26px);
    list-style: none;
}

.nav__lien {
    font-size: clamp(12px, 0.82vw, 13px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition), border-bottom-color var(--transition);
    padding-top: 4px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.nav__lien:hover,
.nav__lien:focus-visible {
    color: var(--couleur-blanc);
    border-bottom-color: rgba(255,255,255,0.7);
}

.nav .btn-outline-creme {
    padding: 10px 18px;
}

.nav__lien[aria-current="page"] {
    color: var(--couleur-blanc);
    border-bottom-color: var(--couleur-blanc);
}

.nav .btn-outline-creme {
    padding: 10px 18px;
}

.nav__cta {
    margin-left: 8px;
    padding-inline: 14px;
    white-space: nowrap;
}

/* ── Dropdown Actualités ── */
.nav__item--dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__dropdown-toggle {
    background: none;
    border: none;
    padding: 2px 3px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    line-height: 1;
}

.nav__chevron {
    display: block;
    transition: transform var(--transition);
}

.nav__item--dropdown:hover .nav__chevron,
.nav__dropdown-toggle[aria-expanded="true"] .nav__chevron {
    transform: rotate(180deg);
}

.nav__sous-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--couleur-charbon);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    list-style: none;
    min-width: 220px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 200;
}

.nav__item--dropdown:hover .nav__sous-menu,
.nav__sous-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav__sous-lien {
    display: block;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}

.nav__sous-lien:hover,
.nav__sous-lien:focus-visible {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

.nav__sous-lien[aria-current="page"] {
    color: var(--couleur-blanc);
    font-weight: 700;
}

/* Bouton et formulaire de recherche */
.nav__search-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.nav__search-btn:hover { color: var(--couleur-blanc); }

.nav__search-form {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(33, 35, 32, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 12px clamp(20px, 5vw, 80px);
    gap: 8px;
    z-index: 101;
}

.nav__search-form[hidden] { display: none; }

.nav__search-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--couleur-creme);
    font-family: var(--font-body);
    font-size: 18px;
    padding: 8px 0;
    outline: none;
}

.nav__search-input::placeholder { color: #ffffff; }
.nav__search-input:focus { border-bottom-color: var(--couleur-violet-clair); }

.nav__search-submit {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    padding: 6px;
    transition: color var(--transition);
}

.nav__search-submit:hover { color: var(--couleur-blanc); }

/* Hamburger mobile */
.nav__hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--couleur-blanc);
    cursor: pointer;
    padding: 8px;
}

/* Menu mobile overlay — passe au-dessus du header (.nav, z-index:100)
   pour éviter que le bouton hamburger reste visible derrière l'overlay */
.menu-mobile {
    position: fixed;
    inset: 0;
    z-index: 150;
    background-color: var(--couleur-charbon);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.menu-mobile.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-mobile__liste {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 24px;
    width: 100%;
    max-width: 360px;
}

.menu-mobile__lien {
    font-family: var(--font-titre);
    font-size: clamp(24px, 7vw, 40px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--couleur-creme);
    text-decoration: none;
    transition: color var(--transition);
    display: block;
}

.menu-mobile__lien:hover,
.menu-mobile__lien:focus-visible {
    color: var(--couleur-rouge);
}

.menu-mobile__sous-liste {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.menu-mobile__sous-lien {
    font-family: var(--font-surtitre);
    font-size: clamp(12px, 3.5vw, 15px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,252,244,0.55);
    text-decoration: none;
    transition: color var(--transition);
    display: block;
    padding: 4px 0;
}

.menu-mobile__sous-lien:hover,
.menu-mobile__sous-lien:focus-visible {
    color: var(--couleur-rouge);
}

.menu-mobile__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--couleur-creme);
    cursor: pointer;
    padding: 8px;
}

.menu-mobile__recherche {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 320px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 6px;
    transition: border-color var(--transition);
}

.menu-mobile__recherche:focus-within {
    border-color: var(--couleur-rouge);
}

.menu-mobile__recherche-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--couleur-creme);
    font-family: var(--font-body);
    font-size: 17px;
    padding: 6px 0;
    outline: none;
}

.menu-mobile__recherche-input::placeholder { color: rgba(255, 252, 244, 0.5); }

.menu-mobile__recherche-submit {
    background: none;
    border: none;
    color: rgba(255, 252, 244, 0.65);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.menu-mobile__recherche-submit:hover,
.menu-mobile__recherche-submit:focus-visible {
    color: var(--couleur-creme);
}

@media (max-width: 1180px) {
    .nav__cta-item {
        display: none;
    }
}

@media (max-width: 1020px) {
    .nav__liste {
        gap: 12px;
    }

    .nav__lien {
        letter-spacing: 0.06em;
    }

    .nav__logo img {
        width: 108px;
    }
}

@media (max-width: 900px) {
    .nav__liste,
    .nav__cta { display: none; }
    .nav__hamburger { display: flex; }
}

/* ─── FOOTER ─────────────────────────────────────────────── */

.footer {
    background-color: var(--couleur-charbon);
    position: relative;
    z-index: 1;
}

.footer__main {
    padding-block: clamp(32px, 4vw, 48px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

/* Newsletter intégrée dans le footer */
.footer__newsletter-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
}

.footer__newsletter-accroche {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    margin-bottom: 20px;
}

.footer__nl-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 6px;
}

.footer__nl-champ {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.footer__nl-champ:focus-within {
    border-color: var(--couleur-rouge);
}

.footer__nl-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--couleur-creme);
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
}

.footer__nl-input::placeholder {
    color: #ffffff;
}

.footer__nl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--couleur-rouge);
    border: none;
    color: var(--couleur-blanc);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--transition);
}

.footer__nl-btn:hover { background: #b82015; }

.footer__nl-rgpd {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.60);
    font-size: 13px;
    line-height: 1.5;
}

.footer__nl-rgpd input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--couleur-rouge);
    cursor: pointer;
}

.footer__nl-lien-rgpd {
    color: var(--couleur-jaune);
}

.footer__nl-retour {
    font-size: 12px;
    min-height: 16px;
}

.footer__nl-retour.nl-succes { color: #7ddc8a; }
.footer__nl-retour.nl-erreur { color: #f87171; }

/* Identité */
.footer__identite {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
}

.footer__sn-logo {
    font-family: var(--font-titre);
    font-size: 28px;
    font-weight: 900;
    color: var(--couleur-creme);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1;
}

.footer__slogan {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.5;
    white-space: nowrap;
}

.footer__email {
    font-size: 12px;
    color: var(--couleur-jaune);
    text-decoration: none;
    transition: color var(--transition);
}
.footer__email:hover { color: var(--couleur-blanc); }

.footer__lfi-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity var(--transition);
}
.footer__lfi-badge:hover { opacity: 1; }

.footer__lfi-logo {
    display: block;
    width: 160px;
    height: auto;
}

/* Aligne le titre "Navigation" avec les autres colonnes (identité/newsletter ont padding-top:6px) */
.footer__col-nav {
    padding-top: 6px;
}

/* Navigation : titre en titraille pour plus de contraste (span imbriqué porte le style visuel,
   espacement identique aux titrailles de sous-titre utilisées sur la page d'accueil) */
.footer__nav-titre {
    padding-top: 6px;
}

.footer__nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 16px;
}

.footer__lien {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition);
}
.footer__lien:hover,
.footer__lien:focus-visible { color: var(--couleur-rouge); }

/* Réseaux sociaux */
.footer__rs-grille {
    display: inline-grid;
    grid-template-columns: repeat(4, 36px);
    gap: 8px;
    list-style: none;
    margin-bottom: 12px;
    justify-content: start;
}

.footer__rs-lien {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--couleur-blanc);
    transition: background-color var(--transition);
}

.footer__rs-lien svg,
.footer__rs-lien img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
}

.footer__rs-lien:hover,
.footer__rs-lien:focus-visible {
    background-color: var(--couleur-rouge);
}

.footer__an-lien {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition);
}
.footer__an-lien:hover { color: rgba(255, 255, 255, 0.6); }

/* Bas du footer */
.footer__bas {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-block: 20px;
}

.footer__bas-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer__legal {
    display: flex;
    gap: 20px;
    list-style: none;
}

@media (max-width: 900px) {
    .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer__newsletter-col { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .footer__grid { grid-template-columns: minmax(0, 1fr); }
    .footer__bas-inner { flex-direction: column; align-items: flex-start; }
    .footer__newsletter-col { grid-column: 1; }
}

/* Liens externes (Fiche AN / datan.fr) */
.footer__liens-externes {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
}

.footer__lien-externe {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition);
}

.footer__lien-externe:hover,
.footer__lien-externe:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

/* Footer mobile : allégé, mieux hiérarchisé */
@media (max-width: 600px) {
    .footer__main { padding-block: 32px; }
    .footer__grid { gap: 28px; }
    .footer__nav-titre { margin-bottom: 12px; }
    .footer__nav ul { gap: 10px 16px; }
    .footer__lfi-logo { width: 130px; }
    .footer__liens-externes { margin-top: 20px; padding-top: 16px; }
    .footer__lien-externe { padding: 10px 14px; }
    /* 16px minimum empêche le zoom auto de Safari iOS au focus */
    .footer__nl-input { font-size: 17px; }
}

/* ─── SKIP LINK ──────────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--couleur-rouge);
    color: var(--couleur-creme);
    padding: 8px 16px;
    font-weight: 700;
    text-decoration: none;
    z-index: 200;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
}

/* ─── HERO ───────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 62vh;
    min-height: 62svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--gradient-lfi);
}

/* Photo hero — portrait fondu dans le gradient */
.hero__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    pointer-events: none;
    overflow: hidden;
}

.hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    -webkit-mask-image:
        linear-gradient(to right,  transparent 0%, black 28%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 5%,  black 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right,  transparent 0%, black 28%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 5%,  black 78%, transparent 100%);
    mask-composite: intersect;
    filter: brightness(0.78) saturate(0.85);
}

.hero__contenu {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 80px clamp(40px, 8vh, 80px);
}

/* Texte limité à la moitié gauche */
.hero__bas {
    max-width: min(52%, 640px);
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    border-left: 4px solid var(--couleur-rouge);
    padding: 13px 22px;
}

.hero__tag::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--couleur-rouge);
    flex-shrink: 0;
}

.hero__tag-texte {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ffffff;
}

.hero__nom {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero__titre {
    font-size: clamp(40px, 7vw, 100px);
    font-weight: 900;
    font-style: normal;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--couleur-creme);
    text-transform: uppercase;
    margin-bottom: 24px;
    white-space: nowrap;
}

.hero__sous-titre {
    color: #ffffff;
    font-size: 18px;
    max-width: 52ch;
    margin-bottom: 32px;
    line-height: 1.4;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__scroll {
    position: absolute;
    bottom: clamp(20px, 4vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    animation: bounce 2s infinite;
    color: var(--couleur-creme);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* ─── STATS + CITATION ───────────────────────────────────── */

.stats-citation-section {
    background: var(--couleur-creme);
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

/* Stats */
.stats-bande__liste {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    width: min(100%, 1280px) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 clamp(24px, 5vw, 64px) !important;
}

.stats-bande__item {
    text-align: center;
    padding: clamp(16px, 2.5vh, 28px) 20px;
    border-right: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stats-bande__item:last-child { border-right: none; }

.stats-bande__icone { display: none; }

.stats-bande__chiffre {
    font-family: var(--font-titre);
    font-size: clamp(44px, 4.5vw, 68px);
    min-width: auto;
    font-weight: 900;
    line-height: 1;
    color: #fff !important;
    display: block;
}

.stats-bande__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    white-space: normal;
    line-height: 1.65;
    max-width: 22ch;
    margin: 0 auto;
}

/* Séparateur + Citation — masqués */
.stats-citation-sep,
.stats-citation-quote { display: none; }

@media (max-width: 600px) {
    .stats-bande__liste { grid-template-columns: minmax(0, 1fr); }
    .stats-bande__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 20px 12px; }
    .stats-bande__item:last-child { border-bottom: none; }
    .stats-bande__chiffre { font-size: clamp(44px, 12vw, 60px) !important; }
    .stats-citation-section .section-titre h2 { white-space: normal !important; }
}

@media (max-width: 900px) {
    .hero__photo {
        width: 100%;
        -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, rgba(0,0,0,0.25) 68%, transparent 100%);
        mask-image:         linear-gradient(to bottom, black 0%, black 40%, rgba(0,0,0,0.25) 68%, transparent 100%);
        -webkit-mask-composite: unset;
        mask-composite: unset;
    }
    .hero__photo img {
        opacity: 0.9;
        object-position: 50% 20%;
        filter: brightness(1) saturate(0.95);
    }
    .hero__bas { max-width: 100%; }
    .hero__contenu { padding-block: 72px clamp(32px,6vh,56px); }
    /* Tag : moins opaque, plus compact */
    .hero__tag {
        background: rgba(0, 0, 0, 0.45);
        padding: 10px 16px;
    }
    .hero__tag-texte { font-size: 13px; letter-spacing: 0.14em; }
}

@media (max-width: 600px) {
    .hero__titre { white-space: normal; }
    .hero__ctas { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
    .hero__ctas .btn { width: auto; justify-content: center; padding: 9px 18px; font-size: 12px; min-height: 44px; letter-spacing: 0.08em; }
    /* Remonter photo Sandrine, baisser texte */
    .hero__photo img { object-position: 50% 5%; transform: translateY(-95px); }
    /* Voile sombre en bas de la photo (zone du texte), directement sur la photo
       plein bord (pas de boîte séparée) pour garder le texte lisible */
    .hero__photo::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 0%, transparent 45%, rgba(28,28,28,0.75) 78%, rgba(28,28,28,0.92) 100%);
        pointer-events: none;
    }
    .hero__contenu { justify-content: flex-end; padding-block: 40px 64px; }
    /* Section plus haute : laisse le visage de Sandrine respirer avant que
       le texte (ancré en bas) ne commence */
    .hero { min-height: 76svh; }
    .hero__scroll { display: none; }
    /* Tag encore plus compact sur très petit écran */
    .hero__tag { padding: 8px 12px; }
    .hero__tag-texte { font-size: 13px; }
    .titraille--sm { font-size: 12px; }
}

/* ─── SECTION TITRES ─────────────────────────────────────── */

.section-titre {
    margin-bottom: var(--gap);
}

.section-titre__titraille {
    display: table;
    margin-bottom: 16px;
}

.section-titre--center {
    text-align: center;
}

.section-titre--center .section-intro {
    margin-inline: auto;
}

/* CTA centré bas de section */
.section-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
    margin-top: var(--gap);
}

.section-cta--gap-sm {
    margin-top: var(--gap-sm);
}

/* Tabs liste centrée */
.tabs__liste--center {
    justify-content: center;
}

/* lien-fleche violet-clair (sur fond sombre) */
.lien-fleche--violet-clair {
    color: var(--couleur-violet-clair);
}

.section-titre__tag {
    display: block;
    margin-bottom: 12px;
}

.section-intro {
    max-width: 640px;
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(33, 35, 32, 0.82);
}

/* ─── CITATION SANDRINE ──────────────────────────────────── */

.citation-bloc {
    background: var(--couleur-charbon);
    padding: clamp(48px, 7vh, 96px) 0;
    position: relative;
    overflow: hidden;
}

.citation-bloc::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-titre);
    font-size: clamp(160px, 20vw, 280px);
    line-height: 1;
    background: var(--gradient-lfi);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.25;
    pointer-events: none;
    user-select: none;
}

.citation-bloc__inner {
    position: relative;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(20px, 5vw, 60px);
}

.citation-bloc__texte {
    font-family: var(--font-titre);
    font-style: normal;
    font-size: clamp(26px, 4vw, 48px);
    font-weight: 700;
    color: var(--couleur-creme);
    line-height: 1.45;
    margin: 0;
    letter-spacing: -0.005em;
    max-width: 820px;
}

.citation-bloc__auteur {
    display: block;
    margin-top: 28px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
}

/* ─── LOADING STATE ──────────────────────────────────────── */

.sn-loading {
    opacity: 0.5;
    pointer-events: none;
}

.sn-no-results {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding-block: 32px;
}

/* ─── RESPONSIVE HELPERS ─────────────────────────────────── */

@media (max-width: 900px) {
    :root {
        --section-padding: clamp(48px, 8vh, 80px);
    }
}

/* ── K2 Contact mobile ── */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ── H6 Contraste Agenda + Vidéos ── */
#agenda .section-intro,
#agenda p,
#agenda .card-agenda-hp__titre,
#agenda .card-agenda-hp__meta {
    color: rgba(255, 252, 244, 0.88);
}

#videos .section-intro,
#videos p {
    color: rgba(255, 252, 244, 0.9);
}

/* Filtre boutons agenda : meilleur contraste */
.agenda-filtre {
    color: rgba(255, 252, 244, 0.85);
}
.agenda-filtre.is-actif {
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   OVERRIDES MOBILE GLOBAUX
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    /* Boutons globaux : padding réduit */
    .btn { padding: 12px 22px; font-size: 12px; min-height: 44px; }

    /* Filtres plus compacts */
    .filtres__bouton { padding: 6px 14px; font-size: 13px; letter-spacing: 0.06em; }

    /* 3 actualités max sur la page d'accueil */
    #contenu-actualites > *:nth-child(n+4) { display: none !important; }

    /* Vidéos HP : 1 colonne, cards en pleine largeur (tap plus confortable sur le bouton play) */
    .videos-hp-grille {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }
    .card-video--hp .yt-facade__img,
    .card-video--hp .card-video__placeholder img { height: auto; object-fit: cover; }
    .card-video--hp .card-video__info { padding: 10px 12px; }
    .card-video--hp .card-video__titre { font-size: 15px; line-height: 1.35; }
    .card-video--hp .card-video__date { font-size: 12px; }

    /* Grille récap et actualités : plus d'espace entre cartes */
    .actu-grille { gap: 20px; }

    /* Contact HP : 1 colonne */
    .contact-hp-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 40px !important; }

    /* Agenda filtres */
    .agenda-filtre { padding: 6px 12px; font-size: 13px; }
}

/* Stats : le titre s'adapte à la largeur disponible.
   Il était en « white-space: nowrap » : dès que le titre dépassait la largeur
   du conteneur, le dernier mot (« concrètement ») était coupé à l'écran.
   On laisse le texte revenir à la ligne et on équilibre les lignes. */
.stats-titre {
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: break-word;
}

/* Bouton "Toutes les interventions à l'Assemblée" (page Vidéos) :
   texte trop long pour tenir sur une ligne en mobile → il dépassait de l'écran */
@media (max-width: 600px) {
    .btn-assemblee-hp {
        white-space: normal;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
}

/* Cibles des sous-onglets du menu « Votre députée ».
   Sans ce décalage, l'en-tête fixe recouvre le titre de la section quand
   le visiteur arrive dessus par un lien d'ancre. */
.ancre-section {
    scroll-margin-top: calc(var(--sn-bandeau-h, 0px) + 90px);
}
