/* --- 1. VARIABLES & RESET (BASE) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --primary: #1b4332;   /* Vert Forêt très sombre */
    --secondary: #d4a373; /* Or Végétal / Raphia */
    --accent: #e9c46a;    /* Soleil */
    --text: #2d3436;      /* Gris très foncé pour texte */
    --light: #fdfbf7;     /* Blanc cassé premium */
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(0,0,0,0.08); /* Ombre douce */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

/* TYPOGRAPHIE */
h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); }

/* TITRE HERO (H1) : Blanc et lisible */
h1 { 
    font-family: 'Playfair Display', serif; 
    color: white; 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.8); /* Ombre portée forte pour contraste */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* UTILITAIRES */
.section-padding { padding: 80px 8%; }
.bg-white { background: var(--white); }
.text-center { text-align: center; }

/* --- 2. HEADER & NAV --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 5%; transition: 0.4s ease;
    display: flex; justify-content: space-between; align-items: center;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 10px 5%;
}

/* LOGO */
.logo { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo img { height: 50px; width: auto; transition: 0.3s; }
.logo-text {
    font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; 
    color: white; text-transform: uppercase; line-height: 1;
    display: flex; flex-direction: column; 
}
header.scrolled .logo-text { color: var(--primary); }
header.scrolled .logo-text span { color: var(--secondary); }

/* LIENS DU MENU (Navigation) */
.nav-links { display: flex; gap: 30px; list-style: none; }

.nav-links a { 
    text-decoration: none !important; /* Force la suppression du soulignement */
    color: white; 
    font-weight: 500; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    position: relative;
    transition: 0.3s;
}

/* Couleur sombre quand on scrolle */
header.scrolled .nav-links a { color: var(--primary); }

/* Hover */
.nav-links a:hover { color: var(--secondary); }

/* PAGE ACTIVE (Couleur Or + Petit trait) */
.nav-links a.active {
    color: var(--secondary) !important;
    font-weight: bold;
}
.nav-links a.active::after {
    content: ''; position: absolute; width: 100%; height: 2px;
    bottom: -5px; left: 0; background: var(--secondary);
}

/* --- 3. BOUTONS --- */
.btn {
    padding: 15px 35px; border-radius: 50px; font-weight: 600; 
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-whatsapp { background: #25D366; color: white; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,0,0,0.15); }

/* --- 4. HERO SECTIONS & OVERLAY --- */
.hero {
    height: 100vh; background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; justify-content: center; text-align: center; position: relative;
}
.hero-small { height: 60vh; }

/* FILTRE SOMBRE (Overlay) */
.hero::before, .hero-small::before {
    content:''; position:absolute; inset:0; 
    /* Dégradé sombre pour bien lire le texte blanc */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(20, 40, 30, 0.9));
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; color: white; max-width: 900px; }

/* --- 5. PAGE ACCUEIL & EXPERIENCES --- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.intro-img-box img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }

.cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card-premium { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: 0.4s; }
.card-premium:hover { transform: translateY(-10px); }
.card-img { height: 250px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card-premium:hover .card-img img { transform: scale(1.1); }
.card-content { padding: 30px; }

/* --- 6. PAGE DESTINATIONS --- */
.destinations-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px;
}
.dest-card {
    height: 450px; border-radius: 20px; overflow: hidden; position: relative; 
    box-shadow: var(--shadow); cursor: pointer;
}
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dest-card:hover img { transform: scale(1.1); }
.dest-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px; color: white;
}
.dest-overlay h3 { color: var(--secondary); margin-bottom: 5px; font-size: 1.8rem; }
.dest-overlay p { font-size: 0.95rem; opacity: 0.9; }

/* --- 7. PAGE BLOG --- */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px;
}
.blog-card {
    background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column; height: 100%; transition: 0.3s;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-thumb { height: 220px; width: 100%; object-fit: cover; }
.blog-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-category { 
    color: var(--secondary); font-weight: bold; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 10px; 
}
.blog-body h3 { font-size: 1.4rem; margin-bottom: 15px; line-height: 1.3; }
.blog-link { margin-top: auto; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* --- 8. PAGE CONTACT --- */
.contact-container {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
    background: white; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow);
}
.contact-info {
    background: var(--primary); color: white; padding: 50px;
    display: flex; flex-direction: column; justify-content: center;
}
.contact-info h3 { color: white; margin-bottom: 20px; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; font-size: 1.1rem; }
.info-item i { color: var(--secondary); font-size: 1.5rem; }

.contact-form { padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border-radius: 10px; border: 1px solid #ddd;
    font-family: inherit; background: #f9f9f9; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--secondary); background: white;
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.1);
}

/* --- 9. MODAL BLOG (POPUP) --- */
.blog-modal-overlay {
    position: fixed; inset: 0; 
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    z-index: 3000; 
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.blog-modal-overlay.active { display: flex; opacity: 1; }

.blog-modal-content {
    background: var(--white); width: 90%; max-width: 800px; max-height: 90vh;
    border-radius: 20px; position: relative; overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: translateY(50px); transition: transform 0.3s ease;
}
.blog-modal-overlay.active .blog-modal-content { transform: translateY(0); }

.modal-header { position: relative; height: 300px; }
.modal-header img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: white; color: var(--primary);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.modal-close:hover { transform: rotate(90deg) scale(1.1); color: var(--secondary); }
.modal-body { padding: 40px; }
.modal-text { font-size: 1.1rem; color: #555; line-height: 1.8; white-space: pre-line; }
.blog-modal-content::-webkit-scrollbar { width: 8px; }
.blog-modal-content::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }

/* --- 10. RESPONSIVE MOBILE --- */
.hamburger { display: none; color: white; font-size: 1.8rem; cursor: pointer; }
header.scrolled .hamburger { color: var(--primary); }

@media (max-width: 968px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .intro-grid, .contact-container { grid-template-columns: 1fr; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%;
        background: white; flex-direction: column; justify-content: center; align-items: center;
        transition: 0.4s; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links.active { right: 0; }
    /* Sur mobile, les liens sont primaires (foncés) car le fond est blanc */
    .nav-links a { color: var(--primary); font-size: 1.2rem; }
    
    .hamburger { display: block; z-index: 1001; }
    header .hamburger { color: white; } 
    header.scrolled .hamburger { color: var(--primary); }
    
    .contact-container { border-radius: 15px; }
    .contact-info, .contact-form { padding: 30px; }
}