/* ===== HISTOIRE.CSS - VERSION SOBRE ET ÉLÉGANTE ===== */

/* ===== IMPORT DES POLICES ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ===== VARIABLES CSS SOBRES ===== */
.histoire-page {
    /* Palette de couleurs sobres */
    --histoire-primary: #2c3e50;
    --histoire-secondary: #34495e;
    --histoire-accent: #8b9dc3;
    --histoire-gold: #b8860b;
    --histoire-heritage: #5a6c7d;
    --histoire-text: #2c3e50;
    --histoire-text-light: #5a6c7d;
    --histoire-white: #ffffff;
    --histoire-cream: #fefdfb;
    --histoire-light-gray: #f8f9fa;
    --histoire-border: #e9ecef;
    --histoire-border-light: #f1f3f4;
    
    /* Typographie */
    --histoire-font-heading: 'Playfair Display', serif;
    --histoire-font-body: 'Inter', sans-serif;
    
    /* Tailles */
    --histoire-fs-hero: clamp(2.5rem, 4vw, 3.5rem);
    --histoire-fs-xl: clamp(1.8rem, 3vw, 2.4rem);
    --histoire-fs-lg: clamp(1.4rem, 2.5vw, 1.8rem);
    --histoire-fs-md: clamp(1.2rem, 2vw, 1.4rem);
    --histoire-fs-normal: 1rem;
    
    /* Espacements */
    --histoire-space-xs: 0.5rem;
    --histoire-space-sm: 1rem;
    --histoire-space-md: 1.5rem;
    --histoire-space-lg: 2rem;
    --histoire-space-xl: 3rem;
    --histoire-space-xxl: 4rem;
    
    /* Éléments */
    --histoire-radius: 8px;
    --histoire-radius-lg: 12px;
    --histoire-radius-xl: 16px;
    
    /* Ombres sobres */
    --histoire-shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
    --histoire-shadow-md: 0 4px 16px rgba(44, 62, 80, 0.12);
    --histoire-shadow-lg: 0 8px 24px rgba(44, 62, 80, 0.15);
    
    /* Transitions */
    --histoire-transition: all 0.3s ease;
    --histoire-transition-fast: all 0.2s ease;
    
    --histoire-content-width: 1200px;
}

/* ===== BACKGROUND SOBRE ===== */
.histoire-page {
    background: linear-gradient(135deg, 
        var(--histoire-cream) 0%, 
        var(--histoire-light-gray) 100%);
    min-height: 100vh;
    font-family: var(--histoire-font-body);
    color: var(--histoire-text);
    line-height: 1.6;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.histoire-page .histoire-main {
    max-width: var(--histoire-content-width);
    margin: 0 auto;
    padding: 0 var(--histoire-space-sm);
}

/* ===== TITRE DE PAGE SOBRE ===== */
.histoire-page .page-title {
    text-align: center;
    color: var(--histoire-primary);
    font-size: var(--histoire-fs-hero);
    margin-bottom: var(--histoire-space-xxl);
    font-family: var(--histoire-font-heading);
    font-weight: 600;
    padding: var(--histoire-space-xl);
    background: var(--histoire-white);
    border-radius: var(--histoire-radius-xl);
    box-shadow: var(--histoire-shadow-md);
    border: 1px solid var(--histoire-border);
}

/* ===== SECTION INTRO SOBRE ===== */
.histoire-page .intro-section {
    margin-bottom: var(--histoire-space-xxl);
    text-align: center;
}

.histoire-page .intro-text {
    font-size: var(--histoire-fs-md);
    color: var(--histoire-text-light);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--histoire-space-xl);
    background: var(--histoire-white);
    border-radius: var(--histoire-radius-lg);
    box-shadow: var(--histoire-shadow-sm);
    border: 1px solid var(--histoire-border-light);
}

/* ===== SECTIONS PRINCIPALES SOBRES ===== */
.histoire-page .timeline-section,
.histoire-page .heritage-history,
.histoire-page .personalities-section,
.histoire-page .urban-evolution,
.histoire-page .traditions-section {
    margin-bottom: var(--histoire-space-xxl);
    background: var(--histoire-white);
    border-radius: var(--histoire-radius-lg);
    padding: var(--histoire-space-xl);
    box-shadow: var(--histoire-shadow-sm);
    border: 1px solid var(--histoire-border);
    transition: var(--histoire-transition);
}

.histoire-page .timeline-section:hover,
.histoire-page .heritage-history:hover,
.histoire-page .personalities-section:hover,
.histoire-page .urban-evolution:hover,
.histoire-page .traditions-section:hover {
    box-shadow: var(--histoire-shadow-md);
    transform: translateY(-2px);
}

/* ===== EN-TÊTES DE SECTIONS SOBRES ===== */
.histoire-page .section-header {
    text-align: center;
    margin-bottom: var(--histoire-space-xl);
    position: relative;
}

.histoire-page .section-header h2 {
    color: var(--histoire-primary);
    font-size: var(--histoire-fs-xl);
    font-family: var(--histoire-font-heading);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--histoire-space-sm);
    padding: var(--histoire-space-md) var(--histoire-space-lg);
    background: var(--histoire-light-gray);
    border-radius: var(--histoire-radius-lg);
    border: 2px solid var(--histoire-accent);
}

.histoire-page .section-header h2 i {
    color: var(--histoire-accent);
    font-size: 1.2em;
}

/* ===== TIMELINE SOBRE ===== */
.histoire-page .timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--histoire-space-lg) 0;
}

.histoire-page .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        var(--histoire-accent) 0%, 
        var(--histoire-heritage) 100%);
    border-radius: 2px;
}

.histoire-page .timeline-item {
    position: relative;
    margin-bottom: var(--histoire-space-xl);
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.histoire-page .timeline-item:nth-child(1) { animation-delay: 0.1s; }
.histoire-page .timeline-item:nth-child(2) { animation-delay: 0.2s; }
.histoire-page .timeline-item:nth-child(3) { animation-delay: 0.3s; }
.histoire-page .timeline-item:nth-child(4) { animation-delay: 0.4s; }
.histoire-page .timeline-item:nth-child(5) { animation-delay: 0.5s; }
.histoire-page .timeline-item:nth-child(6) { animation-delay: 0.6s; }
.histoire-page .timeline-item:nth-child(7) { animation-delay: 0.7s; }
.histoire-page .timeline-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.histoire-page .timeline-item:nth-child(even) { 
    flex-direction: row-reverse;
}

.histoire-page .timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    margin-right: 0;
    margin-left: var(--histoire-space-xl);
}

/* Marqueurs de timeline sobres */
.histoire-page .timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--histoire-white);
    border-radius: 50%;
    box-shadow: var(--histoire-shadow-md);
    border: 3px solid var(--histoire-accent);
    transition: var(--histoire-transition);
    z-index: 2;
}

.histoire-page .timeline-marker:hover {
    transform: scale(1.1);
    border-color: var(--histoire-gold);
}

.histoire-page .timeline-icon {
    color: var(--histoire-accent);
    font-size: 1.5rem;
}

.histoire-page .timeline-marker:hover .timeline-icon {
    color: var(--histoire-gold);
}

/* Contenu de timeline sobre */
.histoire-page .timeline-content {
    flex: 1;
    background: var(--histoire-white);
    padding: var(--histoire-space-lg);
    border-radius: var(--histoire-radius-lg);
    box-shadow: var(--histoire-shadow-sm);
    margin-right: var(--histoire-space-xl);
    border: 1px solid var(--histoire-border);
    transition: var(--histoire-transition);
}

.histoire-page .timeline-content:hover {
    box-shadow: var(--histoire-shadow-md);
    transform: translateY(-2px);
}

.histoire-page .timeline-content::before {
    content: '';
    position: absolute;
    top: 35px;
    right: -15px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-left-color: var(--histoire-white);
}

.histoire-page .timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -15px;
    border-left-color: transparent;
    border-right-color: var(--histoire-white);
}

.histoire-page .timeline-content h3 {
    color: var(--histoire-primary);
    font-size: var(--histoire-fs-lg);
    font-family: var(--histoire-font-heading);
    margin-bottom: var(--histoire-space-sm);
    font-weight: 600;
}

.histoire-page .timeline-date {
    display: inline-block;
    background: var(--histoire-accent);
    color: var(--histoire-white);
    padding: 0.5rem 1rem;
    border-radius: var(--histoire-radius);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--histoire-space-sm);
}

.histoire-page .timeline-content p {
    color: var(--histoire-text-light);
    line-height: 1.6;
    font-size: var(--histoire-fs-normal);
    margin: 0;
}

/* ===== CARTES PATRIMOINE SOBRES ===== */
.histoire-page .heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--histoire-space-xl);
}

.histoire-page .heritage-card {
    background: var(--histoire-white);
    border-radius: var(--histoire-radius-lg);
    overflow: hidden;
    box-shadow: var(--histoire-shadow-sm);
    transition: var(--histoire-transition);
    border: 1px solid var(--histoire-border);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.histoire-page .heritage-card:nth-child(1) { animation-delay: 0.1s; }
.histoire-page .heritage-card:nth-child(2) { animation-delay: 0.3s; }
.histoire-page .heritage-card:nth-child(3) { animation-delay: 0.5s; }

.histoire-page .heritage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--histoire-shadow-lg);
}

.histoire-page .heritage-image {
    height: 250px;
    overflow: hidden;
}

.histoire-page .heritage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--histoire-transition);
}

.histoire-page .heritage-card:hover .heritage-image img {
    transform: scale(1.05);
}

.histoire-page .heritage-content {
    padding: var(--histoire-space-lg);
}

.histoire-page .heritage-content h3 {
    color: var(--histoire-primary);
    font-size: var(--histoire-fs-lg);
    font-family: var(--histoire-font-heading);
    margin-bottom: var(--histoire-space-sm);
    font-weight: 600;
}

.histoire-page .heritage-dates {
    display: flex;
    flex-wrap: wrap;
    gap: var(--histoire-space-xs);
    margin-bottom: var(--histoire-space-md);
}

.histoire-page .date-item {
    background: var(--histoire-light-gray);
    color: var(--histoire-heritage);
    padding: 0.4rem 0.8rem;
    border-radius: var(--histoire-radius);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--histoire-border);
}

.histoire-page .heritage-content p {
    color: var(--histoire-text-light);
    line-height: 1.6;
    font-size: var(--histoire-fs-normal);
    margin: 0;
}

/* ===== PERSONNALITÉS SOBRES ===== */
.histoire-page .personalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--histoire-space-lg);
}

.histoire-page .personality-card {
    background: var(--histoire-white);
    border-radius: var(--histoire-radius-lg);
    padding: var(--histoire-space-lg);
    box-shadow: var(--histoire-shadow-sm);
    transition: var(--histoire-transition);
    border: 1px solid var(--histoire-border);
    border-left: 4px solid var(--histoire-accent);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.histoire-page .personality-card:nth-child(1) { animation-delay: 0.1s; }
.histoire-page .personality-card:nth-child(2) { animation-delay: 0.3s; }
.histoire-page .personality-card:nth-child(3) { animation-delay: 0.5s; }

.histoire-page .personality-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--histoire-shadow-md);
    border-left-color: var(--histoire-gold);
}

.histoire-page .personality-info h3 {
    color: var(--histoire-primary);
    font-size: var(--histoire-fs-md);
    font-family: var(--histoire-font-heading);
    margin-bottom: var(--histoire-space-xs);
    font-weight: 600;
}

.histoire-page .personality-period {
    color: var(--histoire-gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--histoire-space-sm);
    background: rgba(184, 134, 11, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: var(--histoire-radius);
    display: inline-block;
}

.histoire-page .personality-info p {
    color: var(--histoire-text-light);
    line-height: 1.6;
    font-size: var(--histoire-fs-normal);
    margin: 0;
}

/* ===== ÉVOLUTION URBANISTIQUE SOBRE ===== */
.histoire-page .evolution-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--histoire-space-xl);
    align-items: start;
}

.histoire-page .evolution-text h3 {
    color: var(--histoire-primary);
    font-size: var(--histoire-fs-md);
    font-family: var(--histoire-font-heading);
    margin-bottom: var(--histoire-space-md);
    font-weight: 600;
}

.histoire-page .evolution-text p {
    color: var(--histoire-text-light);
    line-height: 1.6;
    font-size: var(--histoire-fs-normal);
    margin-bottom: var(--histoire-space-lg);
}

.histoire-page .urban-phases {
    margin-top: var(--histoire-space-lg);
}

.histoire-page .phase-item {
    background: var(--histoire-light-gray);
    border-radius: var(--histoire-radius-lg);
    padding: var(--histoire-space-md);
    margin-bottom: var(--histoire-space-md);
    border-left: 4px solid var(--histoire-heritage);
    transition: var(--histoire-transition);
}

.histoire-page .phase-item:hover {
    transform: translateX(4px);
    border-left-color: var(--histoire-gold);
    background: var(--histoire-white);
    box-shadow: var(--histoire-shadow-sm);
}

.histoire-page .phase-item h4 {
    color: var(--histoire-heritage);
    font-size: var(--histoire-fs-md);
    font-family: var(--histoire-font-heading);
    margin-bottom: var(--histoire-space-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--histoire-space-sm);
}

.histoire-page .phase-item h4 i {
    background: var(--histoire-heritage);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.histoire-page .phase-item p {
    color: var(--histoire-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.histoire-page .evolution-highlights {
    background: var(--histoire-white);
    border-radius: var(--histoire-radius-lg);
    padding: var(--histoire-space-lg);
    box-shadow: var(--histoire-shadow-sm);
    border: 2px solid var(--histoire-accent);
}

.histoire-page .evolution-highlights h3 {
    color: var(--histoire-primary);
    font-size: var(--histoire-fs-md);
    font-family: var(--histoire-font-heading);
    margin-bottom: var(--histoire-space-md);
    font-weight: 600;
    text-align: center;
}

.histoire-page .heritage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.histoire-page .heritage-list li {
    display: flex;
    align-items: center;
    gap: var(--histoire-space-sm);
    margin-bottom: var(--histoire-space-sm);
    padding: var(--histoire-space-sm);
    background: var(--histoire-light-gray);
    border-radius: var(--histoire-radius);
    transition: var(--histoire-transition-fast);
}

.histoire-page .heritage-list li:hover {
    background: var(--histoire-white);
    transform: translateX(2px);
    box-shadow: var(--histoire-shadow-sm);
}

.histoire-page .heritage-list li i {
    color: var(--histoire-accent);
    font-size: 1.1rem;
    min-width: 20px;
}

/* ===== TRADITIONS SOBRES ===== */
.histoire-page .traditions-content {
    margin-top: var(--histoire-space-lg);
}

.histoire-page .tradition-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--histoire-space-lg);
}

.histoire-page .tradition-category {
    background: var(--histoire-white);
    border-radius: var(--histoire-radius-lg);
    padding: var(--histoire-space-lg);
    box-shadow: var(--histoire-shadow-sm);
    border: 1px solid var(--histoire-border);
    border-top: 4px solid var(--histoire-heritage);
    transition: var(--histoire-transition);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.histoire-page .tradition-category:nth-child(1) { animation-delay: 0.1s; }
.histoire-page .tradition-category:nth-child(2) { animation-delay: 0.3s; }
.histoire-page .tradition-category:nth-child(3) { animation-delay: 0.5s; }
.histoire-page .tradition-category:nth-child(4) { animation-delay: 0.7s; }

.histoire-page .tradition-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--histoire-shadow-md);
    border-top-color: var(--histoire-gold);
}

.histoire-page .tradition-category h3 {
    color: var(--histoire-primary);
    font-size: var(--histoire-fs-md);
    font-family: var(--histoire-font-heading);
    margin-bottom: var(--histoire-space-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--histoire-space-sm);
}

.histoire-page .tradition-category h3 i {
    background: var(--histoire-heritage);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.histoire-page .tradition-category p {
    color: var(--histoire-text-light);
    line-height: 1.6;
    font-size: var(--histoire-fs-normal);
    margin: 0;
}

/* ===== RESPONSIVE DESIGN SOBRE ===== */
@media (max-width: 1200px) {
    .histoire-page .histoire-main {
        padding: 0 var(--histoire-space-md);
    }
    
    .histoire-page .heritage-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .histoire-page .personalities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .histoire-page .histoire-main {
        padding: 0 var(--histoire-space-sm);
    }
    
    .histoire-page .page-title {
        padding: var(--histoire-space-lg);
        margin-bottom: var(--histoire-space-lg);
        font-size: 2rem;
    }
    
    .histoire-page .intro-text {
        padding: var(--histoire-space-lg);
        font-size: 1rem;
    }
    
    .histoire-page .timeline-section,
    .histoire-page .heritage-history,
    .histoire-page .personalities-section,
    .histoire-page .urban-evolution,
    .histoire-page .traditions-section {
        padding: var(--histoire-space-lg);
        margin-bottom: var(--histoire-space-lg);
    }
    
    .histoire-page .section-header h2 {
        font-size: var(--histoire-fs-lg);
        padding: var(--histoire-space-sm) var(--histoire-space-md);
        flex-direction: column;
        gap: var(--histoire-space-xs);
    }
    
    /* Timeline mobile sobre */
    .histoire-page .timeline::before {
        left: 20px;
    }
    
    .histoire-page .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: var(--histoire-space-lg);
    }
    
    .histoire-page .timeline-item:nth-child(even) {
        flex-direction: column;
    }
    
    .histoire-page .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
    
    .histoire-page .timeline-marker {
        width: 50px;
        height: 50px;
        margin-bottom: var(--histoire-space-sm);
        align-self: flex-start;
        margin-left: 20px;
        transform: translateX(-50%);
    }
    
    .histoire-page .timeline-icon {
        font-size: 1.2rem;
    }
    
    .histoire-page .timeline-content {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
    
    .histoire-page .timeline-content::before {
        display: none;
    }
    
    /* Grilles responsive */
    .histoire-page .heritage-grid,
    .histoire-page .personalities-grid,
    .histoire-page .tradition-categories {
        grid-template-columns: 1fr;
        gap: var(--histoire-space-md);
    }
    
    .histoire-page .evolution-content {
        grid-template-columns: 1fr;
        gap: var(--histoire-space-md);
    }
    
    .histoire-page .heritage-image {
        height: 200px;
    }
    
    .histoire-page .heritage-content,
    .histoire-page .personality-card,
    .histoire-page .tradition-category {
        padding: var(--histoire-space-md);
    }
}

@media (max-width: 480px) {
    .histoire-page .page-title {
        font-size: 1.8rem;
        padding: var(--histoire-space-md);
    }
    
    .histoire-page .intro-text {
        padding: var(--histoire-space-md);
        font-size: 0.95rem;
    }
    
    .histoire-page .timeline-section,
    .histoire-page .heritage-history,
    .histoire-page .personalities-section,
    .histoire-page .urban-evolution,
    .histoire-page .traditions-section {
        padding: var(--histoire-space-md);
    }
    
    .histoire-page .section-header h2 {
        font-size: 1.3rem;
        padding: var(--histoire-space-sm);
    }
    
    .histoire-page .timeline-marker {
        width: 40px;
        height: 40px;
    }
    
    .histoire-page .timeline-icon {
        font-size: 1rem;
    }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    .histoire-page * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS STYLES ===== */
.histoire-page .heritage-card:focus,
.histoire-page .personality-card:focus,
.histoire-page .tradition-category:focus,
.histoire-page .phase-item:focus {
    outline: 2px solid var(--histoire-accent);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .histoire-page {
        background: white !important;
    }
    
    .histoire-page .timeline-section,
    .histoire-page .heritage-history,
    .histoire-page .personalities-section,
    .histoire-page .urban-evolution,
    .histoire-page .traditions-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    .histoire-page .page-title {
        background: white !important;
        color: black !important;
        border: 2px solid #333 !important;
        box-shadow: none !important;
    }
}

/* ===== STYLES POUR L'HISTORIQUE DES MAIRES ===== */

.historique-maires {
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.03) 0%, rgba(212, 165, 116, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(139, 111, 71, 0.1);
}

.historique-maires h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--village-thermal-blue);
    margin-bottom: 1rem;
    position: relative;
}

.historique-maires h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--village-earth-brown), var(--village-thermal-blue));
    border-radius: 2px;
}

.historique-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--village-text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

/* Container pour chaque période */
.timeline-container {
    margin: 3rem 0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--village-thermal-blue), var(--village-water-cyan));
    border-radius: 15px 15px 0 0;
}

.timeline-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Styles spécifiques par période */
.timeline-container.modern {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(74, 144, 164, 0.08) 100%);
    border: 1px solid rgba(52, 152, 219, 0.15);
}

.timeline-container.mid {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.05) 0%, rgba(139, 111, 71, 0.08) 100%);
    border: 1px solid rgba(45, 90, 61, 0.15);
}

.timeline-container.old {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.05) 0%, rgba(212, 165, 116, 0.08) 100%);
    border: 1px solid rgba(139, 111, 71, 0.15);
}

.timeline-container.ancient {
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.05) 0%, rgba(139, 111, 71, 0.08) 100%);
    border: 1px solid rgba(101, 67, 33, 0.15);
}

/* Titre de période */
.timeline-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--village-thermal-blue);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.timeline-container h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--village-earth-brown);
    border-radius: 1px;
}

/* Liste des maires */
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border-left: 4px solid var(--village-thermal-blue);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(52, 152, 219, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--village-water-cyan);
}

.timeline-list li:hover::before {
    opacity: 1;
}

/* Date du mandat */
.timeline-date {
    min-width: 140px;
    font-weight: 700;
    color: var(--village-thermal-blue);
    background: rgba(52, 152, 219, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    margin-right: 1.5rem;
    white-space: nowrap;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* Nom du maire */
.timeline-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--village-text-primary);
    flex: 1;
    line-height: 1.4;
}

/* Notes spéciales */
.timeline-note {
    width: 100%;
    margin-top: 0.8rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(139, 111, 71, 0.05) 100%);
    border-radius: 8px;
    border-left: 3px solid var(--village-earth-brown);
    font-style: italic;
    color: var(--village-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.timeline-note::before {
    content: '💡';
    margin-right: 0.5rem;
}

/* Note de bas de page */
.historique-note {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
    text-align: center;
}

.historique-note p {
    margin: 0;
    color: var(--village-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.historique-note a {
    color: var(--village-thermal-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.historique-note a:hover {
    color: var(--village-water-cyan);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .historique-maires {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .historique-maires h2 {
        font-size: 2rem;
    }
    
    .timeline-container {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .timeline-container h3 {
        font-size: 1.5rem;
    }
    
    .timeline-list li {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    
    .timeline-date {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 1rem;
        width: fit-content;
        align-self: center;
    }
    
    .timeline-name {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .timeline-note {
        text-align: left;
    }
    
    .timeline-list li:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .historique-maires h2 {
        font-size: 1.8rem;
    }
    
    .timeline-container h3 {
        font-size: 1.3rem;
    }
    
    .timeline-name {
        font-size: 1.1rem;
    }
    
    .historique-intro {
        font-size: 1rem;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-container {
    animation: fadeInUp 0.8s ease-out;
}

.timeline-container:nth-child(even) {
    animation-delay: 0.2s;
}

.timeline-container:nth-child(odd) {
    animation-delay: 0.4s;
}

/* Effet de survol global pour la section */
.historique-maires:hover .timeline-container:not(:hover) {
    opacity: 0.7;
    transform: scale(0.98);
}