/* =========================================
   1. RESET, VARIABLES & CONFIG GLOBALE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* PALETTE : MIDNIGHT BLUE & CYAN */
    --primary-color: #00f2ff; /* Cyan électrique */
    --secondary-color: #4a00e0; /* Violet */
    --dark-bg: #0f172a;       /* Bleu nuit profond */
    --footer-bg: #020617;     /* Presque noir */
    --text-light: #e2e8f0;    /* Blanc cassé */
    
    --font-title: 'Montserrat', sans-serif;
    --font-text: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; 
    width: 100%;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: var(--font-text);
    overflow-x: hidden; 
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Classes Utilitaires */
.centered { text-align: center; }
.text-highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

/* =========================================
   2. BANDEAU D'INFORMATION (TOP BAR)
   ========================================= */
#top-notification-bar {
    display: block;
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: linear-gradient(90deg, #00f2ff, #4a00e0);
    color: white;
    text-align: center;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#top-notification-bar a {
    color: white; text-decoration: underline; font-weight: 800; margin-left: 5px;
}
#top-notification-bar a:hover { color: #000; }

#close-notification {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: white; font-size: 20px;
    cursor: pointer; opacity: 0.8; transition: 0.3s;
}
#close-notification:hover { opacity: 1; transform: translateY(-50%) scale(1.2); }

.slide-down { animation: slideInBar 0.5s ease-out forwards; }
@keyframes slideInBar {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* =========================================
   3. NAVIGATION (NAVBAR & MEGA MENU)
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 90px;
    padding: 0 2%; display: flex; justify-content: space-between; align-items: center;
    background: rgba(15, 23, 42, 0.9); z-index: 100; backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: top 0.3s ease, background 0.3s ease; 
}

/* LOGO */
.logo {
    display: flex; align-items: center; height: 100%; text-decoration: none;
    width: auto; max-width: 300px; font-family: var(--font-title);
    font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; color: white;
    text-transform: uppercase; line-height: 1.2;
}
.logo-img {
    height: 130px; width: auto; object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0, 242, 255, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.logo:hover .logo-img {
    transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.8));
}

/* LIENS */
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a {
    text-decoration: none; color: var(--text-light); font-weight: 500;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }

.btn-contact {
    border: 1px solid var(--primary-color); padding: 10px 20px; border-radius: 30px;
    color: var(--primary-color) !important; transition: 0.3s;
}
.btn-contact:hover {
    background: var(--primary-color); color: var(--dark-bg) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

/* MEGA MENU (Version Desktop) */
.dropdown-parent { position: relative; padding-bottom: 20px; margin-bottom: -20px; }
.mega-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px);
    width: 800px; background-color: #0b1120; border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-color); border-radius: 0 0 15px 15px; padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9); opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 1000;
}
.dropdown-parent:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mega-card {
    display: block; text-decoration: none; background: rgba(255, 255, 255, 0.03);
    border-radius: 8px; overflow: hidden; transition: 0.3s; border: 1px solid transparent;
}
.mega-card img { width: 100%; height: 100px; object-fit: cover; display: block; transition: 0.5s; }
.mega-card span { display: block; padding: 10px; text-align: center; color: white; font-family: var(--font-text); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; }
.mega-card:hover { border-color: var(--primary-color); background: rgba(0, 242, 255, 0.05); transform: translateY(-3px); }
.mega-card:hover img { transform: scale(1.1); }
.mega-card:hover span { color: var(--primary-color); }

/* BURGER MENU (Mobile) */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: white; margin: 5px; transition: all 0.3s ease; }
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* =========================================
   4. HERO & EN-TÊTES
   ========================================= */
.hero {
    position: relative; height: 100vh; display: flex;
    justify-content: center; align-items: center; text-align: center;
}
#bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.95)); z-index: -1;
}
.hero-content h1 { font-family: var(--font-title); font-size: 3.5rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; color: white; }
.hero-content p { font-size: 1.2rem; font-weight: 300; margin-bottom: 40px; color: #cbd5e1; max-width: 600px; margin-left: auto; margin-right: auto; }

.page-header {
    position: relative; height: 65vh; display: flex; justify-content: center;
    align-items: center; text-align: center; overflow: hidden; margin-top: 0;
    background: linear-gradient(rgba(15,23,42,0.7), rgba(15,23,42,0.7)), url('../assets/img/Table.jpg') no-repeat center center/cover;
}
.video-mode { background: none !important; overflow: hidden; }
.header-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2; object-position: center 35%;
}
.page-header .overlay { background: rgba(15, 23, 42, 0.7); z-index: -1; }
.header-content { z-index: 1; position: relative; }
.header-content h1 { font-family: var(--font-title); font-size: 3rem; color: white; text-transform: uppercase; z-index: 2; position: relative; }
.header-content p { color: #e2e8f0; font-size: 1.2rem; margin-top: 10px; z-index: 2; position: relative; }

/* =========================================
   5. ÉLÉMENTS GLOBAUX
   ========================================= */
.section-title { font-family: var(--font-title); font-size: 3rem; color: white; text-transform: uppercase; margin-bottom: 60px; }
.subtitle { color: var(--primary-color); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 10px; font-weight: 700; }

.cta-button {
    text-decoration: none; color: white;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    padding: 15px 40px; border-radius: 50px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
    border: none; display: inline-block;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3); }

/* Section Partenaires */
.partners-section { padding: 80px 5%; background-color: var(--dark-bg); text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; max-width: 1200px; margin: 0 auto; }
.partner-card {
    background: white; width: 280px; height: 160px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: all 0.3s ease; cursor: default;
}
.partner-card img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: all 0.4s ease; }
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 242, 255, 0.2); }
.partner-card:hover img { filter: grayscale(0%) opacity(1); transform: scale(1.1); }

/* =========================================
   6. PAGE ACCUEIL
   ========================================= */
.agence-section { padding: 100px 5%; background-color: var(--dark-bg); }
.container { max-width: 1200px; margin: 0 auto; }

.agence-content { display: flex; justify-content: space-between; align-items: center; gap: 50px; margin-bottom: 80px; }
.agence-text { flex: 1; }
.agence-text h2 { font-family: var(--font-title); font-size: 2.5rem; line-height: 1.2; margin-bottom: 30px; color: white; }
.agence-text p { font-size: 1rem; line-height: 1.8; color: #94a3b8; margin-bottom: 20px; }
.founders { margin-top: 30px; border-left: 3px solid var(--primary-color); padding-left: 15px; }
.founders p { color: white; font-weight: 700; font-size: 1.1rem; margin-bottom: 0; }
.founders .role { color: var(--secondary-color); font-size: 0.9rem; text-transform: uppercase; }

.agence-img {
    flex: 1; position: relative; min-height: 400px; height: 100%; border-radius: 15px;
    overflow: hidden; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1);
}
.agence-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.5s; }
.agence-img img:hover { transform: scale(1.03); }

.stats-row {
    display: flex; justify-content: space-around; background: rgba(255, 255, 255, 0.03);
    padding: 40px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-box { text-align: center; }
.stat-box h3 { font-size: 2.5rem; color: var(--primary-color); font-family: var(--font-title); margin-bottom: 5px; }
.stat-box p { color: white; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

.expertises-section { background-color: #0b1120; padding: 100px 5%; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background: rgba(255, 255, 255, 0.03); padding: 40px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.4s ease;
}
.service-card:hover {
    transform: translateY(-10px); border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8); box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15);
}
.icon-box { font-size: 3rem; margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-title); font-size: 1.5rem; color: white; margin-bottom: 15px; }
.service-card p { color: #94a3b8; line-height: 1.6; margin-bottom: 20px; }

.portfolio-section { background-color: var(--dark-bg); padding: 100px 2%; }

/* GRILLE PORTFOLIO ACCUEIL */
.home-portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px;
}
.home-portfolio-item {
    position: relative; height: 400px; border-radius: 15px; overflow: hidden;
    display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
}
.home-portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 2;
}
.portfolio-overlay h3 {
    color: white; font-size: 1.5rem; margin-bottom: 5px; font-family: 'Montserrat', sans-serif;
    font-weight: 800; text-transform: uppercase;
}
.portfolio-overlay p { color: #00f2ff; font-weight: bold; font-size: 0.9rem; }
.home-portfolio-item:hover img { transform: scale(1.1); }

/* =========================================
   7. PAGE ENTREPRISE
   ========================================= */
.pro-details-section { padding: 100px 5%; background-color: var(--dark-bg); }
.zig-zag-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 80px; margin-bottom: 120px; scroll-margin-top: 140px;
}
.zig-zag-row.reverse { flex-direction: row-reverse; }
.zig-zag-text { flex: 1; }
.zig-zag-text h3 { font-family: var(--font-title); font-size: 2.2rem; color: white; margin-bottom: 20px; line-height: 1.2; }
.zig-zag-text .intro-p {
    font-size: 1.1rem; color: #fff; font-weight: 500;
    margin-bottom: 15px; border-left: 3px solid var(--primary-color); padding-left: 15px;
}
.zig-zag-text p { color: #94a3b8; line-height: 1.8; margin-bottom: 25px; font-size: 1rem; }
.zig-zag-img {
    flex: 1; height: 400px; position: relative; border-radius: 20px;
    overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); transition: transform 0.3s ease;
}
.zig-zag-img img, .zig-zag-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.zig-zag-img:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0, 242, 255, 0.15); }
.btn-small { padding: 12px 30px; font-size: 0.9rem; }

/* =========================================
   8. PAGE SERVICES
   ========================================= */
.packages-section { padding: 80px 5%; background-color: var(--dark-bg); }
.package-row { display: flex; align-items: center; justify-content: space-between; gap: 60px; margin-bottom: 100px; }
.package-row.reverse { flex-direction: row-reverse; }
.package-content {
    flex: 1; background: rgba(255, 255, 255, 0.03); padding: 40px;
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); transition: 0.3s;
}
.package-content:hover { transform: translateY(-5px); }
.badge-icon { font-size: 3rem; margin-bottom: 15px; }
.package-content h3 { font-family: var(--font-title); font-size: 2rem; color: white; margin-bottom: 15px; text-transform: uppercase; }
.pack-desc { color: #cbd5e1; margin-bottom: 25px; font-style: italic; }
.pack-list { list-style: none; margin-bottom: 30px; }
.pack-list li { margin-bottom: 12px; font-size: 1rem; color: #e2e8f0; display: flex; align-items: flex-start; gap: 10px; }
.pack-list li.sub-item { margin-left: 25px; font-size: 0.9rem; color: #94a3b8; }
.package-video-box {
    flex: 1; height: 350px; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.package-video-box video { width: 100%; height: 100%; object-fit: cover; }

.style-bronze { border-top: 4px solid #cd7f32; }
.text-bronze { color: #cd7f32; }
.btn-bronze { background: linear-gradient(45deg, #8B4513, #cd7f32); border: none; width: 100%; text-align: center; }

.style-silver { border-top: 4px solid #c0c0c0; }
.text-silver { color: #e2e8f0; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.btn-silver { background: linear-gradient(45deg, #7f8c8d, #bdc3c7); border: none; color: #000; width: 100%; text-align: center; }

.style-gold { border-top: 4px solid #ffd700; }
.text-gold { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.btn-gold { background: linear-gradient(45deg, #d4af37, #ffd700); border: none; color: #000; width: 100%; text-align: center; }

/* =========================================
   9. PAGE LOCATION (CATALOGUE & CHOIX)
   ========================================= */
.location-choices-section { padding: 60px 5% 0 5%; background-color: var(--dark-bg); }
.choices-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.choice-card {
    position: relative; width: 45%; min-width: 300px; height: 250px; border-radius: 20px;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    text-decoration: none; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: all 0.3s ease;
}
.choice-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; filter: brightness(0.4);
    transition: transform 0.6s ease, filter 0.3s ease; z-index: 1;
}
.choice-content { position: relative; z-index: 2; text-align: center; color: white; }
.choice-content .icon { font-size: 3rem; display: block; margin-bottom: 10px; text-shadow: 0 0 20px rgba(0, 242, 255, 0.5); }
.choice-content h3 { font-family: var(--font-title); font-size: 1.8rem; text-transform: uppercase; font-weight: 800; margin-bottom: 5px; letter-spacing: 1px; }
.choice-content p { font-size: 1rem; color: #cbd5e1; font-weight: 500; }
.choice-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 15px 40px rgba(0, 242, 255, 0.2); }
.choice-card:hover .choice-bg { transform: scale(1.1); filter: brightness(0.6); }
.choice-card:hover .choice-content h3 { color: var(--primary-color); }

.catalog-section { padding: 80px 5%; background-color: var(--dark-bg); }
.search-container { margin-bottom: 60px; display: flex; justify-content: center; padding: 0 20px; }
.search-box {
    display: flex; align-items: center; background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; padding: 15px 30px; width: 100%; max-width: 650px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.search-box:focus-within {
    background: rgba(15, 23, 42, 0.95); border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.3), inset 0 0 10px rgba(0, 242, 255, 0.1); transform: scale(1.02);
}
.search-box input {
    background: transparent; border: none; color: white; font-size: 1.1rem;
    font-family: var(--font-text); outline: none; width: 100%; font-weight: 500; letter-spacing: 0.5px;
}
.search-box input::placeholder { color: #94a3b8; font-style: italic; opacity: 0.7; transition: opacity 0.3s; }
.search-box input:focus::placeholder { opacity: 0.3; }
.search-btn {
    background: transparent; border: none; cursor: pointer; padding: 10px; margin-left: 15px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.icon-img { width: 24px; height: 24px; filter: invert(1); transition: 0.3s; opacity: 0.8; }
.search-btn:hover { background: rgba(0, 242, 255, 0.15); transform: rotate(15deg) scale(1.1); }
.search-btn:hover .icon-img { opacity: 1; filter: drop-shadow(0 0 5px var(--primary-color)); }

.catalog-intro { margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }
.catalog-intro h2 { font-family: var(--font-title); font-size: 2.5rem; color: white; margin-bottom: 20px; text-transform: uppercase; }
.catalog-intro p { color: #94a3b8; line-height: 1.6; }
.category-block { margin-bottom: 100px; }
.category-title {
    font-family: var(--font-title); font-size: 1.8rem; color: var(--primary-color);
    margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; display: inline-block; text-transform: uppercase;
}
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card {
    background: #0b1120; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.product-img { height: 350px; overflow: hidden; position: relative; }
.product-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.img-front { z-index: 1; }
.img-back { z-index: 2; opacity: 0; animation: autoSlide 6s infinite; }
@keyframes autoSlide { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-info { padding: 20px; }
.product-info h4 { color: white; font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 10px; text-transform: uppercase; }
.product-info p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.4; }
.tag { display: inline-block; background: rgba(0, 242, 255, 0.1); color: var(--primary-color); padding: 5px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }

/* =========================================
   10. PAGE GALERIE
   ========================================= */
.gallery-section { padding: 60px 5%; background-color: var(--dark-bg); }
.filter-menu { margin-bottom: 50px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.filter-btn {
    background: transparent; color: white; border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 30px; border-radius: 50px; cursor: pointer; font-family: var(--font-title);
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color); color: var(--dark-bg); border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4); transform: translateY(-2px);
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.gallery-card {
    position: relative; height: 350px; border-radius: 15px; overflow: hidden;
    cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05);
}
.gallery-card img, .gallery-card video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-card:hover img, .gallery-card:hover video { transform: scale(1.1); }
.card-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent); z-index: 2;
    transform: translateY(20px); opacity: 0; transition: all 0.4s ease;
}
.gallery-card:hover .card-content { transform: translateY(0); opacity: 1; }
.card-content h3 { color: white; font-family: var(--font-title); font-size: 1.4rem; text-transform: uppercase; font-weight: 800; margin: 0 0 5px 0; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.card-content p { color: var(--primary-color); font-size: 0.9rem; font-weight: 600; margin: 0; letter-spacing: 1px; }
.play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2.5rem; color: white; width: 60px; height: 60px; background: rgba(0, 0, 0, 0.4);
    border: 2px solid white; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    z-index: 5; transition: 0.3s; pointer-events: none; backdrop-filter: blur(2px);
}
.gallery-card:hover .play-icon { background: var(--primary-color); border-color: var(--primary-color); transform: translate(-50%, -50%) scale(1.1); }

/* GALERIE HUB */
.gallery-hub-section { padding: 80px 5%; background-color: var(--dark-bg); }
.hub-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.hub-card {
    position: relative; flex: 1; min-width: 300px; height: 500px; border-radius: 20px;
    overflow: hidden; text-decoration: none; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); transition: transform 0.3s ease;
}
.hub-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; filter: brightness(0.5) grayscale(30%);
    transition: all 0.6s ease;
}
.hub-content {
    position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; padding: 20px;
}
.hub-content h3 { font-family: var(--font-title); font-size: 2rem; color: white; margin-bottom: 10px; text-transform: uppercase; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.hub-content p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 30px; }
.hub-btn {
    padding: 12px 30px; border: 1px solid white; color: white; border-radius: 50px;
    font-weight: bold; text-transform: uppercase; transition: 0.3s; background: rgba(0,0,0,0.3);
}
.hub-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.hub-card:hover .hub-bg { filter: brightness(0.8) grayscale(0%); transform: scale(1.1); }
.hub-card:hover .hub-content h3 { color: var(--primary-color); }
.hub-card:hover .hub-btn { background: var(--primary-color); border-color: var(--primary-color); color: var(--dark-bg); }

/* =========================================
   11. PAGE CONTACT
   ========================================= */
.contact-section { padding: 80px 5%; background-color: #0b1120; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.contact-wrapper { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 40px; }
.contact-info-box { flex: 1; min-width: 300px; max-width: 400px; }
.contact-info-box h3 { font-family: var(--font-title); font-size: 1.5rem; color: white; margin-bottom: 20px; }
.info-item {
    display: flex; align-items: center; margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03); padding: 15px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.info-item .icon { font-size: 1.5rem; margin-right: 15px; width: 40px; text-align: center; }
.info-item h4 { color: white; margin-bottom: 5px; font-size: 1rem; font-family: var(--font-title); }
.info-item p { color: #cbd5e1; font-size: 0.9rem; margin: 0; }
.contact-link { color: white; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: all 0.3s ease; border-bottom: 2px solid transparent; }
.contact-link:hover { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }

.main-form {
    flex: 1; min-width: 300px; max-width: 600px; background: rgba(255, 255, 255, 0.02);
    padding: 30px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05);
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; color: #e2e8f0; margin-bottom: 8px; font-size: 0.9rem; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; background: #020617; border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; color: white; font-family: var(--font-text); outline: none; font-size: 1rem; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 10px rgba(0, 242, 255, 0.1); }
.form-btn { width: 100%; margin-top: 10px; cursor: pointer; font-size: 1rem; }

.google-section { padding: 50px 5%; background-color: #020617; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.google-btn {
    display: inline-block; background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white; font-weight: 800; padding: 15px 35px; border-radius: 50px; text-decoration: none;
    font-family: var(--font-title); text-transform: uppercase; margin-bottom: 50px; transition: 0.3s; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.google-btn:hover { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); box-shadow: 0 10px 25px rgba(0, 242, 255, 0.3); transform: translateY(-3px); }
.map-container {
    width: 100%; max-width: 1000px; margin: 0 auto; border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.map-container iframe { display: block; }

/* =========================================
   12. FOOTER
   ========================================= */
footer { background-color: #020617; padding-top: 80px; padding-bottom: 30px; color: #94a3b8; font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-container { max-width: 1300px; margin: 0 auto; padding: 0 5%; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer-col { flex: 1; min-width: 200px; }
.brand-col { flex: 1.2; }
.footer-logo-img { width: 180px; height: auto; display: block; margin-bottom: 10px; filter: drop-shadow(0 0 2px rgba(0, 242, 255, 0.3)); }
.footer-desc { margin-bottom: 15px; line-height: 1.4; font-size: 0.85rem; color: #cbd5e1; max-width: 200px; }
.footer-btn {
    display: inline-block; background-color: #2563eb; color: white; font-weight: 800; padding: 12px 25px;
    border-radius: 5px; text-decoration: none; text-transform: uppercase; font-size: 0.85rem; transition: 0.3s;
}
.footer-btn:hover { background-color: var(--primary-color); color: #000; }
.footer-col h3 { color: white; font-size: 1.1rem; font-family: var(--font-title); margin-bottom: 25px; font-weight: 700; }
.footer-links, .contact-info { list-style: none; padding: 0; }
.footer-links li, .contact-info li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }
.contact-info li { display: flex; gap: 10px; align-items: center; color: #cbd5e1; }
.social-icons-row { display: flex; gap: 15px; margin-top: 25px; }
.social-icons-row img { width: 24px; height: 24px; filter: invert(1); transition: 0.3s; opacity: 0.7; }
.social-icons-row a:hover img { opacity: 1; transform: scale(1.1); }
.footer-bottom { margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; font-size: 0.8rem; color: #64748b; }

/* =========================================
   13. LIGHTBOX COMPLETE
   ========================================= */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; flex-direction: column;
}
.lightbox.active { display: flex; animation: fadeIn 0.3s ease; }
.lightbox-content { max-width: 95%; max-height: 90%; position: relative; }
/* Correction : Image adaptative qui ne se coupe jamais */
.lightbox-content img, .lightbox-content video { 
    /* On a supprimé les min-width/height qui posaient problème */
    
    max-width: 90vw; /* Largeur max : 90% de l'écran */
    max-height: 80vh; /* Hauteur max réduite pour laisser la place au titre */
    
    width: auto; 
    height: auto; 
    border-radius: 5px; 
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5); 
    display: none; 
    object-fit: contain; /* L'image s'adapte sans être déformée */
}

/* Petit bonus pour les téléphones */
@media (max-width: 768px) {
    .lightbox-content img, .lightbox-content video {
        max-height: 70vh; /* Encore un peu plus petit sur mobile pour être sûr */
    }
}
.close-lightbox {
    position: absolute; top: 20px; right: 40px; color: white; font-size: 50px;
    font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 2001;
}
.close-lightbox:hover { color: var(--primary-color); }

.lightbox-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5);
    color: white; border: none; font-size: 2.5rem; padding: 15px 20px; cursor: pointer;
    border-radius: 5px; transition: 0.3s; z-index: 1001; user-select: none;
}
.lightbox-btn:hover { background: var(--primary-color); color: black; }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* =========================================
   14. RESPONSIVE GLOBAL (CORRECTION FINALE)
   ========================================= */
@media (max-width: 1024px) {
    /* --- 1. Z-INDEX : LA CORRECTION CRITIQUE --- */
    /* On force la barre entière à passer au-dessus de la loupe (qui est à 9999) */
    .navbar { 
        height: 70px; 
        padding: 0 5%; 
        z-index: 20000 !important; /* C'est ça la clé ! */
    }
    
    .logo-img { height: 50px; } 
    .burger { display: block; z-index: 20001; }
    
    /* --- 2. LE MENU PLEIN ÉCRAN --- */
    .nav-links {
        position: fixed;
        top: 70px; /* Juste sous la barre */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px); /* Toute la hauteur restante */
        background-color: #020617;
        
        display: flex;
        flex-direction: column;
        align-items: center; /* Centre horizontalement les blocs */
        justify-content: flex-start; /* Commence en haut */
        padding-top: 40px;
        padding-bottom: 100px;
        
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        overflow-y: auto; /* Scroll activé */
        -webkit-overflow-scrolling: touch;
    }

    /* Les gros titres (Accueil, etc.) */
    .nav-links li {
        width: 100%;
        text-align: center; /* Force le texte au centre */
        margin: 0;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        opacity: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 800;
        display: block;
        width: 100%;
    }

    /* --- 3. SOUS-MENUS (MEGA MENU) --- */
    .mega-menu {
        display: none;
        position: static !important; /* Plus de flottement */
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ouverture */
    .dropdown-parent.active .mega-menu {
        display: block !important;
    }

    .mega-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    /* --- 4. CENTRAGE DU TEXTE (FORCE) --- */
    .mega-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Centre le contenu flex */
        justify-content: center !important;
        text-align: center !important; /* Centre le texte */
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
        background: transparent;
        text-decoration: none;
    }

    /* On cache l'image pour de bon */
    .mega-card img {
        display: none !important;
    }

    /* Le texte des sous-menus */
    .mega-card span {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        color: #94a3b8;
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .mega-card:hover span {
        color: var(--primary-color);
    }

    /* Reset marges */
    .dropdown-parent { padding-bottom: 0; margin-bottom: 0; }
    
    /* Autres ajustements */
    .page-header { height: 40vh; margin-top: 0; }
    .header-content h1 { font-size: 2rem; }
    .agence-content, .stats-row, .zig-zag-row, .zig-zag-row.reverse, .package-row, .package-row.reverse, .footer-container, .hub-grid, .choice-card {
        flex-direction: column; gap: 30px;
    }
    .zig-zag-img, .package-video-box, .hub-card { width: 100%; height: 300px; }
    .choice-card { width: 100%; height: 200px; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; padding: 0 10px; line-height: 1.3; }
    .hero-content p { font-size: 1rem; padding: 0 20px; }
    .home-portfolio-grid { grid-template-columns: 1fr; }
    .home-portfolio-item { height: 250px; }
    .partner-card { width: 100%; height: 120px; }
    .lightbox-btn { padding: 10px 15px; font-size: 1.5rem; background: rgba(0,0,0,0.8); }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

@media (max-width: 480px) {
    .nav-links { width: 100%; }
    .logo-img { height: 40px; }
}

/* Animation Menu */
.nav-active { transform: translateX(0%); }
@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

/* =========================================
   BOUTON RETOUR & ANIMATIONS
   ========================================= */
.back-btn-style {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.back-btn-style:hover {
    background: var(--primary-color);
    color: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

.slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-left.active { opacity: 1; transform: translateX(0); }

.slide-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-right.active { opacity: 1; transform: translateX(0); }

.slide-right img { transform: scale(1.1); transition: transform 1.5s ease; }
.slide-right.active img { transform: scale(1); }

@media (max-width: 768px) {
    .slide-left, .slide-right {
        transform: translateX(0) !important;
        opacity: 0;
        transition: opacity 1s ease-out !important;
    }
    .slide-left.active, .slide-right.active { opacity: 1; }
}

/* =========================================
   SUPER RECHERCHE (OVERLAY)
   ========================================= */
#search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 20000;
    display: none;
    justify-content: center; align-items: center; flex-direction: column;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.search-content { width: 90%; max-width: 600px; text-align: center; }
.search-content h2 {
    color: white; font-family: var(--font-title); text-transform: uppercase;
    margin-bottom: 20px; font-size: 2rem;
}
.search-content p { color: var(--primary-color); margin-top: 15px; font-weight: 500; }

#global-search-input {
    width: 100%; padding: 20px; font-size: 1.5rem; border-radius: 50px;
    border: 2px solid var(--primary-color); background: rgba(255,255,255,0.1);
    color: white; text-align: center; outline: none; transition: 0.3s;
}
#global-search-input:focus {
    background: rgba(255,255,255,0.2); box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.close-search {
    position: absolute; top: 30px; right: 40px; font-size: 3rem; color: white;
    cursor: pointer; transition: 0.3s;
}
.close-search:hover { color: var(--primary-color); transform: scale(1.1); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#floating-search-btn {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--primary-color); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    /* Z-INDEX à 9999 (Le menu est à 20000 donc il passera au-dessus) */
    z-index: 9999; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); cursor: pointer;
    transition: transform 0.3s ease;
}
#floating-search-btn img { width: 25px; height: 25px; filter: invert(1); }
#floating-search-btn:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(0, 242, 255, 0.6); }

/* =========================================
   ACCORDÉONS (Menus Déroulants) - VERSION FLUIDE
   ========================================= */
.category-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid transparent;
    transition: background 0.3s;
}
.accordion-header:hover { background: rgba(255, 255, 255, 0.05); }

.accordion-header h3 {
    margin: 0; border: none; font-size: 1.3rem; color: white;
    text-transform: uppercase; padding-bottom: 0;
}

.accordion-icon {
    font-size: 1.2rem; color: var(--primary-color); transition: transform 0.3s ease;
}

/* Le contenu caché par défaut */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    /* On met 0.5s pour que ce soit synchro avec le Javascript */
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* --- ÉTAT OUVERT (CLASS ACTIVE) --- */
.category-block.active {
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-block.active .accordion-header {
    background: rgba(0, 242, 255, 0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-block.active .accordion-icon {
    transform: rotate(180deg);
}

.category-block.active .accordion-content {
    opacity: 1;
    /* Pas de max-height fixe ici, le JS le calcule */
}

/* Ajustement du padding de la grille quand c'est ouvert */
.accordion-content .catalog-grid {
    padding: 25px;
}

/* =========================================
   TITRE DANS LA LIGHTBOX
   ========================================= */
#lightbox-title {
    color: white;
    font-family: var(--font-title);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 15px; /* Espace entre le titre et l'image */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Ombre pour lisibilité sur fond sombre */
    width: 100%;
    z-index: 10;
    display: block;
}

/* Ajustement pour Mobile */
@media (max-width: 768px) {
    #lightbox-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
        padding: 0 10px;
    }
}

/* Mention légale dans le header */
.header-disclaimer {
    font-size: 0.85rem !important; /* Plus petit que le sous-titre */
    font-style: italic;
    color: #cbd5e1; /* Gris clair */
    margin-top: 15px !important;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Bouton "Voir l'autre face" - Version Flottante */
.flip-btn {
    display: none; /* Caché par défaut */
    
    /* C'est ici que la magie opère : */
    position: absolute; 
    bottom: 20px; /* On le place à 20px du bas de l'image */
    left: 50%;    /* On le centre horizontalement */
    transform: translateX(-50%); /* Correction pour le centrage parfait */
    z-index: 50;  /* On s'assure qu'il est bien au-dessus de l'image */

    /* Style visuel "Badge" */
    background: rgba(15, 23, 42, 0.85); /* Fond sombre semi-transparent */
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px); /* Petit effet de flou moderne */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.flip-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
    transform: translateX(-50%) translateY(-3px); /* Petite animation vers le haut */
}

/* =========================================
   BOUTON "RETOURNER" (Coin de l'image)
   ========================================= */
.flip-btn-corner {
    display: none; /* Caché par défaut (le JS l'active) */
    position: absolute;
    bottom: 15px;  /* Espace depuis le bas de l'image */
    right: 15px;   /* Espace depuis la droite de l'image */
    z-index: 50;   /* Au-dessus de l'image */
    
    background: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
    border: 1px solid var(--primary-color); /* Fine bordure Cyan */
    border-radius: 50%; /* Forme ronde */
    width: 45px;
    height: 45px;
    
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Pour bien centrer l'icône dedans */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.flip-btn-corner:hover {
    background: var(--primary-color); /* Devient Cyan au survol */
    transform: rotate(180deg); /* L'icône tourne sur elle-même ! */
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.8);
}

/* Force l'affichage de l'image de l'icône */
.flip-btn-corner img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: contain !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
}