/* ======================================= */
/* Fichier : assets/css/style.css          */
/* Description : Styles généraux et couleurs */
/* ======================================= */

/* --- 1. Variables de Couleurs --- */
:root {
    /* Couleurs demandées */
    --vert-primaire: #4CAF50;    /* Vert Apaisant */
    --bleu-fonce: #0D47A1;       /* Bleu Profond */
    --jaune-accent: #FFC107;     /* Jaune Vif */
    /* Couleurs neutres */
    --blanc: #FFFFFF;
    --gris-clair: #F5F5F5;
    --gris-fonce: #333333;
}

/* --- 2. Styles de Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--gris-fonce);
    background-color: var(--blanc);
}

a {
    text-decoration: none;
    color: var(--bleu-fonce);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--jaune-accent);
}

h1, h2, h3 {
    color: var(--bleu-fonce);
    margin-bottom: 20px;
}

/* --- 3. En-tête (Header) --- */
.header {
    background-color: var(--bleu-fonce);
    color: var(--blanc);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo a {
    color: var(--blanc);
    font-size: 1.5em;
    font-weight: bold;
}

.nav a {
    color: var(--blanc);
    margin-left: 25px;
    font-weight: 500;
}

.nav a:hover {
    color: var(--jaune-accent);
}

/* --- 4. Section Héros (Bannière) --- */
.hero {
    background: url('../img/paix_diversite.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--blanc);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 71, 161, 0.6); /* Overlay Bleu Foncé */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--jaune-accent);
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* --- 5. Sections Générales --- */
.section {
    padding: 60px 5%;
    text-align: center;
}

.section:nth-child(even) { /* Pour les sections paires */
    background-color: var(--gris-clair);
}

.section-title {
    font-size: 2.2em;
    border-bottom: 3px solid var(--vert-primaire);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 40px;
}

/* --- 6. Section "Nos Valeurs" --- */
.valeurs-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 30px;
}

.valeur-item {
    flex: 1;
    max-width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--blanc);
    transition: transform 0.3s ease;
}

.valeur-item:hover {
    transform: translateY(-5px); /* Animation au survol */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.valeur-icon {
    font-size: 3em;
    color: var(--jaune-accent);
    margin-bottom: 15px;
    display: block;
}

.valeur-item h3 {
    color: var(--vert-primaire);
    margin-bottom: 10px;
}

/* --- 7. Boutons d'Appel à l'Action (CTA) --- */
.cta-button {
    display: inline-block;
    background-color: var(--vert-primaire);
    color: var(--blanc) !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: var(--jaune-accent);
    transform: scale(1.05);
    color: var(--bleu-fonce) !important;
}

/* --- 8. Section Galerie (Photos) --- */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

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

.galerie-item img:hover {
    opacity: 0.8;
}

/* --- 9. Pied de Page (Footer) --- */
.footer {
    background-color: var(--bleu-fonce);
    color: var(--blanc);
    text-align: center;
    padding: 30px 5%;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

.lang-switch a {
    color: var(--jaune-accent);
    margin-left: 10px;
    font-weight: bold;
}

/* --- 10. Animations de Défilement (Section Visibility) --- */
.section-animee {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-animee.visible {
    opacity: 1;
    transform: translateY(0);
}