/* =============================================
   PAGE D'ACCUEIL DYNAMIQUE - Vizille en Mouvement
   ============================================= */

/* Variables couleurs */
:root {
    --rose: #E91E63;
    --bleu: #1a3a5c;
    --cyan: #00BCD4;
    --vert: #4CAF50;
    --orange: #FF9800;
}

/* ===== ANIMATIONS DE BASE ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in { animation: fadeIn 1s ease-out; }
.animate-slide-up { animation: slideUp 0.8s ease-out; }
.delay-1 { animation-delay: 0.2s; animation-fill-mode: both; }
.delay-2 { animation-delay: 0.4s; animation-fill-mode: both; }
.delay-3 { animation-delay: 0.6s; animation-fill-mode: both; }
.delay-4 { animation-delay: 0.8s; animation-fill-mode: both; }
.delay-5 { animation-delay: 1s; animation-fill-mode: both; }

/* Animation au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MARGES LATÉRALES GLOBALES ===== */
.carousel-section,
.facebook-section,
.stats-section,
.maire-section,
.themes-section,
.actualites-section,
.galerie-section,
.equipe-preview-section,
.rejoindre-section {
    padding-left: max(1.5rem, 5vw);
    padding-right: max(1.5rem, 5vw);
}

/* ===== HERO DYNAMIQUE ===== */
.hero-dynamic {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 5vw;
    background: linear-gradient(135deg, var(--bleu) 0%, #1e4a6e 40%, #2c5282 70%, var(--cyan) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/vizille-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(26, 58, 92, 0.7) 100%);
}

/* Layout deux colonnes */
.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    padding: 3rem 4rem 4rem;
    margin: 0 auto;
}

/* Colonne gauche : portrait */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-portrait {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
}

.hero-candidate-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.hero-portrait-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid var(--or, #c9a227);
    opacity: 0.5;
    animation: pulse 3s ease-in-out infinite;
}

.hero-candidate-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: white;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.hero-candidate-title {
    display: block;
    font-size: 1rem;
    color: var(--or, #c9a227);
    font-weight: 600;
    margin-top: 0.4rem;
    letter-spacing: 1px;
}

.hero-candidate-role {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-top: 0.8rem;
}

/* Colonne droite : message */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo-small {
    width: 160px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.3));
}

.hero-slogan {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    color: white;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    font-weight: 700;
}

.hero-quote {
    font-family: 'Caveat', cursive;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.5rem 0;
    max-width: 500px;
    line-height: 1.5;
    font-style: italic;
    padding-left: 1.25rem;
    border-left: 3px solid var(--or, #c9a227);
}

.hero-invitation {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-invitation strong {
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.85rem 1.8rem;
    background: var(--rose);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
}

.btn-hero:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.5);
}

.btn-hero-outline {
    padding: 0.85rem 1.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
    font-size: 0.75rem;
    z-index: 1;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* ===== BANDEAU ÉLECTIONS ===== */
.election-banner {
    background: linear-gradient(90deg, var(--rose), var(--orange), var(--vert), var(--cyan));
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.election-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.election-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.election-banner p {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.election-icon {
    font-size: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== CARROUSEL BILAN & PROJET ===== */
.carousel-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
    overflow: hidden;
}

.carousel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.carousel-header .section-title {
    margin-bottom: 0.5rem;
}

.carousel-header .section-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    color: #888;
    margin: 0;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: carousel-scroll 900s linear infinite;
    width: max-content;
}

.carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
}

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

/* Card du carrousel */
.carousel-card {
    flex-shrink: 0;
    width: 240px;
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
    border-top: 4px solid var(--or, #c9a227);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Bilan : vert + fond teinté vert */
.carousel-card.bilan {
    border-top-color: #27ae60;
    background: linear-gradient(180deg, rgba(39, 174, 96, 0.05) 0%, white 100%);
}

/* Projet : or + fond teinté or */
.carousel-card.projet {
    border-top-color: #c9a227;
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.07) 0%, white 100%);
}

.carousel-card-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.carousel-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bleu);
    line-height: 1.3;
    margin-bottom: 1rem;
    min-height: 2.6rem;
}

.carousel-card-divider {
    width: 40px;
    height: 2px;
    background: #c9a227;
    margin: 0 auto 0.75rem;
}

.carousel-card.bilan .carousel-card-divider {
    background: #27ae60;
}

.carousel-card-theme {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Badge type */
.carousel-card-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

.carousel-card.bilan .carousel-card-badge {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
}

.carousel-card.projet .carousel-card-badge {
    background: rgba(201, 162, 39, 0.15);
    color: #a68a1f;
}

.carousel-hint {
    text-align: center;
    margin-top: 1.5rem;
    color: #888;
    font-size: 0.85rem;
}

.carousel-hint span {
    background: rgba(0,0,0,0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .carousel-section {
        padding: 3rem 0;
    }

    .carousel-track {
        animation-duration: 120s;
    }

    .carousel-card {
        width: 200px;
        padding: 1.5rem 1rem;
    }

    .carousel-card-icon {
        font-size: 2.2rem;
    }

    .carousel-card-title {
        font-size: 1rem;
        min-height: auto;
    }
}

/* ===== SECTION FACEBOOK ===== */
.facebook-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.facebook-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.facebook-icon {
    font-size: 1.5em;
    margin-right: 0.5rem;
}

.section-intro {
    font-size: 1.1rem;
    color: #666;
    margin: -1rem 0 2rem 0;
}

.facebook-widget-wrapper {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

.facebook-widget-wrapper iframe {
    max-height: 550px !important;
}

.facebook-widget-wrapper .fb-page {
    width: 100%;
    max-width: 500px;
}

.facebook-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #1877F2;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.btn-facebook svg {
    flex-shrink: 0;
}

/* ===== SECTION CHIFFRES (conservé pour référence) ===== */
.stats-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--bleu);
    margin: 0 0 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title .see-all {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--rose);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.section-title .see-all:hover {
    color: var(--cyan);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rose), var(--cyan));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--bleu);
    line-height: 1;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    color: var(--rose);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-top: 0.5rem;
}

.stat-sublabel {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.25rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--bleu);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--cyan);
    transform: translateY(-2px);
}

/* ===== SECTION MAIRE ===== */
.maire-section {
    padding: 5rem 1.5rem;
    background: white;
}

.maire-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.maire-photo-wrapper {
    position: relative;
}

.maire-photo {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--rose);
}

.maire-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cyan);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.maire-content h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--rose);
    margin: 0 0 1rem 0;
}

.maire-content blockquote {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: var(--cyan);
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--cyan);
    line-height: 1.4;
}

.maire-content p {
    color: #444;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
}

.maire-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.value-tag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bleu);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: white;
    color: var(--rose);
    text-decoration: none;
    border: 2px solid var(--rose);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* ===== SECTION THÈMES ===== */
.themes-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f5e9 100%);
}

.themes-container {
    max-width: 1200px;
    margin: 0 auto;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.theme-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--rose), var(--cyan));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.theme-card:hover::before {
    transform: scaleY(1);
}

.theme-icon {
    font-size: 2.5rem;
    transition: transform 0.3s;
}

.theme-card:hover .theme-icon {
    transform: scale(1.1);
}

.theme-card h3 {
    font-size: 1.3rem;
    color: var(--bleu);
    margin: 0;
}

.theme-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.theme-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    font-size: 1.5rem;
    color: var(--rose);
    opacity: 0;
    transition: all 0.3s;
}

.theme-card:hover .theme-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ===== SECTION ACTUALITÉS ===== */
.actualites-section {
    padding: 5rem 1.5rem;
    background: white;
}

.actualites-container {
    max-width: 1200px;
    margin: 0 auto;
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.actu-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.actu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.actu-image {
    height: 180px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    position: relative;
    overflow: hidden;
}

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

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

.actu-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--rose);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.actu-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.actu-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.actu-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bleu);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.actu-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.loading-placeholder {
    display: contents;
}

.loading-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 16px;
    height: 350px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== SECTION GALERIE ===== */
.galerie-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #f8f9fa, #fff);
}

.galerie-container {
    max-width: 1200px;
    margin: 0 auto;
}

.galerie-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

.galerie-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.galerie-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galerie-item:hover img {
    transform: scale(1.1);
}

.galerie-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.galerie-item:hover::after {
    opacity: 1;
}

.galerie-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: white;
    font-weight: 500;
    z-index: 1;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.galerie-item:hover .galerie-caption {
    transform: translateY(0);
    opacity: 1;
}

/* ===== SECTION ÉQUIPE PREVIEW ===== */
.equipe-preview-section {
    padding: 5rem 1.5rem;
    background: var(--bleu);
    color: white;
    text-align: center;
}

.equipe-preview-container {
    max-width: 1000px;
    margin: 0 auto;
}

.equipe-preview-section .section-title {
    color: white;
}

.section-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--cyan);
    margin: -2rem 0 3rem 0;
}

.equipe-preview-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.equipe-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--cyan);
    object-fit: cover;
    transition: all 0.3s;
}

.equipe-avatar:hover {
    transform: scale(1.1);
    border-color: var(--rose);
}

/* Conteneur pour superposer vidéo et photo fallback */
.equipe-avatar-container {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.equipe-avatar-container .equipe-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.equipe-avatar-container .equipe-avatar-fallback {
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.equipe-avatar-container video.equipe-avatar {
    z-index: 0;
}

.equipe-avatar-container:hover .equipe-avatar {
    transform: none;
}

.equipe-avatar-container:hover {
    transform: scale(1.1);
    border: 3px solid var(--rose);
}

.equipe-preview-section .btn-primary {
    background: var(--rose);
}

.equipe-preview-section .btn-primary:hover {
    background: #c2185b;
}

/* ===== SECTION REJOINDRE ===== */
.rejoindre-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #fff9c4 0%, #ffe082 100%);
}

.rejoindre-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.rejoindre-content h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--bleu);
    margin: 0 0 1rem 0;
}

.rejoindre-content p {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 2rem 0;
}

.rejoindre-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1rem 2rem;
    background: var(--rose);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-cta:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

.btn-cta-outline {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--bleu);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--bleu);
    transition: all 0.3s;
}

.btn-cta-outline:hover {
    background: var(--bleu);
    color: white;
}

.rejoindre-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-card h4 {
    margin: 0 0 0.75rem 0;
    color: var(--bleu);
    font-size: 1.1rem;
}

.info-card p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-btn.facebook {
    background: #e7f3ff;
    color: #1877F2;
}

.social-btn.facebook:hover {
    background: #1877F2;
    color: white;
}

.social-btn.instagram {
    background: #fce4ec;
    color: #E1306C;
}

.social-btn.instagram:hover {
    background: #E1306C;
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .maire-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .maire-photo-wrapper {
        justify-self: center;
    }

    .maire-content blockquote {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }

    .maire-values {
        justify-content: center;
    }

    .rejoindre-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rejoindre-actions {
        justify-content: center;
    }

    .galerie-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
}

@media (max-width: 600px) {
    .facebook-section {
        padding: 3rem 1rem;
    }

    .facebook-widget-wrapper {
        padding: 1rem;
        min-height: 350px;
    }

    .facebook-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-dynamic {
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem 2.5rem;
        text-align: center;
    }

    .hero-left {
        align-items: center;
    }

    .hero-portrait {
        width: 140px;
        height: 140px;
        margin-bottom: 1rem;
    }

    .hero-candidate-photo {
        width: 140px;
        height: 140px;
    }

    .hero-candidate-name {
        font-size: 1.8rem;
    }

    .hero-right {
        align-items: center;
        text-align: center;
    }

    .hero-logo-small {
        width: 120px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slogan {
        font-size: 1.4rem;
        text-align: center;
    }

    .hero-quote {
        font-size: 1.15rem;
        border-left: none;
        padding-left: 0;
        text-align: center;
    }

    .hero-invitation {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
        width: 100%;
    }

    .hero-cta .btn-hero,
    .hero-cta .btn-hero-outline {
        width: 80%;
        max-width: 280px;
        text-align: center;
        box-sizing: border-box;
    }

    .scroll-indicator {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    .actualites-grid {
        grid-template-columns: 1fr;
    }

    .galerie-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .galerie-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .equipe-preview-grid {
        gap: 1rem;
    }

    .equipe-avatar {
        width: 70px;
        height: 70px;
    }

    .equipe-avatar-container {
        width: 70px;
        height: 70px;
    }
}

/* ===== COMPTE À REBOURS ===== */
.countdown-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d5f8a 100%);
    padding: 1rem 2rem;
    text-align: center;
}

.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-label {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-boxes {
    display: flex;
    gap: 0.75rem;
}

.countdown-box {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    text-align: center;
    min-width: 65px;
}

.countdown-box span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--or-clair, #f0c36d);
    line-height: 1;
}

.countdown-box small {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .countdown-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .countdown-box {
        min-width: 55px;
        padding: 0.4rem 0.75rem;
    }
    .countdown-box span {
        font-size: 1.4rem;
    }
}
