:root {
    --vert: #2ecc71;
    --vert-fonce: #27ae60;
    --bleu-nuit: #0a192f;
    --bleu-clair: #1e3a5f;
    --gris-clair: #f5f7fa;
    --gris-texte: #4a5568;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--gris-texte);
    line-height: 1.6;
    background: var(--gris-clair);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HEADER ============ */
.header {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, #0b2b26 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo h1 { font-size: 1.8rem; letter-spacing: 1px; }
.logo h1 span { color: var(--vert); }
.logo p { font-size: 0.85rem; opacity: 0.9; }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--vert); }

/* Bouton hamburger — caché sur desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation hamburger → croix */
.menu-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============ BOUTONS ============ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--vert);
    color: var(--bleu-nuit);
}
.btn-primary:hover {
    background: var(--vert-fonce);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,204,113,0.3);
}
.btn-outline {
    border: 2px solid var(--vert);
    background: transparent;
    color: var(--vert);
}
.btn-outline:hover {
    background: var(--vert);
    color: var(--bleu-nuit);
}

/* ============ CARROUSEL HERO ============ */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
}

.carousel-slide.active { opacity: 1; }

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(10,25,47,0.85), rgba(11,43,38,0.85));
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.carousel-content .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-prev:hover, .carousel-next:hover {
    background: var(--vert);
    color: var(--bleu-nuit);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--vert);
    width: 30px;
    border-radius: 10px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============ CARTES AVEC IMAGES ============ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image img { transform: scale(1.05); }

.card-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--vert);
    color: var(--bleu-nuit);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-body { padding: 25px; }

.card-body h3 {
    color: var(--bleu-nuit);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* ============ GRILLE GALERIE ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%; height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay { transform: translateY(0); }

/* ============ MODALE VIDÉO ============ */
.video-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.video-modal.active { display: flex; }

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.video-modal-content iframe {
    width: 100%; height: 500px;
    border: none;
}

.close-video {
    position: absolute;
    top: -40px; right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ============ TÉMOIGNAGES ============ */
.testimonials-slider {
    background: var(--bleu-nuit);
    color: white;
    padding: 80px 0;
    position: relative;
}

.testimonial-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.testimonial-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--vert);
    margin-bottom: 20px;
}

/* ============ STATS ============ */
.stats {
    background: var(--bleu-nuit);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--vert);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bleu-nuit);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 { color: var(--vert); margin-bottom: 20px; }

/* ============ RESPONSIVE — doit rester EN DERNIER ============ */
@media (max-width: 768px) {

    .menu-toggle { display: flex; }

    .nav-links {
        display: none !important;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--bleu-nuit) 0%, #0b2b26 100%);
        padding: 10px 0 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-links li a {
        display: block;
        padding: 12px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .nav-links li:last-child a { border-bottom: none; }

    .hero-carousel { height: 500px; }
    .carousel-content h2 { font-size: 1.8rem; }
    .card-grid { grid-template-columns: 1fr; }
}