/* VARIABLES */
:root {
    --primary-blue: #0a52a7;
    --semi-blue: #2095e9;
    --light-blue: #60d2e4;
    --yellow: #ffbd29;
    --dark-grey: #1a1a1a;
    --medium-grey: #555;
    --light-grey: #f9f9f9;
    --white: #ffffff;
    --black: #000000;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--dark-grey); background-color: var(--black); overflow-x: hidden; }
.container { 
    width: 90%; max-width: 1200px; margin: 0 auto; }

/* HEADER & NAV */
header {
    padding: 10px 0;
    background: var(--black);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img { height: 45px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-grey);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--light-blue); }

.btn-nav {
    background: linear-gradient(to right, var(--primary-blue), var(--light-blue));
    color: var(--light-grey) !important;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* MENU SANDWICH STYLES */
.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: 0.3s;
    border-radius: 3px;
}

/* Style du parent Dropdown */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* Le menu caché par défaut */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-grey);
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    min-width: 280px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}

.dropdown-menu li a {
    color: var(--white) !important;
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    text-align: center;
    transition: 0.3s;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-blue);
    color: var(--white) !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        background-color: var(--light-grey);
        border: none;
        box-shadow: none;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        color: var(--primary-blue) !important;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center; 
    justify-content: center;
    text-align: center;
    padding-top: 90px;
    background-image: url('images/fondnature2bgwebsite.webp'); 
    background-size: cover;
    background-position: center;
    color: white;
    clip-path: inset(10px round 40px);
    margin: 10px;
}

.hero-logo-alt {
    max-width: 230px;
    margin-bottom: 5px;
    margin-top: -30px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-top: 0;
    
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero .subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero .hero-text {
    max-width: 700px;
    margin: 0 auto 50px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-text-contact {
    max-width: 700px;
    margin: 0 auto 55px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(to right, var(--primary-blue), var(--light-blue));
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 700;
    transition: 0.3s;
    margin-bottom: 40px;
}

/* --- Hache 1 pour SEO --*/
/* --- Hache 1 avec Fade-in 100% CSS (sans mouvement) --- */
.hache1 {
    display: block;
    width: 90%;
    max-width: 1200px;
    margin: 80px auto 40px auto;
    border: 2px solid var(--semi-blue);
    border-radius: 25px;
    padding: 20px 30px;
    box-sizing: border-box;

    /* 1. Définition de l'animation */
    animation: fade-pure linear both;
    
    /* 2. Liaison au scroll */
    animation-timeline: view();
    
    /* 3. Plage d'apparition : commence à 5% du bas, finit à 30% */
    animation-range: entry 5% cover 30%;
}

/* 4. Les étapes de l'animation : uniquement l'opacité */
@keyframes fade-pure {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hache1 h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 8vw, 2rem);
    color: var(--light-grey);
    text-align: center;
    margin: 0;
    word-wrap: break-word;
}

.swiss-flag {
    height: 1em;
    width: auto;
    border-radius: 3px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hache1 h1 {
        font-size: 1.5rem;
        gap: 8px;
    }
    
    .hache1 {
        width: 95%;
        padding: 12px 15px;
        margin-top: 30px;
        border-radius: 15px;
    }

    .swiss-flag {
        height: 1.2rem;
    }
}

/* --- SERVICES & CARDS --- */
.services {
    padding: 60px 20px;
    background-color: var(--black);
}

h2 { 
    font-family: 'Montserrat', sans-serif; 
    text-align: center; 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 60px; 
    color: var(--primary-blue); 
    letter-spacing: -1px; 
    transition: color 0.6s ease; 
}

h2.scrolled-color {
    color: var(--semi-blue);
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
    align-items: stretch; 
}

.service-card { 
    padding: 50px 40px; 
    background: linear-gradient(to bottom, var(--dark-grey), #0a0a0a);
    border-radius: 24px; 
    border: 1px solid rgba(0, 0, 0, 0.1); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; 
}

.service-card::before {
    content: "✦"; 
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(99, 99, 13, 0.2); 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover::before {
    color: var(--yellow); 
    transform: scale(1.5) rotate(90deg); 
    filter: drop-shadow(0 0 8px rgba(79, 169, 204, 0.8)); 
}

.card-body { min-height: 140px; }

.service-card h3 { margin-bottom: 20px; font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--primary-blue); }
.service-card p { color: var(--white); font-size: 1rem; line-height: 1.7; }

.separator {
    width: 100%;
    height: 1px;
    background-color: var(--primary-blue);
    margin: 15px 0 25px 0;
}

.service-card ul { list-style: none; margin-bottom: 40px; }

.service-card ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--white);
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.service-card ul li::before { 
    content: ""; 
    width: 8px;
    height: 8px;
    background-color: var(--light-blue);
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

.btn-card {
    margin-top: auto; 
    display: block;
    padding: 12px 25px;
    border: 1.5px solid var(--primary-blue);
    color: var(--semi-blue);
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-card:hover {
    background: linear-gradient(to right, var(--primary-blue), var(--light-blue));
    color: var(--white);
}

/* --- SECTION BULLES (CATEGORIES) --- */
.categories { padding: 80px 0 90px 0; text-align: center; }

.bubbles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    max-width: 800px; 
    margin: 0 auto;
}

.bubble-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Effet au survol : le texte devient plus blanc */
.bubble-item:hover p {
    color: var(--white);
}

.bubble-item p {
    font-size: 0.9rem;
    color: #aaa; /* Gris clair pour ne pas voler la vedette au h3 */
    margin-top: 8px;
    margin-bottom: 10px;
    max-width: 220px; /* Évite que le texte ne s'étale trop */
    line-height: 1.4;
    transition: color 0.3s ease;
}

.bubble-image {
    width: 180px; 
    height: 180px;
    border-radius: 40%; 
    overflow: hidden;
    border: 4px solid var(--dark-grey);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.bubble-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.bubble-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.bubble-item:hover h3 {
    color: var(--semi-blue);
}

.bubble-item:hover { transform: translateY(-5px); }

.bubble-item:hover .bubble-image {
    border-color: var(--light-blue);
    box-shadow: 0 15px 30px rgba(27, 94, 140, 0.2);
}

.bubble-item:hover .bubble-image img { transform: scale(1.1); }

/* ==========================================================================
   SECTION AVIS
   ========================================================================== */
   .reviews {
    padding: 80px 0;
    background-color: var(--black);
    width: 100%;
    overflow: hidden; /* Empêche tout débordement sur la page */
}

/* La fenêtre qui limite la vue à UNE SEULE carte */
.carousel-container {
    position: relative;
    width: 100%;           /* Prend toute la largeur disponible dans le container */
    max-width: 800px;      /* Largeur fixe de la carte */
    margin: 0 auto !important; /* Force le centrage horizontal */
    overflow: hidden !important; /* FORCE le masquage des cartes voisines */
    border-radius: 24px;
    z-index: 10;
}

/* Le rail qui coulisse */
.carousel-track {
    display: flex !important; /* Aligne les cartes en ligne */
    flex-direction: row !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    will-change: transform;
}

/* La carte elle-même */
.review-card {
    min-width: 100% !important; /* Oblige la carte à faire la taille exacte du container */
    width: 100% !important;
    flex-shrink: 0 !important;   /* Interdit au navigateur de réduire la taille */
    padding: 50px 40px;
    background-color: var(--dark-grey);
    border: 1px solid rgba(10, 82, 167, 0.4);
    border-radius: 24px;
    text-align: center;
    box-sizing: border-box !important; /* Crucial pour le calcul de largeur */
}

/* Éléments internes pour éviter les décalages */
.review-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.google-icon { width: 25px; height: auto; margin-bottom: 10px; }
.stars { color: #fbbc05; font-size: 1.2rem; margin-bottom: 15px; }

.review-text {
    color: var(--white);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-author { color: var(--light-blue); font-weight: 700; }
.review-date { color: #777; font-size: 0.85rem; }

/* Points de navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 40px;
}

.dot.active { background: var(--primary-blue); transform: scale(1.3); }

/* Fix spécifique Mobile */
@media (max-width: 768px) {
    .carousel-container {
        width: 90%; /* Laisse un peu d'espace sur les bords sur téléphone */
    }
    .review-card {
        padding: 30px 20px;
    }
    .review-text {
        font-size: 1rem;
    }
}

/* --- FINAL CTA SECTION --- */
.final-cta {
    padding: 100px 0 140px 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--black), #051a35); /* Dégradé subtil vers un bleu très sombre */
}

.final-cta h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.final-cta p {
    color: var(--light-grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.final-cta .cta-button {
    /* On reprend ton style de bouton hero pour la cohérence */
    display: inline-block;
    padding: 18px 45px;
    font-size: 1.1rem;
    box-shadow: 0 5px 10px rgba(10, 82, 167, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.final-cta .cta-button:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .final-cta {
        padding: 60px 20px 120px 20px;
    }
    .final-cta p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

/* --- FOOTER --- */
footer {
    background: var(--black);
    color: white;
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-logo { text-align: left; }
.footer-logo img { height: 60px; filter: brightness(0) invert(1); }
.footer-nav { text-align: center; }
.footer-nav ul { list-style: none; padding: 0; }
.footer-contact { text-align: right; }

.footer-nav h3, .footer-contact h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-blue);
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-nav a, .footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-nav a:hover, .footer-contact a:hover { 
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.75rem;
}

.footer-bottom a {
    color: var(--semi-blue);
    text-decoration: none;
}

/* --- RESPONSIVE MOBILE GENERAL --- */
@media (max-width: 768px) {
    .hero { 
        padding-top: 50px;
        clip-path: inset(5px round 20px); 
        min-height: 70vh; 
    }

    .hero h1 {
        line-height: 1;
        margin-bottom: 12px;
    }

    .menu-toggle { display: flex; position: absolute; left: 50%; transform: translateX(-50%); }

    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 60px; 
        left: 0; 
        width: 100%; 
        background-color: var(--white); 
        text-align: center; 
        box-shadow: 0 10px 10px rgba(0,0,0,0.1); 
        padding: 20px 0; 
        z-index: 999;
    }

    .nav-links a { color: var(--semi-blue) !important; padding: 15px; display: block; }
    .nav-links.active { display: flex; }
    .logo img { height: 35px; }

    .hero h1 { font-size: 2rem; }
    .bubbles-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        justify-items: center;
    }
    
    .bubble-item {
        width: 100%;
        max-width: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .bubble-item p {
        font-size: 0.75rem;
        padding: 0 5px;
        color: white;
        margin-bottom: 8px;
    }

    .bubble-image {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }
    
    .bubble-item h3 {
        font-size: 0.8rem;
        text-align: center;
        word-wrap: break-word;
        width: 100%;
    }

    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-logo, .footer-nav, .footer-contact { align-items: center; text-align: center; }
}

/* --- CONTACT PAGE STYLES --- */
.nav-contact-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-contact-layout .logo img {
    height: 45px;
    display: block;
}

.nav-contact-layout .nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-contact-layout .nav-links a {
    text-decoration: none;
    color: var(--light-grey);
    font-weight: 500;
    transition: 0.3s;
}

.nav-contact-layout .nav-links a:hover {
    color: var(--light-blue);
}

.contact-page {
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.contact-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 0px 20px;
    margin-bottom: 25px;
}

.contact-card {
    background: var(--dark-grey);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--primary-blue);
    width: 100%;
    max-width: 550px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.contact-card h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    text-align: center;
    margin-bottom: 10px;
}

.subtitle-contact {
    color: var(--light-blue);
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #333;
    color: white;
    border-radius: 10px;
}

.checkbox-group {
    background: #222;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.checkbox-title {
    display: block;
    color: var(--light-grey);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.checkbox-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: 0.3s;
}

.checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #111;
    border: 1px solid #444;
    border-radius: 5px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-item:hover input ~ .checkmark {
    border-color: var(--semi-blue);
}

.checkbox-item input:checked ~ .checkmark {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkmark:after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: none;
}

.checkbox-item input:checked ~ .checkmark:after {
    display: block;
}

@media (max-width: 768px) {
    .checkbox-list {
        grid-template-columns: 1fr;
    }
    .nav-contact-layout {
        flex-direction: column;
        gap: 15px;
    }
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, var(--primary-blue), var(--light-blue));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}

.formulaire-logo img {
    height: 80px;
    margin-bottom: 25px;
}

.formulaire-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}