:root {
            --primary: #1e3a8a;    /* Bleu institutionnel profond */
			--primary2: #f01515;   /* Rouge institutionnel profond */
            --secondary: #0d9488;  /* Vert canard / Transparence */
            --dark: #1f2937;       /* Gris anthracite pour le texte principal */
            --light: #f9fafb;      /* Fond clair */
            --border: #e5e7eb;     /* Bordures légères */
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            line-height: 1.6;
            color: var(--dark);
            background-color: var(--light);
            margin: 0;
            padding: 0;
        }

        /* En-tête du site */
        header {
            background-color: #ffffff;
            border-bottom: 2px solid var(--primary);
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .logo h1 {
            margin: 0;
            font-size: 1.8rem;
            color: #1e3884;
            font-weight: 800;
        }
        .logo span {
            color: #0b8a7f;
        }
		
		/* Alignement du blason et des titres */
        .logo {
            display: flex;
            align-items: center;
            gap: 1rem; /* Espace entre le blason et le texte */
        }
        
        .logo-img {
            height: 55px; /* Hauteur parfaite pour ne pas déformer le header */
            width: auto;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
        }

        /* --- BLOC NAVIGATION UNIFIÉ & ANIMÉ --- */
        nav a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            margin-left: 1.5rem;
            transition: color 0.2s ease;
        }
        
        nav a:hover, nav a.active {
            color: var(--secondary);
        }
        
        nav a.btn-member {
            background-color: var(--primary);
            color: #ffffff;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            transition: all 0.3s ease; /* Transition fluide pour le bouton */
        }
        
        nav a.btn-member:hover {
            background-color: #1d4ed8;
            transform: translateY(-1px); /* Léger effet de soulèvement */
        }

        /* Style pour le bouton d'adhésion dans la sidebar */
        .sidebar-section a.btn-action {
            transition: all 0.3s ease;
            display: block; 
            text-align: center; 
            background: var(--secondary); 
            color: #fff; 
            text-decoration: none; 
            padding: 0.5rem; 
            border-radius: 4px; 
            font-weight: 600; 
            margin-top: 1rem;
        }

        .sidebar-section a.btn-action:hover {
            background-color: #0f766e !important; /* Vert plus soutenu au survol */
            transform: translateY(-1px);
        }

        /* Zone de manifeste principale avec filigrane */
        .hero {
            background: 
                linear-gradient(
                    rgba(30, 58, 138, 0.30), /* Ton bleu principal avec 85% d'opacité */
                    rgba(30, 58, 138, 0.50)  /* Un bleu légèrement plus sombre en bas */
                ),
                url('saone-glanon.jpg') no-repeat center center;
            background-size: cover; /* Adapte la photo à toutes les tailles d'écran */
            background-attachment: fixed; /* Optionnel : effet parallaxe léger au défilement */
            color: #ffffff;
            padding: 5rem 2rem; /* Légèrement plus haut pour apprécier le paysage */
            text-align: center;
        }
        .hero h2 {
            font-size: 2.3rem;
            margin-top: 0;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Donne du relief au titre */
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 1.5rem auto 0 auto;
            color: #f3f4f6;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Sécurise la lecture du sous-titre */
        }

        /* Conteneur principal */
        .container {
            max-width: 1100px;
            margin: 3rem auto;
            padding: 0 1.5rem;
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2.5rem;
        }

    /* Fil d'actualités / Le vrai du faux */
        .feed-title {
            font-size: 1.5rem;
            border-bottom: 2px solid var(--border);
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }

        .card {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        }
        .card .meta {
            font-size: 0.85rem;
            color: var(--secondary);
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
        }
        .card h3 {
            margin: 0 0 1rem 0;
            font-size: 1.4rem;
            color: var(--primary);
        }
        .card p {
            margin: 0 0 1rem 0;
            color: #4b5563;
        }
        .card .btn-read {
            display: inline-block;
            color: var(--secondary);
            text-decoration: none;
            font-weight: 600;
        }
        .card .btn-read:hover {
            text-decoration: underline;
        }

        /* Barre latérale (Sidebar) */
        .sidebar-section {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        .sidebar-section h4 {
            margin: 0 0 1rem 0;
            color: var(--primary);
            font-size: 1.1rem;
            border-bottom: 1px solid var(--border);
            padding-bottom: 0.5rem;
        }
        .sidebar-section ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .sidebar-section li {
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
        }
        .sidebar-section li a {
            color: var(--dark);
            text-decoration: none;
        }
        .sidebar-section li a:hover {
            color: var(--secondary);
        }

        /* Styles spécifiques au Formulaire de Contact */
        .contact-form .form-group {
            margin-bottom: 0.8rem;
        }
        .contact-form label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 0.2rem;
        }
        .contact-form input, 
        .contact-form textarea {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-family: inherit;
            font-size: 0.9rem;
            box-sizing: border-box;
        }
        .contact-form input:focus, 
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--secondary);
        }
        .contact-form button {
            width: 100%;
            background-color: var(--primary);
            color: #ffffff;
            border: none;
            padding: 0.6rem;
            border-radius: 4px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .contact-form button:hover {
            background-color: #1d4ed8;
        }
        .alert {
            padding: 0.6rem;
            border-radius: 4px;
            font-size: 0.85rem;
            margin-bottom: 1rem;
        }
        .alert-success { background-color: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
        .alert-error { background-color: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

        footer {
            text-align: center;
            padding: 2rem;
            background: #1f2937;
            color: #9ca3af;
            font-size: 0.9rem;
            margin-top: 5rem;
        }

        /* Style de base pour les liens-icônes */
        .link-icon {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            margin: 0.5rem 0;
            border-radius: 4px;
            font-weight: bold;
            text-decoration: none;
            transition: background 0.2s ease;
        }

        /* Style spécifique pour les articles de presse */
        .press-icon {
            background-color: #f3f4f6;
            color: #b91c1c; /* Rouge presse */
            border: 1px solid #fecaca;
        }
        .press-icon:hover {
            background-color: #fef2f2;
        }

        /* Style spécifique pour la cartographie / Géoportail */
        .map-icon {
            background-color: #f3f4f6;
            color: #0d9488; /* Vert canard, raccord avec ta charte */
            border: 1px solid #ccfbf1;
        }
        .map-icon:hover {
            background-color: #f0fdfa;
        }
		
/* --- BOUTON BURGER (masqué par défaut sur PC) --- */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.burger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- MEDIA QUERY MOBILE --- */ 
@media (max-width: 768px) {
    header {   
        position: relative;    
        padding: 0.8rem 1rem; /* Padding réduit pour gagner de la hauteur */        display: flex;
        display: flex; 
        align-items: center;
        justify-content: space-between; /* Calfeutre le logo à gauche et le burger à droite */    /* Transformation du nav en menu déroulant mobile */
    }   
	
	.logo {
	        gap: 0.5rem; /* Réduction de l'espace entre le blason et le texte */
	        max-width: calc(100% - 40px); /* Laisse au moins 40px de place au burger à droite */
	    }
	.logo-img {
	        height: 40px; /* Légère réduction du blason sur mobile (au lieu de 55px) */
	    }
	.logo h1 {
	        font-size: 1.15rem; /* Ajustement de la taille du titre (au lieu de 1.8rem) */
            line-height: 1.2;
	    }
	.logo-text small {	
	        font-size: 0.7rem; /* Sous-titre plus discret sur mobile */
	        display: block;	
	        white-space: nowrap;	
	        overflow: hidden;	
	        text-overflow: ellipsis; /* Empêche tout retour à la ligne disgracieux */	
	    }

	/* Affichage du bouton burger */
        .burger-btn {
            display: flex;
            flex-shrink: 0; /* Impératif : empêche le burger de s'écraser */
	    }	
		
		nav {
        display: none; /* Masqué par défaut sur mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 2px solid var(--primary);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 9;
    }

    /* Classe activée via JS au clic sur le burger */
    nav.active {
        display: flex;
    }

    nav a {
        margin: 0.5rem 0;
        padding: 0.75rem 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a.btn-member {
        margin: 0.5rem 1.5rem;
    }

    /* Animation optionnelle des barres du burger au clic */
    .burger-btn.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
		
		 /* Style spécifique pour la page association */
		  .box-presentation {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        }

        .team-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .team-card {
            background: var(--light);
            border-left: 4px solid var(--secondary);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
        }

        .team-card h4 { margin: 0; color: var(--primary); font-size: 1.1rem; }
        .team-card p { margin: 0.2rem 0 0 0; font-size: 0.9rem; color: #6b7280; }

        .btn-download {
            display: inline-block;
            background-color: var(--primary);
            color: white;
            text-decoration: none;
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            font-weight: bold;
            margin-top: 1rem;
            transition: background 0.2s;
        }
        .btn-download:hover { background-color: #1d4ed8; }
		
		/* Défilement fluide lors du clic sur un lien ancre (#) */
html {
    scroll-behavior: smooth;
}

/* Boutons Raccourcis Mobile (masqués sur PC par défaut) */
.mobile-quick-links {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem auto 0 auto;
    padding: 0 1rem;
    max-width: 1100px;
}

.btn-quick {
    background-color: #ffffff;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.btn-quick:hover, .btn-quick:active {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-quick2 {
    background-color: #ffffff;
    color: var(--primary2);
    border: 1px solid var(--primary2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.btn-quick2:hover, .btn-quick:active {
    background-color: var(--primary);
    color: #ffffff;
}

/* --- ADAPTATION DANS LA MEDIA QUERY MOBILE --- */
@media (max-width: 768px) {
    
    /* Affichage de la barre de raccourcis uniquement sur mobile */
    .mobile-quick-links {
        display: flex;
        flex-wrap: wrap;
    }

    /* Empilement des colonnes : d'abord l'actualité puis la sidebar */
    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem auto;
    }

    /* Marge d'arrêt dynamique pour les ancres afin que le header fixe ne cache pas le titre */
    .sidebar-section {
        scroll-margin-top: 2rem;
    }
}
/* Style des images d'illustration dans les articles */
.card-img-container {
    width: 100%;
    max-height: 380px; /* Limite stricte de la hauteur pour ne pas envahir l'écran */
    background-color: #f8fafc; /* Fond gris/bleu très doux pour combler les côtés si besoin */
    border-radius: 6px;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-img {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain; /* L'image entière reste visible sans aucun rognage */
    display: block;
}

/* --- BADGES ET DOSSIERS --- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-secondary { background-color: #e5e7eb; color: #374151; }

/* Style de la carte clôturée */
.card-cloture {
    background-color: #f3f4f6;
    border-left: 4px solid #9ca3af;
    opacity: 0.9;
}
/* --- Correctif global d'ajustement mobile (Header, Main, Footer) --- */
html, body {
    overflow-x: hidden; /* Empêche tout dépassement horizontal intempestif */
    max-width: 100%;
}

* {
    box-sizing: border-box; /* Garantit que les marges et paddings ne cassent pas les largeurs */
}

/* S'assure que les conteneurs et les boîtes de texte restent bien dans l'écran du smartphone */
.container, header, footer, .box-presentation, .hero {
    width: 100%;
    box-sizing: border-box;
}

/* Évite que les longs titres ou textes dans les dossiers ne forcent le zoom sur mobile */
.box-presentation h1, .box-presentation h2, .box-presentation h3, .dossier-content {
    word-break: break-word;
    overflow-wrap: break-word;
}