/* ==================================================================
   VARIABLES GLOBALES ET RESET
   ================================================================== */
:root {
    --vert-bouliki: #2ecc71; 
    --vert-fonce: #1b5e20;  
    --vert-neon-sobre: #39ff14; /* Vert fluo */
    --noir-profond: #0a0a0a;
    --noir-leger: #171717;  
    --blanc-pur: #ffffff;
    --texte-gris: #555555;  
    --transition-fluide: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--blanc-pur); color: var(--noir-profond); overflow-x: hidden; line-height: 1.8; }
h1, h2, h3, .italic { font-family: 'Playfair Display', serif; font-weight: 600; }
p { color: var(--texte-gris); }
.container { max-width: 1100px; margin: 0 auto; } 
.section-padding { padding: 120px 8%; } 
.dark-bg { background-color: var(--noir-profond); color: var(--blanc-pur); } 
.dark-bg p { color: #cccccc; } 
.center-text { text-align: center; } 

.separator { width: 60px; height: 3px; background-color: var(--vert-bouliki); margin: 20px auto 40px auto; border-radius: 5px; }

/* PRELOADER */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--noir-profond); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
#preloader.preloader-hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.logo-preloader { color: var(--blanc-pur); font-size: 2.5rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 20px; }
.logo-preloader span { color: var(--vert-bouliki); font-weight: 300; }
.loader-line { width: 150px; height: 2px; background-color: #333; margin: 0 auto; position: relative; overflow: hidden; }
.loader-line::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background-color: var(--vert-bouliki); animation: load-line 2s infinite ease-in-out; }
@keyframes load-line { 0% { left: -100%; } 50% { left: 0%; } 100% { left: 100%; } }

/* NAVIGATION */
nav { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 25px 8%; z-index: 1000; transition: var(--transition-fluide); }
nav.scrolled { background: rgba(10, 10, 10, 0.98); padding: 15px 8%; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.logo { display: flex; align-items: center; color: var(--blanc-pur); font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800; letter-spacing: 2px; text-decoration: none; transition: var(--transition-fluide); }
.logo span { color: var(--vert-bouliki); font-weight: 300; transition: var(--transition-fluide); }
.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links a { color: var(--blanc-pur); text-decoration: none; text-transform: uppercase; font-size: 0.85rem; font-weight: 500; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover { color: var(--vert-bouliki); }
.btn-cta { background: var(--vert-bouliki); padding: 12px 24px; border-radius: 50px; color: var(--noir-profond) !important; font-weight: 700 !important; border: none; cursor: pointer; transition: var(--transition-fluide); text-decoration: none; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.btn-cta:hover { background-color: var(--blanc-pur); transform: scale(1.05); }

/* BURGER MENU */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--blanc-pur); margin: 5px; transition: all 0.3s ease; }

/* ACCUEIL (HERO PC) */
.hero { height: 100vh; background-image: url('../images/acceuil.webp'); background-size: cover; background-position: center 85%; background-repeat: no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--blanc-pur); position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); transition: backdrop-filter 0.1s ease; }
.hero-content { z-index: 2; max-width: 800px; margin-top: 38vh; }
.hero h1 { font-size: 5rem; margin-bottom: 20px; line-height: 1.1; }
.nature-text { font-family: 'Great Vibes', cursive; color: var(--vert-bouliki); font-size: 1.4em; font-weight: normal; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 40px; }

.btn-explorer, .btn-cta-hero {
    text-decoration: none !important; text-transform: uppercase; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif; border-radius: 50px; transition: var(--transition-fluide); display: inline-block; padding: 14px 30px; text-align: center;
}
.btn-explorer { color: var(--blanc-pur); background-color: rgba(30, 30, 30, 0.6); border: 1px solid rgba(255, 255, 255, 0.5); }
.btn-cta-hero { color: var(--noir-profond) !important; background-color: var(--blanc-pur); border: 1px solid var(--blanc-pur); }

/* CONCEPT */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.text-block h2 { font-size: 2.8rem; margin-bottom: 20px; color: var(--noir-profond); }
.subtitle { color: var(--vert-bouliki); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-size: 0.8rem; display: block; margin-bottom: 10px; }
.img-wrapper { width: 100%; height: 500px; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.img-wrapper img, .img-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* SERVICES GRID (PC) - MODIFICATION HUBERT ICI */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-card { 
    background: var(--noir-leger); 
    border-radius: 12px; 
    overflow: hidden; 
    color: white; 
    transition: var(--transition-fluide); 
    display: flex; 
    flex-direction: column; 
    /* Ajout du halo vert EXCLUSIVEMENT sur ces cases pour la version PC */
    border: 1px solid var(--vert-bouliki);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4), inset 0 0 10px rgba(46, 204, 113, 0.1);
}
.card-img-wrapper { width: 100%; height: 220px; overflow: hidden; }
.card-img-wrapper img, .card-img-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
.card-content { padding: 25px; flex-grow: 1; }
.card-content h3 { margin-bottom: 10px; color: var(--blanc-pur); font-size: 1.3rem; }

.service-card:hover { 
    transform: translateY(-10px); 
    /* Intensification du halo au survol sur PC */
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.7), inset 0 0 15px rgba(46, 204, 113, 0.3);
}
.service-card:hover .card-img-wrapper img, .service-card:hover .card-img-wrapper video { transform: scale(1.05); }

/* INSTAGRAM */
.insta-link { color: var(--vert-bouliki); text-decoration: none; transition: color 0.3s; }
.insta-embed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; align-items: stretch; justify-items: center;}
.insta-embed-wrapper { display: block !important; width: 100%; max-width: 400px; background: #fff; border-radius: 15px; overflow: hidden; transition: var(--transition-fluide); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.instagram-media { margin: 0 !important; min-width: 100% !important; border: none !important; }

/* COOKIES & FOOTER */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(10, 10, 10, 0.95); color: white; padding: 20px 30px; border-radius: 10px; border: 1px solid var(--vert-bouliki); display: flex; gap: 20px; align-items: center; z-index: 9999; width: 90%; max-width: 800px; transition: opacity 0.5s ease; opacity: 0; pointer-events: none; }
.cookie-banner.active { opacity: 1; pointer-events: auto; }
footer { background-color: var(--noir-profond); padding: 12px 8%; border-top: 1px solid var(--vert-bouliki); }
.footer-content { display: flex; justify-content: space-between; align-items: center; color: var(--texte-gris); font-size: 0.8rem; } 
.designer { font-size: 0.75rem; font-style: italic; color: var(--blanc-pur) !important; }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delayed { opacity: 0; transform: translateY(40px); transition: all 0.8s ease 0.3s; }
.reveal-delayed.active { opacity: 1; transform: translateY(0); }

/* ==================================================================
   MOBILE (max-width: 768px)
   ================================================================== */
@media (max-width: 768px) {
    body { font-size: 14px; }
    .section-padding { padding: 80px 5%; }
    .separator { margin: 15px auto 30px auto; }
    
    /* Navigation Mobile Slide */
    .nav-links { position: absolute; right: 0; height: 100vh; top: 0; background-color: var(--noir-profond); display: flex; flex-direction: column; align-items: center; width: 100%; transform: translateX(100%); transition: transform 0.5s ease-in; padding-top: 100px; gap: 20px; z-index: 999; }
    .nav-links li { opacity: 0; }
    .burger { display: block; z-index: 1000; }
    .nav-active { transform: translateX(0%); }
    @keyframes navLinkFade { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0px); } }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* Accueil Mobile */
    .hero { background-position: center center; }
    .hero h1 { font-size: 2.8rem; margin-bottom: 10px; }
    .mobile-hide { display: none !important; } 
    
    /* Règle absolue appliquée : Titre descendu (22vh) pour être juste au-dessus de la tête */
    .hero-content { margin-top: 22vh; padding: 0 10px; } 

    /* Règle absolue appliquée : Boutons tout en bas de la photo (38vh) pour que le visage soit lisible */
    .hero-buttons { 
        flex-direction: column; 
        gap: 15px; 
        margin-top: 38vh; 
        align-items: center; 
        width: 100%; 
    }
    
    .btn-explorer, .btn-cta-hero { margin-top: 0; padding: 12px 25px; width: auto !important; font-size: 0.8rem; }

    /* Concept Centré Mobile */
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .text-block { text-align: center; }
    .img-wrapper { height: 350px; }
    .text-block h2 { font-size: 2.2rem; }
    
    /* Carrousel Swipe Mobile SANS ASCENSEUR ET SANS BUG */
    .services-grid { 
        display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; 
        gap: 20px; padding-bottom: 20px; -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; -ms-overflow-style: none; 
    }
    .services-grid::-webkit-scrollbar { display: none; } 
    
    .service-card { 
        flex: 0 0 85%; scroll-snap-align: center; opacity: 0.5; transform: scale(0.95); 
        /* Annule le halo PC sur mobile pour les cartes non centrées */
        box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
        border: 1px solid rgba(255,255,255,0.05) !important;
        transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    }
    
    /* HALO VERT FLUO EXCLUSIVEMENT SUR LA CARTE AU CENTRE (MOBILE) */
    .service-card.focused-card { 
        opacity: 1; transform: scale(1); 
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.6), inset 0 0 10px rgba(46, 204, 113, 0.2) !important;
        border: 1px solid var(--vert-bouliki) !important; 
    }
    .card-img-wrapper { height: 180px; }

    /* Instagram Mobile (1 seul post) */
    .insta-embed-grid { display: flex; flex-direction: column; gap: 40px; align-items: center; }
    .insta-embed-wrapper:nth-child(1), .insta-embed-wrapper:nth-child(2) { display: none !important; }
    .insta-embed-wrapper:nth-child(3) { display: block !important; width: 100%; max-width: 350px; margin: 0 auto; }
    
    /* Cacher Réservation PC sur Mobile */
    #reservation { display: none !important; }

    .cookie-banner { flex-direction: column; text-align: center; gap: 10px; }
    
    /* Footer mobile discret */
    .footer-content { flex-direction: column; text-align: center; gap: 5px; font-size: 0.7rem; }
    .designer { font-size: 0.65rem; }
}