/* =========================================================================
   Variables & Base Settings
   ========================================================================= */
:root {
    /* Primary Colors */
    --primary-blue: #0A1424; /* Midnight Blue Corporate */
    --primary-deep: #060D18;
    --primary-gold: #D4AF37; /* Premium Gold */
    --gold-light: #F3E5AB;
    --gold-dark: #AA8C2C;
    
    /* Semantic Colors */
    --white: #ffffff;
    --light-bg: #F8F9FA;
    --text-dark: #1A202C;
    --text-gray: #4A5568;
    --border-color: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', 'Montserrat', sans-serif;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;

    /* Premium UI Tokens */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 60px rgba(10, 20, 36, 0.1);
    --radius-lg: 16px;
    --radius-md: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   Typography & Utilities
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-left { text-align: left; }
.gold-text { 
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.3));
}


/* Spacing Helpers */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3.5rem; }
.py-5 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.py-section { padding: clamp(70px, 10vh, 100px) 0; }
.page-header + .py-section { padding-top: clamp(140px, 18vh, 160px); }
.pb-0 { padding-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }

/* Backgrounds */
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-blue); }
.bg-gold { background-color: var(--primary-gold) !important; }

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.items-center { align-items: center; }
.max-w-700 { max-width: 700px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; z-index: 2; }

/* Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .row > [class*="col-"] { width: 100% !important; padding: 15px; }
}

/* Columns */
.col-md-2 { width: 16.666%; padding: 0 15px; }
.col-md-4 { width: 33.333%; padding: 0 15px; }
.col-md-5 { width: 41.666%; padding: 0 15px; }
.col-md-6 { width: 50%; padding: 0 15px; }
.col-md-7 { width: 58.333%; padding: 0 15px; }
.col-md-8 { width: 66.666%; padding: 0 15px; }
.col-md-12 { width: 100%; padding: 0 15px; }

/* =========================================================================
   Universal Components
   ========================================================================= */

/* Section Titles */
.section-subtitle {
    color: var(--primary-gold);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    margin-bottom: 15px;
    position: relative;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
    margin-bottom: 30px;
    border-radius: 2px;
}

.divider.mx-auto { transform: translateX(30px); } /* Adjust for gradient */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i { margin-left: 10px; transition: transform 0.3s ease; }
.btn:hover i { transform: translateX(5px); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.6);
}

.btn-outline {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--white);
}

.btn-outline-white {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-lg { padding: 18px 45px; font-size: 1rem; }
.w-100 { width: 100%; }

/* =========================================================================
   Animations System
   ========================================================================= */
[class*="reveal-"] {
    opacity: 0;
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(50px); }
.reveal-down { transform: translateY(-50px); }
.reveal-left { transform: translateX(50px); }
.reveal-right { transform: translateX(-50px); }
.reveal-zoom { transform: scale(0.9); }

[class*="reveal-"].active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Mobile : amplitude réduite pour mieux coller au viewport */
@media (max-width: 768px) {
    .reveal-up { transform: translateY(25px); }
    .reveal-down { transform: translateY(-25px); }
    .reveal-left { transform: translateX(25px); }
    .reveal-right { transform: translateX(-25px); }
}


.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* Ken Burns Animation */
.ken-burns {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ken-burns img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ken-burns-animation 20s infinite alternate cubic-bezier(0.445, 0.05, 0.55, 0.95);
    will-change: transform;
}

@keyframes ken-burns-animation {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, -2%); }
}
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }




@keyframes pulse-button {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes pulse-white {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.btn {
    animation: pulse-button 3s infinite ease-in-out;
}

.btn-outline-white {
    animation: pulse-white 3s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.animate-float { animation: float 4s ease-in-out infinite; }

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-8px); }

.hover-glow:hover { box-shadow: var(--shadow-strong); }

.hover-shine { position: relative; overflow: hidden; }
.hover-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
}

.hover-shine:hover::after { animation: shine 0.8s forwards; }

/* =========================================================================
   Navbar
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 30px 0;
}



.navbar.scrolled {
    background: rgba(10, 20, 36, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.logo-img { height: 60px; transition: var(--transition); }
.navbar.scrolled .logo-img { height: 50px; }

.nav-menu { display: flex; align-items: center; }
.nav-menu li { margin-left: 30px; }

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar.scrolled .nav-link {
    color: var(--white);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.menu-toggle { 
    display: none; 
    cursor: pointer; 
    z-index: 1001; 
    position: relative;
    padding: 10px;
    margin-right: -10px;
}
.menu-toggle .bar {
    width: 28px;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    display: block;
}

/* Hamburger to X Animation */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 20, 36, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        padding: 80px 40px;
        visibility: hidden;
    }
    
    .nav-menu.active { 
        right: 0; 
        visibility: visible;
    }
    
    .nav-menu li { 
        margin: 15px 0; 
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }
    
    .nav-menu.active li {
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
    }
    
    /* Staggered load for menu items */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }

    .nav-link { 
        font-size: 1.4rem; 
        font-weight: 600;
        letter-spacing: 1.5px;
        display: inline-block;
    }
    
    .nav-menu li .btn {
        width: auto;
        min-width: 200px;
        margin-top: 10px;
    }

    .navbar.scrolled .logo-img, .logo-img {
        height: 50px;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Ensure hamburger bars are always visible */
    .menu-toggle .bar {
        background: var(--white);
    }
    .navbar.scrolled .menu-toggle .bar {
        background: var(--white);
    }
}

/* =========================================================================
   Common Page Header
   ========================================================================= */
.page-header {
    background-color: var(--primary-blue);
    padding: 160px 0 100px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Fix iOS Safari: background-attachment:fixed non supporté sur mobile */
@media (max-width: 992px) {
    .page-header {
        background-attachment: scroll;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 20, 36, 0.85) 0%, rgba(10, 20, 36, 0.6) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Page Specific Header Backgrounds */
.header-home { background-image: url('../images/hero_plateau.png'); }
.header-about { background-image: url('../images/legacy_history.png'); }
.header-activities { background-image: url('https://images.unsplash.com/photo-1541888081622-1dca3afa1606?auto=format&fit=crop&q=80'); }
.header-gouvernance { background-image: url('../images/ceo_partnership.jpg'); }
.header-invest { background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80'); }
.header-news { background-image: url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&q=80'); }
.header-contact { background-image: url('../images/hero_plateau.png'); }

.page-header h1 { 
    color: var(--white); 
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.page-header p.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


/* =========================================================================
   Hero Section (Index) - Cinematic Premium
   ========================================================================= */
/* =========================================================================
   Hero Section (Index) - Cinematic Carousel
   ========================================================================= */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding-top: 0; /* Let slides handle padding */
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-bg-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s linear;
    z-index: -1;
}

.hero-slide.active .hero-bg-zoom {
    transform: scale(1.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(10, 20, 36, 0.4) 0%, rgba(10, 20, 36, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 1s ease 0.4s, opacity 1s ease 0.4s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-carousel { height: 100dvh; }
    .hero-content { padding: 0 20px; }
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-flex; /* Changed to inline-flex to center if needed */
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold));
}

.hero-subtitle::after {
    background: linear-gradient(to left, transparent, var(--primary-gold));
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 15px;
    text-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
    color: var(--white);
}

.hero-desc {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 850px;
    margin: 0 auto 20px auto;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 5px 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-gold);
    line-height: 1;
}

.stat-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.8;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator:hover { opacity: 1; color: var(--primary-gold); }

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-gold);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes floatContent {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-floating {
    animation: floatContent 5s ease-in-out infinite;
}

/* =========================================================================
   Feature Cards & Info Cards
   ========================================================================= */
.feature-card, .contact-info-card, .opportunity-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover, .contact-info-card:hover, .opportunity-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(212, 175, 55, 0.2);
}

.icon-box, .ci-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-gold);
    transition: var(--transition);
}

.feature-card:hover .icon-box, 
.contact-info-card:hover .ci-icon {
    background: var(--primary-gold);
    color: var(--white);
}

.cta-section {
    background: linear-gradient(rgba(10, 20, 36, 0.85), rgba(10, 20, 36, 0.85)), url('../images/cta_premium.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

@media (max-width: 992px) {
    .cta-section {
        background-attachment: scroll;
    }
}

.cta-section .section-title {
    color: var(--white);
}

/* =========================================================================
   CEO Teaser & About Visuals
   ========================================================================= */
.ceo-teaser { background: var(--white); padding: 100px 0; }

.ceo-img, .image-placeholder {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    border-bottom: 6px solid var(--primary-gold);
    width: 100%;
}

.experience-badge, .ceo-name-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-gold);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
    text-align: center;
    z-index: 5;
}

.exp-years { font-size: 2.8rem; font-family: var(--font-heading); display: block; }
.exp-text { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }

/* Mission Overlay Class */
.mission-quote-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(10, 20, 36, 0.92) 0%, transparent 100%);
}

.mission-quote-overlay p:first-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.mission-quote-overlay p:last-child {
    color: var(--white);
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-heading);
    font-style: italic;
}

@media (max-width: 768px) {
    .experience-badge {
        top: 20px;
        right: 20px;
        bottom: auto;
        padding: 12px;
        border-radius: 8px;
    }

    .exp-years {
        font-size: 1.5rem;
    }

    .exp-text {
        font-size: 0.65rem;
    }

    .about-mission-container {
        height: auto;
        overflow: visible;
        box-shadow: none;
        background: transparent;
    }

    .about-mission-container img {
        height: 350px;
        border-radius: 16px;
        box-shadow: var(--shadow-strong);
    }

    .mission-quote-overlay {
        position: relative;
        padding: 25px 20px 0 0;
        background: transparent;
    }

    .mission-quote-overlay p:first-child {
        color: var(--primary-gold);
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .mission-quote-overlay p:last-child {
        color: var(--primary-blue);
        font-size: 1rem;
        font-weight: 500;
    }
}

/* =========================================================================
   Gallery (Index)
   ========================================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-strong);
    z-index: 5;
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Sector Detail (Activities)
   ========================================================================= */
.sector-detail {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    padding: 50px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    scroll-margin-top: 140px;
}

.sector-detail:nth-child(even) { flex-direction: row-reverse; }

.sector-icon { 
    font-size: 2.2rem; 
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: var(--primary-gold); 
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
    margin: 0 auto 30px auto;
}

.sector-content { flex: 1; padding: 0 50px; text-align: center; }

.sector-visual {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
}

@media (max-width: 992px) {
    .sector-detail { flex-direction: column; padding: 25px; gap: 30px; }
    .sector-detail:nth-child(even) { flex-direction: column; }
    .sector-content { padding: 0; }
    .sector-visual { 
        width: 100%; 
        min-height: 260px;
        height: 300px;
        order: -1;
        opacity: 1 !important;
        transform: none !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
        display: block !important;
    }
}

/* =========================================================================
   Contact Form
   ========================================================================= */
.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    background: var(--light-bg);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* =========================================================================
   Timeline (About/Index)
   ========================================================================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 50px;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-dot {
    position: absolute;
    top: 40px;
    width: 16px;
    height: 16px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

@media (max-width: 768px) {
    .timeline::before { left: 30px; }
    .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 70px; }
    .timeline-dot { left: 22px !important; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer { padding-top: 100px; text-align: center; }

.footer-logo { height: 70px; display: block; margin: 0 auto 25px auto; }

.footer-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 30px;
    padding-bottom: 10px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
}

.footer-links li { margin-bottom: 15px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary-gold); padding-left: 8px; }

.social-links { display: flex; gap: 15px; margin-top: 25px; justify-content: center; }
.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover { background: var(--primary-gold); border-color: var(--primary-gold); transform: translateY(-5px); }

.footer-bottom {
    padding: 30px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    text-align: center;
}

/* =========================================================================
   Investisseurs & RSE Specifics
   ========================================================================= */
.statistics-row {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2a44 100%);
    padding: 70px 50px;
    border-radius: var(--radius-lg);
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-strong);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.statistics-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-box .count {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-heading);
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-box .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    font-weight: 600;
    color: var(--primary-gold);
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .statistics-row { 
        flex-direction: column; 
        padding: 60px 40px; 
        gap: 50px; 
    }
    .stat-divider { 
        width: 100%; 
        height: 1px; 
        background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent); 
    }
}

.invest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.opportunity-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.opportunity-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-strong);
    border-color: var(--gold-light);
}

.opportunity-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.opportunity-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.opportunity-card:hover .opportunity-img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-gold);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
}

.opportunity-content {
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.opportunity-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.opportunity-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gold);
}

.opportunity-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
}

.btn-card-link {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-card-link i {
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

.btn-card-link:hover {
    color: var(--primary-gold);
}

.btn-card-link:hover i {
    transform: translateX(10px);
}

@media (max-width: 992px) {
    .invest-grid { grid-template-columns: repeat(2, 1fr); }
    .statistics-row { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .invest-grid { grid-template-columns: 1fr; }
}

.rse-card {
    background: var(--primary-blue);
    padding: 50px;
    border-radius: var(--radius-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--primary-gold);
}

.rse-card::before {
    content: '\f21e'; /* leaf icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.rse-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
}

.rse-list li {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

.news-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-gold);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 70px;
    background: var(--primary-gold);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    line-height: 1.2;
}

.news-date span:first-child { font-size: 1.5rem; }
.news-date span:last-child { font-size: 0.8rem; text-transform: uppercase; }

.ceo-image-wrapper { position: relative; }
.ceo-name-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    border-left: 5px solid var(--primary-gold);
}

@media (max-width: 768px) {
    .news-item { flex-direction: column; }
    .news-date { width: 60px; height: 60px; }
    .rse-card { padding: 30px; }
}

/* =========================================================================
   Universal Gallery Component (Horizontal Scroll)
   ========================================================================= */
.gallery-scroll-container {
    overflow-x: auto;
    padding: 30px 15px;
    margin: 0 -15px; /* Compense le padding du container parent */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Masquer la barre de scroll pour Webkit (Chrome, Safari, Opera) */
.gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

.gallery-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    width: max-content;
}

.gallery-scroll-item {
    flex: 0 0 400px; /* Taille généreuse fixe */
    max-width: 85vw; /* S'adapte sur mobile */
}

.gallery-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    background: var(--primary-blue);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.gallery-card .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 20, 36, 0.9) 0%, rgba(10, 20, 36, 0.2) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.gallery-card:hover .gallery-icon {
    transform: translateY(0);
}

.gallery-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    text-align: center;
}

.gallery-card:hover .gallery-title {
    transform: translateY(0);
}

/* =========================================================================
   Lightbox (Previous Add)
   ========================================================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 31, 56, 0.94);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
}

.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox.active .lightbox-img { transform: scale(1); }

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 45px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover { color: var(--primary-gold); transform: rotate(90deg); }

.lightbox-caption {
    position: absolute;
    bottom: 50px;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    width: 80%;
}

/* =========================================================================
   Nouveaux Styles : Équipe & ADN Premium
   ========================================================================= */

/* Section Équipe */
.equipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    display: block;
}

.equipe-image-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding-bottom: 20px;
    cursor: pointer;
}

.equipe-overlay-badge {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background: var(--primary-gold);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.equipe-overlay-badge .count {
    font-size: 1.8rem;
    font-weight: 800;
    line-height:1;
}

.equipe-overlay-badge .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Grille Philosophie (ADN) */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.philosophy-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.philosophy-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-color: var(--primary-gold);
    transform: translateY(-10px);
}

.phi-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--primary-gold);
    transition: var(--transition);
}

.philosophy-card:hover .phi-icon-wrapper {
    background: var(--primary-gold);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.philosophy-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.philosophy-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
}

/* Responsive ADN */
@media (max-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    .equipe-section .row {
        flex-direction: column-reverse;
    }
}

/* =========================================================================
   Premium Contact Page & Forms
   ========================================================================= */
.contact-info-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
    text-align: left;
    box-shadow: 0 15px 40px rgba(10, 20, 36, 0.05);
}

.contact-info-card h4 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-card .social-links {
    justify-content: center;
    margin-top: 15px;
}

.contact-social-bonus {
    text-align: center;
}

.contact-info-card .social-links a {
    background: rgba(10, 20, 36, 0.03);
    border-color: rgba(10, 20, 36, 0.08);
    color: var(--primary-blue);
}

.contact-info-card .social-links a:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.method-icon {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.contact-method-item:hover .method-icon {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-3px);
}

.method-info h5 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.method-info p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-social-bonus h5 {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Form Styling */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border-color);
}

.form-group label {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-control {
    border: 2px solid #f0f2f5;
    border-radius: var(--radius-sm);
    padding: 18px 25px;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: #fcfdfe;
    min-height: 55px;
    color: var(--primary-blue);
}

.form-control::placeholder {
    color: #a0aec0;
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.12);
    background: var(--white);
    outline: none;
}

select.form-control {
    appearance: none;
    padding-right: 45px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 24px;
}

textarea.form-control {
    min-height: 160px;
    resize: none;
}

/* =========================================================================
   Premium & Institutional Utilities
   ========================================================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.glass-card-dark {
    background: rgba(10, 20, 36, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.hidden {
    display: none !important;
}

.ken-burns {
    overflow: hidden;
}

.ken-burns img {
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1);
}

.ken-burns:hover img {
    transform: scale(1.08);
}

.museum-heading {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.gold-line-reveal {
    position: relative;
    padding-bottom: 15px;
}

.gold-line-reveal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: width 0.6s ease;
}

.active .gold-line-reveal::after {
    width: 100%;
}

/* =========================================================================
   Blog & News Components
   ========================================================================= */
.blog-featured {
    margin-bottom: 80px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 550px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-strong);
    background: var(--primary-blue);
}

.blog-featured-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s ease;
    z-index: 1;
}

.blog-featured:hover .blog-featured-img {
    transform: scale(1.05);
}

.blog-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 20, 36, 0.95) 0%, rgba(10, 20, 36, 0.4) 60%, transparent 100%);
    z-index: 2;
}

.blog-featured-content {
    position: relative;
    z-index: 3;
    padding: 80px;
    max-width: 900px;
    color: var(--white);
}

.blog-category {
    background: var(--primary-gold);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.blog-featured-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Stronger shadow for readability */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Forced 2-Column Mobile Grid for Réalisations & Actualités */
@media (max-width: 991px) {
    body .blog-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    body .blog-card {
        display: flex !important;
        flex-direction: column !important; /* Stack image on top of text */
        height: auto !important;
    }

    body .blog-card-img {
        height: 160px !important; /* Adjusted for better 2-column balance */
        width: 100% !important;
    }

    body .blog-card-content {
        padding: 12px 10px !important;
    }

    body .blog-card-content h3 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }

    body .blog-card-content p {
        display: -webkit-box !important; /* Restore descriptions */
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
        -webkit-line-clamp: 2 !important; /* Keep it compact */
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        color: var(--text-gray) !important;
    }

    body .blog-card-meta {
        font-size: 0.65rem !important;
        padding-top: 8px !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
}

.blog-card {
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--primary-blue);
    border-radius: var(--radius-lg);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.1);
}

.blog-category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 20, 36, 0.85); /* Increased opacity for contrast */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.blog-card-content {
    padding: 22px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.25;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition);
}

.blog-card:hover .blog-card-content h3 {
    color: var(--primary-gold);
}

.blog-card-content p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dark); /* Darker text for better contrast */
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.blog-card-meta i {
    color: var(--primary-gold);
}

@media (max-width: 992px) {
    .blog-featured {
        height: 500px;
    }
    .blog-featured-content {
        padding: 50px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
    .blog-featured {
        height: 450px;
        margin-bottom: 50px;
    }
    .blog-featured-content {
        padding: 40px 25px;
    }
    .blog-featured-content h2 {
        font-size: 2.2rem;
    }
    .blog-card-img {
        height: 220px;
    }
}

/* Filter Navigation */
.filter-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--primary-blue);
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* =========================================================================
   Additional Responsive Fixes
   ========================================================================= */
@media (max-width: 768px) {
    .py-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: clamp(2.4rem, 11vw, 3.8rem) !important;
        letter-spacing: -1px;
    }
    
    .hero-desc {
        font-size: 1.15rem;
        margin-bottom: 40px;
    }
    
    .hero-stats {
        padding: 20px 30px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: auto;
        min-width: 240px;
    }
    
    .stat-item {
        align-items: center;
        text-align: center;
    }

    .hero-content .btn {
        margin: 8px !important;
        width: 100%;
        max-width: 280px;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .divider.mx-auto {
        transform: none;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

/* =========================================================================
   GOVERNANCE PAGE: CEO & TEAM COMPONENTS
   ========================================================================= */
.ceo-image-wrapper {
    position: relative;
    max-width: 100%;
    margin-bottom: 40px;
}

.ceo-bg {
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-strong);
}

.ceo-name-badge {
    position: absolute;
    bottom: 40px;
    right: -40px;
    background: var(--white);
    padding: 28px 40px;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(10, 20, 36, 0.2);
    z-index: 5;
    border-left: 6px solid var(--primary-gold);
    min-width: 300px;
    transition: var(--transition);
}

.ceo-image-wrapper:hover .ceo-name-badge {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 0 35px 80px rgba(10, 20, 36, 0.25);
}

.ceo-name-badge h4 {
    margin-bottom: 5px;
    font-size: 1.25rem;
    color: var(--primary-blue) !important;
}

.ceo-name-badge p {
    color: var(--primary-gold) !important;
    letter-spacing: 1px;
    margin: 0;
}

@media (max-width: 992px) {
    .ceo-name-badge {
        right: 0;
        bottom: 20px;
        min-width: 260px;
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .ceo-name-badge {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -60px 20px 0;
        text-align: center;
        border-left: none;
        border-top: 6px solid var(--primary-gold);
        max-width: calc(100% - 40px);
    }
}

/* =========================================================================
   COMPONENTS: NEW PAGES & FEATURES (Refined)
   ========================================================================= */

/* 1. Floating Contact Button */
.floating-contact-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    background: var(--primary-gold);
    color: var(--white) !important;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    animation: pulse-gold-premium 3s infinite alternate;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.floating-contact-btn.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.8) translateY(20px) !important;
    pointer-events: none !important;
}

.floating-contact-btn:hover {
    transform: translateY(-8px) scale(1.03);
    background: var(--primary-blue);
    box-shadow: 0 20px 50px rgba(10, 20, 36, 0.4);
}

@keyframes pulse-gold-premium {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* 2. Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 110px; /* Placed above the contact button */
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2147483646;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .floating-contact-btn {
        bottom: 20px !important;
        right: 20px !important;
        padding: 0 !important;
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
    }
    .floating-contact-btn span {
        display: none !important;
    }
    .floating-contact-btn i {
        font-size: 1.5rem;
    }
}

/* 2. FAQ Accordion (Premium) */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.faq-item.active {
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(10, 20, 36, 0.05);
}

.faq-header {
    padding: 22px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    user-select: none;
}

.faq-header h3 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--primary-blue);
    font-family: var(--font-body);
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-item.active .faq-header h3 {
    color: var(--primary-gold);
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--primary-gold);
    border-radius: 2px;
}

.faq-icon::before { width: 100%; height: 2px; top: 50%; margin-top: -1px; }
.faq-icon::after { width: 2px; height: 100%; left: 50%; margin-left: -1px; }

.faq-item.active .faq-icon {
    transform: rotate(135deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-body {
    max-height: 500px;
}

.faq-content {
    padding: 0 30px 30px 30px;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* 3. Partners Grid (Premium) */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 1;
    transition: all 0.5s ease;
    padding: 15px;
    width: 100%;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 45px;
    object-fit: contain;
}

.partner-logo:hover {
    transform: translateY(-5px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}


@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 15px;
    }
}


/* =========================================================================
   PARALLAX SECTION SYSTEM
   ========================================================================= */
.parallax-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 13, 24, 0.80);
    z-index: 0;
    pointer-events: none;
}

.parallax-section > .container,
.parallax-section > * > .container,
.parallax-section > * {
    position: relative;
    z-index: 1;
}

.parallax-section h1,
.parallax-section h2,
.parallax-section h3,
.parallax-section h4,
.parallax-section h5 { color: var(--white) !important; }
.parallax-section p { color: rgba(255,255,255,0.82) !important; }
.parallax-section .section-subtitle { color: var(--primary-gold) !important; }
.parallax-section .text-gray,
.parallax-section .timeline-content p { color: rgba(255,255,255,0.72) !important; }
.parallax-section .divider { background: linear-gradient(90deg, var(--primary-gold), transparent); }

/* Standard colors inside parallax cards (updated for glassmorphism) */
.parallax-section .feature-card h1,
.parallax-section .feature-card h2,
.parallax-section .feature-card h3,
.parallax-section .feature-card h4,
.parallax-section .feature-card h5 { color: var(--white) !important; }
.parallax-section .feature-card p { color: rgba(255, 255, 255, 0.85) !important; }
.parallax-section .feature-card .icon-box { color: var(--primary-gold) !important; }
.parallax-section .blog-card h3 { color: var(--primary-blue) !important; }
.parallax-section .blog-card p { color: var(--text-gray) !important; }
.parallax-section .opportunity-card h3 { color: var(--primary-blue) !important; }
.parallax-section .opportunity-card p { color: var(--text-gray) !important; }

.parallax-ceo        { background-image: url('../images/ceo_partnership.jpg'); }
.parallax-plateau    { background-image: url('../images/hero_plateau.png'); }
.parallax-legacy     { background-image: url('../images/legacy_history.png'); }
.parallax-equipe     { background-image: url('../images/equipe.jpeg'); }
.parallax-btp        { background-image: url('../images/btp_gmh.png'); }
.parallax-immobilier { background-image: url('../images/immobilier_gmh.png'); }
.parallax-finance    { background-image: url('../images/finance_gmh.png'); }
.parallax-logistique { background-image: url('../images/logistique_gmh.png'); }

@media (max-width: 992px) {
    .parallax-section { background-attachment: scroll; }
}

/* =========================================================================
   UPGRADED CARDS — Premium Redesign
   ========================================================================= */

/* Feature Card */
.feature-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(10,20,36,0.06);
    border: 1px solid rgba(212,175,55,0.08);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: linear-gradient(to bottom, var(--primary-gold), var(--gold-dark));
    border-radius: 4px 0 0 4px;
    transition: height 0.4s ease;
}

.feature-card:hover::before { height: 100%; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(10,20,36,0.14), 0 0 0 1px rgba(212,175,55,0.2);
    border-color: rgba(212,175,55,0.2);
}

.feature-card .icon-box {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
    border: 1px solid rgba(212,175,55,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin: 0 auto 18px auto;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--primary-gold);
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
    border-color: transparent;
}

/* Feature Card inside Parallax Sections (Glassmorphism) */
.parallax-section .feature-card {
    background: rgba(10, 20, 36, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.parallax-section .feature-card::before {
    background: var(--primary-gold);
}

.parallax-section .feature-card h3 {
    color: var(--white);
}

.parallax-section .feature-card p {
    color: rgba(255, 255, 255, 0.8);
}

.parallax-section .feature-card .icon-box {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--primary-gold);
}

.parallax-section .feature-card:hover {
    background: rgba(10, 20, 36, 0.8);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
}

.parallax-section .feature-card:hover .icon-box {
    background: var(--primary-gold);
    color: var(--white);
}

/* Philosophy Card */
.philosophy-card {
    background: linear-gradient(145deg, var(--primary-blue) 0%, #0d1f3c 100%);
    padding: 40px 30px;
    border-radius: 20px;
    color: var(--white);
    border: 1px solid rgba(212,175,55,0.15);
    box-shadow: none;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    background: linear-gradient(145deg, #0d1f3c 0%, var(--primary-blue) 100%);
    border-color: var(--primary-gold);
}

.philosophy-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 12px; transition: color 0.3s ease; }
.philosophy-card p { color: rgba(255,255,255,0.7); line-height: 1.75; transition: color 0.3s ease; }

.philosophy-card:hover h3 { color: var(--primary-gold); }
.philosophy-card:hover p { color: var(--white); }

.phi-icon-wrapper {
    width: 58px; height: 58px;
    border-radius: 16px;
    background: rgba(212,175,55,0.10);
    border: 1px solid rgba(212,175,55,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
    transition: var(--transition);
    position: relative; z-index: 1;
}

.philosophy-card:hover .phi-icon-wrapper {
    background: var(--primary-gold);
    color: var(--white);
    transform: rotate(-8deg) scale(1.1);
    border-color: transparent;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

@media (max-width: 1100px) { .philosophy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .philosophy-grid { grid-template-columns: 1fr; } }



/* =========================================================================
   GALLERY NAVIGATION (BTP SECTION) - FIXED SIDE BUTTONS
   ========================================================================= */
.gallery-wrapper {
    position: relative;
    padding: 0 60px; /* Space for fixed buttons */
}

.gallery-nav-fixed {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-nav-fixed.prev { left: 0; }
.gallery-nav-fixed.next { right: 0; }

.gallery-nav-fixed:hover {
    background: var(--primary-gold);
    color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.gallery-nav-fixed:active {
    transform: translateY(-50%) scale(0.9);
}

/* Reduire l'espace sur mobile */
@media (max-width: 768px) {
    .gallery-wrapper { padding: 0 10px; }
    .gallery-nav-fixed { display: none; } /* On mobile, let users swipe naturally */
}

/* =========================================================================
   PUBLICATION DETAIL MODAL (PREMIUM SYSTEM)
   ========================================================================= */
.pub-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 36, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pub-modal.active {
    display: flex;
    opacity: 1;
}

.pub-modal-container {
    width: 95%;
    max-width: 900px;
    height: 80vh;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.pub-modal.active .pub-modal-container {
    transform: translateY(0) scale(1);
}

.pub-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    color: var(--primary-blue);
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: none;
}

.pub-modal-close:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: rotate(90deg);
}

.pub-modal-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 0;
}

/* Modal Content Layout */
.pub-detail-hero {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
}

.pub-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-detail-body {
    padding: 40px 50px;
}

.pub-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.pub-info-sidebar {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-gold);
}

.info-item {
    margin-bottom: 25px;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.pub-tag {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.pub-detail-body h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.pub-long-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.pub-long-desc p {
    margin-bottom: 20px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pub-modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .pub-detail-hero {
        height: 180px;
    }

    .pub-detail-body {
        padding: 25px 20px;
    }

    .pub-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pub-detail-body h2 {
        font-size: 1.8rem;
    }
}


/* ==========================================
   PRELOADER & PAGE TRANSITIONS
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.6s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 250px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    animation: preloader-pulse 1.5s infinite ease-in-out;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    margin: 0 auto;
    animation: preloader-spin 0.8s linear infinite;
}

.preloader-text {
    margin-top: 30px;
    color: var(--white);
    font-family: var(--font-heading);
    letter-spacing: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.8;
}

@keyframes preloader-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure body doesn't scroll while loading */
body.loading {
    overflow: hidden;
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    z-index: 999998;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition-overlay.active {
    transform: translateY(0);
}

/* ==========================================
   ABOUT PAGE RESPONSIVE FIXES
   ========================================== */
.about-vision-img {
    height: 620px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.about-mission-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 580px;
    box-shadow: 0 40px 80px rgba(10, 20, 36, 0.15);
}

@media (max-width: 768px) {
    .about-vision-img {
        height: 350px;
    }
    
    .about-mission-container {
        height: 350px;
    }

    .row.items-center {
        gap: 40px !important;
    }

    .a-propos .col-md-6,
    .mission .col-md-6 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* =========================================================================
   Partenaires Page Styles
   ========================================================================= */
.partners-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.category-title {
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    text-align: center;
    width: 100%;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px 15px !important;
    }
    .partner-card {
        padding: 30px 10px !important;
        gap: 20px !important; 
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .partner-logo-placeholder {
        width: 100% !important;
        height: 90px !important; /* Increased for better clearance */
        margin-bottom: 0 !important;
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .partner-logo {
        max-height: 100% !important; /* Force respect container */
        width: auto !important;
    }
    .partner-name {
        font-size: 0.95rem !important;
        margin-bottom: 0 !important;
    }
    .partner-desc {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        display: block !important; /* Remove line-clamp */
        overflow: visible !important;
        text-overflow: unset !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }
    .strategic-tag {
        font-size: 0.55rem !important;
        top: 5px !important;
        right: 5px !important;
    }
}

.partner-card {
    background: transparent;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
}

.partner-card::before {
    display: none;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-card:hover::before {
    display: none;
}

.partner-logo-placeholder {
    width: 200px;
    height: 100px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.partner-logo {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    transition: var(--transition);
}

.partner-card:hover .partner-logo {
    transform: scale(1.05);
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-family: var(--font-heading);
}

.partner-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.strategic-partner {
    background: transparent;
}

.strategic-partner:hover {
    background: transparent;
}

.strategic-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gold);
    color: var(--white);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}
