/* ==================== VARIABLES CSS ==================== */
:root {
    --header-height: 3.5rem;

    /* Couleurs */
    --first-color: #4CAF50; /* Vert principal */
    --gradient-color: linear-gradient(90deg, #4CAF50, #2E7D32);
    --dark-color: #1a1a1a;
    --text-color: #f0f0f0;
    --body-color: #000000;
    --container-color: #212121;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Police et typographie */
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 3rem; /* Agrandie pour le hero */
    --h2-font-size: 1.75rem; /* Agrandie pour les titres de section */
    --normal-font-size: 1rem;
    
    /* Z-index */
    --z-fixed: 100;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3 {
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1120px; /* Un peu plus large pour un look moderne */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-color);
    -webkit-background-clip: text;
    color: transparent;
}

/* ==================== HEADER & NAV ==================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo .logo-img {
    height: 60px; /* Ajustez la taille du logo si besoin */
    vertical-align: middle;
}

.nav__toggle, .nav__close {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    position: relative;
    transition: color 0.3s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-color);
    transition: width 0.3s;
}

.nav__link:hover {
    color: var(--first-color);
}

.nav__link:hover::after {
    width: 100%;
}

/* ==================== ACCUEIL (HERO) - MIS À JOUR ==================== */
.accueil {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* REMPLACEZ L'URL PAR VOTRE IMAGE */
    background: url('hero.png');
    background-size: cover;
    background-position: center;
}

.accueil::before { /* Superposition sombre pour la lisibilité */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.accueil__container {
    text-align: center;
    position: relative; /* Pour être au-dessus de la superposition */
    z-index: 1;
}

.accueil__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.accueil__description {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.button {
    display: inline-block;
    background: var(--gradient-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.button--white {
    background: #fff;
    color: var(--first-color);
}
.button--white:hover {
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}


.button i {
    margin-left: 0.5rem;
}

/* ==================== SERVICES ==================== */
.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service__card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--first-color);
}

/* ==================== NOUVEAU STYLE : APPROCHE ==================== */
.approche__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.approche__step {
    padding: 2rem;
}

.step__number {
    width: 50px;
    height: 50px;
    background: var(--gradient-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: #fff;
}

.approche__step h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* ==================== PORTFOLIO ==================== */
.portfolio__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.portfolio__container img {
    border-radius: 0.5rem;
    transition: transform 0.3s, filter 0.3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.portfolio__container img:hover {
    transform: scale(1.05);
    filter: brightness(1);
}

/* ==================== TÉMOIGNAGES ==================== */
.temoignages__container {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.temoignage__card {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 5px solid var(--first-color);
    max-width: 450px;
}

/* ==================== STATS ==================== */
.stats {
    background: var(--container-color);
    padding: 4rem 0;
}

.stats__container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat__item h3 {
    font-size: 2.5rem;
    color: var(--first-color);
}

/* ==================== VIDÉO ==================== */
.video__container iframe {
    width: 100%;
    height: 600px;
    border-radius: 1rem;
    border: none;
}

/* ==================== NOUVEAU STYLE : CTA ==================== */
.cta {
    background: var(--gradient-color);
}

.cta__container {
    text-align: center;
    padding: 4rem 1rem;
}

.cta__container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}
.cta__container p {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: #fff;
}

/* ==================== CONTACT ==================== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact__form input, .contact__form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--container-color);
    color: var(--text-color);
    font-family: var(--body-font);
}

.contact__form .button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact__cta {
    text-align: center;
}

.button-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 2rem;
    margin-top: 1rem;
    font-weight: 600;
    transition: transform 0.3s;
}

.button-whatsapp:hover {
    transform: scale(1.05);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--container-color);
    padding: 2rem 0;
    text-align: center;
}

.footer__socials {
    margin-bottom: 1rem;
}

.footer__socials a {
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer__socials a:hover {
    color: var(--first-color);
}

.footer__copy, .footer__contact {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==================== ANIMATIONS SCROLL ==================== */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 992px) {
    .approche__container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --h1-font-size: 2.2rem;
        --h2-font-size: 1.5rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--body-color);
        padding: 6rem 2rem 0;
        transition: right 0.4s;
        z-index: 100;
    }

    .nav__list {
        flex-direction: column;
        gap: 2.5rem;
    }

    .nav__toggle, .nav__close {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    /* Show menu */
    .show-menu {
        right: 0;
    }

    .services__container, .portfolio__container, .contact__container {
        grid-template-columns: 1fr;
    }
    .portfolio__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .temoignages__container {
        flex-direction: column;
    }
    
    .stats__container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact__container {
        gap: 2rem;
    }
}
@media screen and (max-width: 480px) {
    .portfolio__container {
        grid-template-columns: 1fr;
    }
}