/* Modern Design System for Social Connexion - Premium Phase 3 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #0096db;
    --primary-dark: #0073a8;
    --accent-color: #d8232d;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #1a1a1a;
    --text-light: #ffffff;
    --shadow-premium: 0 20px 40px rgba(0,0,0,0.12);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

/* --- Premium Navbar --- */
.navbar-default {
    background: transparent !important;
    border: none !important;
    padding: 12px 0; /* More compact initial height */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Initially white text for dark hero backgrounds */
.navbar-default .nav li a {
    color: white !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar-brand {
    height: auto !important;
    padding: 0 !important;
}

.navbar-brand img {
    height: 110px !important; /* Slightly more compact but still impactful */
    width: auto !important;
    transition: all 0.5s ease;
    filter: drop-shadow(0 2px 15px rgba(0,0,0,0.2));
}

/* Navbar on Scroll - Glassmorph State */
.navbar-default.affix {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0; /* Compact scroll height */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border) !important;
}

.navbar-default.affix .navbar-brand img {
    height: 65px !important;
}

/* Fix for the "blue band" contrast issue */
.navbar-default.affix .nav li a {
    color: var(--text-main) !important; /* Force dark text on white glass */
    text-shadow: none !important;
}

/* Ensure active/hover items don't have blue backgrounds masking the text */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > li > a:hover {
    background: transparent !important;
    color: var(--primary-color) !important;
    outline: none;
}

/* --- MON COMPTE Button --- */
.cta-item a {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    margin-left: 20px;
    box-shadow: 0 4px 15px rgba(0, 150, 219, 0.3);
    text-shadow: none !important;
}

.cta-item a:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 150, 219, 0.4);
}

/* --- MODERN SLIDER ARROWS --- */
.carousel-control {
    width: 8% !important;
    background-image: none !important; /* Remove Bootstrap gradients */
    opacity: 1 !important;
}

.carousel-control .fa, .carousel-control .glyphicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 24px;
    color: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(5px);
    top: 50%;
    margin-top: -30px;
}

.carousel-control:hover .fa, .carousel-control:hover .glyphicon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 150, 219, 0.4);
}

.carousel-control.left .fa, .carousel-control.left .glyphicon { left: 30px; }
.carousel-control.right .fa, .carousel-control.right .glyphicon { right: 30px; }

.intro-heading {
    font-size: 85px !important;
    font-weight: 800 !important;
    letter-spacing: -3px;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out both;
}

.intro-lead-in {
    font-size: 24px !important;
    font-weight: 400 !important;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* --- UNIFIED PREMIUM MODALS --- */
.modal-dest-layout {
    overflow: hidden;
    padding: 0 !important;
}

.dest-header {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}

.dest-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.dest-header h2 {
    color: white !important;
    position: relative;
    z-index: 2;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.dest-content {
    padding: 50px 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: #f8fbfc;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #edf2f5;
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-5px); }
.stat-card i { font-size: 32px; color: var(--primary-color); margin-bottom: 15px; }
.stat-card h4 { font-size: 14px; text-transform: uppercase; color: #888; margin-bottom: 5px; }
.stat-card p { font-size: 16px; font-weight: 600; color: var(--text-main); margin: 0; }

.section-title {
    font-size: 22px;
    color: var(--primary-dark);
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
    margin: 40px 0 25px;
}

.doc-list {
    background: white;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 15px;
}

/* --- UTILS --- */
.reveal {
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

section {
    padding: 150px 0 !important; /* Better vertical rhythm */
}

.section-heading {
    font-size: 50px;
    letter-spacing: -1px;
}
