/* Palette de couleurs Eco-Rating */
:root {
    --color-primary: #275F3E; /* Vert Profond */
    --color-primary-dark: #122F0B; /* Vert Forêt */
    --color-secondary: #44785B; /* Vert Moyen */
    --color-accent: #6F9D87; /* Vert Céladon */
    --color-light-bg: #B5CABA; /* Vert Pâle */
    --color-text: #333;
    --color-white: #fff;
}

/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-light-bg);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* En-tête */
header {
    background-color: var(--color-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-accent);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
}

.search-bar {
    display: flex;
}

.search-bar input {
    padding: 8px;
    border: 1px solid var(--color-accent);
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 8px 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Navigation principale - CORRIGÉE POUR L'ALIGNEMENT VERTICAL */
nav.main-nav {
    background-color: var(--color-primary);
    padding: 5px 0; /* Ajout d'un léger padding pour l'équilibre */
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center; /* ALIGNE TOUS LES LIENS VERTICALEMENT AU CENTRE */
    flex-wrap: wrap; /* Permet au menu de passer à la ligne sur petit écran */
}

.main-nav li {
    position: relative;
    display: flex;
    align-items: center; /* Assure que le contenu du li est centré */
}

.main-nav a {
    display: inline-block;
    padding: 15px 20px;
    color: var(--color-white);
    font-weight: bold;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: var(--color-secondary);
}

/* Style spécifique du bouton Rating dans le menu */
.btn-nav {
    background-color: var(--color-secondary) !important;
    color: white !important;
    padding: 8px 20px !important; /* Padding ajusté pour la capsule */
    border-radius: 25px !important;
    margin: 0 10px; /* Espace autour du bouton */
    transition: transform 0.2s, background-color 0.3s !important;
}

.btn-nav:hover {
    background-color: var(--color-primary-dark) !important;
    transform: scale(1.05); /* Effet de zoom léger au survol */
}

/* Contenu principal */
main {
    padding: 40px 0;
    min-height: 500px;
}

.page-title {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.content-section {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.content-section h2 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 15px;
}

/* Pied de page */
footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding-right: 20px;
}

.footer-column h3 {
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: 18px;
}

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

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--color-light-bg);
}

.footer-column a:hover {
    text-decoration: underline;
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-secondary);
    font-size: 14px;
}

/* Styles spécifiques à l'accueil */
.home-hero {
    background-color: var(--color-accent);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-primary-dark);
}

.home-hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

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

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--color-light-bg);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Styles responsives */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-bar {
        margin-top: 15px;
        width: 100%;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-nav {
        margin: 10px 20px !important;
    }
}

/* Le conteneur qui gère l'alignement */
.team-grid {
    display: grid;
    /* Crée 4 colonnes égales */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Espace entre les cartes */
    margin-top: 30px;
}

/* Style de chaque carte */
.team-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style des photos circulaires */
.team-photo {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Cercle parfait */
    object-fit: cover; /* Pas de déformation */
    border: 3px solid var(--color-primary); /* Optionnel : un petit bord vert */
}

.team-name {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--color-primary-dark);
}

.team-role {
    font-size: 0.85em;
    color: var(--color-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: bold;
}

.team-bio {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

/* Adaptation pour les tablettes et mobiles */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); } /* 2 par ligne */
}

@media (max-width: 600px) {
    .team-grid { grid-template-columns: 1fr; } /* 1 par ligne sur téléphone */
}
/* --- MODULE SOUTIEN RÉUTILISABLE (ECO-RATING.NET) --- */
.shared-support-section {
    background-color: #1a3320; /* Vert très sombre pour le contraste */
    padding: 60px 0;
    width: 100%;
    margin-top: 40px;
}

.support-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.support-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #4a7c59;
    padding: 40px;
    border-radius: 8px;
    color: white;
}

.support-box h2 {
    color: #8fb996 !important;
    margin-bottom: 20px;
}

.support-box p {
    color: #e9ecef;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Bouton aligné sur le style du site */
.btn-support {
    display: inline-block;
    padding: 12px 30px;
    background-color: #8fb996;
    color: #1a3320 !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-support:hover {
    background-color: #a8d5b5;
    transform: translateY(-2px);
}
.video-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* On réduit la hauteur forcée pour éviter l'effet "géant" */
    padding: 60px 0; 
    width: 100%;
    margin-bottom: 40px;
}

.hero-video {
    /* On utilise max-width pour qu'elle ne dépasse jamais une taille raisonnable */
    width: 90%; 
    max-width: 900px; /* Ajuste cette valeur (ex: 800px ou 1000px) selon tes autres cadres */
    overflow: hidden;
    border-radius: 12px; /* Coins un peu plus arrondis pour le style */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Adaptation pour mobile : sur petit écran, on repasse à 90% ou 100% */
@media (max-width: 768px) {
    .hero-video {
        width: 95%;
        margin-bottom: 25px; /* Espace un peu plus petit sur mobile */
    }
}
.contribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: -50px;
}