/* --- style.css --- */

:root {
    --vert-fonce: #2c5e3b;
    --blanc: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--blanc);
    color: var(--vert-fonce);
    margin: 0;
}

/* --- BANDEAU NAVIGATION (Blanc pur, texte net) --- */
header {
    background-color: var(--blanc);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .logo img {
    height: 70px;
    width: auto;
}

/* On cache le logo du bandeau UNIQUEMENT sur l'accueil */
.page-accueil header .logo {
    display: none;
}

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

nav a {
    text-decoration: none;
    color: var(--vert-fonce);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    text-shadow: none !important; /* GARANTIT L'ABSENCE DE FLOU */
}

/* --- SECTION ACCUEIL --- */
.hero-section {
    position: relative;
    height: calc(100vh - 90px);
    background-color: #333; /* Fond gris de secours si la photo plante sur Cloudflare */
    background-image: url('images/bg-accueil.JPG');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Titre en haut à gauche */
.hero-titre {
    position: absolute;
    top: 30px;
    left: 5%;
    color: var(--blanc);
    font-family: 'Georgia', serif;
    font-size: 4rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    margin: 0;
    z-index: 10;
}

/* Logo en haut à droite */
.hero-logo-droite {
    position: absolute;
    top: 20px;
    right: 5%;
    height: 220px;
    width: auto;
    z-index: 10;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.6));
}

/* Texte descendu dans la terre */
.hero-texte-terre {
    position: absolute;
    bottom: 40px;
    left: 5%;
    color: var(--blanc);
    text-shadow: 2px 2px 8px rgba(0,0,0,1), -1px -1px 3px rgba(0,0,0,0.8);
    z-index: 10;
}

.hero-texte-terre p {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* --- AUTRES SECTIONS AVEC PHOTOS --- */
.photo-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333; /* Sécurité si l'image plante */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 4rem 5%;
}

.overlay-text {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    color: var(--blanc);
    text-shadow: 2px 2px 8px rgba(0,0,0,1), -1px -1px 4px rgba(0,0,0,0.8);
}

.overlay-text h2, .overlay-text h3 {
    font-family: 'Georgia', serif;
    color: var(--blanc);
    text-shadow: 2px 2px 8px rgba(0,0,0,1);
    margin-bottom: 1rem;
}

.overlay-text h2 { font-size: 2.8rem; }
.overlay-text h3 { font-size: 1.8rem; }
.overlay-text p, .overlay-text li { font-size: 1.2rem; font-weight: bold; margin-bottom: 1rem; }

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

/* --- SECTION PANNEAU (Texte ET image côte à côte) --- */
.section-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--blanc);
    padding: 5rem 5%;
    gap: 4rem;
}

.split-texte {
    width: 50%;
    color: var(--vert-fonce);
}

.split-texte h2, .split-texte h3 {
    font-family: 'Georgia', serif;
    color: var(--vert-fonce);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    border-bottom: 2px solid var(--vert-fonce);
    display: inline-block;
}

.split-texte p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.split-image {
    width: 50%;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: var(--vert-fonce);
    color: var(--blanc);
    text-align: center;
    padding: 2rem 5%;
}

/* Responsive Mobiles */
@media (max-width: 900px) {
    header { height: auto; flex-direction: column; padding: 1rem; }
    .page-accueil header .logo { display: block; } 
    nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1rem; }
    .hero-logo-droite { display: none; }
    .hero-titre { position: relative; top: 0; left: 0; text-align: center; margin-top: 2rem; font-size: 2.5rem; }
    .hero-texte-terre { position: relative; bottom: 0; left: 0; text-align: center; margin-top: 2rem; }
    .hero-section { height: auto; display: flex; flex-direction: column; padding: 2rem; background-size: cover; }
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .section-split { flex-direction: column; padding: 2rem 5%; }
    .split-texte, .split-image { width: 100%; }
}
