/* =========================================
           VARIABLES & RESET
           ========================================= */
        :root {
            --color-main: #006A77;
            --color-accent: #E96557;
            --color-text: #2F2F2F;
            --color-bg: #FFFFFF;
            --font-main: 'Montserrat', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Compense exactement la hauteur du header desktop */
}


        body {
            font-family: var(--font-main);
            color: var(--color-text);
            background-color: var(--color-bg);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        /* Hiérarchie typographique institutionnelle */
        h1, h2, h3 {
            font-weight: 700;
            color: var(--color-main);
        }

        h1 { 
            font-size: 2.8rem; 
            font-weight: 600;
            color: #FFFFFF; 
            margin-bottom: 2rem;
            line-height: 1.3;
            letter-spacing: 0.5px;
        }
        
        h2 { 
            font-size: 2.2rem; 
            text-align: center; 
            margin-bottom: 3rem; /* Espace géré une seule fois depuis le titre */
        }
        
        h3 { 
            font-size: 1.4rem; 
            margin-bottom: 1rem; 
        }
        
        p { 
            margin-bottom: 1rem; 
            font-weight: 400; 
            font-size: 1.05rem;
        }

        /* Règle UX anti-cumul : Le dernier paragraphe d'un conteneur ne pousse pas le padding parent */
        p:last-child {
            margin-bottom: 0;
        }

        /* Espaces blancs généreux pour faire "respirer" le site */
        section {
            padding: 80px 20px;
            max-width: 1000px;
            margin: 0 auto;
        }

        /* Solution anti-cumul entre deux sections sur fond blanc */
        #mission {
            padding-bottom: 0; 
        }

        /* =========================================
           BOUTONS (Forme pilule, H: 48px)
           ========================================= */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 48px;
            padding: 0 32px;
            border-radius: 24px;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .btn:hover {
            transform: translateY(-2px);
            opacity: 0.9;
        }

        .btn-primary {
            background-color: var(--color-accent);
            color: #FFFFFF;
            border: none;
        }

        .btn-secondary {
            background-color: #FFFFFF;
            color: var(--color-main);
            border: 2px solid var(--color-main);
        }

        .btn-nav {
            background-color: var(--color-accent);
            color: #FFFFFF !important;
            padding: 10px 24px;
            border-radius: 24px;
            font-weight: 600;
            transition: opacity 0.2s ease;
        }

        .btn-nav:hover {
            opacity: 0.9;
        }

        /* =========================================
           HEADER
           ========================================= */
        header {
            background-color: var(--color-bg);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 1px 3px rgba(0,0,0,0.03);
            width: 100%;
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
            height: 90px;
            width: 100%;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .logo-container img {
            height: 65px;
            width: auto;
        }

        .logo-container span {
            font-weight: 700;
            color: var(--color-main);
            font-size: 1.3rem;
            letter-spacing: 0.8px;
        }

        nav {
            transform: translateX(50px);
        }

        nav ul {
            display: flex;
            gap: 32px;
            align-items: center;
        }

        nav a {
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--color-text);
            transition: color 0.2s;
        }

        nav a:not(.btn-nav):hover {
            color: var(--color-main);
        }

        /* =========================================
           HERO
           ========================================= */
        .hero {
            max-width: 100%;
            height: 80vh;
            min-height: 600px;
            background-color: var(--color-main);
            background-image: url('images/hero.jpg');
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 0 20px;
            position: relative;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 40, 45, 0.3);
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
        }

      .hero-slogan {
    font-family: "Caveat", cursive;
    font-size: 3.3rem;
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7);

    line-height: 1.3;
    letter-spacing: 0.5px;

    text-align: left;

    max-width: 650px;

    margin-bottom: 2rem;

    margin-left: -160px;
	transform: rotate(-2deg);
}
/* Nouvelles lignes à ajouter ici : */
h1.hero-slogan {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}
        .hero-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* =========================================
           SECTIONS (Mission, Engagements)
           ========================================= */
        .mission {
            text-align: center;
        }
        
        /* Hiérarchie Titre > Sous-titre > Contenu */
        .mission h2 {
            margin-bottom: 0.5rem; /* Rapproche le H2 de son introduction (H3) */
        }
        .mission h3 {
            margin-bottom: 2.5rem; /* C'est le H3 qui repousse les paragraphes */
        }

        /* Justification des paragraphes descriptifs de la mission */
        .mission p {
            text-align: justify;
            text-align-last: left;
        }

       /* Alignement à gauche pour les 3 engagements (les 3 derniers paragraphes) */
        .mission p:nth-last-of-type(-n+3) {
            text-align: left;
            text-align-last: left;
            margin-left: 80px; /* Décalage accordé pour l'excellente déduction */
        }

        .engagements-list {
            display: flex;
            flex-direction: column;
            gap: 60px;
            margin-top: 0; /* Anti-cumul : l'espace est déjà géré par le margin-bottom de h2 */
        }

      .engagement-item {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Alignement à gauche du texte pour les détails des engagements */
        .engagement-item p {
            text-align: left;
            width: 100%;
        }

        /* Images des engagements */
        .engagement-image {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            border-radius: 16px;
            margin-bottom: 1.5rem;
            display: block;
        }

        /* =========================================
           CHIFFRES CLÉS (Format Cartes 2x2)
           ========================================= */
        .chiffres-section {
            background-color: #FAFAFB;
            text-align: center;
            max-width: 100%;
            padding-top: 80px;
            padding-bottom: 80px;
            padding-left: 20px;
            padding-right: 20px;
        }
        
        .chiffres-container {
            max-width: 900px;
            margin: 0 auto;
        }

        .chiffres-section h2 {
            margin-bottom: 0.5rem; /* Rapproche le titre de l'intro */
        }

        .chiffres-intro {
            text-align: center;
            font-size: 1.05rem;
            color: var(--color-text);
            opacity: 0.8;
            font-weight: 400;
            max-width: 600px;
            margin: 0 auto 3rem auto; /* Gère l'espace unique avant la grille */
        }

        .chiffres-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px; /* Unifie les espacements internes */
        }

        .chiffre-card {
            background-color: #FFFFFF;
            border-radius: 16px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
            padding: 40px 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .chiffre-image-placeholder {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .chiffre-image-placeholder img {
            max-width: 80px;
            height: auto;
            border-radius: 50%;
            display: none;
        }

        .chiffre-valeur-container {
            display: flex;
            align-items: baseline;
            color: var(--color-main);
            margin-bottom: 0.5rem;
        }

        .chiffre-valeur {
            font-size: 3.2rem;
            font-weight: 700;
            line-height: 1;
        }

        .chiffre-unite {
            font-size: 1.5rem;
            font-weight: 600;
            margin-left: 6px;
        }

        .chiffre-texte {
            font-size: 1.05rem;
            font-weight: 500;
            color: var(--color-text);
            line-height: 1.4;
        }

        @media (min-width: 650px) {
            .chiffres-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 32px;
            }
        }

        /* =========================================
           HELLOASSO & FOOTER
           ========================================= */
        .helloasso-section {
            text-align: center;
            padding-bottom: 80px;
        }
        
        .helloasso-section h2 {
            margin-bottom: 1rem;
        }

        footer {
            background-color: var(--color-main);
            color: #FFFFFF;
            padding: 60px 20px 40px;
            text-align: center;
        }

        footer ul {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 2rem;
        }

        footer a {
            font-size: 0.95rem;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        footer a:hover {
            opacity: 1;
            text-decoration: underline;
        }

       .footer-copyright {
            font-size: 0.85rem;
            opacity: 0.5;
            margin-top: 2rem;
        }

        /* =========================================
           FORMULAIRE DE CONTACT
           ========================================= */
       .contact-section {
            background-color: var(--color-bg);
            text-align: center;
        }

        .contact-container {
            max-width: 700px;
            margin: 0 auto;
            text-align: left;
            background-color: var(--color-bg);
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05); /* Ombre plus courte et élégante */
        }

        .contact-container h2 {
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .contact-intro {
            text-align: center;
            font-size: 1.05rem;
            color: var(--color-text);
            opacity: 0.8;
            margin-bottom: 2.5rem;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .form-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--color-main);
        }

        .form-group input,
        .form-group textarea {
            font-family: var(--font-main);
            font-size: 1rem;
            color: var(--color-text);
            padding: 12px 16px;
            border: 1px solid #EBEBEB; /* Contour plus discret */
            border-radius: 8px;
            background-color: #FFFFFF;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            width: 100%;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

       .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-main);
            box-shadow: 0 0 0 3px rgba(0, 106, 119, 0.1);
        }

        /* Styles des placeholders (exemples de saisie) */
        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #A0A0A0;
            font-style: italic;
            font-size: 0.95em;
            font-weight: 400;
        }

        /* Classe pour la mention Champs obligatoires */
        .mandatory-notice {
            font-size: 0.85rem;
            color: #888888;
            text-align: left;
            margin-top: -5px;
            margin-bottom: 10px;
        }

      .btn-submit {
            margin-top: 10px;
            align-self: center;
            width: 100%;
            max-width: 300px;
        }

        /* =========================================
           ÉTATS DU FORMULAIRE (Gérés par JS)
           ========================================= */
        
        /* Bouton en cours de soumission */
        .btn-submit.is-loading {
            opacity: 0.7;
            cursor: wait;
        }

        /* Conteneur des messages d'erreur */
        .form-status {
            font-size: 0.95rem;
            font-weight: 500;
            text-align: center;
            margin: 0;
            transition: all 0.3s ease;
        }

        /* Affichage de l'erreur */
        .form-status.is-error {
            color: var(--color-accent);
            background-color: rgba(233, 101, 87, 0.05); /* Fond très léger basé sur la couleur d'accent */
            padding: 12px;
            border-radius: 8px;
            margin: 15px 0 5px 0;
        }

        /* Vue de confirmation (Succès) */
        .form-success-view {
            text-align: center;
            padding: 40px 20px; /* Respiration ajustée */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.4s ease-out forwards;
        }

        /* Conteneur pour le titre et l'icône sur la même ligne */
        .success-title-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 1.5rem;
        }

        /* Titre de succès */
        .success-title {
            margin-bottom: 0 !important; /* Force l'annulation de la marge des H2 standards */
            text-align: left;
        }

        /* Icône de validation (SVG) */
        .success-icon {
            width: 36px;
            height: 36px;
            color: #4CAF50; /* Coche verte vive et visible */
            flex-shrink: 0;
        }

        /* Message de confirmation centré */
        .success-message {
            text-align: center;
            font-size: 1.05rem;
            color: var(--color-text);
            margin-bottom: 2.5rem;
            line-height: 1.6;
        }

        /* Bouton de retour à l'accueil */
        .btn-home {
            margin-top: 0;
        }

        /* Petite animation d'apparition pour la douceur */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive Formulaire */
        @media (max-width: 650px) {
            .contact-container {
                padding: 30px 20px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }
            
            .btn-submit {
                max-width: 100%;
            }
        }

/* =========================================
   PAGES LÉGALES
   ========================================= */

.publication-legale section {
    padding: 0;
}

.publication-legale h1 {
    color: var(--color-main);
    font-size: 2.3rem;
    text-align: left;
    margin-bottom: 2rem;
}

.publication-legale h2 {
    font-size: 1.4rem;
    text-align: left;
    margin: 2.5rem 0 1rem;
}

.publication-legale p {
    text-align: justify;
    margin-bottom: 1rem;
}

.publication-legale .content {
    max-width: 900px;
    margin: 0 auto;
}
.publication-legale main {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}
.publication-legale .publication-contenu {
    max-width: 850px;
    margin: 0 auto;
}

.publication-legale strong {
    color: var(--color-main);
}

.publication-legale a {
    color: var(--color-main);
    font-weight: 600;
}

.publication-legale a:hover {
    text-decoration: underline;
}

.chiffre-source {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #777;
    font-style: italic;
}
        /* =========================================
           RESPONSIVE (Mobile First vers Desktop)
           ========================================= */
       @media (max-width: 900px) {
            h1 {
                font-size: 2rem;
            }

            .hero {
                min-height: 450px;
                background-position: 75% center;
            }

            .hero-slogan {
                margin-left: 0;
                transform: none;
            }

            .header-inner {
                height: auto;
                flex-direction: column;
                padding: 10px 15px; /* Réduction des marges globales */
                gap: 10px; /* Réduction de l'espace entre le logo et le menu */
            }

            .logo-container img {
                height: 45px; /* Réduction de l'image du logo */
            }

            .logo-container span {
                font-size: 1.1rem; /* Ajustement du texte du logo */
            }

            nav {
                transform: none;
            }

            nav ul {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px 15px; /* Rapprochement des liens pour assurer 2 lignes max */
            }

            nav a {
                font-size: 0.85rem; /* Réduction de la taille de texte des liens */
            }

            .btn-nav {
                padding: 8px 16px; /* Réduction de l'encombrement du bouton d'appel à l'action */
            }
            
            .engagements-list {
                gap: 40px;
            }
		html {
   		 scroll-padding-top: 70px;
		}
        }

        @media (min-width: 901px) {
            footer ul {
                flex-direction: row;
                justify-content: center;
                gap: 60px;
            }
        }