/* Styles de base pour La Montbrunelle */

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header avec image de fond */
.hero-header {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 4rem;
}

.hero-logo {
    max-width: 440px;
    max-height: 440px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* .hero-title supprimé car doublon avec le logo */

.hero-subtitle {
    font-size: 1.7rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: bold;
    color: #eaae29;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 5rem; /* Ajusté pour éviter le footer fixe (4rem) + marge */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 1200px; /* Correspond au container */
}

.scroll-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.scroll-chevron {
    font-size: 2rem;
    color: #eaae29;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: chevronBounce 2s infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-chevron.left {
    animation-delay: 0s;
}

.scroll-chevron.right {
    animation-delay: 0.5s;
}

/* Effets de hover */
.scroll-indicator:hover .scroll-chevron {
    transform: scale(1.1);
    color: #fff;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes chevronBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
    60% {
        transform: translateY(-4px);
        opacity: 0.9;
    }
}

/* Overlay sombre sur l'image */
.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.4) 0%, rgba(26, 61, 31, 0.6) 100%);
    z-index: 2;
}

/* Bandeau public — ne pas cibler les <header> sémantiques (articles, admin, etc.) */
body:not(.admin-area):not(.admin-login) .hero-header {
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

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

.site-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: #eaae29;
}

.nav-menu li.active a {
    color: #eaae29;
}

.nav-menu li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #eaae29;
}

/* Navigation fixe */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(44, 85, 48, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(-100%);
}

.main-nav.nav-visible {
    transform: translateY(0);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 20px;
}

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

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

.nav-title {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #eaae29;
}

/* Styles pour la navigation fixe (main-nav) */
.main-nav .nav-menu li.active a {
    color: #eaae29;
}

.main-nav .nav-menu li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #eaae29;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Zone administration (structure — couleurs dans admin-colors.css) --- */
body.admin-area .main-nav.admin-nav {
    transform: translateY(0);
}

body.admin-area .admin-main {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 5.5rem);
}

body.admin-area .admin-main h1 {
    margin-bottom: 1.25rem;
}

body.admin-area .admin-footer .footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
}

body.admin-area .admin-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

body.admin-area .admin-footer .footer-links a {
    text-decoration: none;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    body.admin-area .admin-footer .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    body.admin-area .admin-footer .footer-links {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    body.admin-area .admin-nav .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
}

/* Variables CSS pour le footer */
:root {
    --footer-height: 0px;
    --footer-padding: 5rem;
}

/* Main content */
main {
    padding: 2rem 0 4rem 0; /* Padding-bottom pour le footer-bottom fixe */
    margin-top: 0; /* Pas de marge car la navigation est fixe */
    min-height: calc(100vh - 4rem); /* Assure une hauteur minimale */
}

/* Pages avec navigation fixe (toutes sauf l'accueil) */
body:not(.home-page) main {
    padding-top: 5rem; /* Compensation pour la navigation fixe */
}

/* Classe pour les pages avec contenu long */
main.content-long {
    padding-bottom: 7rem; /* Padding supplémentaire pour les pages longues */
}

/* Amélioration du scroll pour les pages longues */
main.content-long {
    scroll-behavior: smooth;
}

/* Assurer que le contenu est bien visible au scroll */
main.content-long .container {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background-color: #2c5530;
    color: white;
    z-index: 999;
}

/* Footer content - apparaît en fin de page */
.footer-content {
    padding: 2rem 0 6rem 0; /* Padding-bottom augmenté pour éviter la superposition */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 0;
}

/* Footer bottom - barre fixe en bas */
.footer-bottom {
    background-color: #1e3a22;
    padding: 0.85rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.footer-bottom-inner,
.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}

.footer-bottom .footer-copyright,
.footer-bottom p {
    margin: 0;
    flex: 0 1 auto;
    max-width: 100%;
}

.footer-bottom .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1rem;
    max-width: 100%;
}

.footer-bottom .footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: normal;
    transition: color 0.3s;
}

.footer-bottom .footer-links a:hover {
    color: #eaae29;
}

@media (min-width: 768px) {
    .footer-bottom-inner,
    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .footer-bottom .footer-links {
        justify-content: flex-end;
        flex: 0 1 auto;
        min-width: 0;
    }
}

/* Liens vers la page contact dans le contenu - jaune, gras, souligné */
main a[href*="contact/"],
.footer-content a[href*="contact/"],
.contact-bureau a[href*="contact/"] {
    color: #eaae29 !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

/* Suppression des styles spéciaux pour le lien contact dans la navigation */
/* Le lien contact aura maintenant la même apparence que les autres liens */

/* État hover pour les liens contact dans le contenu */
main a[href*="contact/"]:hover,
.footer-content a[href*="contact/"]:hover,
.contact-bureau a[href*="contact/"]:hover {
    color: #d19b1f !important; /* Version plus foncée pour le hover */
    text-decoration: underline !important;
}

/* Section contact bureau - style spécifique */
.contact-bureau {
    background-color: #eaad2923;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #eaae29;
    margin-top: 2rem;
}

.contact-bureau h3 {
    color: #eaae29;
    margin-bottom: 1rem;
}

.contact-bureau p {
    margin-bottom: 0;
}

.contact-bureau a {
    color: #eaae29;
    text-decoration: none;
    font-weight: 500;
}

.contact-bureau a:hover {
    text-decoration: underline;
}

/* Tarif d'adhésion */
.membership-pricing {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2c5530;
    margin: 2rem 0;
    text-align: center;
}

.membership-pricing h3 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.membership-pricing .price {
    font-size: 2rem;
    font-weight: bold;
    color: #eaae29;
    margin: 0;
}

.membership-pricing .fiscal-period {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Suppression de cette règle car elle est maintenant définie plus haut */

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-list i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.contact-list a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #a8d5aa;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #a8d5aa;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* (styles footer-bottom consolidés plus haut) */

/* Icônes pour les contacts */
.icon-email::before { content: "✉"; }
.icon-phone::before { content: "📞"; }
.icon-location::before { content: "📍"; }
.icon-facebook::before { content: "f"; font-weight: bold; }
.icon-instagram::before { content: "📷"; }
.icon-youtube::before { content: "▶"; }
.icon-whatsapp::before { content: "📱"; }

/* Formulaires */
.form-group {
    margin-bottom: 1rem;
}

/* Page de connexion admin (couleurs dans admin-colors.css) */
body.admin-login {
    min-height: 100vh;
}

body.admin-login .login-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.login-form form {
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Styles pour les tags */
.tags-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.tag-checkbox input[type="checkbox"] {
    display: none;
}

.tag-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tag-checkbox input[type="checkbox"]:checked + .tag-label {
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tag-checkbox input[type="checkbox"]:not(:checked) + .tag-label {
    opacity: 0.6;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: white;
    background-color: #007bff;
}

.no-tags {
    color: #999;
    font-style: italic;
    font-size: 0.875rem;
}

/* Styles pour les images */
.images-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.image-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    transition: border-color 0.3s;
}

.image-checkbox:hover {
    border-color: #007bff;
}

.image-checkbox input[type="checkbox"] {
    margin-bottom: 8px;
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.image-preview img {
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.image-name {
    font-size: 0.8em;
    color: #666;
    word-break: break-word;
    max-width: 100px;
}

/* Styles pour les images dans les actualités */
.news-images {
    margin: 20px 0;
}

.news-image {
    margin-bottom: 15px;
    text-align: center;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-image-caption {
    margin-top: 8px;
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

/* Styles pour la gestion des images */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-card .image-preview {
    text-align: center;
    margin-bottom: 15px;
}

.image-card .image-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.image-info h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
}

.image-info p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.image-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8em;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.upload-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

#image-preview-container {
    margin-top: 20px;
}

#image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Styles pour les images actuelles */
.current-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.current-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.current-image img {
    border-radius: 5px;
    margin-bottom: 5px;
}

.current-image span {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    max-width: 100px;
    word-break: break-word;
}

/* Styles pour le drag and drop */
.drag-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 20px 0;
}

.drag-drop-zone.dragover {
    border-color: #007bff;
    background: #e3f2fd;
}

.drag-drop-zone:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.drag-drop-zone .icon {
    font-size: 3em;
    color: #ccc;
    margin-bottom: 10px;
}

.drag-drop-zone .text {
    color: #666;
    font-size: 1.1em;
}

.drag-drop-zone .small {
    color: #999;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Styles pour la prévisualisation des images uploadées */
.uploaded-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.uploaded-image {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.uploaded-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 8px;
}

.uploaded-image .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uploaded-image .remove-btn:hover {
    background: #c82333;
}

.uploaded-image .filename {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    word-break: break-word;
}

/* Styles pour l'affichage des images dans les actualités publiques */
.news-item-image {
    margin: 15px 0;
}

.news-thumbnail {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-thumbnail:hover {
    transform: scale(1.02);
}

.article-images {
    margin: 30px 0;
}

.article-image {
    margin-bottom: 20px;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive pour les images */
@media (max-width: 768px) {
    .news-thumbnail {
        height: 150px;
    }
    
    .images-selection {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .uploaded-images {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Styles pour la gestion des tags */
.tags-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tags-table th,
.tags-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tags-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.tag-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.section {
    margin-bottom: 2rem;
}

.section h2 {
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #2c5530;
    padding-bottom: 0.5rem;
}

/* Styles pour les filtres de tags */
.tags-filter {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.tags-filter h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    background-color: #6c757d;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.filter-tag.active {
    border-color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

.tag-count {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Styles pour les tags d'articles */
.article-tags {
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.article-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.article-tag:hover {
    opacity: 0.8;
    text-decoration: none;
    color: white;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-secondary {
    background-color: #545b62;
}

.btn-secondary:hover {
    background-color: #6c757d;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* .btn-primary : couleurs dans public_colors.css ou admin-colors.css */

/* Messages */
.message, .success, .error {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.stat-card h3 {
    margin-bottom: 0.5rem;
    color: #2c5530;
}

/* Actualités — accueil */
.news-list {
    display: grid;
    gap: 2rem;
}

.news-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.news-item h3 {
    margin-bottom: 0.5rem;
}

.news-item h3 a {
    color: #2c5530;
    text-decoration: none;
}

.news-item h3 a:hover {
    text-decoration: underline;
}

.news-date {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Actualités — liste et fiche publiques */
.news-page {
    padding-bottom: 3rem;
}

.news-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding: 0 0 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid #2c5530;
    color: inherit;
}

.news-page__heading h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.news-page__lede {
    margin: 0;
    max-width: 36rem;
    color: #5c5c5c;
    font-size: 1.05rem;
}

.news-page__section {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.news-rss {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.4rem 0.8rem;
    border: 1px solid #d9d3c6;
    border-radius: 999px;
    color: #5a5346;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-rss:hover {
    border-color: #2c5530;
    color: #2c5530;
    text-decoration: none;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.news-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid #d9d3c6;
    border-radius: 999px;
    background: #fff;
    color: #3d3d3d;
    text-decoration: none;
    font-size: 0.875rem;
}

.news-filter:hover {
    border-color: #2c5530;
    color: #2c5530;
    text-decoration: none;
}

.news-filter.is-active {
    background: #2c5530;
    border-color: #2c5530;
    color: #fff;
}

.news-filter__count {
    font-size: 0.75rem;
    opacity: 0.7;
}

.news-empty {
    color: #6c757d;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.news-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    background: #fff;
    border: 1px solid #e6e2d8;
    border-radius: 10px;
    overflow: hidden;
    min-height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.news-card:hover,
.news-card:focus-within {
    border-color: #2c5530;
    box-shadow: 0 6px 18px rgba(30, 58, 34, 0.12);
    transform: translateY(-2px);
}

.news-card__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.news-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #edf3ee;
    overflow: hidden;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9bb39e;
    font-size: 1.5rem;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0.9rem 0.95rem;
}

.news-card__date {
    color: #7a7468;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.news-card__title {
    margin: 0.25rem 0 0.45rem;
    font-size: 1.02rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #1e3a22;
}

.news-card__tags,
.news-article__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.55rem;
    padding: 0;
}

.news-card__tags {
    position: relative;
    z-index: 2;
}

.news-card__tags a,
.news-article__tags a {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: #f3efe4;
    color: #5a4e32;
    font-size: 0.72rem;
    text-decoration: none;
}

.news-card__tags a:hover,
.news-article__tags a:hover {
    background: #eaae29;
    color: #1e3a22;
    text-decoration: none;
}

.news-card__excerpt {
    margin: 0;
    color: #4a4a4a;
    font-size: 0.88rem;
    line-height: 1.45;
}

.news-article-page {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.news-back {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.5rem;
    color: #2c5530;
    text-decoration: none;
    font-weight: 600;
}

.news-back:hover {
    color: #1a3d1f;
    text-decoration: none;
}

.news-back__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid #cdd9ce;
    background: #f4f7f4;
    color: #2c5530;
}

.news-back:hover .news-back__icon {
    background: #2c5530;
    border-color: #2c5530;
    color: #fff;
}

.news-article__header {
    margin-bottom: 1.5rem;
}

.news-article__header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: left;
}

.news-article__date {
    color: #7a7468;
    font-size: 0.95rem;
}

.news-article__hero,
.news-article__figure {
    margin: 0 0 1.5rem;
}

.news-article__hero img,
.news-article__figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.news-article__hero figcaption,
.news-article__figure figcaption {
    margin-top: 0.5rem;
    color: #6b655a;
    font-size: 0.875rem;
}

.news-article__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2f2f2f;
}

.news-article__gallery {
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .news-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Adhésions */
.membership-info {
    max-width: 800px;
    margin: 0 auto;
}

.membership-stats {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.membership-stats .stat {
    text-align: center;
    padding: 1rem;
}

.membership-stats .stat h3 {
    font-size: 2rem;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.membership-benefits {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.membership-benefits ul {
    list-style-type: none;
    padding: 0;
}

.membership-benefits li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.membership-benefits li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

.membership-actions {
    text-align: center;
    margin: 2rem 0;
}

.membership-actions .btn {
    margin: 0 0.5rem;
}

/* Formulaires spécialisés */
.membership-form,
.payment-form {
    max-width: 600px;
    margin: 0 auto;
}

.payment-info {
    background-color: #e7f3ff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.payment-info ul {
    list-style-type: none;
    padding: 0;
}

.payment-info li {
    padding: 0.25rem 0;
}

.payment-methods {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Login */
.login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Actions */
.actions {
    margin-bottom: 2rem;
    text-align: right;
}

/* Actions du hero */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.feature h3 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.newsletter-signup {
    text-align: center;
    padding: 3rem 0;
    background-color: #e7f3ff;
    margin: 2rem -20px -2rem -20px;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 1rem auto;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
}

#newsletter-message {
    margin-top: 1rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    /* Header responsive */
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        padding: 1rem;
        display: block;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    /* Footer non fixe sur mobile */
    footer {
        position: static;
        margin-top: 2rem;
        padding: 1rem 0;
    }
    
    /* Main avec padding adaptatif sur mobile */
    main {
        padding: 2rem 0 2rem 0; /* Padding réduit sur mobile car footer non fixe */
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        position: static;
        margin-top: 1rem;
    }
    
    .footer-bottom-inner,
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .footer-bottom .footer-links {
        justify-content: center;
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* .hero-title supprimé car doublon avec le logo */
    
    .hero-subtitle {
        font-size: 1.5rem;
        font-weight: bold;
        color: #eaae29;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-logo {
        max-width: 280px;
        max-height: 280px;
    }
    
    /* Scroll indicator responsive */
    .scroll-indicator {
        bottom: 1rem;
        width: 100%;
    }
    
    .scroll-container {
        padding: 0 1rem;
    }
    
    .scroll-chevron {
        font-size: 1.5rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(44, 85, 48, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    body.admin-area .main-nav .nav-menu {
        background: rgba(21, 45, 77, 0.98);
    }
    
    .nav-menu li {
        padding: 0.5rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .membership-stats {
        flex-direction: column;
    }
    
    .membership-actions .btn {
        display: block;
        margin: 0.5rem 0;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input[type="email"] {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
}

/* Écrans de petite hauteur (moins de 780px) */
@media (max-height: 780px) {
    .hero-header {
        min-height: 100vh;
        padding: 2rem 0 1rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-logo {
        max-width: 220px;
        max-height: 220px;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .scroll-indicator {
        bottom: 0.5rem;
    }
}

/* Écrans très petits en hauteur (moins de 680px) - mobile uniquement */
@media (max-height: 680px) and (max-width: 768px) {
    .hero-header {
        min-height: 100vh;
        padding: 1rem 0 0.5rem 0;
    }
    
    .hero-content {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    .hero-logo {
        max-width: 180px;
        max-height: 180px;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        padding: 0 1rem;
    }
    
    .scroll-indicator {
        bottom: 0.25rem;
    }
}

/* Page de contact */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.contact-form, .verification-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-privacy-note {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #eaae29;
    box-shadow: 0 0 0 2px rgba(234, 174, 41, 0.2);
}

.captcha-group {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #eaae29;
}

.verification-info {
    background: #e7f3ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #007bff;
}

.success-message {
    text-align: center;
    padding: 3rem;
    background: #d4edda;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

.success-message h2 {
    color: #155724;
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #eee;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #eaae29;
}

.info-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@media (max-width: 768px) {
    .contact-form, .verification-form {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .success-message {
        padding: 2rem 1rem;
    }
}

/* Page Bureau */
.bureau-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.bureau-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bureau-photo {
    text-align: center;
    margin-bottom: 4rem;
}

.bureau-group-photo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
}

.photo-caption {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

.bureau-members {
    margin-bottom: 4rem;
}

.bureau-members h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c5530;
    font-size: 2rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.member-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #eaae29;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-info h3 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.member-role {
    color: #eaae29;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-description {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.bureau-info {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    border-left: 4px solid #2c5530;
}

.bureau-info h2 {
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.bureau-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.bureau-info ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.bureau-info li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

/* Suppression du doublon - les styles sont définis plus haut */

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .member-card {
        padding: 1.5rem;
    }
    
    .bureau-info {
        padding: 2rem 1.5rem;
    }
    
    .bureau-group-photo {
        border-radius: 8px;
    }
}

/* Pages légales */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h1 {
    color: #2c5530;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    color: #2c5530;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: #2c5530;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #6c757d;
}

.legal-footer em {
    font-style: italic;
}

/* Bandeau partenaires — pied de page public */
.partners-ticker {
    background: #1e3a22;
    color: #f4efe4;
    padding: 0.85rem 0 1rem;
    overflow: hidden;
}

.partners-ticker__label {
    margin: 0 0 0.55rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #eaae29;
}

.partners-ticker__viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.partners-ticker__track {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    width: max-content;
    margin: 0;
    padding: 0 1.5rem;
    list-style: none;
    animation: partners-scroll 42s linear infinite;
}

.partners-ticker:hover .partners-ticker__track {
    animation-play-state: paused;
}

.partners-ticker__item,
.partners-ticker__item a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

.partners-ticker__item a:hover .partners-ticker__name {
    color: #eaae29;
}

.partners-ticker__logo {
    height: 32px;
    width: auto;
    max-width: 88px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 2px 4px;
}

.partners-ticker__name {
    font-weight: 600;
    font-size: 0.92rem;
}

.partners-ticker__city {
    font-size: 0.8rem;
    opacity: 0.72;
}

@keyframes partners-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .partners-ticker__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        row-gap: 0.75rem;
    }
}
