/* =========================================
   1. VARIABLES & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* Palette Premium Nabyous */
    --primary-blue: #0a1a44; /* Bleu nuit profond */
    --primary-light: #1a3a7a;
    --accent-gold: #d4af37;  /* Or métallique */
    --accent-cream: #fbf6e6;
    
    /* Couleurs Neutres */
    --text-dark: #222222;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #050a15;
    
    /* UI Elements */
    --shadow: 0 15px 30px rgba(0,0,0,0.08);
    --radius: 15px;
    --transition: all 0.3s ease-in-out;
    --navbar-height: 90px;
}

[data-theme="dark"] {
    --bg-light: #050a15;
    --text-dark: #f4f4f4;
    --white: #0f172a;
    --primary-blue: #3b82f6;
    --shadow: 0 15px 30px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg-light); color: var(--text-dark); overflow-x: hidden; line-height: 1.7; transition: var(--transition); }

/* Suppression totale des soulignements */
a { text-decoration: none !important; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. TYPOGRAPHIE & UI
   ========================================= */
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: var(--primary-blue); font-weight: 700; line-height: 1.2; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--accent-gold); }
.text-gold { color: var(--accent-gold) !important; }
.text-blue { color: var(--primary-blue) !important; }

.section-title { text-align: center; margin-bottom: 60px; position: relative; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60%; height: 4px; background: var(--accent-gold); margin: 10px auto 0; border-radius: 2px; }

/* BOUTONS */
.btn { padding: 14px 35px; border-radius: 50px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; cursor: pointer; transition: var(--transition); }
.btn-gold { background: linear-gradient(135deg, var(--accent-gold), #b8860b); color: white; box-shadow: 0 10px 20px -10px var(--accent-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -10px var(--accent-gold); }
.btn-outline { border: 2px solid var(--primary-blue); color: var(--primary-blue); background: transparent; }
.btn-outline:hover { background: var(--primary-blue); color: white; }

/* =========================================
   3. NAVBAR (CORRIGÉE & ROBUSTE)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    padding: 0 5%;
    background: var(--primary-blue); /* Fond Bleu Nuit */
    border-bottom: 2px solid var(--accent-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-logo img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    padding: 2px;
}

/* MENU DESKTOP */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    color: white;
    letter-spacing: 1px;
    cursor: pointer;
}

.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--accent-gold); transition: 0.3s; }
.nav-link:hover { color: var(--accent-gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ICONES */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-icons {
    display: flex;
    gap: 15px;
}

.theme-toggle, .lang-toggle { 
    color: white; 
    cursor: pointer; 
    font-size: 1.2rem; 
    transition: 0.3s; 
}
.theme-toggle:hover, .lang-toggle:hover { color: var(--accent-gold); }

/* HAMBURGER (Caché par défaut sur PC) */
.hamburger {
    display: none; /* IMPORTANT : Caché sur PC */
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

.mobile-only-icons {
    display: none; /* Caché sur PC */
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 160px;
    padding-bottom: 80px;
    padding-left: 10%;
    padding-right: 10%;
    background: linear-gradient(rgba(10,26,68,0.85), rgba(10,26,68,0.6)), url('../assets/image_25.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.hero-content { max-width: 800px; position: relative; z-index: 2; }
.hero h1 { font-size: 3.5rem; color: white; line-height: 1.2; margin-bottom: 25px; }
.hero-subtitle { font-size: 1.2rem; opacity: 0.95; margin-bottom: 40px; max-width: 600px; }

/* =========================================
   5. SECTIONS & CARDS
   ========================================= */
section { padding: 100px 10%; }
.card { background: var(--white); padding: 40px 30px; border-radius: var(--radius); box-shadow: var(--shadow); border-bottom: 3px solid transparent; transition: var(--transition); }
.card:hover { border-bottom-color: var(--accent-gold); transform: translateY(-10px); }

.services-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-box { text-align: center; }
.service-icon-box { width: 80px; height: 80px; line-height: 80px; background: var(--accent-cream); border-radius: 50%; margin: 0 auto 25px; font-size: 2rem; color: var(--accent-gold); transition: var(--transition); }
.card:hover .service-icon-box { background: var(--accent-gold); color: white; }

.about-img-wrapper { position: relative; }
.about-img-wrapper img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-img-wrapper::before { content: ''; position: absolute; top: -20px; left: -20px; width: 100%; height: 100%; border: 3px solid var(--accent-gold); border-radius: var(--radius); z-index: -1; }

/* =========================================
   6. NOUVELLES SECTIONS
   ========================================= */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item { display: flex; align-items: flex-start; gap: 20px; }
.feature-icon { font-size: 2rem; color: var(--accent-gold); background: rgba(10, 26, 68, 0.05); padding: 15px; border-radius: 50%; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.pack-card { background: var(--white); border: 1px solid #eee; border-radius: var(--radius); padding: 40px; text-align: center; transition: 0.3s; position: relative; overflow: hidden; }
.pack-card.popular { border: 2px solid var(--accent-gold); transform: scale(1.05); box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15); z-index: 2; }
.pack-badge { position: absolute; top: 20px; right: -30px; background: var(--accent-gold); color: white; padding: 5px 40px; transform: rotate(45deg); font-size: 0.8rem; font-weight: bold; }
.pack-price { font-size: 2rem; font-weight: 700; color: var(--primary-blue); margin: 20px 0; }
.pack-list { text-align: left; margin: 30px 0; }
.pack-list li { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }

.testimonial-card { background: var(--bg-light); padding: 30px; border-radius: var(--radius); position: relative; border: 1px solid rgba(0,0,0,0.05); }
.client-info { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.client-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary-blue); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; }

.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { background: var(--white); margin-bottom: 15px; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.accordion-header { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--primary-blue); transition: 0.3s; }
.accordion-header:hover { background: var(--bg-light); }
.accordion-content { max-height: 0; overflow: hidden; padding: 0 20px; transition: max-height 0.3s ease-out; color: var(--text-dark); }
.accordion-content p { padding-bottom: 20px; opacity: 0.8; }

/* =========================================
   7. CONTACT & FOOTER
   ========================================= */
.page-header { height: 50vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: white; background-size: cover; background-position: center; padding-top: var(--navbar-height); }
.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(10,26,68,0.7); }
.page-header-content { position: relative; z-index: 2; padding: 0 20px; }
.page-header h1 { font-size: 3.5rem; color: white; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.gallery-item { height: 300px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(10,26,68,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-icon { color: var(--accent-gold); font-size: 2rem; }

.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; background: var(--white); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.contact-info-box { background: var(--primary-blue); padding: 60px; color: white; display: flex; flex-direction: column; justify-content: space-between; }
.contact-form-box { padding: 60px; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; margin-bottom: 10px; font-weight: 600; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px; background: var(--bg-light); font-family: inherit; font-size: 1rem; transition: 0.3s; }
.input-group input:focus { border-color: var(--accent-gold); outline: none; background: white; }
.map-container { width: 100%; height: 300px; border-radius: var(--radius); overflow: hidden; margin-top: 20px; }

/* =========================================
   FOOTER CORRIGÉ (LOGO ROND + TEXTE BLANC)
   ========================================= */
footer {
    background: #050a15; /* Fond Noir Profond */
    color: #e0e0e0;      /* Texte Gris Clair par défaut */
    padding: 80px 10% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* CORRECTION DU LOGO DU FOOTER */
.footer-logo img {
    height: 80px;       /* Hauteur fixée */
    width: 80px;        /* Largeur fixée */
    object-fit: contain;
    background: white;  /* Fond blanc pour voir le logo */
    border-radius: 50%; /* ROND PARFAIT */
    border: 2px solid var(--accent-gold); /* Bordure dorée */
    padding: 5px;       /* Espace entre bordure et image */
    margin-bottom: 20px;
    display: block;
}

/* CORRECTION DES TITRES (H4) */
footer h4 {
    color: white !important; /* Force le titre en Blanc */
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 10px;
}

/* CORRECTION DES LIENS */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc !important; /* Gris clair visible */
    font-weight: 400;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold) !important; /* Doré au survol */
    padding-left: 5px;
}

/* CORRECTION CONTACT */
.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
    color: #cccccc;
}

.footer-contact i {
    color: var(--accent-gold);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #777;
}

.wa-float { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); z-index: 2000; transition: 0.3s; }
.wa-float:hover { transform: scale(1.1); }

/* =========================================
   8. RESPONSIVE (MOBILE) - C'EST ICI QUE TOUT SE JOUE
   ========================================= */
@media (max-width: 768px) {
    .navbar { height: 70px; padding: 0 20px; }
    .nav-logo img { height: 50px; width: 50px; }

    /* 1. On affiche le Hamburger */
    .hamburger { display: block; }

    /* 2. On cache les icônes desktop */
    .desktop-icons { display: none; }

    /* 3. Le Menu Mobile */
    .nav-menu { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: var(--primary-blue); flex-direction: column; align-items: center; justify-content: center; gap: 40px; transition: 0.4s ease-in-out; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-top: 1px solid rgba(255,255,255,0.1); }
    .nav-menu.active { left: 0; }
    .nav-link { font-size: 1.2rem; }

    /* 4. On affiche les icônes Langue/Thème DANS le menu */
    .mobile-only-icons { display: flex; gap: 30px; margin-top: 20px; }
    .mobile-only-icons i { font-size: 1.5rem; color: white; }

    .hero { padding-top: 120px; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .contact-container { grid-template-columns: 1fr; }
    .about-img-wrapper::before { display: none; }
    .pack-card.popular { transform: scale(1); }
}