/*
Theme Name: Osez Pantin
Theme URI: https://osezpantin.fr
Author: Osez Pantin
Author URI: https://osezpantin.fr
Description: Thème WordPress pour Osez Pantin - Mouvement citoyen, populaire et engagé. Design moderne et responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osezpantin
Tags: custom, modern, responsive, engaged, citizen
*/

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+US+Traditional:wght@100..400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&display=swap');

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs Osez Pantin - Charte graphique */
    --color-primary: #E63946;        /* Rouge engagé */
    --color-secondary: #2A9D8F;      /* Vert écologique */
    --color-accent: #F77F00;         /* Orange énergique */
    --color-dark: #1D3557;           /* Bleu foncé */
    --color-light: #F1FAEE;          /* Beige clair */
    --color-white: #FFFFFF;
    --color-text: #2B2D42;
    --color-text-light: #6C757D;
    
    /* Typographie */
    --font-primary: 'Agrandir Narrow', sans-serif;
    --font-heading: 'Agrandir Narrow', sans-serif;
}

body {
    font-family: 'Agrandir Narrow', sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

p {
    font-family: 'Agrandir Narrow', sans-serif;
    font-stretch: condensed;
    letter-spacing: -0.01em;
}

/* Container principal */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Police Tana St Canard */
@font-face {
    font-family: 'Tana St Canard';
    src: url('fonts/TanaStCanard-Regular.woff2') format('woff2'),
         url('fonts/TanaStCanard-Regular.woff') format('woff'),
         url('fonts/TanaStCanard-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Police Tana St Canard OTF pour le menu */
@font-face {
    font-family: 'Tana St Canard Menu';
    src: url('fonts/TAN- StCanard.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Police Tan St Canard (sans 'a') */
@font-face {
    font-family: 'Tan St Canard';
    src: url('fonts/TAN- StCanard.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Police Agrandir Narrow pour l'alert bar */
@font-face {
    font-family: 'Agrandir Narrow';
    src: url('fonts/Agrandir-Narrow.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Barre d'alerte Save The Date */
.alert-bar-wrapper {
    padding: 0;
    display: block;
    background: #F5F1E8;
    margin-top: 0;
}

.alert-bar {
    background: linear-gradient(135deg, #7ed957 0%, #6BC84A 100%);
    color: #FFFFFF;
    padding: 1.5rem 2rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(126, 217, 87, 0.4);
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-height: 70px;
    justify-content: center;
}

.alert-bar-icon {
    font-size: 1.5rem;
    animation: pulse-icon 2s ease-in-out infinite;
    flex-shrink: 0;
    padding-left: 2rem;
    z-index: 1;
}

.alert-bar-content {
    display: inline-flex;
    animation: scroll-text 40s linear infinite;
    white-space: nowrap;
    flex: 1;
    padding-left: 1rem;
    position: relative;
    z-index: 1;
}

.alert-bar-text {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-right: 4rem;
    white-space: nowrap;
    line-height: 1.4;
    font-family: 'Agrandir Narrow', sans-serif;
}

.alert-bar-text strong {
    font-weight: 900;
    font-size: 1.15em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.alert-highlight {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .alert-bar-wrapper {
        padding: 0.75rem 1rem;
    }
    
    .alert-bar {
        padding: 0.75rem 1rem;
        gap: 1rem;
        border-radius: 8px;
    }
    
    .alert-bar-icon {
        font-size: 1.2rem;
        padding-left: 0;
    }
    
    .alert-bar-text {
        font-size: 0.85rem;
        padding-right: 2rem;
        letter-spacing: 0.8px;
    }
}

/* Header - Barre de navigation en haut */
.site-header {
    background: #FF3131;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .site-header {
        border-bottom: none !important;
    }
}

@media (max-width: 768px) {
    .alert-bar-wrapper {
        padding: 0;
        width: 100%;
        margin-top: 0;
    }
    
    .alert-bar {
        width: 100%;
        padding: 1.5rem 1rem;
        min-height: 80px;
        border-radius: 0;
    }
    
    .alert-bar-text {
        font-size: 1rem;
        padding-right: 2rem;
    }

    /* Navigation mobile - masquer desktop, afficher boutons */
    .main-navigation.desktop-nav {
        display: none !important;
    }

    .mobile-nav-buttons {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 60px;
        align-items: stretch;
    }

    .header-content {
        padding: 0 !important;
        flex-direction: row;
        height: 100% !important;
        min-height: 60px;
        align-items: stretch;
    }

    .site-header {
        padding: 0 !important;
        min-height: 60px;
    }

    .site-header .site-container {
        padding: 0 !important;
        height: 100% !important;
        min-height: 60px;
    }

    .mobile-nav-btn {
        min-height: 60px !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 1rem 1.5rem !important;
        border: none !important;
        border-bottom: none !important;
    }
}

/* Navigation iPad - même style que mobile */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Navigation iPad - masquer desktop, afficher boutons */
    .main-navigation.desktop-nav {
        display: none !important;
    }

    .mobile-nav-buttons {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 60px;
        align-items: stretch;
    }

    .header-content {
        padding: 0 !important;
        flex-direction: row;
        height: 100% !important;
        min-height: 60px;
        align-items: stretch;
    }

    .site-header {
        padding: 0 !important;
        min-height: 60px;
        border-bottom: none !important;
    }

    .site-header .site-container {
        padding: 0 !important;
        height: 100% !important;
        min-height: 60px;
    }

    .mobile-nav-btn {
        min-height: 60px !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 1rem 1.5rem !important;
        border: none !important;
        border-bottom: none !important;
    }
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    min-height: 60px;
    flex-direction: row;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    font-family: var(--font-heading);
}

.site-title:hover {
    color: #7F4FD9;
}

.site-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin: 0;
}

/* Navigation principale */
.main-navigation.desktop-nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: 0 0 auto;
}

/* Boutons mobile */
.mobile-nav-buttons {
    display: none;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    flex-direction: row !important;
}

.mobile-nav-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
    min-height: 100%;
    color: #FFFFFF !important;
    margin: 0;
    font-family: 'Anton', sans-serif;
}

.mobile-nav-btn:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.9;
}

.mobile-nav-btn-vote {
    background: #7F4FD9 !important;
    color: #FFFFFF !important;
    border: none !important;
}

.mobile-nav-btn-vote:hover {
    background: #6B3FC7 !important;
    color: #FFFFFF !important;
}

.mobile-nav-btn-manifeste {
    background: #FF3131 !important;
    color: #FFFFFF !important;
    border: none !important;
}

.mobile-nav-btn-manifeste:hover {
    background: #E63946 !important;
    color: #FFFFFF !important;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 400;
    font-size: 1.5rem;
    padding: 0.75rem 0.75rem;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-family: 'Anton', sans-serif;
    line-height: 1.3;
    position: relative;
    white-space: nowrap;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: #FFFFFF;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 2px;
}


.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    transform: scaleX(1);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-white);
    background-color: transparent;
    transform: translateY(0);
}

.main-navigation li:hover > a {
    color: var(--color-white);
}

/* Style spécifique pour le lien "Je vote" */
.main-navigation a[href*="je-vote"] {
    background: #7F4FD9;
    border-radius: 6px;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

/* Menu mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-white);
    border-radius: 4px;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-color: var(--color-white);
}

.menu-icon {
    display: block;
    font-weight: bold;
    line-height: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: #F5F1E8;
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-tabloid-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-tabloid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .hero-section {
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

.hero-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem 0 2rem;
    display: flex;
    align-items: center;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.hero-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-left {
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

.hero-right {
    justify-content: flex-start;
    padding-top: 0;
}

/* Hero Card */
.hero-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    padding-top: 4.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin-top: 35px;
}

/* Hero Logo */
.hero-logo-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin-bottom: -40px;
    margin-top: 25px;
    z-index: 2;
    align-self: center;
}

.hero-logo {
    text-align: center;
    margin-bottom: 0;
}

.hero-logo-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transform: scale(1.5);
    margin-top: -130px;
}

/* Hero Form */
.hero-form {
    width: 100%;
    margin-top: 10px;
}

.hero-form .row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero-form .row:last-of-type {
    margin-bottom: 0;
}

.hero-form .col-md-6 {
    flex: 1;
    min-width: 0;
}

.hero-form .col-12 {
    width: 100%;
}

.hero-form .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #E0D9C8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: var(--color-white);
    color: var(--color-text);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.hero-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    outline: none;
}

.hero-form .form-control::placeholder {
    color: var(--color-text-light);
}

/* CTA Button */
.btn-join-cta,
.btn.btn-join-cta {
    width: 100%;
    padding: 1rem 2rem;
    background: #FF3131;
    color: var(--color-white);
    border: 2px solid #FF3131;
    border-radius: 999px !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 1.5rem auto 0;
}

.btn-join-cta:hover {
    background: #E63946;
    border-color: #E63946;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 49, 50, 0.3);
    color: var(--color-white);
}

/* Image de Mathieu */
.hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    padding-top: 0;
    transform: translateY(-10px);
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    object-position: center bottom;
    background: transparent;
    border: none;
    transform: scale(1.1) translateY(-10px);
    transform-origin: bottom center;
    margin: 0;
    padding: 0;
}

@media (max-width: 968px) {
    .hero-image {
        width: 100%;
        transform: scale(1);
    }
    
    .hero-image-wrapper {
        overflow: hidden;
        width: 100%;
    }
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: none;
    border: none;
}

/* Contenu gauche */


/* Bandeau sous le hero : manifeste / comité de soutien */
.band-manifeste {
    background: #FFC2E8;
    padding: 1.5rem 0;
    margin-top: -10vh;
    position: relative;
    z-index: 5;
}

/* Sur desktop : remonter le contenu du hero pour qu'il soit au-dessus de la bande rose */
@media (min-width: 769px) {
}

.band-manifeste-inner {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.band-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 2px solid #000;
    font-family: 'Agrandir Narrow', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.band-btn-primary {
    background: #FF3131;
    color: #FFFFFF;
    border-color: #FF3131;
}

.band-btn-secondary {
    background: transparent;
    color: #FF3131;
    border-color: #FF3131;
}

.band-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .band-manifeste {
        padding: 1.5rem 1rem !important;
        margin-top: calc(-5rem - 25px) !important;
        margin-bottom: 0 !important;
        position: relative;
        z-index: 5;
    }

    .band-manifeste-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0;
    }

    .band-btn {
        width: 100%;
        padding: 0.85rem 1.5rem !important;
    }
    
    .band-btn-secondary {
        text-align: center;
    }
}
/* Page Qui sommes-nous - Bandeau manifeste */
.about-banner {
    background: transparent;
    padding: 0.75rem 0 0.5rem;
    margin: 0 0 2.5rem;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/MANDELLA-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.about-banner-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.about-banner .site-container {
    position: relative;
    z-index: 1;
}

.about-hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.about-hero-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.about-manifeste-logo {
    max-width: 420px;
    height: auto;
    display: block;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    font-size: 1.12rem;
    line-height: 1.9;
    color: #2B2D42;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 1.75rem 2.25rem;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #FF3131;
}

.about-text p {
    margin: 0 0 1.1rem;
}

.about-page-content {
    margin-bottom: 4rem;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.about-column-text {
    max-width: 650px;
}

.about-layout .about-text {
    max-width: none;
    margin: 0;
}

.about-column-photos {
    margin-top: 1.5rem; /* on baisse un peu les têtes */
}

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

.about-photo-item {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about-photo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.about-photo-item:hover .about-photo-img {
    opacity: 0.9;
}

/* Mur de soutien pleine largeur sous le manifeste */
.about-photos-full {
    margin-top: 3rem;
}

.about-photos-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

/* ===========================
 * Page "Notre programme"
 * =========================== */

.programme-banner {
    position: relative;
    padding: 4rem 0 3rem;
    margin-bottom: 2.5rem;
    color: #1D1D1B;
}

.programme-banner-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFE45E 0%, #FF7A7A 30%, #7ED957 65%, #6C63FF 100%);
    opacity: 0.18;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.programme-banner-inner {
    position: relative;
    max-width: 880px;
    padding: 2.5rem 0;
}

.programme-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    background: #111111;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.programme-title {
    font-family: 'Tan St Canard', 'Tana St Canard', var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.programme-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.programme-intro {
    font-size: 0.98rem;
    color: var(--color-text-light);
}

.programme-edito {
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.programme-edito-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
}

.programme-edito-content {
    text-align: left;
    line-height: 1.8;
    font-size: 1rem;
}

.programme-edito-content p {
    margin-bottom: 1.2rem;
}

.programme-edito-content p strong {
    font-weight: 700;
}

.programme-page-content {
    margin-bottom: 4rem;
}

.programme-layout {
    display: block;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.programme-grid.is-hidden {
    display: none;
}

.programme-card-square {
    position: relative;
    border: none;
    border-radius: 18px;
    padding: 1.4rem 1.1rem;
    text-align: center;
    cursor: pointer;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 150px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    font-family: 'Tan St Canard', serif;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.programme-card-square:visited {
    color: #FFFFFF;
}

.programme-card-square:hover {
    text-decoration: none;
    color: #FFFFFF;
}

.programme-card-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: background 0.18s ease;
}

.programme-card-square:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.programme-card-square .programme-card-title {
    position: relative;
    z-index: 2;
}

.programme-card-square:hover {
    transform: translateY(-4px) rotate(0deg) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.programme-card-title {
    margin-top: 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.programme-card-osezpantin {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.programme-card-osez {
    color: #FF3131;
}

.programme-card-theme {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    transform: rotate(-2deg);
    display: inline-block;
}

.programme-card-enfants {
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/MANDELLA-scaled.jpg');
}

.programme-card-active {
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/COURTILLIERES1-1-scaled.jpg');
}

.programme-card-autrement {
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/SHEDS-scaled.jpg');
}

.programme-card-ecologique {
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/bat-2-scaled.jpg');
}

.programme-card-emancipatrice {
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/MANDELLA-scaled.jpg');
}

.programme-card-protectrice {
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/COURTILLIERES1-1-scaled.jpg');
}

.programme-card-rassemblee {
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/SHEDS-scaled.jpg');
}

.programme-card-sereine {
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/bat-2-scaled.jpg');
}

.programme-detail {
    display: none;
}

.programme-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid #111111;
    padding: 0.35rem 0.8rem;
    background: #FFFFFF;
    color: #111111;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    margin-bottom: 1.2rem;
    transition: background-color 0.18s ease, transform 0.12s ease;
}

.programme-back-btn:hover {
    background: #111111;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.programme-back-icon {
    font-size: 1rem;
    line-height: 1;
}

.programme-detail-section {
    display: none;
}

.programme-detail-section.is-visible {
    display: block;
}

.programme-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.programme-theme-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.5rem 1.7rem 1.4rem;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 6.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    max-width: 960px;
    margin: 0 auto 1.75rem;
}

.programme-theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.programme-theme-header {
    margin-bottom: 0.9rem;
}

.programme-theme-label {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--color-text-light);
    margin-bottom: 0.15rem;
}

.programme-theme-title {
    font-size: 1.45rem;
    line-height: 1.3;
}

.programme-theme-header-main {
    flex: 1;
}

.programme-theme-intro {
    margin-bottom: 0.9rem;
}

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

.programme-theme-column h3 {
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
}

.programme-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.programme-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.programme-list li::before {
    content: "•";
    position: absolute;
    left: 0.2rem;
    top: 0.02rem;
    color: var(--color-primary);
}

.programme-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.programme-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.03);
    color: var(--color-text-light);
}

.programme-theme-engagee {
    border-left-color: var(--color-primary);
}

.programme-theme-justice {
    border-left-color: #FF9F1C;
}

.programme-theme-ecologie {
    border-left-color: var(--color-secondary);
}

.programme-theme-jeunesse {
    border-left-color: #6C63FF;
}

.programme-theme-logement {
    border-left-color: #FF595E;
}

.programme-theme-culture {
    border-left-color: #7ED957;
}

.programme-theme-economie {
    border-left-color: #00B4D8;
}

.programme-theme-securite {
    border-left-color: #4C4CFF;
}

.programme-theme-body {
    margin-top: 0.2rem;
}

.programme-extra-content {
    margin-top: 2rem;
}

.programme-extra-content .post-content {
    max-width: 800px;
}

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

@media (max-width: 768px) {
    .programme-banner {
        padding: 3rem 0 2rem;
    }

    .programme-banner-inner {
        padding: 1.6rem 1.5rem;
    }

    .programme-title {
        font-size: 2.25rem;
    }

    .programme-edito {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .programme-edito-title {
        font-size: 1.25rem;
        margin-bottom: 1.2rem;
    }

    .programme-edito-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .programme-edito-content p {
        margin-bottom: 1rem;
    }

    .programme-theme-card {
        padding: 1.3rem 1.2rem 1.1rem;
    }

    .programme-theme-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .programme-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Modal pour afficher les bios */
.about-bio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.about-bio-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-bio-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10001;
}

.about-bio-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    animation: slideUp 0.3s ease;
}

.about-bio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #2B2D42;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
}

.about-bio-modal-close:hover {
    background: #7F4FD9;
    color: #FFFFFF;
}

.about-bio-modal-image-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.about-bio-modal-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-bio-modal-text {
    text-align: center;
}

.about-bio-modal-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2B2D42;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .about-bio-modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .about-bio-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
    
    .about-bio-modal-text p {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-column-text {
        max-width: none;
    }
}

/* Vote indicators sur les cartes */
.vote-card-indicators {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vote-indicator {
    position: absolute;
    top: 16px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.vote-indicator-like {
    left: 18px;
    background: rgba(127, 216, 86, 0.95);
    color: #0d3510;
}

.vote-indicator-dislike {
    right: 18px;
    background: rgba(255, 49, 49, 0.95);
    color: #FFFFFF;
}

.vote-card.vote-card--show-like .vote-indicator-like {
    opacity: 1;
    transform: scale(1);
}

.vote-card.vote-card--show-dislike .vote-indicator-dislike {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .about-banner {
        padding: 0.5rem 0 0.25rem !important;
        margin: 0 0 1.5rem !important;
        text-align: center !important;
    }

    .about-hero-image-wrapper {
        margin-bottom: 0;
    }

    .about-hero-image {
        max-height: 150px;
    }

    .about-text {
        font-size: 1.05rem;
        padding: 1.25rem 1.5rem;
        border-left-width: 3px;
    }
}

.join-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.join-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.join-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Inscription et Procuration */
.inscription-section {
    padding: 1.5rem 0;
    background: transparent;
    position: relative;
}

.inscription-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: end;
}

.inscription-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: -0.5rem;
    box-shadow: none;
}

.inscription-item:hover {
    transform: translateY(-8px);
    box-shadow: none;
    border-color: transparent;
}

.inscription-title {
    font-size: 2rem;
    font-weight: 900;
    color: #2B2D42;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Tana St Canard', var(--font-heading);
    margin: 0;
    line-height: 1.3;
}

.inscription-btn,
a.inscription-btn {
    background: #7F4FD9;
    color: #FFFFFF;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Agrandir Narrow', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    min-width: 180px;
    box-shadow: 0 6px 20px rgba(127, 79, 217, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: -1.5rem;
    z-index: 10;
    text-decoration: none;
    display: inline-block;
}

.inscription-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.inscription-btn:hover::before {
    left: 100%;
}

.inscription-btn:hover {
    background: #6B3FC0;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(127, 79, 217, 0.4);
}

.inscription-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.inscription-title-image {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 220px;
    width: auto;
    margin: 0 auto;
}

/* Section Bilan */
.bilan-section {
    padding: 2rem 0;
    background: #7ed957;
    position: relative;
}

.bilan-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.bilan-body {
    background: transparent;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.bilan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.bilan-cta:hover {
    transform: translateY(-4px) scale(1.05);
}

.bilan-cta-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 15px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bilan-cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bilan-arrow {
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bilan-arrow-image {
    width: auto;
    height: 120px;
    max-width: 180px;
    object-fit: contain;
    margin-right: -5px;
}

.bilan-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.bilan-banner {
    background: #ff66c4;
    padding: 0;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(255, 194, 232, 0.3);
}

.bilan-banner-1 {
    padding: 0;
}

.bilan-banner-2 {
    padding: 0;
}

.bilan-line1,
.bilan-line2 {
    display: block;
    color: #FFFFFF;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
    text-align: right;
}

.bilan-line1 {
    font-size: 2.8rem;
    text-transform: none;
}

.bilan-line2 {
    font-size: 1.75rem;
    text-transform: uppercase;
}

.bilan-banner-image {
    display: block;
    max-width: 60%;
    height: auto;
}

/* Test avec Agrandir Narrow */
.bilan-description.agrandir {
    font-family: 'Agrandir Narrow', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .bilan-section {
        padding: 2rem 0 1rem 0;
    }
    
    .bilan-content {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .bilan-body {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .bilan-cta-circle {
        width: 180px;
        height: 180px;
        border-width: 12px;
    }
    
    .bilan-arrow {
        transform: rotate(90deg);
    }
    
    .bilan-arrow-image {
        height: 90px;
        max-width: 130px;
        margin-right: -3px;
    }
    
    .bilan-text-wrapper {
        
        align-items: stretch;
    }
    
    .bilan-banner {
       
        text-align: center;
    }
    
    .bilan-line1 {
        font-size: 1.6rem;
        white-space: nowrap;
    }
    
    .bilan-line2 {
        font-size: 1.15rem;
    }
    
    .bilan-banner-image {
        max-width: 120%;
        width: 120%;
        margin-left: -10%;
    }
}

/* Section Actualités */
.actualites-section {
    padding: 5rem 0 2rem 0;
    background: #FFC2E8;
    position: relative;
    overflow: hidden;
}

.section-title-wrapper {
    text-align: center;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}


.section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #FF3131;
    background: transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    margin: 0;
    display: inline-block;
    text-transform: none;
    letter-spacing: 0.5px;
    font-family: 'Playwrite US Trad', cursive;
    position: relative;
    z-index: 1;
    transform: translateY(-50%);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.section-title::first-letter {
    text-transform: uppercase;
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 1.5rem;
}

.actualite-card {
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #F0F0F0;
}

.actualite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--color-light);
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF3131 0%, #2A9D8F 100%);
    color: var(--color-white);
    font-weight: 600;
}

.actualite-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title a {
    color: #FFC2E8;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    font-size: 1.3rem;
    line-height: 1.4;
}

.card-title a:hover {
    color: #7F4FD9;
}

.card-meta {
    margin-bottom: 1rem;
}

.card-date {
    color: #6C757D;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-excerpt {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.95rem;
}

.card-excerpt p {
    margin: 0;
    color: #6C757D;
}

.card-link {
    color: #FFC2E8;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    margin-top: auto;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.card-link:hover {
    color: #7F4FD9;
}

.no-actualites {
    text-align: center;
    color: var(--color-text-light);
    padding: 2rem;
    grid-column: 1 / -1;
}

/* Section Comité de soutien */
.soutien-section {
    padding: 4rem 0;
    background: var(--color-white);
    overflow: hidden;
}

.soutien-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF3131 0%, #E63946 50%, #FFC2E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 auto 3rem;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Tana St Canard', var(--font-heading);
    display: inline-block;
    position: relative;
}

.soutien-carousel-wrapper {
    width: 100%;
    position: relative;
}

.soutien-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0;
    width: 100%;
    border-radius: 0 !important;
}

.soutien-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0 !important;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.soutien-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

/* Page Comité de soutien */
.soutien-page .soutien-hero {
    background: #7F4FD9;
    color: #FFFFFF;
    padding: 0.75rem 0 0.5rem;
    text-align: center;
}

.soutien-hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.soutien-hero-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Page Actualités */
.actualites-page .actualites-hero {
    background: transparent;
    color: #FFFFFF;
    padding: 0.75rem 0 0.5rem;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actualites-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/COURTILLIERES1-1-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.actualites-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.actualites-page .actualites-hero .site-container {
    position: relative;
    z-index: 2;
}

.actualites-hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    transform: translateY(-20px);
}

.actualites-hero-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.actualites-list-section {
    padding: 3rem 0 5rem;
    background: #F5F1E8;
}

.actualites-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.actualites-pagination {
    grid-column: 1 / -1;
    margin-top: 3rem;
    text-align: center;
}

.actualites-pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.actualites-pagination li {
    display: inline-block;
}

.actualites-pagination a,
.actualites-pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #FFFFFF;
    color: #FF3131;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #FF3131;
    transition: all 0.3s ease;
}

.actualites-pagination a:hover {
    background: #7F4FD9;
    color: #FFFFFF;
}

.actualites-pagination .current {
    background: #FF3131;
    color: #FFFFFF;
}

.soutien-wall-section {
    background: #F5F1E8;
    padding: 3rem 0 4rem;
}

.soutien-wall-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.soutien-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.soutien-brick {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.soutien-brick-green,
.soutien-brick-pink,
.soutien-brick-blue,
.soutien-brick-white,
.soutien-brick-red,
.soutien-brick-purple {
    background: #FFFFFF;
    color: #2B2D42;
}

.soutien-name {
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Agrandir Narrow', sans-serif;
}

.soutien-prenom {
    margin-right: 0.25rem;
}

.soutien-qualite {
    font-size: 0.9rem;
    opacity: 0.9;
}

.soutien-wall-note {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: #6C757D;
}

@media (max-width: 768px) {
    .soutien-page .soutien-hero {
        padding: 0.5rem 0 0.25rem !important;
        text-align: center !important;
    }

    .soutien-hero-image-wrapper {
        margin-bottom: 0;
    }

    .soutien-hero-image {
        max-height: 150px;
    }

    .actualites-page .actualites-hero {
        padding: 0.5rem 0 0.25rem !important;
        text-align: center !important;
        min-height: 300px;
    }

    .actualites-hero-background {
        background-size: cover;
        background-position: center;
    }

    .actualites-hero-image-wrapper {
        margin-bottom: 0;
        transform: translateY(-20px);
    }

    .actualites-hero-image {
        max-height: 150px;
    }

    .actualites-list-section {
        padding: 2rem 0 3rem;
    }

    .actualites-list-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Section Faire un don */
.tabloid-section {
    padding: 2rem 0 2rem 0;
    background: #7F4FD9;
    position: relative;
}

.tabloid-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.tabloid-body {
    background: transparent;
    
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.tabloid-description {
    font-family: 'Playwrite US Trad', cursive;
    font-size: 1.1rem;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-tabloid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #7F4FD9;
    color: #FFFFFF;
    font-family: 'Agrandir Narrow', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(127, 79, 217, 0.3);
    flex-shrink: 0;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
}

.btn-tabloid:hover {
    background: #FF3131;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 49, 49, 0.4);
    color: #FFFFFF;
}

.btn-tabloid:active {
    transform: translateY(0);
}

.tabloid-icon {
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .tabloid-section {
        padding: 2rem 0 1rem 0;
    }
    
    .tabloid-content {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .tabloid-body {
        padding: 1.5rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .tabloid-description {
        font-size: 0.95rem;
        margin-bottom: 0;
        line-height: 1.6;
        text-align: center;
        color: #FFFFFF;
    }
    
    .btn-tabloid {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .tabloid-icon {
        font-size: 1rem;
    }
}

.don-section {
    padding: 5rem 0;
    background: #F5F1E8;
    margin-top: 0;
}

.don-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.don-content {
    padding-right: 2rem;
}

.don-title {
    font-size: 3rem;
    font-weight: 900;
    color: #FF3131;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.don-highlight {
    display: inline-block;
    background: #FF3131;
    color: var(--color-white);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    
}

.don-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.don-text p {
    margin-bottom: 1.25rem;
}

.don-cta {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.don-form-wrapper {
    background: transparent;
    padding: 1.5rem;
    border-radius: 12px;
}

.don-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
    font-size: 0.9rem;
}

.required {
    color: #FF3131;
    font-weight: 600;
}

.don-form .form-input {
    padding: 0.7rem 0.9rem;
    border: 2px solid #E0D9C8;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    background: var(--color-white);
    color: var(--color-text);
    transition: all 0.3s ease;
    outline: none;
}

.don-form .form-input:focus {
    border-color: #FF3131;
    box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.1);
}

.don-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.radio-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: var(--color-white);
    border: 2px solid #E0D9C8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + span,
.radio-option:has(input[type="radio"]:checked) {
    background: #FF3131;
    color: var(--color-white);
    border-color: #FF3131;
}

.radio-option:hover {
    border-color: #7F4FD9;
    background: rgba(127, 79, 217, 0.05);
}

.btn-don,
.btn.btn-don,
button.btn-don {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #FF3131;
    color: var(--color-white);
    border: 2px solid #FF3131;
    border-radius: 999px !important;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.2rem;
}

.btn-don:hover {
    background: #7F4FD9;
    border-color: #7F4FD9;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 42, 42, 0.3);
}

.actualites-footer {
    text-align: right;
    margin-top: 1rem;
    margin-bottom: 0;
    padding-bottom: 2rem;
    clear: both;
}

.btn-actualites,
.btn.btn-actualites,
a.btn-actualites {
    background: #FF3131;
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border-radius: 999px !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 2rem;
    text-align: right;
    float: right;
    font-size: 1rem;
    border: 2px solid #FF3131;
}

.btn-actualites:hover {
    background: #7F4FD9;
    border-color: #7F4FD9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 79, 217, 0.3);
}

/* Contenu principal */
.site-main {
    padding: 3rem 0;
    min-height: 60vh;
}

.home .site-main {
    padding: 0;
    min-height: auto;
}

.about-page.site-main {
    padding-top: 0;
}

.programme-page.site-main {
    padding-top: 0;
}

.thematique-page.site-main {
    padding-top: 0;
}

.soutien-page.site-main {
    padding-top: 0;
}

.je-vote-page.site-main {
    padding-top: 0;
}

.je-vote-resultats-page.site-main {
    padding-top: 0;
}

.actualites-page.site-main {
    padding-top: 0;
    margin-top: 0 !important;
}

.actualites-page .actualites-hero {
    margin-top: 0 !important;
}

/* Page Je Vote */
.je-vote-page .vote-hero,
.je-vote-resultats-page .vote-hero {
    background: transparent;
    color: #FFFFFF;
    padding: 0.75rem 0 0.5rem;
    text-align: center;
    margin-top: 0 !important;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/SHEDS-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Hero spécifique pour la page de résultats */
.je-vote-resultats-page .vote-hero-background {
    background-image: url('https://osezpantin.fr/wp-content/uploads/2026/01/bat-2-scaled.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.vote-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.vote-hero .site-container {
    position: relative;
    z-index: 2;
}

.vote-hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.vote-hero-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.vote-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    font-family: 'Agrandir Narrow', sans-serif;
    margin-bottom: 0.75rem;
}

.vote-intro {
    max-width: 800px;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    text-align: left;
}

.vote-section {
    padding: 4rem 0 5rem;
    background: #F5F1E8;
    min-height: 60vh;
}

@media (max-width: 768px) {
    .je-vote-page {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .je-vote-page .site-container {
        padding: 0 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .je-vote-page .vote-hero {
        padding: 0.5rem 0 0.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .vote-hero-image-wrapper {
        margin-bottom: 0.5rem;
    }

    .vote-hero-image {
        max-height: 150px;
    }

    .je-vote-page .vote-hero .site-container {
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vote-title {
        font-size: 1.75rem !important;
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .vote-intro {
        font-size: 0.95rem !important;
        line-height: 1.5;
        padding: 0 !important;
        opacity: 0.9;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .vote-section {
        padding: 1.5rem 0 2.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vote-section .site-container {
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vote-intro-screen {
        padding: 1rem !important;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .vote-intro-content {
        padding: 2rem 1rem !important;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .vote-intro-title {
        font-size: 1.35rem !important;
        margin-bottom: 0.875rem;
        line-height: 1.25;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .vote-intro-text {
        font-size: 0.9rem !important;
        line-height: 1.5;
        margin-bottom: 1.75rem;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .vote-start-btn {
        padding: 1rem 1rem !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.5px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 0 6px 20px rgba(255, 49, 49, 0.3) !important;
        box-sizing: border-box !important;
        display: block !important;
        text-align: center;
        margin: 0 !important;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        background: #FF3131 !important;
    }

    .vote-start-btn span {
        display: inline-block;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .vote-app-wrapper {
        width: 100%;
        padding: 0;
    }

    .vote-app {
        max-width: 100%;
        padding: 0 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .vote-stack {
        height: 300px;
        min-height: 300px;
        margin-bottom: 1.25rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .vote-card {
        border-radius: 18px;
        width: 100%;
        max-width: 100%;
        left: 0 !important;
        right: 0 !important;
        flex-direction: column;
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    }
    
    .vote-card.is-active {
        background: #FFFFFF !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    }
    
    .vote-card.vote-card--show-like {
        background: #FFFFFF !important;
        border-color: rgba(127, 216, 86, 0.4) !important;
        box-shadow: 
            0 6px 16px rgba(127, 216, 86, 0.2),
            0 12px 32px rgba(127, 216, 86, 0.15) !important;
    }
    
    .vote-card.vote-card--show-dislike {
        background: #FFFFFF !important;
        border-color: rgba(255, 49, 49, 0.4) !important;
        box-shadow: 
            0 6px 16px rgba(255, 49, 49, 0.2),
            0 12px 32px rgba(255, 49, 49, 0.15) !important;
    }

    .vote-card-body {
        padding: 1.5rem 1.25rem;
        gap: 0.75rem;
        overflow: hidden;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    .vote-card-title {
        font-size: 2rem; /* Taille par défaut, sera ajustée par JS si nécessaire */
        line-height: 1.4;
        text-align: center;
        word-break: normal;
        overflow-wrap: break-word;
        max-width: 100%;
        transition: font-size 0.2s ease;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        pointer-events: none;
        position: relative;
        z-index: 1;
    }

    .vote-card-description {
        font-size: 0.85rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .vote-card-description p {
        margin: 0 0 0.5rem;
        font-size: 0.85rem;
    }


    .vote-card-tags {
        gap: 0.5rem;
    }

    .vote-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.65rem;
    }

    .vote-actions {
        display: none !important;
    }

    .vote-swipe-indicator {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin-top: 1.5rem;
        padding: 1rem;
        color: #2B2D42;
        font-size: 0.9rem;
    }

    .vote-swipe-indicator-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .vote-swipe-indicator-arrow {
        font-size: 3.5rem;
        font-weight: 900;
        line-height: 1;
    }

    .vote-swipe-indicator-left {
        color: #FF3131;
    }

    .vote-swipe-indicator-right {
        color: #7FD856;
    }

    .vote-swipe-indicator-label {
        font-size: 1.1rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .vote-empty {
        margin-top: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .vote-success-check {
        width: 90px;
        height: 90px;
        margin-bottom: 1.25rem;
    }

    .vote-check-icon {
        font-size: 3rem;
    }

    .vote-success-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .vote-success-message {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .vote-emoji-like,
    .vote-emoji-dislike {
        font-size: 3rem;
    }

    .vote-card-image img {
        object-position: center;
    }

    .vote-card-emoji {
        font-size: 2.5rem;
    }

    .vote-emoji-like,
    .vote-emoji-dislike {
        font-size: 2.5rem !important;
    }

    .vote-intro-screen {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .vote-intro-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .vote-onboarding-demo {
        width: 100%;
        max-width: 100%;
    }

    .vote-card-demo {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Sélection de quartier mobile */
    .vote-quartier-screen {
        padding: 1.5rem 1rem !important;
    }

    .vote-quartier-content {
        padding: 2rem 1.5rem !important;
    }

    .vote-quartier-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
    }

    .vote-quartier-text {
        font-size: 1rem !important;
        margin-bottom: 2rem;
    }

    .vote-quartier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .vote-quartier-card {
        padding: 1.5rem 1rem;
    }

    .vote-quartier-name {
        font-size: 1.1rem;
    }


    .vote-loading {
        padding: 2rem 1rem;
    }

    .vote-loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .vote-loading p {
        font-size: 1rem;
    }
}

/* Assurer qu'il n'y a pas de débordement horizontal */
@media (max-width: 768px) {
    .je-vote-page * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vote-stack {
        overflow: hidden !important;
    }

    .vote-intro-screen,
    .vote-intro-content,
    .vote-start-btn {
        overflow: visible !important;
    }
}

/* Écran de sélection de quartier */
.vote-quartier-screen {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.vote-quartier-content {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.vote-quartier-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2B2D42;
    margin-bottom: 1.5rem;
    font-family: 'Agrandir Narrow', sans-serif;
}

.vote-quartier-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2B2D42;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vote-quartier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.vote-quartier-card {
    background: #FFFFFF;
    border: 3px solid #E0E0E0;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vote-quartier-card:hover {
    border-color: #7F4FD9;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(127, 79, 217, 0.2);
}

.vote-quartier-card.selected {
    border-color: #7F4FD9;
    background: #F5F1E8;
    box-shadow: 0 8px 24px rgba(127, 79, 217, 0.3);
}

.vote-quartier-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2B2D42;
    font-family: 'Agrandir Narrow', sans-serif;
}

/* Écran de chargement */
.vote-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.vote-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #E0E0E0;
    border-top-color: #7F4FD9;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.vote-loading p {
    color: #2B2D42;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Message aucune proposition */
.vote-no-propositions {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

/* Écran d'introduction */
.vote-intro-screen {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.vote-intro-content {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-intro-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2B2D42;
    margin-bottom: 1.5rem;
    font-family: 'Agrandir Narrow', sans-serif;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.vote-intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2B2D42;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.vote-start-btn {
    background: #FF3131;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 1.4rem 4rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Agrandir Narrow', sans-serif;
    box-shadow: 0 8px 24px rgba(255, 49, 49, 0.35);
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.vote-start-btn:hover {
    background: #7F4FD9;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(127, 79, 217, 0.45);
}

.vote-start-btn:active {
    transform: translateY(0);
}

.vote-app-wrapper {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vote-app {
    max-width: 400px;
    margin: 0 auto;
}

.vote-stack {
    position: relative;
    height: 320px;
    min-height: 320px;
}

.vote-progress {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.vote-progress-info {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.vote-progress-counter {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2B2D42;
    font-family: 'Agrandir Narrow', sans-serif;
    letter-spacing: 0.5px;
}

.vote-progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background-color: #E5E5E5;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.vote-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF3131 0%, #7F4FD9 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 0%;
}

@media (max-width: 768px) {
    .vote-progress {
        margin-bottom: 1.25rem;
        padding: 0;
    }
    
    .vote-progress-counter {
        font-size: 1rem;
    }
    
    .vote-progress-bar-wrapper {
        height: 6px;
    }
}

.vote-card {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    max-width: 380px;
    margin: 0 auto;
    transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.3s ease;
    touch-action: pan-x pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.vote-card:active {
    cursor: grabbing;
}

.vote-card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vote-card.is-exiting-like {
    transform: translateX(140%) rotate(8deg) scale(0.9);
    opacity: 0;
    z-index: 100;
}

.vote-card.is-exiting-dislike {
    transform: translateX(-140%) rotate(-8deg) scale(0.9);
    opacity: 0;
    z-index: 100;
}

/* Teinte verte / rouge lors du vote */
.vote-card.vote-card--show-like {
    background: linear-gradient(135deg, rgba(127, 216, 86, 0.12), #FFFFFF);
    border-color: rgba(127, 216, 86, 0.3);
    box-shadow: 0 8px 24px rgba(127, 216, 86, 0.2);
}

.vote-card.vote-card--show-dislike {
    background: linear-gradient(135deg, rgba(255, 49, 49, 0.12), #FFFFFF);
    border-color: rgba(255, 49, 49, 0.3);
    box-shadow: 0 8px 24px rgba(255, 49, 49, 0.2);
}

/* Emoji géants pour le swipe */
.vote-card-emoji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.vote-emoji-like,
.vote-emoji-dislike {
    position: absolute;
    font-size: 3rem;
    font-weight: 900;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 10;
}

.vote-emoji-like {
    color: #0d5f1a;
    text-shadow: 0 2px 4px rgba(29, 122, 40, 0.5);
    background: linear-gradient(180deg, rgba(127, 216, 86, 0.8) 0%, rgba(127, 216, 86, 0.9) 100%);
    padding: 0.2em 0.4em;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(127, 216, 86, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.vote-emoji-dislike {
    color: #8b0000;
    text-shadow: 0 2px 4px rgba(182, 16, 16, 0.5);
    background: linear-gradient(180deg, rgba(255, 49, 49, 0.8) 0%, rgba(255, 49, 49, 0.9) 100%);
    padding: 0.2em 0.4em;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(255, 49, 49, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.vote-card.vote-card--show-like .vote-emoji-like {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.vote-card.vote-card--show-dislike .vote-emoji-dislike {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.vote-card-body {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex: 1;
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.vote-card-title {
    font-size: 2.5rem; /* Taille par défaut, sera ajustée par JS si nécessaire */
    font-weight: 800;
    margin: 0;
    font-family: var(--font-heading);
    line-height: 1.4;
    color: #1D3557;
    letter-spacing: -0.02em;
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    transition: font-size 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.vote-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.vote-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 12px;
    padding: 0.35rem 0.85rem;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.vote-tag-quartier {
    background: linear-gradient(135deg, #1FB4D9, #1A9BC4);
    color: #FFFFFF;
}

.vote-tag-categorie {
    background: linear-gradient(135deg, #7F4FD9, #6B3FC7);
    color: #FFFFFF;
}

.vote-card-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4A5568;
    margin-top: 0.25rem;
}

.vote-card-description p {
    margin: 0 0 0.75rem 0;
}

.vote-card-description p:last-child {
    margin-bottom: 0;
}

.vote-actions {
    margin-top: 1.75rem;
    display: flex;
    gap: 1rem;
}

.vote-swipe-indicator {
    display: none;
}

.vote-btn {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Agrandir Narrow', sans-serif;
}

.vote-btn-no {
    background: #FF3131;
    color: #fff;
    font-weight:bold;
   
}

.vote-btn-yes {
    background: #6DC74C;
    color: #FFFFFF;
    font-weight:bold;
   
}

.vote-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vote-btn-text {
    display: block;
    font-weight:bold;
}

.vote-btn-yes .vote-btn-text {
    background-color: #7FD856 !important;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 0 0 3px #7FD856, 0 0 0 5px rgba(127, 216, 86, 0.5);
}

.vote-btn-yes .vote-btn-text strong {
    background-color: #7FD856 !important;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    display: inline-block;
}

.vote-btn-no .vote-btn-text {
    background-color: #FF3131 !important;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 0 0 3px #FF3131, 0 0 0 5px rgba(255, 49, 49, 0.5);
}

.vote-btn-no .vote-btn-text strong {
    background-color: #FF3131 !important;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    display: inline-block;
}

.vote-btn-arrow {
    display: none;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.vote-btn-arrow-left {
    color: #1FB4D9;
}

.vote-btn-arrow-right {
    color: #FFFFFF;
}

/* Sur mobile : afficher seulement les flèches */
@media (max-width: 768px) {
    .vote-btn-text {
        display: none;
    }

    .vote-btn-arrow {
        display: block;
    }

    .vote-btn {
        min-width: 80px;
        padding: 1rem;
    }

    .vote-btn-no {
        background: #FFFFFF;
    }

    .vote-btn-yes {
        background: #1FB4D9;
    }
}

.vote-empty {
    margin-top: 3rem;
    text-align: center;
    padding: 3rem 2rem;
}

.vote-success-content {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: voteSuccessAppear 0.8s ease forwards;
}

@keyframes voteSuccessAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.vote-success-check {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: #1FB4D9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: voteCheckScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
    box-shadow: 0 8px 24px rgba(31, 180, 217, 0.3);
}

@keyframes voteCheckScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vote-check-icon {
    font-size: 4.5rem;
    color: #FFFFFF;
    font-weight: 900;
    line-height: 1;
    font-family: 'Agrandir Narrow', sans-serif;
    animation: voteCheckDraw 0.4s ease 0.5s both;
}

@keyframes voteCheckDraw {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.vote-success-title {
    font-size: 2rem;
    font-weight: 800;
    color: #2B2D42;
    margin-bottom: 1rem;
    font-family: 'Agrandir Narrow', sans-serif;
    animation: voteTextFadeIn 0.6s ease 0.6s both;
}

.vote-success-message {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2B2D42;
    margin: 0;
    animation: voteTextFadeIn 0.6s ease 0.8s both;
}

@keyframes voteTextFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Écran d'erreur pour les résultats (accès refusé) */
.vote-error-screen {
    max-width: 600px;
    margin: 4rem auto 0;
    text-align: center;
}

.vote-error-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: #FF3131;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 49, 49, 0.35);
    animation: voteErrorScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

.vote-error-icon {
    font-size: 4.5rem;
    color: #FFFFFF;
    font-weight: 900;
    line-height: 1;
    font-family: 'Agrandir Narrow', sans-serif;
}

@keyframes voteErrorScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vote-error-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #2B2D42;
    margin-bottom: 1rem;
    font-family: 'Agrandir Narrow', sans-serif;
}

.vote-error-message {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2B2D42;
    max-width: 520px;
    margin: 0 auto;
}

.vote-error-message a {
    color: #1FB4D9;
    font-weight: 700;
    text-decoration: none;
}

.vote-error-message a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .vote-error-screen {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .vote-error-icon-wrapper {
        width: 90px;
        height: 90px;
        margin-bottom: 1.25rem;
    }

    .vote-error-icon {
        font-size: 3rem;
    }

    .vote-error-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .vote-error-message {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .vote-onboarding-dialog {
        max-width: 92%;
        padding: 1.5rem 1.25rem;
        margin: 0.75rem;
        border-radius: 18px;
    }

    .vote-onboarding-title {
        font-size: 1.35rem;
        margin-bottom: 0.875rem;
    }

    .vote-onboarding-list {
        font-size: 0.875rem;
        padding-left: 1.25rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .vote-onboarding-list li {
        margin-bottom: 0.5rem;
    }

    .vote-card-demo {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 140px;
        margin: 1rem 0;
    }

    .vote-onboarding-footnote {
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    .vote-onboarding-cta {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        margin-top: 1rem;
    }

    .vote-results-modal .vote-results-dialog {
        max-width: 92%;
        padding: 1.5rem 1.25rem;
        margin: 0.75rem;
        border-radius: 18px;
    }

    .vote-results-dialog h2 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .vote-results-dialog p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .vote-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vote-results-submit {
        width: 100%;
        padding: 0.9rem;
        font-size: 0.9rem;
    }
}

/* Vote indicators sur les cartes */
/* Onboarding Je Vote */
.vote-onboarding {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #000;
}

.vote-onboarding.is-visible {
    display: flex;
}

.vote-onboarding-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.vote-onboarding-dialog {
    position: relative;
    max-width: 520px;
    width: 90%;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2rem 2.25rem 2rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    z-index: 1;
}

.vote-onboarding-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.vote-onboarding h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    font-family: 'Agrandir Narrow', sans-serif;
}

.vote-onboarding p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.vote-onboarding-list {
    margin: 0.75rem 0 1rem 1.2rem;
    padding: 0;
    font-size: 0.95rem;
}

.vote-onboarding-list li {
    margin-bottom: 0.4rem;
}

.vote-onboarding-demo {
    margin: 1.25rem 0 1rem;
    display: flex;
    justify-content: center;
}

.vote-card-demo {
    position: relative;
    width: 260px;
    height: 180px;
    border-radius: 18px;
    background: #F5F1E8;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    overflow: hidden;
    transform-origin: center;
    animation: voteDemoSwipe 2.4s infinite ease-in-out;
}

.vote-card-demo .vote-card-body {
    padding: 1rem 1.25rem;
}

.vote-onboarding-footnote {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.vote-onboarding-prio {
    background-color: #7FD856;
    padding: 0.15em 0.3em;
    border-radius: 4px;
    display: inline-block;
    font-weight: 800;
    color: #1D3557;
}

.vote-onboarding-pas-prio {
    background-color: #FF3131;
    padding: 0.15em 0.3em;
    border-radius: 4px;
    display: inline-block;
    font-weight: 800;
    color: #FFFFFF;
}

.vote-onboarding-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: #7F4FD9;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.8rem;
    cursor: pointer;
}


/* Modal de fin de vote (coordonnées) */
.vote-results-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.vote-results-modal.is-visible {
    display: flex;
}

.vote-results-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.vote-results-dialog {
    position: relative;
    max-width: 520px;
    width: 90%;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2rem 2.25rem 2rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    z-index: 1;
}

.vote-results-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.vote-results-dialog h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    font-family: 'Agrandir Narrow', sans-serif;
}

.vote-results-dialog p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.vote-results-form {
    margin-top: 1.25rem;
}

.vote-results-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.vote-results-form .form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.vote-results-form .form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.vote-results-form .form-input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.vote-results-form .form-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

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

.vote-results-submit {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: #FF3131;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.8rem;
    cursor: pointer;
}

@keyframes voteDemoSwipe {
    0% {
        transform: translateX(0) rotate(0deg);
        background: #F5F1E8;
    }
    20% {
        transform: translateX(40px) rotate(4deg);
        background: rgba(127, 216, 86, 0.3);
    }
    40% {
        transform: translateX(0) rotate(0deg);
        background: #F5F1E8;
    }
    60% {
        transform: translateX(-40px) rotate(-4deg);
        background: rgba(255, 49, 49, 0.3);
    }
    80% {
        transform: translateX(0) rotate(0deg);
        background: #F5F1E8;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        background: #F5F1E8;
    }
}

@media (max-width: 768px) {
    .vote-title {
        font-size: 2rem;
    }

    .vote-stack {
        height: 380px;
    }

    .vote-card-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .vote-btn {
        font-size: 0.8rem;
        padding-inline: 0.8rem;
    }

    .vote-onboarding-dialog {
        padding: 1.5rem 1.25rem 1.75rem;
    }
}

/* Page résultats Je Vote */
.je-vote-resultats-page .vote-results-section {
    background: #FFFFFF;
}

.vote-results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.vote-results-main {
    min-width: 0;
}

.vote-results-comparison {
    position: sticky;
    top: 2rem;
    background: #F8F8F8;
    border-radius: 16px;
    padding: 2rem;
}

.vote-comparison-selector {
    margin-bottom: 2rem;
}

.vote-comparison-selector label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #1D3557;
}

.vote-quartier-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #E5DED1;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: #FFFFFF;
    color: #1D3557;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vote-quartier-select:hover {
    border-color: #7FD856;
}

.vote-quartier-select:focus {
    outline: none;
    border-color: #7FD856;
    box-shadow: 0 0 0 3px rgba(127, 216, 86, 0.1);
}

.vote-comparison-results {
    min-height: 200px;
}

.vote-comparison-placeholder {
    color: #6C757D;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.vote-quartier-results {
    margin-bottom: 2rem;
}

.vote-quartier-results-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #1D3557;
    font-family: var(--font-heading);
}

.vote-quartier-results-subtitle {
    font-size: 1rem;
    color: #6C757D;
    margin: 0 0 1.5rem;
}

@media (max-width: 968px) {
    .vote-results-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vote-results-comparison {
        position: static;
    }
}

.vote-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.vote-result-card {
    background: #F5F1E8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.vote-result-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    background: linear-gradient(135deg, #7ed957 0%, #6BC84A 100%);
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Anton', sans-serif;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(126, 217, 87, 0.3);
    flex-shrink: 0;
}

.vote-result-title {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 800;
    font-family: var(--font-heading);
    flex: 1;
}

.vote-result-tags {
    margin-bottom: 0.75rem;
}

.vote-result-stats {
    margin-top: 0.2rem;
}

.vote-result-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #E5DED1;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.vote-result-bar-fill {
    height: 100%;
    background: #7FD856;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.vote-result-text {
    font-size: 0.9rem;
    color: #2B2D42;
}
/* Articles */
.post {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--color-light);
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.post-title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-content {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3 {
    color: var(--color-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.site-footer {
    background: transparent;
    color: var(--color-white);
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    line-height: 0;
}

.site-footer .site-container {
    padding: 0;
    max-width: 100%;
    width: 100%;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    overflow: hidden;
}

.footer-image {
    flex: 1;
    width: 100%;
    height: 500px;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    position: relative;
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-info-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    text-align: center;
}

.footer-info-card p {
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.footer-credit {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--color-white);
    opacity: 0.8;
    font-style: italic;
}

.footer-info-card .footer-legal {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer-info-card .footer-legal span {
    margin: 0 0.35rem;
}

.footer-info-card .footer-legal a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-info-card .footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

#footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#footer-menu a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .site-footer {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    
    .site-footer .site-container {
        padding: 0 !important;
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .footer-content {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    
    .footer-image {
        height: 300px;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    
    .footer-image img {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw;
        box-sizing: border-box;
    }
    
    .footer-info-card {
        padding: 1rem 0.75rem !important;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .footer-info-card p {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .footer-info-card .footer-legal {
        font-size: 0.75rem !important;
        margin-top: 0.5rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .footer-info-card #footer-menu {
        gap: 1rem;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    .footer-info-card .footer-legal span {
        margin: 0 0.25rem;
    }
}

.footer-image-left {
    order: 1;
}

.footer-info {
    flex: 1;
    text-align: center;
    order: 2;
}

.footer-image-right {
    order: 3;
}

.footer-legal {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer-legal span {
    margin: 0 0.35rem;
}

.footer-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Page Mentions légales */
.mentions-legales-page {
    padding: 3rem 0;
}

.mentions-legales-section {
    padding: 2rem 0;
    background: var(--color-white);
}

.mentions-legales-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mentions-legales-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FF3131;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Tana St Canard', var(--font-heading);
}

.mentions-legales-text {
    line-height: 1.8;
    color: var(--color-text);
}

.mentions-legales-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF3131;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Agrandir Narrow', sans-serif;
}

.mentions-legales-text h2:first-of-type {
    margin-top: 0;
}

.mentions-legales-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.mentions-legales-date {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E0E0E0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .mentions-legales-page {
        padding: 2rem 0;
    }
    
    .mentions-legales-content {
        padding: 0 1rem;
    }
    
    .mentions-legales-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .mentions-legales-text h2 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
    }
    
    .mentions-legales-text p {
        font-size: 0.95rem;
    }
}

/* Logos des partis politiques dans le footer */
.footer-partis {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0 0 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.footer-parti-logo {
    max-height: 60px;
    max-width: 100px;
    width: auto;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.footer-parti-logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-image {
        max-width: 150px;
    }
    
    .footer-info-card {
        padding: 1rem !important;
    }
    
    .footer-partis {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem 0.5rem 0 0.5rem;
        margin-top: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-parti-logo {
        max-height: 50px;
        max-width: 80px;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }
    
    .footer-image-left,
    .footer-image-right {
        order: 0;
    }
    
    .footer-info {
        order: 1;
    }
}

#footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

#footer-menu a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#footer-menu a:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: 2px solid var(--color-primary);
}

.btn:hover {
    background: #7F4FD9;
    border-color: #7F4FD9;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 42, 42, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 968px) {
    .site-container {
        padding: 0 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-container {
        padding: 0 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 0;
        min-height: auto;
    }
    
    .menu-toggle {
        position: static;
        order: 1;
    }
    
    .main-navigation {
        position: static;
        transform: none;
        width: 100%;
        order: 2;
        margin-top: 0.2rem;
        left: auto;
    }
    
    .main-navigation a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        white-space: normal;
        font-family: 'Anton', sans-serif;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        background: #FF3131;
        border-radius: 0;
        padding: 0;
        margin-top: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-top: 3px solid #FFFFFF;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        font-size: 1.1rem;
        letter-spacing: 2px;
        font-family: 'Anton', sans-serif;
    }
    
    .main-navigation li:last-child a {
        border-bottom: none;
    }
    
    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        background: rgba(255, 255, 255, 0.1);
        color: #FFFFFF;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        background: transparent;
        border: 2px solid #FFFFFF;
        color: #FFFFFF;
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        border-radius: 0;
        cursor: pointer;
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
}

@media (max-width: 968px) {
    .hero-container {
        padding: 0 1.5rem;
        position: relative;
    }
    
    .hero-left {
        max-width: 100%;
        width: 100%;
    }
    
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        max-height: none;
        padding: 0;
        overflow: visible;
        position: relative;
    }
    
    .hero-tabloid-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    
    .hero-tabloid-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero-container {
        max-height: none;
        height: auto;
        gap: 1rem;
        padding: 0 1.25rem;
        flex-direction: column;
        position: relative;
        min-height: 100vh;
        align-items: flex-start;
    }
    
    .hero-left {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .hero-container {
        align-items: flex-start;
        /* Descendre le contenu de 20px pour éviter qu'il soit coupé par l'alert bar */
        padding-top: 90px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-slogan {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-top: -1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-logo {
        order: 1;
        margin-top: -1rem !important;
        margin-bottom: -1.5rem !important;
        transform: translateY(-5px);
    }
    
    .hero-slogan {
        order: 2;
        margin-top: calc(-1rem + 20px) !important;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .hero-logo-wrapper {
        margin-bottom: -10px !important;
        margin-top: 10px !important;
        /* Cacher au chargement, apparaîtra au scroll */
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .hero-logo-wrapper.scroll-visible {
        opacity: 1;
        transform: translateY(20px);
    }
    
    .hero-card {
        /* Remettre le formulaire sous le logo comme avant */
        position: relative;
        margin-top: 1rem !important;
        padding: 2rem;
        padding-top: 4.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        /* Cacher au chargement, apparaîtra au scroll */
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .hero-card.scroll-visible {
        opacity: 1;
        transform: translateY(20px);
    }
    
    .hero-form {
        order: 3;
        margin-top: 10px !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .hero-form .row {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-form .row:last-of-type {
        margin-bottom: 0;
    }
    
    .hero-form .col-md-6 {
        flex: 1;
        min-width: 0;
    }
    
    .hero-form .form-control {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .hero-form .btn-join-cta,
    .hero-form .btn.btn-join-cta {
        width: 100%;
        padding: 1rem 2rem;
        background: #FF3131;
        color: var(--color-white);
        border: 2px solid #FF3131;
        border-radius: 999px !important;
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 1.5rem auto 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .site-main {
        padding: 2rem 0;
    }
    
    .actualites-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-top: 50px;
        margin-bottom: -3rem;
        letter-spacing: 0.2px;
    }
    
    .section-title-wrapper {
        margin-bottom: 0;
        min-height: auto;
    }
    
    .actualites-grid {
        margin-top: 0;
        padding-top: 0;
    }
    
    .actualite-card {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .card-image {
        height: 320px;
    }
    
    .card-content {
        padding: 2.5rem;
    }
    
    .card-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .card-title a {
        font-size: 1.6rem;
    }
    
    .card-date {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-excerpt {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.8;
    }
    
    .card-link {
        font-size: 1.05rem;
    }
    
    
    .inscription-content {
        grid-template-columns: 1fr;
        gap: 0.50rem;
    }
    
    .inscription-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .inscription-btn {
        font-size: 1rem;
        padding: 0.9rem 2rem;
        min-width: 180px;
    }
    
    .inscription-item {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    
    .inscription-title-image {
        max-height: none !important;
        height: auto !important;
        width: 120% !important;
        max-width: 120% !important;
        margin-left: -10%;
        margin-right: -10%;
        object-fit: contain;
    }
    
    .actualites-section {
        padding: 3rem 0 1rem 0;
    }

    .actualites-footer {
      
        text-align: center !important;
    }
    
    .btn-actualites {
        float: none !important;
        display: block;
        text-align: center !important;
        width: 100%;
      
    }
    
    .don-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .don-section {
        padding-top: 4rem !important;
    }
    
    .don-content {
        padding-right: 0;
    }
    
    .don-title {
        font-size: 2.5rem;
    }
    
    .don-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .soutien-title {
        font-size: 1.8rem;
        padding: 0;
        letter-spacing: 2px;
        margin-bottom: 2rem;
    }
    
    .soutien-carousel {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post {
    animation: fadeIn 0.5s ease-out;
}

/* Liens */
a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: #7F4FD9;
}

/* Catégories et tags */
.cat-links,
.tags-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-light);
}

.cat-links a,
.tags-links a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--color-light);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.cat-links a:hover,
.tags-links a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Page Article individuel (Single Post) */
.single-post-page.site-main {
    padding-top: 0;
    margin-top: 0 !important;
}

.single-post-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0;
}

.single-post-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.single-post-hero-background--no-image {
    background: linear-gradient(135deg, #FF3131 0%, #E63946 100%);
}

.single-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.single-post-hero .site-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.single-post-hero-content {
    text-align: center;
    color: #FFFFFF;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.single-post-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.single-post-separator {
    opacity: 0.7;
}

.single-post-category-wrapper {
    background: var(--color-white);
    padding: 2rem 0;
    text-align: center;
}

.single-post-category-badge {
    display: inline-block;
    background: #FF3131;
    color: #FFFFFF;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-post-article {
    background: var(--color-white);
    padding: 4rem 0;
}

.single-post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text);
    font-family: 'Agrandir Narrow', sans-serif;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content strong,
.single-post-content b,
.single-post-content p strong,
.single-post-content p b,
.single-post-content div strong,
.single-post-content div b {
    font-weight: 700 !important;
    font-weight: bold !important;
    /* Simulation du gras si la police ne le supporte pas */
    text-shadow: 0.5px 0 0 currentColor;
    letter-spacing: 0.01em;
}

.single-post-content em,
.single-post-content i,
.single-post-content p em,
.single-post-content p i {
    font-style: italic;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: var(--color-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.single-post-content h2 {
    font-size: 2rem;
}

.single-post-content h3 {
    font-size: 1.6rem;
}

.single-post-content h4 {
    font-size: 1.3rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: 0.75rem;
}

.single-post-content blockquote {
    border-left: 4px solid #FF3131;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.single-post-content a {
    color: #FF3131;
    text-decoration: underline;
}

.single-post-content a:hover {
    color: #E63946;
}

/* Alignement du texte */
.single-post-content .has-text-align-left,
.single-post-content p.has-text-align-left,
.single-post-content div.has-text-align-left {
    text-align: left;
}

.single-post-content .has-text-align-center,
.single-post-content p.has-text-align-center,
.single-post-content div.has-text-align-center {
    text-align: center;
}

.single-post-content .has-text-align-right,
.single-post-content p.has-text-align-right,
.single-post-content div.has-text-align-right {
    text-align: right;
}

.single-post-content .has-text-align-justify,
.single-post-content p.has-text-align-justify,
.single-post-content div.has-text-align-justify {
    text-align: justify;
    text-justify: inter-word;
}

/* Support pour l'éditeur classique (TinyMCE) */
.single-post-content p[style*="text-align: justify"],
.single-post-content div[style*="text-align: justify"] {
    text-align: justify !important;
    text-justify: inter-word;
}

/* Navigation entre articles */
.post-navigation {
    background: #F5F1E8;
    padding: 3rem 0;
    margin-top: 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
}

.post-navigation a:hover .nav-title {
    color: #FF3131;
}

@media (max-width: 768px) {
    .single-post-hero {
        min-height: 400px;
    }

    .single-post-hero-content {
        padding: 3rem 1.5rem;
    }

    .single-post-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .single-post-meta {
        font-size: 0.95rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .single-post-separator {
        display: none;
    }

    .single-post-category-wrapper {
        padding: 1.5rem 0;
    }

    .single-post-article {
        padding: 2.5rem 0;
    }

    .single-post-content-wrapper {
        padding: 0 1.5rem;
    }

    .single-post-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .single-post-content h2 {
        font-size: 1.6rem;
    }

    .single-post-content h3 {
        font-size: 1.3rem;
    }

    .post-navigation .nav-links {
        flex-direction: column;
        padding: 0 1.5rem;
    }
}


/* ========================================
   PAGE "LA LISTE"
   ======================================== */

.liste-banner {
    background: #E63946; /* Rouge Osez Pantin */
    padding: 4rem 0;
    margin-bottom: 2.5rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.liste-banner-inner {
    position: relative;
    width: 100%;
    text-align: center;
}

.liste-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.liste-arrow {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

.liste-title-hero {
    font-family: 'Tan St Canard', 'Tana St Canard', var(--font-heading);
    font-size: 8rem;
    line-height: 1;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    font-weight: normal;
    transform: rotate(-3deg);
    text-align: center;
}

.liste-arrow-hero {
    width: 250px;
    height: auto;
    margin-left: -5px; /* Coller la flèche au texte */
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.liste-title {
    font-family: 'Barlow', sans-serif;
    font-size: 4rem;
    line-height: 1;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    font-weight: 700;
}

.liste-intro {
    font-family: 'Barlow', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #FFFFFF;
}

.liste-intro-content {
    max-width: 900px;
}

.liste-intro-content p {
    margin-bottom: 1.2rem;
}

.liste-intro-content p:last-child {
    margin-bottom: 0;
}

.liste-intro-content strong {
    font-weight: 700;
}

.liste-page-content {
    padding: 2rem 0 4rem;
}

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

.liste-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
}

.candidat-card {
    background: #FFFFFF !important;
    border: 1px dashed #E0E0E0; /* Bordure par défaut en pointillés grise */
    border-radius: 0; /* Pas d'arrondi */
    padding: 1rem;
    display: flex;
    flex-direction: row; /* Tout sur une ligne sur desktop */
    align-items: flex-start;
    height: 100%; /* S'étire pour suivre la plus grande carte de la colonne */
    min-height: 200px; /* Hauteur minimale plus raisonnable pour harmoniser les cartes */
    gap: 0.2rem;
    position: relative;
    z-index: 1;
    box-shadow: none; /* Pas d'ombre */
}

/* Couleurs des bordures selon l'affiliation */
.candidat-ps { border-color: #EC70A8; } /* Rose PS */
.candidat-pcf { border-color: #E4012D; } /* Rouge PCF */
.candidat-citoyen { border-color: #6FA524; } /* Vert citoyen engagé */
.candidat-apres { border-color: #7673B3; } /* Violet L'APRÈS */
.candidat-debout { border-color: #FF7A7A; } /* Rose/rouge */

.candidat-number {
    position: static; /* Position statique pour le flux normal */
    font-family: 'Barlow', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1D1D1B;
    background: transparent;
    width: auto; /* Largeur automatique */
    height: auto; /* Hauteur automatique */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* Pas d'arrondi */
    border: none; /* Pas de bordure */
    margin-right: -0.2rem; /* Espacement après le numéro */
}



.candidat-photo-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    min-width: 120px;
    max-width: 120px;
    min-height: 120px;
    max-height: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Plus de rond coloré autour de l'image */
    overflow: hidden;
    box-sizing: border-box;
}

/* Fond coloré selon l'affiliation */
.candidat-photo-wrapper.candidat-ps { background: #EC70A8; }
.candidat-photo-wrapper.candidat-pcf { background: #E4012D; }
.candidat-photo-wrapper.candidat-citoyen { background: #6FA524; } /* Vert citoyen engagé */
.candidat-photo-wrapper.candidat-apres { background: #7673B3; }
.candidat-photo-wrapper.candidat-debout { background: #FF7A7A; }

.candidat-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    background: #FFFFFF;
}

.candidat-photo-placeholder {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: none;
    /* Le background est hérité du wrapper parent via les classes d'affiliation */
    background: inherit;
    flex-shrink: 0;
}

/* Le placeholder hérite de la couleur via les classes d'affiliation déjà définies */


.candidat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem; /* Espacement réduit */
    margin-left: 0.5rem; /* Décaler le texte vers la droite */
    min-width: 0; /* Permettre le rétrécissement sur mobile */
}

.candidat-name {
    font-family: 'Barlow', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #1D1D1B;
    line-height: 1.2;
}

.candidat-meta {
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    display: flex;
    gap: 0.5rem; /* Espacement entre les éléments */
    align-items: center;
    flex-wrap: wrap;
}

.candidat-meta .candidat-age,
.candidat-meta .candidat-metier,
.candidat-meta .candidat-affiliation {
    font-weight: 700;
}

.candidat-separator {
    color: #999;
    margin: 0 0.1rem; /* Espacement autour du séparateur */
}

/* Couleurs des métadonnées et séparateurs selon l'affiliation */
.candidat-ps .candidat-age,
.candidat-ps .candidat-metier,
.candidat-ps .candidat-affiliation,
.candidat-ps .candidat-separator,
.candidat-ps .candidat-number {
    color: #EC70A8;
}

.candidat-pcf .candidat-age,
.candidat-pcf .candidat-metier,
.candidat-pcf .candidat-affiliation,
.candidat-pcf .candidat-separator,
.candidat-pcf .candidat-number {
    color: #E4012D;
}

.candidat-citoyen .candidat-age,
.candidat-citoyen .candidat-metier,
.candidat-citoyen .candidat-affiliation,
.candidat-citoyen .candidat-separator,
.candidat-citoyen .candidat-number {
    color: #6FA524; /* Vert citoyen engagé */
}

.candidat-apres .candidat-age,
.candidat-apres .candidat-metier,
.candidat-apres .candidat-affiliation,
.candidat-apres .candidat-separator,
.candidat-apres .candidat-number {
    color: #7673B3;
}

.candidat-debout .candidat-age,
.candidat-debout .candidat-metier,
.candidat-debout .candidat-affiliation,
.candidat-debout .candidat-separator,
.candidat-debout .candidat-number {
    color: #FF7A7A;
}

.candidat-bio {
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-top: 0.2rem;
    font-weight: 400; /* Pas en gras */
}

.candidat-bio p {
    margin-bottom: 0.4rem;
}

.candidat-bio p:last-child {
    margin-bottom: 0;
}

.liste-empty {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .liste-banner {
        padding: 3rem 0;
        min-height: 200px;
    }
    
    .liste-title-hero {
        font-size: 4.5rem;
        transform: rotate(-2deg);
    }
    
    .liste-arrow-hero {
        width: 250px;
        margin-left: -3px;
    }
    
    .liste-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .liste-arrow {
        width: 60px;
    }
    
    .liste-title {
        font-size: 2.5rem;
    }
    
    .liste-intro {
        font-size: 1rem;
    }
    
    .liste-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .candidat-card {
        flex-direction: row;
        flex-wrap: wrap; /* Permettre le retour à la ligne */
        align-items: center; /* Centrer verticalement */
        justify-content: center; /* Centrer horizontalement */
        height: auto; /* Pas de hauteur fixe sur mobile */
        min-height: 0; /* Ne pas hériter de la hauteur minimum desktop */
        text-align: center; /* Centrer le texte */
        padding: 1rem 0.75rem;
        position: relative;
    }
    
    .candidat-number {
        position: static;
        margin-bottom: 0;
        margin-right: -0.2rem;
        text-align: center; /* Centrer le numéro */
    }
    
    .candidat-photo-wrapper {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        margin: 0 auto; /* Centrer l'image */
    }
    
    .candidat-info {
        flex-basis: 100%; /* Sur mobile, candidat-info passe en dessous */
        width: 100%;
        min-width: 0;
        text-align: center; /* Centrer le texte */
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrer les éléments flex */
        margin-top: 0.35rem; /* Descendre légèrement le bloc texte par rapport à l'image */
    }
    
    .candidat-name {
        font-size: 0.9rem;
        text-align: center; /* Centrer le nom */
    }
    
    .candidat-meta {
        font-size: 0.75rem;
        text-align: center; /* Centrer les métadonnées */
        display: flex;
        justify-content: center; /* Centrer les éléments flex */
        flex-wrap: wrap; /* Permettre le retour à la ligne si nécessaire */
    }
    
    .candidat-bio {
        margin-top: 0.5rem;
        font-size: 0.85rem;
        text-align: center !important; /* Centrer la bio pour tous les partis, y compris PCF */
        width: 100%;
    }
}

/* Hero pour les pages thématiques */
.thematique-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.thematique-hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.thematique-hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.thematique-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 3rem 2rem;
}

.thematique-hero-osezpantin {
    font-size: 6rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 2rem;
    z-index: 3;
    font-family: 'Tan St Canard', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.thematique-osez {
    color: #FF3131;
}

.thematique-hero-title {
    font-family: 'Anton', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(-2deg);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.thematique-page .site-container {
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.thematique-page .post {
    max-width: 800px;
    margin: 0 auto;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.thematique-page .post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1D1D1B;
    text-align: left;
}

.thematique-page .post-content p {
    margin-bottom: 1.5rem;
}

.thematique-page .post-content h2,
.thematique-page .post-content h3,
.thematique-page .post-content h4 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1D1D1B;
}

.thematique-page .post-content h2 {
    font-size: 2rem;
}

.thematique-page .post-content h3 {
    font-size: 1.5rem;
}

.thematique-page .post-content h4 {
    font-size: 1.25rem;
}

.thematique-page .post-content ul,
.thematique-page .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style-position: outside;
}

.thematique-page .post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    display: list-item;
}

.thematique-page .post-content ul ul,
.thematique-page .post-content ol ol,
.thematique-page .post-content ul ol,
.thematique-page .post-content ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 2rem;
}

.thematique-page .post-content li > ul,
.thematique-page .post-content li > ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.thematique-page .post-content strong {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    color: #1D1D1B;
    letter-spacing: 0.01em;
}

.thematique-page .post-content b {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    color: #1D1D1B;
    letter-spacing: 0.01em;
}

.thematique-page .post-content a {
    color: #FF3131;
    text-decoration: underline;
}

.thematique-page .post-content a:hover {
    color: #E01E1E;
}

@media (max-width: 768px) {
    .thematique-hero {
        min-height: 50vh;
    }

    .thematique-hero-content {
        padding: 2rem 1.5rem;
    }

    .thematique-hero-osezpantin {
        font-size: 3rem;
    }

    .thematique-hero-title {
        font-size: 2rem;
        transform: rotate(-1.5deg);
    }

    .thematique-page .site-container {
        padding: 0 1.5rem;
    }

    .thematique-page .post-content {
        font-size: 1rem;
        line-height: 1.75;
        text-align: left;
    }

    .thematique-page .post-content p {
        margin-bottom: 1.25rem;
    }

    .thematique-page .post-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 0.875rem;
    }

    .thematique-page .post-content h3 {
        font-size: 1.25rem;
        margin-top: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .thematique-page .post-content h4 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .thematique-page .post-content ul,
    .thematique-page .post-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1.25rem;
        list-style-position: outside;
    }

    .thematique-page .post-content li {
        margin-bottom: 0.625rem;
        display: list-item;
    }

    .thematique-page .post-content ul ul,
    .thematique-page .post-content ol ol,
    .thematique-page .post-content ul ol,
    .thematique-page .post-content ol ul {
        margin-top: 0.625rem;
        margin-bottom: 0.625rem;
        padding-left: 1.5rem;
    }

    .thematique-page .post-content li > ul,
    .thematique-page .post-content li > ol {
        margin-top: 0.625rem;
        margin-bottom: 0.625rem;
    }
}
