/* --- VARIABLES ET BASES --- */
:root {
    --primary-green: #9cbd31; 
    --dark-grey: #333333;
    --light-bg: #f4f4f4;     
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth; /* Animation fluide lors du clic sur le menu */
}

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    line-height: 1.6; 
    color: var(--dark-grey); 
    background: var(--light-bg); 
    font-size: 18px; /* Taille de base agrandie */
}

/* --- NAVIGATION --- */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 8%; 
    height: 100px; 
    background: var(--dark-grey);
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 2000;
    border-bottom: 4px solid var(--primary-green);
}

.site-logo {
    height: 75px; 
    width: auto;
}

.nav-links { 
    display: flex; 
    list-style: none; 
}

.nav-links li a { 
    text-decoration: none; 
    color: var(--white); 
    margin-left: 2rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links li a:hover { color: var(--primary-green); }

/* --- STRUCTURE PLEIN ÉCRAN --- */
section {
    min-height: 100vh; /* Force chaque section à prendre tout l'écran */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre le contenu verticalement */
    padding: 120px 10% 80px; /* Espace pour la navbar */
}

/* --- SECTION HERO (ACCUEIL) --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('img/accueil.jpg') center/cover;
    color: var(--white);
    text-align: center;
}

.hero-content h1 { 
    font-size: 4.5rem; 
    margin-bottom: 1.5rem; 
    line-height: 1.1;
}

.hero-content h1 span { color: var(--primary-green); }

.hero-btns { 
    display: flex; 
    justify-content: center; 
    gap: 25px; 
    margin-top: 50px; 
}

/* --- BOUTONS --- */
.btn-primary, .btn-secondary { 
    display: inline-block;
    padding: 18px 45px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-primary { background: var(--primary-green); color: white !important; }
.btn-secondary { border: 2px solid white; color: white !important; }

/* --- NOS PRESTATIONS (SERVICES) --- */
.section-title { 
    text-align: center; 
    margin-bottom: 80px; 
    font-size: 3.5rem; 
    text-transform: uppercase;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--primary-green);
    margin: 20px auto;
}

.service-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 40px; 
    max-width: 1400px;
    margin: 0 auto 60px;
}

.service-card { 
    background: var(--white); 
    padding: 60px 40px; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-bottom: 10px solid var(--primary-green);
}

.service-card i { font-size: 4.5rem; color: var(--primary-green); margin-bottom: 25px; }
.service-card h3 { font-size: 2.2rem; margin-bottom: 20px; }
.service-card p { font-size: 1.25rem; color: #555; }

/* --- MOYEN DE PAIEMENT --- */
.payment-info {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    border-left: 15px solid var(--primary-green);
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.payment-info i { font-size: 4rem; color: var(--primary-green); flex-shrink: 0; }
.payment-info div h3 { font-size: 2rem; margin-bottom: 10px; }
.payment-info div p { font-size: 1.4rem; }

/* --- CENTRALES (OÙ NOUS TROUVER) --- */
.location-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.loc-item {
    background: white;
    padding: 50px;
    border-left: 12px solid var(--primary-green);
    border-radius: 0 20px 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.loc-item h4 { font-size: 2rem; color: var(--primary-green); margin-bottom: 20px; text-transform: uppercase; }
.loc-item p { font-size: 1.3rem; margin-bottom: 10px; display: flex; align-items: center; gap: 15px; }

/* --- RECRUTEMENT --- */
.recrutement-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

.recrutement-img img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.recrutement-text h2 { font-size: 3rem; margin-bottom: 30px; }
.recrutement-text p { font-size: 1.3rem; margin-bottom: 20px; }

.postuler-box { margin-top: 40px; }


/* --- PÊLE-MÊLE STYLE PHOTO 2 --- */
.masonry-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    background: #fff;
    padding: 12px 12px 35px 12px; /* Bordure blanche plus large en bas style Polaroid */
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    width: 280px; /* Largeur fixe pour favoriser le chevauchement */
    margin: -20px; /* Marges négatives pour que les photos se touchent/chevauchent */
    z-index: 1;
}

.masonry-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* --- ROTATIONS ET POSITIONS SPÉCIFIQUES --- */
.masonry-item:nth-child(1) { transform: rotate(-8deg) translateY(10px); z-index: 2; }
.masonry-item:nth-child(2) { transform: rotate(5deg) translateY(-15px); z-index: 1; }
.masonry-item:nth-child(3) { transform: rotate(-4deg) translateY(20px); z-index: 3; }
.masonry-item:nth-child(4) { transform: rotate(7deg) translateY(-5px); z-index: 2; }

/* Effet au survol : la photo passe au premier plan */
.masonry-item:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 100 !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Désactivation de l'effet sur mobile pour garder la lisibilité */
@media (max-width: 768px) {
    .masonry-wrapper { flex-direction: column; gap: 30px; }
    .masonry-item { margin: 0; transform: none !important; width: 90%; }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .masonry-wrapper { column-count: 2; }
}

@media (max-width: 600px) {
    .masonry-wrapper { column-count: 1; }
    .masonry-item { transform: none !important; } /* On retire la rotation sur mobile */
}

/* --- FOOTER --- */
footer { 
    background: var(--dark-grey); 
    color: white; 
    padding: 5rem 10%; 
    text-align: center; 
    font-size: 1.2rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .recrutement-grid { grid-template-columns: 1fr; }
    .navbar { padding: 0 5%; }
}

@media (max-width: 768px) {
    section { padding: 100px 5% 50px; }
    .section-title { font-size: 2.5rem; }
    .nav-links { display: none; } /* On pourrait ajouter un menu burger ici */
    .payment-info { flex-direction: column; text-align: center; }
}
/* --- ADAPTATION MOBILE (RESPONSIVE) --- */
@media (max-width: 768px) {
    /* 1. Accueil : On réduit la taille des textes */
    .hero-content h1 {
        font-size: 2.2rem !important;
        padding: 0 10px;
    }
    
    .hero-btns {
        flex-direction: column; /* Boutons l'un sur l'autre */
        gap: 15px;
        align-items: center;
    }

    /* 2. Cartes : On les force à prendre toute la largeur */
    .service-grid, .location-flex, .recrutement-grid {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 20px;
    }

    .service-card, .loc-item {
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* 3. Sections : On réduit les grands espaces vides */
    section {
        padding: 60px 20px !important;
        height: auto !important; /* Évite que le contenu ne dépasse */
    }

    /* 4. Navigation : On s'assure que le logo ne soit pas géant */
    .site-logo {
        max-width: 150px;
    }
}