/* ===== VARIABLES & RESET ===== */
:root {
    --primary: #255a94;
    --primary-light: #4faec7;
    --primary-bg: #e8f4f8;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --bg-light: #f7f9fc;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(37, 90, 148, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 1.5rem;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-cta {
    background: var(--primary-light) !important;
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px !important;
    font-size: 0.78rem !important;
}

.nav-cta:hover {
    background: #3d9bb5 !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

.hero-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.hero-photo img {
    height: calc(100vh - 64px);
    width: auto;
    object-fit: contain;
    display: block;
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 64px);
}

.hero-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-weight: 900;
    font-size: 4rem;
    color: white;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-white:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #3d9bb5;
    transform: translateY(-2px);
}

/* ===== SPEECH ===== */
.speech {
    padding: 5rem 0;
    background: white;
}

.speech h2 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.speech p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.speech .btn {
    margin-top: 1rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== ENGAGEMENTS GRID ===== */
.engagements-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.engagements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.engagement-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border-top: 4px solid var(--primary-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.engagement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.eng-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.eng-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.4;
}

/* ===== PROGRAMME DETAIL ===== */
.programme-section {
    padding: 5rem 0;
    background: white;
}

.programme-engagement {
    margin-bottom: 4rem;
    padding-top: 1rem;
}

.programme-engagement h2 {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.engagement-pill {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 0.35rem 1.2rem;
    border-radius: 30px;
    font-size: 0.82rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-card {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-light);
}

.section-card h3 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.section-card ul {
    padding-left: 1.2rem;
    list-style: disc;
}

.section-card li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.section-card li strong {
    color: var(--primary);
}

/* ===== QUARTIERS ===== */
.quartiers-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.quartiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.quartier-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-light);
    transition: transform 0.2s ease;
}

.quartier-card:hover {
    transform: translateY(-4px);
}

.quartier-card h4 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.quartier-card ul {
    padding-left: 1.2rem;
    list-style: disc;
}

.quartier-card li {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.3rem;
    color: #444;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
}

.contact-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.contact-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.contact-links .btn {
    max-width: 100%;
    word-break: break-all;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    color: rgba(255,255,255,0.7);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    transition: all 0.3s;
}

.social-link:hover {
    color: white;
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.footer strong {
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .engagements-grid,
    .quartiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0.2rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Hero mobile : photo toujours visible a gauche */
    .hero {
        min-height: 70vh;
    }

    .hero-photo {
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 2;
    }

    .hero-photo img {
        height: 55vh;
        width: auto;
        margin: 0;
    }

    .hero-content {
        min-height: 70vh;
        padding: 1.5rem 1.5rem 1.5rem calc(28vw + 0.5rem);
        align-items: flex-end;
        text-align: right;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-date {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        max-width: 100%;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        justify-content: flex-end;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    /* Grids */
    .engagements-grid,
    .quartiers-grid {
        grid-template-columns: 1fr;
    }

    .programme-engagement h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-photo img {
        height: 45vh;
    }

    .hero-content {
        padding: 1rem 1rem 1rem calc(30vw + 0.5rem);
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-date {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.78rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-end;
    }

    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        text-align: center;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
