* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}



/* Commun */
.bubbles {
    position: absolute;
    inset: 0;
    width: 200%;
    height: 200%;
    background-repeat: repeat;
    pointer-events: none;
}

/* Calque 1 - petites bulles rapides */
.layer1 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.2)"/></svg>');
    animation: float1 20s linear infinite;
}

/* Calque 1 - petites bulles rapides diagonales */
.layer1 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="60" cy="30" r="0.8" fill="rgba(255,255,255,0.15)"/></svg>');
    animation: float1 20s linear infinite;
}

/* Calque 2 - moyennes bulles lentes vers la gauche */
.layer2 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="70" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="1.2" fill="rgba(255,255,255,0.08)"/></svg>');
    animation: float2 35s linear infinite;
}

/* Calque 3 - grosses bulles montantes */
.layer3 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="45" cy="55" r="2" fill="rgba(255,255,255,0.07)"/><circle cx="85" cy="15" r="1.8" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: float3 50s linear infinite;
}

/* Calque 4 - bulles moyennes descendantes */
.layer4 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="20" r="1.6" fill="rgba(255,255,255,0.09)"/><circle cx="75" cy="65" r="1.4" fill="rgba(255,255,255,0.06)"/></svg>');
    animation: float4 40s linear infinite;
}

/* Calque 5 - petites bulles rapides vers la droite */
.layer5 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="55" cy="45" r="1.1" fill="rgba(255,255,255,0.12)"/><circle cx="10" cy="90" r="0.9" fill="rgba(255,255,255,0.08)"/></svg>');
    animation: float5 25s linear infinite;
}

/* Animation 1 - Diagonale haut-droite */
@keyframes float1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(150px, -250px) rotate(360deg); }
}

/* Animation 2 - Diagonale haut-gauche */
@keyframes float2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-180px, -300px) rotate(-360deg); }
}

/* Animation 3 - Montée verticale avec ondulation */
@keyframes float3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -150px) rotate(180deg); }
    50% { transform: translate(-30px, -300px) rotate(360deg); }
    75% { transform: translate(40px, -450px) rotate(540deg); }
    100% { transform: translate(0, -600px) rotate(720deg); }
}

/* Animation 4 - Mouvement en zigzag horizontal */
@keyframes float4 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, -120px) rotate(-270deg); }
    66% { transform: translate(-80px, -240px) rotate(-540deg); }
    100% { transform: translate(50px, -360px) rotate(-810deg); }
}

/* Animation 5 - Spirale ascendante rapide */
@keyframes float5 {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-60px, -200px) rotate(-180deg) scale(1.2); }
    100% { transform: translate(80px, -400px) rotate(-360deg) scale(0.8); }
}





/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    /*background: linear-gradient(135deg, #2C5558, #4A7C31);*/
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

header .logo {
    display: inline-flex;         /* aligne le texte et l’image */
    justify-content: space-between;
    align-items: center;          /* centre verticalement */
    font-size: 2rem;            /* taille du texte */
    font-weight: bold;            /* texte en gras */
    text-decoration: none;        /* enlève le soulignement */
    color: #000;                  /* couleur du texte */
    gap: 10px;                    /* espace entre logo et texte */
}

header .logo img {
    height: 50px;                 /* taille du logo (tu peux grossir ici) */
    width: auto;                  /* conserve les proportions */
    transition: height 0.3s ease;
}

header .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

header .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.6em; /* taille de base */
    transition: font-size 0.3s ease, color 0.2s ease;
}

header .nav-links a:hover {
    color: #4a7c59;
}

/* Checkbox invisible */
header .menu-checkbox {
    display: none;
}

/* Icône hamburger */
header .menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

header.scrolled {
    padding: 0.5rem 0; /* réduit la hauteur du header */
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

header.scrolled .logo {
    font-size: 1.6em;
}

header.scrolled .logo img {
    height: 40px;
}

header.scrolled .nav-links a {
    font-size: 1.3em;
}






/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 50%, #6ba368 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero p {
    font-size: 2.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero .hero-logo img {
    border-radius: 25% ;
    width: 150px;
}

.hero .hero-N {
    color: #224667;
}

.hero .hero-P {
    color: #9ac639;
}

.hero .hero-MULTI {
    color: #35516f;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #2c5530;
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.9s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}



/* Services Section */
.services {
    padding: 5rem 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4a7c59;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}






/* NOUVELLE SECTION GALERIE */
.gallery {
    padding: 5rem 0;
    background: #fff;
}

/* Onglets de catégories */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 0.8rem 2rem;
    background: #f0f0f0;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.gallery-tab:hover {
    background: #e0e0e0;
}

.gallery-tab.active {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
}

/* Conteneur des catégories */
.gallery-category {
    display: none;
    animation: fadeIn 0.5s ease;
}

.gallery-category.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Grille d'images */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item .label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(44, 85, 48, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Comparaison Avant/Après */
.before-after-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.before-after-container h3 {
    text-align: center;
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.before-after {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    cursor: ew-resize;
}

.before-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after .after {
    clip-path: inset(0 50% 0 0);
}

.before-after-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    pointer-events: none;
}

.before-after-slider::before {
    content: '⟨';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    color: #2c5530;
}

.before-after-slider::after {
    content: '⟩';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    color: #2c5530;
}

.before-after-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 1rem;
}

.before-after-labels span {
    font-weight: 500;
    color: #666;
}







/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c5530;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.about-image {
    text-align: center;
    font-size: 15rem;
    color: #4a7c59;
    opacity: 0.3;
}









/* Contact Section */
.contact {
    position: relative;
    /*background: linear-gradient(135deg, #2c5530, #4a7c59);*/
    background: linear-gradient(135deg, #2C5558, #4A7C31);
    color: white;
    padding: 2rem 0;
    overflow: hidden; /* Important pour contenir les bulles */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}


.form-group.form-hnp {
    position: absolute;
    left: -9999px;  /* le déplace très loin en dehors de l’écran */
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none; /* empêche les clics et focus */
    z-index: -1;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: white;
    color: #2c5530;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}



/* Footer */
footer {
    position: relative;
    background: #1a3a1e;
    color: white;
    text-align: center;
}





/* Responsive */
@media (max-width: 768px) {
    header .menu-icon {
        display: block;
        z-index: 1001;
    }

    header .nav-links {
        display: flex;
        font-size: 2rem;
        position: fixed;
        top: 0;
        right: -300px; /* Caché hors écran */
        height: 100vh;
        width: 300px;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px;
        gap: 20px;
        box-shadow: -2px 0 8px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    /* Quand la checkbox est cochée → on affiche le menu */
    header .menu-checkbox:checked ~ .nav-links {
        right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-button {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        font-size: 10rem;
    }
}


@media (min-width: 769px) and (max-width: 860px) {
    header .nav-links {
        font-size: 0.65rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}










/* Lightbox */
/*.lightbox {*/
/*    display: none;*/
/*    position: fixed;*/
/*    inset: 0;*/
/*    background: rgba(0,0,0,0.95);*/
/*    z-index: 9999;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*}*/

/*.lightbox.show {*/
/*    display: flex;*/
/*}*/

/*.lightbox-content {*/
/*    max-width: 90%;*/
/*    max-height: 90vh;*/
/*    position: relative;*/
/*}*/

/*.lightbox-content img {*/
/*    max-width: 100%;*/
/*    max-height: 90vh;*/
/*    border-radius: 10px;*/
/*    object-fit: contain;*/
/*}*/

/*.lightbox .close {*/
/*    position: absolute;*/
/*    top: 2rem;*/
/*    right: 2rem;*/
/*    color: white;*/
/*    font-size: 3rem;*/
/*    cursor: pointer;*/
/*    background: rgba(0,0,0,0.5);*/
/*    width: 50px;*/
/*    height: 50px;*/
/*    border-radius: 50%;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    transition: background 0.3s ease;*/
/*}*/

/*.lightbox .close:hover {*/
/*    background: rgba(255,255,255,0.2);*/
/*}*/

/*.lightbox .prev,*/
/*.lightbox .next {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    color: white;*/
/*    font-size: 2.5rem;*/
/*    background: rgba(0,0,0,0.5);*/
/*    border: none;*/
/*    padding: 1rem 1.5rem;*/
/*    cursor: pointer;*/
/*    border-radius: 10px;*/
/*    transition: background 0.3s ease;*/
/*}*/

/*.lightbox .prev { left: 2rem; }*/
/*.lightbox .next { right: 2rem; }*/

/*.lightbox .prev:hover,*/
/*.lightbox .next:hover {*/
/*    background: rgba(255,255,255,0.2);*/
/*}*/