/* ===================================
   CONTINUITÉ ET AMBITIONS POUR SAÔNE
   Feuille de style principale
   =================================== */

/* Variables CSS - Palette vert/jaune de saone.fr */
:root {
    /* Couleurs principales */
    --primary-color: #02332D;        /* Vert municipal Saône */
    --primary-dark: #011F1B;         /* Vert foncé */
    --secondary-color: #3A7D44;      /* Vert secondaire */
    --accent-color: #02332D;         /* Vert sombre sérieux */
    --highlight-color: #EADF44;      /* Jaune pour texte sur fond vert */

    /* Couleurs neutres */
    --text-primary: #1E293B;         /* Texte principal */
    --text-secondary: #64748B;       /* Texte secondaire */
    --background: #FFFFFF;           /* Fond blanc */
    --background-light: #F8FAFC;     /* Fond gris très clair */
    --background-gray: #F1F5F9;      /* Fond gris clair */

    /* Couleurs d'état */
    --success: #10B981;
    --warning: #FBBF24;
    --error: #EF4444;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Typographie */
    --font-primary: "Roboto Slab", Georgia, "Times New Roman", serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--background);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Conteneur */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Bandeau légal obligatoire - Positionné en haut du hero */
.legal-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(1, 31, 27, 0.9);
    color: white;
    text-align: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

/* Navigation */
.navbar {
    background: rgba(2, 51, 45, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: absolute;
    top: 32px; /* Sous le bandeau légal */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    z-index: 1000;
    transition: all var(--transition-base);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(2, 51, 45, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.navbar.scrolled .container {
    padding: var(--spacing-xs) var(--spacing-lg);
}

.navbar.scrolled .nav-logo {
    height: 35px;
}

.navbar.scrolled .nav-title {
    display: none;
}

.navbar.scrolled .nav-menu a {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.navbar.scrolled .nav-menu a:hover,
.navbar.scrolled .nav-menu a.active {
    color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-menu .btn-cta {
    padding: 6px 16px;
}

.navbar.scrolled .nav-toggle span {
    background: white;
}

/* Navbar statique pour pages intérieures */
.legal-banner-static {
    position: relative;
    background: var(--primary-dark);
}

.navbar-static {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    border-radius: 0;
    background: var(--primary-color);
    backdrop-filter: none;
    border: none;
}

.navbar-static.scrolled {
    position: fixed;
    top: 0;
    border-radius: 0;
}

.navbar .container {
    display: flex;
    flex-direction: column;
    padding: 8px var(--spacing-md);
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--spacing-lg);
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.nav-title {
    text-align: center;
    padding: 6px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 6px;
}

.nav-title h1 {
    font-size: 0.9rem;
    color: white;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-title .small {
    color: var(--highlight-color);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all var(--transition-base);
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu .btn-cta {
    background: var(--highlight-color);
    color: var(--primary-dark);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.nav-menu .btn-cta:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section - Full Page with Parallax */
.hero {
    position: relative;
    height: 85vh;
    height: 85svh; /* Small viewport height for mobile */
    min-height: 550px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    color: white;
    overflow: hidden;
}

/* Carrousel d'images hero avec parallax */
.hero-slider {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: transform;
}

/* Fallback pour mobile où background-attachment: fixed ne fonctionne pas bien */
@supports (-webkit-touch-callout: none) {
    .hero-slide {
        background-attachment: scroll;
    }
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 51, 45, 0.6);
    z-index: 1;
}

/* Navigation du carrousel */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

/* Points de navigation */
.hero-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    width: 14px;
    height: 14px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Modern hero title with gradient - override default */
.hero-title.gradient-text {
    background: linear-gradient(135deg, var(--highlight-color) 0%, #fff 40%, var(--highlight-color) 80%, #fff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-text-shift 8s ease infinite;
    text-shadow: none;
}

.hero-title.text-glow {
    filter: drop-shadow(0 0 30px rgba(234, 223, 68, 0.4)) drop-shadow(0 0 60px rgba(234, 223, 68, 0.2));
}

@keyframes gradient-text-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    opacity: 0.95;
}

.hero-date {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--highlight-color);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    z-index: 10;
}

.hero-scroll-arrow:hover {
    background: var(--highlight-color);
    color: var(--primary-dark);
    transform: translateX(-50%) scale(1.1);
}

.hero-scroll-arrow svg {
    stroke: currentColor;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* ===================================
   Section Nos Ambitions - Glass Effect
   =================================== */
.ambitions-section {
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
}

.ambitions-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #011510 100%);
    z-index: -2;
}

.ambitions-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(234,223,68,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.ambitions-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58,125,68,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.ambitions-header {
    text-align: center;
    margin-bottom: 60px;
}

.ambitions-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(234,223,68,0.15);
    border: 1px solid rgba(234,223,68,0.3);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--highlight-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.ambitions-header h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 25px;
    font-weight: 700;
}

.ambitions-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
}

.ambitions-intro strong {
    color: var(--highlight-color);
}

.ambitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.ambition-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ambition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ambition-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(234,223,68,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.ambition-card:hover::before {
    opacity: 1;
}

.ambition-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--highlight-color), #d4c520);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-dark);
}

.ambition-card h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.ambition-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ambition-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ambition-card li:last-child {
    border-bottom: none;
}

.ambition-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--highlight-color);
    border-radius: 50%;
}

.ambitions-quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(234,223,68,0.2);
    position: relative;
}

.ambitions-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 80px;
    color: var(--highlight-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.ambitions-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 25px;
}

.ambitions-quote blockquote strong {
    color: var(--highlight-color);
    font-style: normal;
}

.quote-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quote-author strong {
    font-size: 1.1rem;
    color: var(--highlight-color);
}

.quote-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .ambitions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ambitions-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ambitions-section {
        padding: 70px 0;
    }

    .ambitions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ambitions-header h2 {
        font-size: 2rem;
    }

    .ambitions-intro {
        font-size: 1.05rem;
    }

    .ambition-card {
        padding: 25px 20px;
    }

    .ambitions-quote {
        padding: 30px 20px;
    }

    .ambitions-quote blockquote {
        font-size: 1.1rem;
    }
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--highlight-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

/* Sections génériques */
section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.section-header .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto var(--spacing-md);
    border-radius: 2px;
}

/* Section Édito */
.edito {
    background: var(--background-light);
}

.edito-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.edito-text {
    margin-bottom: var(--spacing-lg);
}

.edito-signature {
    border-top: 2px solid var(--background-gray);
    padding-top: var(--spacing-md);
    text-align: right;
    font-style: italic;
}

/* Section Piliers */
.pillars {
    background: white;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.pillar-card {
    background: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.pillar-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Section Binôme */
.binome {
    background: var(--background-light);
}

.binome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.binome-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.binome-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.binome-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--background-gray);
}

.binome-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.binome-info {
    padding: var(--spacing-lg);
}

.binome-info h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
}

.binome-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.binome-status {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.candidat-info {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 8px 0;
}

/* Section 7 Axes */
.axes {
    background: white;
}

.axes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    justify-content: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.engagements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1100px;
    margin: 50px auto 0;
}

.axe-card {
    background: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    color: var(--text-primary);
    display: block;
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .axe-card {
        width: 280px;
    }
}

@media (max-width: 640px) {
    .axe-card {
        width: 100%;
        max-width: 400px;
    }
}

.axe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
    background: white;
}

.axe-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.axe-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.axe-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.axes-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Section Engagements */
.engagements {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.engagements .section-header h2,
.engagements .divider {
    color: white;
}

.engagements .divider {
    background: var(--secondary-color);
}

.engagements-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-md);
}

.engagement-item {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.125rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.engagement-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Section Actualités (homepage) */
.actualites-home {
    background: var(--background-light);
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.actualite-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.actualite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.actualite-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--background-gray);
}

.actualite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.actualite-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.actualite-content {
    padding: var(--spacing-lg);
}

.actualite-date {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.actualite-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.actualite-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.link-arrow:hover {
    gap: 8px;
}

.actualites-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Section CTA Rejoindre */
.cta-rejoindre {
    background: var(--primary-color);
    color: var(--highlight-color);
    text-align: center;
}

.cta-rejoindre h2 {
    color: var(--highlight-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-rejoindre p {
    color: var(--highlight-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    border-color: white;
}

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

/* Footer */
.footer {
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col a {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    font-size: 0.9375rem;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--highlight-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-legal {
    margin-top: var(--spacing-xs);
    font-weight: 600;
}

/* Bouton retour en haut */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Animations pour les cartes */
.ambition-card:hover {
    transform: translateY(-5px);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 25px rgba(234, 223, 68, 0.2);
}

.engagement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(2, 51, 45, 0.15);
    border-left-width: 6px;
}

/* Animation d'entrée au scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ambition-card,
.engagement-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.ambition-card:nth-child(1) {
    animation-delay: 0.1s;
}

.ambition-card:nth-child(2) {
    animation-delay: 0.2s;
}

.ambition-card:nth-child(3) {
    animation-delay: 0.3s;
}

.engagement-card:nth-child(1) {
    animation-delay: 0.1s;
}

.engagement-card:nth-child(2) {
    animation-delay: 0.2s;
}

.engagement-card:nth-child(3) {
    animation-delay: 0.3s;
}

.engagement-card:nth-child(4) {
    animation-delay: 0.4s;
}

.engagement-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Utilitaires */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ===================================
   STYLES SPÉCIFIQUES PAGE PROGRAMME
   =================================== */

.hero-small {
    min-height: 400px;
}

/* Section Défi Démographique */
.defi-demo {
    background: var(--background-light);
}

.defi-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.enjeux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.enjeu-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-base);
}

.enjeu-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.enjeu-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.enjeu-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* Axes du Programme */
.programme-axes {
    background: white;
}

.axe-detail {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: var(--background-light);
    border-radius: var(--radius-xl);
    scroll-margin-top: 100px;
}

.axe-detail:last-child {
    margin-bottom: 0;
}

.axe-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 3px solid var(--secondary-color);
}

.axe-icon-large {
    font-size: 4rem;
    flex-shrink: 0;
}

.axe-header h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.axe-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

.axe-content {
    max-width: 900px;
}

.axe-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.axe-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.axe-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.axe-highlight {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
    margin: var(--spacing-lg) 0;
    font-weight: 500;
    font-style: italic;
}

.finance-alert {
    background: linear-gradient(135deg, #FEF3C7 0%, #FCD34D 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border: 2px solid #F59E0B;
}

.finance-alert p {
    margin-bottom: var(--spacing-sm);
}

.finance-alert p:last-child {
    margin-bottom: 0;
}

.finance-source,
.stat-source {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-secondary);
}

.stat-box {
    background: var(--background-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--primary-color);
}

.stat-box p {
    margin-bottom: var(--spacing-sm);
}

.stat-box p:last-child {
    margin-bottom: 0;
}

.benefits-grid {
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.benefit-item {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--success);
    font-weight: 500;
}

/* Section PDF */
.programme-pdf {
    background: var(--background-light);
}

.pdf-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.pdf-actions .btn {
    display: inline-flex;
    align-items: center;
}

.pdf-viewer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: var(--spacing-xl);
}
