/* --- VARIABLES --- */
:root {
    --primary-green: #9cbd31;
    --dark-grey: #333333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --navbar-height: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background: var(--light-bg);
    font-size: 16px;
}

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

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

.nav-links { display: flex; list-style: none; gap: 0; }
.nav-links li a {
    text-decoration: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.nav-links li a:hover { color: var(--primary-green); }

/* Hamburger button — masqué sur desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- HERO --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('assets/img/photo2.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: calc(var(--navbar-height) + 20px) 5% 40px;
}
.hero-content h1 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.15; }
.hero-content h1 span { color: var(--primary-green); }
.hero-content p { font-size: clamp(0.95rem, 2.5vw, 1.2rem); margin-top: 1rem; opacity: 0.9; }
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* --- BOUTONS --- */
.btn-primary {
    background: var(--primary-green);
    color: white !important;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #88a92a; transform: translateY(-2px); }
.btn-secondary {
    border: 2px solid white;
    color: white !important;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* --- SECTIONS GÉNÉRALES --- */
section {
    padding: calc(var(--navbar-height) + 60px) 8% 80px;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-transform: uppercase;
    font-weight: 800;
    color: var(--dark-grey);
}
.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 6px;
    background: var(--primary-green);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* --- SERVICES --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-bottom: 8px solid var(--primary-green);
    text-align: center;
}
.service-card i {
    color: var(--primary-green);
    font-size: 3rem;
    margin-bottom: 18px;
    display: block;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }

.payment-info {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-bottom: 8px solid var(--primary-green);
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}
.payment-info i {
    color: var(--primary-green);
    font-size: 3rem;
    margin-bottom: 18px;
    display: block;
}
.payment-info h3 { margin-bottom: 12px; font-size: 1.3rem; }
.payment-info .hero-btns { margin-top: 25px; }

/* --- NOS CENTRALES --- */
.location-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.loc-item {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-left: 10px solid var(--primary-green);
    display: flex;
    flex-direction: column;
}
.loc-item h4 {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.loc-item > p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.loc-item > p i { width: 18px; color: var(--dark-grey); }

.img-centrale {
    margin: 18px 0;
    overflow: hidden;
    border-radius: 10px;
}
.img-centrale img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.horaires-mini {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #555;
}
.horaires-mini strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-green);
    font-size: 1rem;
}
.horaires-mini p { margin-bottom: 4px; }

/* --- RECRUTEMENT --- */
.recrutement-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}
.board-container {
    flex: 0 0 500px;
    background: #dcb35c;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 25px;
    border: 10px solid #8b5a2b;
    border-radius: 10px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
}
.pinned-card {
    background: #fff;
    height: 220px;
    padding: 8px;
    position: relative;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.pinned-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, #ff4d4d, #b30000);
    border-radius: 50%;
    z-index: 10;
}
.pinned-card img { width: 100%; height: 100%; object-fit: cover; }

.recrutement-text-side { flex: 1; min-width: 0; }
.recrutement-text-side h3 { font-size: 1.6rem; margin-bottom: 12px; }
.recrutement-list { list-style: none; margin: 20px 0; padding: 0; }
.recrutement-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}
.recrutement-list i { color: var(--primary-green); margin-top: 3px; flex-shrink: 0; }

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

/* --- FOOTER --- */
footer {
    background: #333;
    color: white;
    padding: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablette large */
@media (max-width: 1100px) {
    .recrutement-wrapper { flex-direction: column; align-items: center; }
    .board-container { flex: none; width: 100%; max-width: 600px; }
}

/* Tablette */
@media (max-width: 900px) {
    :root { --navbar-height: 75px; }

    .navbar { padding: 0 5%; }
    .site-logo { height: 50px; }

    /* Hamburger visible */
    .nav-toggle { display: flex; }

    /* Menu mobile déroulant */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: var(--dark-grey);
        padding: 20px 0;
        border-top: 2px solid var(--primary-green);
        z-index: 1999;
        gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links li a {
        display: block;
        padding: 14px 8%;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    section { padding: calc(var(--navbar-height) + 40px) 5% 60px; }
}

/* Mobile */
@media (max-width: 600px) {
    .hero-btns { flex-direction: column; align-items: center; gap: 12px; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 300px; text-align: center; }

    .service-grid { grid-template-columns: 1fr; }
    .payment-info { padding: 30px 20px; }

    .location-flex { grid-template-columns: 1fr; }
    .img-centrale img { height: 180px; }

    .board-container {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
    .pinned-card { height: 180px; }

    footer { padding: 2rem 1.5rem; }
}

/* Très petit mobile */
@media (max-width: 380px) {
    .loc-item { padding: 20px 15px; }
    .service-card { padding: 30px 20px; }
}
