/* ========================================
   PAGE ÉLECTIONS - STYLES SPÉCIFIQUES
   ======================================== */

/* Hero Elections */
.elections-hero {
    background: linear-gradient(135deg, var(--bleu-marine), var(--bleu-royal));
    color: var(--blanc);
    padding: 8rem 0 4rem;
    margin-top: 80px;
    text-align: center;
}

.elections-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.elections-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    color: var(--bleu-clair);
    font-weight: 600;
}

/* Intro Section */
.elections-intro {
    padding: 5rem 0;
    background: var(--gris-clair);
}

.intro-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--blanc);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.intro-card h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--bleu-marine);
    margin-bottom: 1.5rem;
}

.intro-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bleu-royal);
    margin: 2rem 0 1rem;
}

.intro-card p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gris-fonce);
    margin-bottom: 1.25rem;
}

.intro-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.intro-card ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--gris-fonce);
}

.intro-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bleu-clair);
    font-weight: 700;
    font-size: 1.25rem;
}

.highlight-text {
    background: linear-gradient(135deg, rgba(70, 154, 218, 0.1), rgba(51, 96, 181, 0.1));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--bleu-clair);
    margin: 2rem 0;
    font-weight: 600;
    color: var(--bleu-marine);
}

/* Content Elections */
.elections-content {
    padding: 5rem 0;
}

.elections-content .container {
    max-width: 1000px;
}


.info-box {
    background: var(--gris-clair);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.info-box.highlight {
    background: linear-gradient(135deg, rgba(70, 154, 218, 0.1), rgba(51, 96, 181, 0.1));
    border-left: 4px solid var(--bleu-royal);
}

.info-box h4 {
    color: var(--bleu-marine);
    margin-bottom: 1rem;
}

.info-box ul {
    margin: 1rem 0;
}

/* Vote Methods */
.vote-method {
    background: var(--gris-clair);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 4px solid var(--bleu-clair);
}

.vote-method h3 {
    color: var(--bleu-marine);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.date-highlight {
    background: linear-gradient(135deg, var(--bleu-royal), var(--bleu-clair));
    color: var(--blanc);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Vote CTA Section */
.vote-cta-section {
    background: linear-gradient(135deg, var(--bleu-marine), var(--bleu-royal));
    color: var(--blanc);
    padding: 5rem 0;
    text-align: center;
}

.vote-cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.vote-cta-section > .container > p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.vote-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.vote-date-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.vote-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.vote-date-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.vote-date-card .date {
    font-size: 1.125rem;
    color: var(--bleu-clair);
    font-weight: 600;
}

.btn-large {
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .elections-hero {
        padding: 6rem 0 3rem;
    }

    .intro-card,
    .election-article {
        padding: 2rem 1.5rem;
    }

    .vote-dates {
        grid-template-columns: 1fr;
    }

    .vote-cta-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .intro-card {
        padding: 1.5rem;
    }

    .vote-method {
        padding: 1.5rem;
    }
}

/* ========================================
   ACCORDÉON FAQ - ÉLECTIONS
   ======================================== */

/* Article accordéon */
.election-article {
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.election-article.active {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Header cliquable */
.article-header-clickable {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.article-header-clickable:hover {
    background: #f8f9fa;
}

/* Icône */
.article-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bleu-marine), var(--bleu-clair));
    border-radius: 12px;
    color: white;
    margin-right: 1rem;
}

/* Titre */
.article-title-wrapper {
    flex-grow: 1;
}

.article-title-wrapper h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--bleu-marine);
}

/* Flèche toggle */
.article-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bleu-clair);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.election-article.active .article-toggle {
    transform: rotate(180deg);
}

/* Contenu dépliable */
.article-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
}

.election-article.active .article-text {
    max-height: 5000px;
    padding: 0 1.5rem 2rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .article-header-clickable {
        padding: 1rem;
    }

.election-article .article-text h3 {
    margin-top: 40px;
}

.election-article .article-text h4 {
    margin-top: 30px;
}

.election-article .article-text h3:first-of-type,
.election-article .article-text h4:first-of-type {
    margin-top: 0; /* Pas de marge pour le premier titre */
}
    .article-title-wrapper h2 {
        font-size: 1.1rem;
    }
}
