@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0c6b3d;
    --primary-dark: #08492a;
    --accent: #ff7a00;
    --accent-dark: #d96500;
    --dark: #111111;
    --text: #2a2a2a;
    --muted: #6f6f6f;
    --light: #f6f7f8;
    --white: #ffffff;
    --border: #e8e8e8;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    --radius: 18px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-light {
    background: #fafafa;
}

.section-dark {
    background: linear-gradient(135deg, #0c6b3d 0%, #083920 100%);
    color: var(--white);
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-head {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-head.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-head h2,
.intro-grid h2,
.contact-grid h2,
.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 14px;
    font-weight: 800;
}

.section-head p,
.intro-grid p,
.contact-grid p,
.cta-box p {
    color: inherit;
    opacity: 0.92;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 20, 14, 0.78);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: 0.3s ease;
}

.site-header.scrolled {
    background: rgba(7, 15, 11, 0.96);
}

.nav-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.logo-area img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
}

.logo-text {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-text strong {
    display: block;
    font-size: 0.92rem;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.96rem;
    transition: 0.3s ease;
}

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

.btn-nav {
    padding: 12px 18px;
    background: var(--accent);
    border-radius: 999px;
    color: var(--white) !important;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(4, 18, 10, 0.45), rgba(4, 18, 10, 0.60)),
        url('../images/1hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at left, rgba(12, 107, 61, 0.40), transparent 45%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 110px;
    padding-bottom: 60px;
}

.hero-text {
    max-width: 100%;
    color: var(--white);
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: clamp(0.78rem, 1.8vw, 0.9rem);
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.1rem, 5.6vw, 4.4rem);
    line-height: 0.98;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-title-single-line {
    white-space: nowrap;
    font-size: clamp(0.88rem, 3.9vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.hero p {
    max-width: 560px;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    color: rgba(255,255,255,0.92);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

.btn-outline-dark {
    border-color: #1d1d1d;
    color: #1d1d1d;
}

.btn-outline-dark:hover {
    background: #1d1d1d;
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.hero-mini-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 760px;
}

.hero-mini-info div {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 16px;
}

.hero-mini-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.92rem;
}

.hero-mini-info span {
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 40px;
    align-items: center;
}

.image-card img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.stat-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    min-width: 150px;
}

.stat-card h3 {
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 30px 24px;
    border-radius: 22px;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.12);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.why-card h3 {
    margin-bottom: 12px;
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.cta-section {
    padding: 0 0 90px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 30px;
    padding: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: var(--shadow);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-grid {
    align-items: start;
}

.contact-list {
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.contact-item span {
    font-size: 1.4rem;
}

.contact-form-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(12, 107, 61, 0.10);
}

.site-footer {
    background: #0d0f10;
    color: rgba(255,255,255,0.88);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 35px;
}

.footer-grid h3,
.footer-grid h4 {
    color: var(--white);
    margin-bottom: 14px;
}

.footer-grid ul li {
    margin-bottom: 10px;
}

.footer-grid a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 18px 0;
    font-size: 0.94rem;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    z-index: 999;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    margin: 5px auto;
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .services-grid,
    .why-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2,
    .footer-grid,
    .cta-box {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-mini-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .main-nav {
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        background: #0b1510;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
        border-top: 1px solid rgba(255,255,255,0.08);
        display: none;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 90px 0 70px;
    }

    .section {
        padding: 70px 0;
    }

    .image-card img {
        height: 380px;
    }

    .hero-title-single-line {
        font-size: clamp(0.82rem, 3.4vw, 1.45rem);
    }

    .hero p {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .services-grid,
    .why-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        line-height: 1.02;
    }

    .hero-title-single-line {
        font-size: clamp(0.72rem, 3vw, 1rem);
        letter-spacing: -0.015em;
    }

    .hero p,
    .badge {
        font-size: 0.9rem;
    }

    .cta-box,
    .contact-form-box {
        padding: 24px;
    }

    .btn {
        width: 100%;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .logo-text strong {
        font-size: 0.72rem;
    }
}
/* === DIRECTEUR === */
.directeur-photo {
    position: relative;
}

.directeur-photo img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* Galerie étendue : 4 colonnes sur grand écran */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.main-nav a.active {
    color: var(--accent);
}

.page-hero {
    padding: 170px 0 90px;
    background:
        linear-gradient(rgba(4, 18, 10, 0.70), rgba(4, 18, 10, 0.78)),
        url('../images/1hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
}

.page-hero-content {
    max-width: 820px;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 18px;
}

.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
}

.section-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.section-actions.center {
    justify-content: center;
}

.top-space {
    margin-top: 34px;
}

.top-space-sm {
    margin-top: 22px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.project-card-content {
    padding: 22px;
}

.project-card-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.gallery-grid-full {
    grid-template-columns: repeat(4, 1fr);
}

.muted-title {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 12px;
}

@media (max-width: 1100px) {
    .project-grid,
    .gallery-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .project-grid,
    .gallery-grid-full {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 145px 0 70px;
    }

    .section-actions {
        flex-direction: column;
    }
}
