/* ============================================
   CORPX.FR - STYLES GÉNÉRAUX
   ============================================ */

:root {
    /* Palette de couleurs - Bleu Marine & Or Mat */
    --primary-color: #0b1c2c;
    --primary-dark: #081420;
    --primary-light: #1a3a52;
    --secondary-color: #b8935f;
    --secondary-dark: #9a7a4f;
    --accent-color: #b8935f;
    --accent-hover: #c9a06d;
    
    /* Couleurs neutres */
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;
    
    /* Typographie */
    --font-main: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    /* Espacements */
    --container-width: 1280px;
    --section-padding: 80px 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.logo a:hover {
    opacity: 0.9;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 200px;
    margin-left: 8px;
    transition: var(--transition);
}

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

.logo i {
    font-size: 32px;
}

.logo strong {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
}

.nav-menu > li > a:hover {
    color: var(--secondary-color);
}

.nav-menu .btn-contact {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-menu .btn-contact:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Language Switcher */
.language-switcher {
    display: flex !important;
    gap: 10px;
    align-items: center;
    padding-left: 20px;
    border-left: 2px solid rgba(184, 147, 95, 0.3);
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(184, 147, 95, 0.1);
    border: 2px solid rgba(184, 147, 95, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 55px;
    height: 55px;
}

.lang-btn .flag {
    font-size: 22px;
    line-height: 1;
    display: block;
}

.lang-btn .lang-code {
    font-size: 11px;
    font-weight: 700;
    color: rgba(184, 147, 95, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
}

.lang-btn:hover {
    background: rgba(184, 147, 95, 0.25);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(184, 147, 95, 0.4);
}

.lang-btn:hover .lang-code {
    color: var(--secondary-color);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(184, 147, 95, 0.3), rgba(184, 147, 95, 0.2));
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(184, 147, 95, 0.5), inset 0 0 10px rgba(184, 147, 95, 0.2);
}

.lang-btn.active .lang-code {
    color: var(--secondary-color);
    font-weight: 800;
}

/* Language Switcher pour écrans moyens */
@media (max-width: 1400px) {
    .nav-menu {
        gap: 20px;
    }
    
    .language-switcher {
        gap: 6px;
        padding-left: 15px;
    }
    
    .lang-btn {
        min-width: 45px;
        height: 45px;
        padding: 6px 8px;
    }
    
    .lang-btn .flag {
        font-size: 18px;
    }
    
    .lang-btn .lang-code {
        font-size: 9px;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 15px;
    }
    
    .language-switcher {
        gap: 5px;
        padding-left: 10px;
    }
    
    .lang-btn {
        min-width: 40px;
        height: 40px;
        padding: 5px 6px;
    }
    
    .lang-btn .flag {
        font-size: 16px;
    }
    
    .lang-btn .lang-code {
        font-size: 8px;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 30%;
    transform: translateX(-30%) translateY(10px);
    background: var(--primary-color);
    min-width: 850px;
    max-width: 950px;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    padding: 35px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 5px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    transform: translateX(-30%) translateY(0);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.dropdown-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-column a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
    transition: var(--transition);
    border-left: 2px solid transparent;
    padding-left: 10px;
}

.dropdown-column a:hover {
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    padding-left: 15px;
}

/* Simple Dropdown for Banking & Licences */
.dropdown-simple {
    min-width: 300px !important;
    max-width: 300px !important;
    padding: 20px !important;
}

.dropdown-simple {
    background: var(--primary-color) !important;
    border: 1px solid var(--secondary-color) !important;
}

.dropdown-simple a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 15px !important;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    border-left: none !important;
}

.dropdown-simple a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding-left: 15px !important;
}

.dropdown-simple a i {
    color: var(--secondary-color);
    font-size: 18px;
}

.dropdown-simple a:hover i {
    color: var(--primary-color);
}

/* Country Group with Subitems (for hierarchical menu structure) */
.country-group {
    margin-bottom: 5px;
}

.country-header {
    display: block;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 700;
    padding-left: 10px;
    cursor: default;
    letter-spacing: 0.3px;
}

.country-subitems {
    margin-left: 20px;
    margin-top: 5px;
    padding-left: 10px;
    border-left: 1px solid rgba(184, 147, 95, 0.3);
}

.country-subitems a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px 0 6px 10px;
    font-size: 13px;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.country-subitems a:hover {
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    padding-left: 15px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    background: linear-gradient(rgba(11, 28, 44, 0.8), rgba(11, 28, 44, 0.8)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0.85;
    z-index: 1;
}

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

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    font-family: var(--font-heading);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    color: white;
    margin-bottom: 30px;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

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

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

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

.btn-small {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-gold {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
}

.btn-gold:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   SECTIONS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* Centrer tous les h3 de sections */
.jurisdictions h3,
.banking-section h3,
.licences-section h3,
h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 40px auto 30px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */

.services-overview {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7c2d12, #991b1b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: var(--white);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */

.why-choose {
    padding: var(--section-padding);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.why-choose-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
}

.why-choose-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.lead {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 35px;
}

.benefits-list {
    list-style: none;
    margin-bottom: 35px;
}

.benefits-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.benefits-list i {
    font-size: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.benefits-list strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.benefits-list p {
    color: var(--gray-600);
}

.why-choose-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

/* Image bureau-luxueux.jpg spécifique (×2) */
.bureau-img {
    width: 160% !important;
    max-width: 1000px !important;
}

/* ============================================
   JURISDICTIONS
   ============================================ */

.jurisdictions {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.jurisdiction-category {
    margin-bottom: 60px;
}

.jurisdiction-category h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jurisdiction-category h3 i {
    color: var(--secondary-color);
}

.jurisdiction-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.jurisdiction-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    width: calc(25% - 20px);
    min-width: 240px;
    flex: 0 1 auto;
}

@media (max-width: 1200px) {
    .jurisdiction-card {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 900px) {
    .jurisdiction-card {
        width: calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .jurisdiction-card {
        width: 100%;
    }
}

.jurisdiction-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary-light);
}

.flag-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.jurisdiction-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.jurisdiction-types {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.jurisdiction-card p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ============================================
   BANKING SECTION
   ============================================ */

/* Section Comptes Bancaires - Visible immédiatement */
.banking-section {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.banking-section.visible {
    opacity: 1;
    visibility: visible;
}

.banking-section-original {
    padding: var(--section-padding);
}

.banking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
}

/* 5ème carte (États-Unis) - placée au milieu de la 2ème rangée */
.banking-grid .banking-card:nth-child(5) {
    grid-column: 2 / 3;
}

/* 6ème carte (Banques en Ligne) - placée à côté */
.banking-grid .banking-card:nth-child(6) {
    grid-column: 3 / 4;
}

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

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

.banking-card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    border: 2px solid var(--gray-300);
    transition: var(--transition);
    max-width: 320px;
    width: 100%;
}

.banking-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.banking-card.highlight {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(184, 147, 95, 0.2);
}

.banking-card.highlight h3 {
    color: var(--gray-900) !important;
}

.banking-card.highlight p {
    color: var(--gray-700) !important;
}

.banking-card.highlight .banking-features li {
    color: var(--gray-900) !important;
}

.banking-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.banking-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.banking-card p {
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.7;
}

.banking-features {
    list-style: none;
    margin-bottom: 25px;
}

.banking-features li {
    padding: 8px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.banking-features i {
    color: var(--secondary-color);
}

/* ============================================
   LICENCES SECTION
   ============================================ */

.licences-section {
    padding: var(--section-padding);
    background: var(--gray-100);
}

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

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

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

.licence-card {
    background: var(--white);
    padding: 45px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    max-width: 380px;
    width: 100%;
}

.licence-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.licence-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #7c2d12, #991b1b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 42px;
    color: var(--white);
}

.licence-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.licence-card > p {
    color: var(--gray-600);
    margin-bottom: 25px;
    line-height: 1.7;
}

.licence-features {
    list-style: none;
    margin-bottom: 30px;
}

.licence-features li {
    padding: 10px 0;
    padding-left: 25px;
    color: var(--gray-700);
    position: relative;
}

.licence-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 100px 0;
    background: var(--primary-color);
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
    font-family: var(--font-main);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-color);
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand-text {
    font-family: var(--font-heading);
    color: var(--white);
}

.footer-brand-text strong {
    color: var(--secondary-color);
}

.footer-logo i {
    font-size: 32px;
    color: var(--secondary-color);
}

.footer-logo strong {
    color: var(--secondary-color);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: var(--transition);
}

.footer-logo-img:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.footer-column p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-contact a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-column h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-newsletter input,
.footer-newsletter textarea {
    padding: 12px;
    border: 1px solid var(--gray-700);
    background: var(--gray-800);
    color: var(--white);
    border-radius: 6px;
    font-family: var(--font-main);
}

.footer-newsletter input:focus,
.footer-newsletter textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.footer-newsletter textarea {
    resize: vertical;
}

.footer-hours {
    background: var(--gray-800);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--gray-700);
}

.footer-hours p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.footer-hours p:last-child {
    margin-bottom: 0;
}

.footer-hours i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-hours span {
    display: block;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
}

.footer-hours .urgent {
    border-top: 1px solid var(--gray-700);
    padding-top: 15px;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-700);
}

.footer-bottom p {
    margin: 10px 0;
}

.footer-links {
    font-size: 14px;
    margin-top: 15px;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ============================================
   POPUP MODAL
   ============================================ */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white);
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    width: 90%;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition);
    text-align: center;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close,
.popup-close-thank {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--gray-600);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.popup-close:hover,
.popup-close-thank:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7c2d12, #991b1b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: var(--white);
}

.popup-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.popup-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.popup-text {
    font-size: 18px;
    color: var(--gray-700);
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.popup-benefits li {
    padding: 12px 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-benefits i {
    color: var(--secondary-color);
    font-size: 20px;
}

.popup-cta-text {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 25px;
}

.popup-disclaimer {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .dropdown-content {
        min-width: 600px;
    }
    
    .dropdown-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .why-choose-grid {
        gap: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ============================================
   COOKIE CONSENT POPUP
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    transition: transform 0.4s ease;
}

.cookie-consent.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 48px;
    color: var(--secondary-color);
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 10px 25px;
    font-size: 14px;
    white-space: nowrap;
}

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

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

.cookie-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-size: 14px;
    margin-left: 10px;
}

.cookie-link:hover {
    color: var(--accent-hover);
}

/* ============================================
   VIRTUAL ASSISTANT BERNARD TAPIE (CHARACTER)
   ============================================ */

.virtual-assistant-bernard {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 25px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.virtual-assistant-bernard.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.assistant-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--gray-700);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.assistant-close:hover {
    background: var(--gray-800);
    color: var(--white);
    transform: rotate(90deg);
}

/* BERNARD CHARACTER - Hidden, replaced by portrait */
.bernard-character {
    display: block;
    margin-bottom: 25px;
}

.bernard-body {
    display: block;
    position: relative;
    height: 180px;
    margin-bottom: 15px;
}

/* BERNARD PORTRAIT */
.bernard-portrait-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.bernard-portrait {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: var(--white);
}

.bernard-face-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bernard-info {
    text-align: center;
    margin: -10px 0 10px 0;
}

.bernard-info h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.bernard-info p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
}

/* Tête Bernard */
.bernard-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 90px;
    animation: bernardBreathe 3s ease-in-out infinite;
}

@keyframes bernardBreathe {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

.bernard-hair {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 35px;
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    border-radius: 50% 50% 0 0;
    z-index: 1;
}

.bernard-hair::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -5px;
    width: 20px;
    height: 25px;
    background: #3a3a3a;
    border-radius: 50%;
}

.bernard-hair::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -5px;
    width: 20px;
    height: 25px;
    background: #3a3a3a;
    border-radius: 50%;
}

.bernard-face {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 75px;
    background: linear-gradient(135deg, #f5d0a9 0%, #e6b890 100%);
    border-radius: 45% 45% 50% 50%;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.1);
}

/* Yeux */
.bernard-eyes {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    display: flex;
    justify-content: space-between;
}

.eye {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: relative;
    border: 2px solid #2a2a2a;
    animation: bernardBlink 4s infinite;
}

@keyframes bernardBlink {
    0%, 96%, 100% { height: 14px; }
    98% { height: 2px; }
}

.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 50%;
    animation: bernardLook 5s infinite;
}

@keyframes bernardLook {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-30%, -50%); }
    50% { transform: translate(-50%, -30%); }
    75% { transform: translate(-70%, -50%); }
}

/* Nez */
.bernard-nose {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 16px;
    background: linear-gradient(135deg, #d4a882 0%, #c09870 100%);
    border-radius: 0 0 50% 50%;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Bouche */
.bernard-mouth {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 18px;
    overflow: hidden;
}

.smile {
    width: 35px;
    height: 25px;
    border: 3px solid #8b4513;
    border-radius: 0 0 50% 50%;
    border-top: none;
    background: #ff6b6b;
    animation: bernardSmile 3s ease-in-out infinite;
}

@keyframes bernardSmile {
    0%, 100% { height: 25px; }
    50% { height: 20px; }
}

/* Animation quand Bernard parle */
.bernard-mouth.talking .smile {
    animation: bernardTalking 0.3s ease-in-out infinite;
}

@keyframes bernardTalking {
    0%, 100% { height: 25px; }
    50% { height: 15px; }
}

/* Corps / Costume */
.bernard-torso {
    position: absolute;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 70px;
}

.bernard-suit {
    position: relative;
    width: 100%;
    height: 100%;
}

.suit-jacket {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px 10px 30% 30%;
    box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.3);
}

.suit-jacket::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: var(--primary-dark);
}

.suit-tie {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 35px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    clip-path: polygon(50% 0%, 0% 20%, 25% 20%, 35% 100%, 65% 100%, 75% 20%, 100% 20%);
    z-index: 2;
}

.suit-shirt {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    background: white;
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

/* Bras */
.bernard-arms {
    position: absolute;
    top: 10px;
    width: 100%;
    height: 50px;
}

.arm {
    position: absolute;
    width: 18px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
}

.left-arm {
    left: 0;
    transform: rotate(-15deg);
    transform-origin: top center;
    animation: bernardWaveLeft 3s ease-in-out infinite;
}

.right-arm {
    right: 0;
    transform: rotate(15deg);
    transform-origin: top center;
    animation: bernardWaveRight 3s ease-in-out infinite 0.5s;
}

@keyframes bernardWaveLeft {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-25deg); }
}

@keyframes bernardWaveRight {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(25deg); }
}

/* Nom Bernard */
.bernard-name {
    text-align: center;
    margin-top: 10px;
}

.bernard-name h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.bernard-name p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
}

/* Bulle de dialogue sous le portrait */
.bernard-speech-bubble {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-height: 100px;
    border: 2px solid var(--secondary-color);
    width: 100%;
}

.speech-content {
    transition: opacity 0.3s ease;
}

.speech-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    font-weight: 500;
}

.speech-arrow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--secondary-color);
}

.speech-arrow::after {
    content: '';
    position: absolute;
    top: 2px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

/* Quick Replies Bernard */
.bernard-quick-replies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-reply-bernard {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-reply-bernard:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.quick-reply-bernard i {
    font-size: 16px;
}

/* Zone d'input Bernard */
.bernard-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bernard-input-area input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-main);
}

.bernard-input-area input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.bernard-send-btn {
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bernard-send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

/* ASSISTANT BUTTON (unchanged) */
.assistant-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 998;
}

.assistant-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.assistant-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.virtual-assistant {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 140px);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.virtual-assistant.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.assistant-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.assistant-avatar {
    position: relative;
}

.avatar-image {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    border: 3px solid var(--white);
}

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid var(--white);
    border-radius: 50%;
}

.assistant-info {
    flex: 1;
}

.assistant-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.status-text {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.assistant-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.assistant-close:hover {
    transform: rotate(90deg);
}

.assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--gray-100);
}

.message {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--primary-color);
    color: var(--white);
}

.message-content {
    flex: 1;
}

.message-content p {
    background: var(--white);
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0;
    box-shadow: var(--shadow-sm);
    line-height: 1.5;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content p {
    background: var(--primary-color);
    color: var(--white);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.quick-reply:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.assistant-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    border-top: 1px solid var(--gray-300);
    border-radius: 0 0 16px 16px;
}

.assistant-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.assistant-input input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.btn-send {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-send:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   BOOTSTRAP MODAL CUSTOMIZATION
   ============================================ */

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-bottom: 2px solid var(--secondary-color);
}

.modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.modal-body {
    padding: 2rem;
}

.modal-body h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-warning {
    color: var(--secondary-color) !important;
}

.btn-close {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    /* Bernard Virtual Assistant Responsive */
    .virtual-assistant-bernard {
        width: calc(100vw - 20px);
        bottom: 10px;
        right: 10px;
        padding: 20px;
    }
    
    .bernard-body {
        width: 100px;
        height: 140px;
        transform: scale(0.9);
    }
    
    .bernard-quick-replies {
        grid-template-columns: 1fr;
    }
    
    .quick-reply-bernard {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .assistant-button {
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-icon {
        font-size: 36px;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        gap: 15px;
        transition: var(--transition);
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        display: block;
        padding: 15px;
    }
    
    /* Language Switcher Responsive */
    .language-switcher {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--gray-300);
        padding-top: 20px;
        margin-top: 20px;
        justify-content: center;
        gap: 12px;
    }
    
    .lang-btn {
        flex: 1;
        max-width: 70px;
        padding: 10px 8px;
    }
    
    .lang-btn .flag {
        font-size: 24px;
    }
    
    .lang-btn .lang-code {
        font-size: 11px;
    }
    
    .dropdown-content {
        position: static;
        min-width: auto;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 15px;
        border: 1px solid var(--gray-300);
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-content {
        max-height: 800px;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Hero */
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    /* Sections */
    .section-header h2 {
        font-size: 32px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-choose-content h2 {
        font-size: 32px;
    }
    
    .jurisdiction-grid {
        grid-template-columns: 1fr;
    }
    
    .banking-grid {
        grid-template-columns: 1fr;
    }
    
    .licences-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    /* Popup */
    .popup-content {
        padding: 35px 25px;
    }
    
    .popup-content h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
}

/* ====== MERGED: popups.css ====== */

/**
 * Popups Styles - Cookies & Contact
 * France Web Corporate
 */

/* ==================== COOKIE POPUP ==================== */
#cookiePopup {
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

#cookiePopup.show {
    bottom: 0;
}

.cookie-popup-content {
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    color: white;
    padding: 25px 30px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #b8935f;
}

.cookie-popup-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-popup-text {
    flex: 1;
    min-width: 300px;
}

.cookie-popup-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #b8935f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-popup-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.cookie-popup-text a {
    color: #b8935f;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-popup-text a:hover {
    color: #d4a574;
}

.cookie-popup-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn-accept {
    background: #b8935f;
    color: white;
}

.cookie-btn-accept:hover {
    background: #9a7a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 147, 95, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== CONTACT POPUP ==================== */
#contactPopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#contactPopup.show {
    opacity: 1;
    visibility: visible;
}

.contact-popup-content {
    background: #FFF8E7;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    animation: slideUp 0.4s ease-out;
    border: 3px solid #b8935f;
}

#contactPopup.show .contact-popup-content {
    transform: scale(1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.contact-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.contact-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.contact-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #b8935f, #d4a574);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(184, 147, 95, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.contact-popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a2332;
    text-align: center;
    margin-bottom: 15px;
}

.contact-popup-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-popup-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.contact-popup-features li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1rem;
    color: #555;
}

.contact-popup-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: 700;
    font-size: 1.25rem;
    top: 8px;
}

.contact-popup-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.contact-popup-btn {
    flex: 1;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.contact-popup-btn-primary {
    background: #b8935f;
    color: white;
}

.contact-popup-btn-primary:hover {
    background: #9a7a4f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 147, 95, 0.4);
    color: white;
}

.contact-popup-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.contact-popup-btn-secondary:hover {
    border-color: #b8935f;
    color: #b8935f;
    background: rgba(184, 147, 95, 0.05);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top,
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #b8935f;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover,
.scroll-to-top:hover {
    background: #9a7a4f;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(184, 147, 95, 0.4);
}

.back-to-top.show,
.scroll-to-top.show,
.back-to-top.active,
.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .cookie-popup-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cookie-popup-text {
        min-width: 100%;
    }
    
    .cookie-popup-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .contact-popup-content {
        padding: 30px 25px;
        width: 95%;
    }
    
    .contact-popup-title {
        font-size: 1.5rem;
    }
    
    .contact-popup-subtitle {
        font-size: 1rem;
    }
    
    .contact-popup-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-popup-content {
        padding: 20px;
    }
    
    .cookie-popup-text h4 {
        font-size: 1.1rem;
    }
    
    .cookie-popup-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .contact-popup-content {
        padding: 25px 20px;
    }
    
    .contact-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}


/* =========================================
   V2 OVERRIDES (requested fixes)
   ========================================= */

/* Sub-navigation (Gibraltar page) */
:root{
  --fwc-blue: #2563eb;
  --fwc-blue-700:#1d4ed8;
  --fwc-gray-50:#f8fafc;
  --fwc-gray-100:#f1f5f9;
  --fwc-gray-200:#e2e8f0;
  --fwc-gray-600:#475569;
  --fwc-ink:#0f172a;
}

.subnav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--fwc-gray-200);
  background: rgba(255,255,255,0.9);
  color: var(--fwc-ink);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1;               /* tighter vertical centering */
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}

.subnav a:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15,23,42,0.08);
  border-color: rgba(37,99,235,0.35);
  color: var(--fwc-blue-700);
}

.subnav a:focus-visible{
  outline: 3px solid rgba(37,99,235,0.35);
  outline-offset: 2px;
}

@media (max-width: 900px){
  .page-gibraltar .subnav{ top: 64px; }
  .page-gibraltar .subnav-inner{
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 8px 12px;
  }
  .subnav a{ white-space: nowrap; }
}

/* Contact popup (only extra popup besides cookies) */
 (only extra popup besides cookies) */
#contactPopup{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2,6,23,0.55);
  z-index: 9999;
}
#contactPopup.show{ display:flex; }
#contactPopup .contact-popup-content{
  width: min(520px, 100%);
  max-height: 72vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(37,99,235,0.10), rgba(248,250,252,0.92) 35%, #ffffff 100%);
  border-radius: 18px;
  border: 1px solid rgba(37,99,235,0.20);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  padding: 18px 18px 14px;
  position: relative;
}
#contactPopup .contact-popup-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  cursor: pointer;
}
#contactPopup .contact-popup-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--fwc-blue-700);
  font-size: 1.25rem;
}
#contactPopup .contact-popup-title{
  margin: 6px 0 6px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--fwc-ink);
}
#contactPopup .contact-popup-subtitle{
  margin: 0 auto 10px;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(71,85,105,0.95);
  max-width: 42ch;
}
#contactPopup .contact-popup-features{
  margin: 0 0 14px;
  padding-left: 18px;
  color: rgba(15,23,42,0.78);
}
#contactPopup .contact-popup-buttons{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#contactPopup .contact-popup-btn{
  flex: 1;
  min-width: 160px;
  border-radius: 12px;
  padding: 11px 13px;
  font-weight: 800;
  border: 1px solid var(--fwc-gray-200);
  background: var(--fwc-gray-50);
  color: var(--fwc-ink);
  cursor: pointer;
}
#contactPopup .contact-popup-btn-primary{
  background: var(--fwc-blue);
  color: #fff;
  border-color: rgba(37,99,235,0.45);
}
#contactPopup .contact-popup-btn-primary:hover{ filter: brightness(1.06); }

/* Toast (form feedback) */
.toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  z-index: 10050;
  max-width: min(420px, calc(100vw - 32px));
  color: #0f172a;
  font-weight: 600;
}
.toast.show{ opacity: 1; transform: translateY(0); }
.toast-success{ border-color: rgba(22,163,74,0.25); }
.toast-warning{ border-color: rgba(245,158,11,0.30); }



/* =========================
   GIBRALTAR SUB NAV (mini menu under header)
   ========================= */
@media (max-width: 640px){
  .page-gibraltar .subnav{ top: 64px; }
}
.subnav-inner::-webkit-scrollbar{ height: 8px; }
.subnav-inner::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.18); border-radius: 999px; }

.subnav a{
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.subnav a:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.subnav a:focus{
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 2px;
}

/* Ensure Gibraltar sections are not hidden behind sticky header/subnav when jumping to anchors */
:root{ --anchor-offset: 140px; }
section[id]{
  scroll-margin-top: var(--anchor-offset);
}

/* =========================
   CONTACT POPUP - align look with index
   ========================= */
#contactPopup .contact-popup-content{
  width: min(520px, 100%);
  max-height: 72vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(37,99,235,0.10), rgba(248,250,252,0.92) 35%, #ffffff 100%);
  border-radius: 18px;
  border: 1px solid rgba(37,99,235,0.20);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  padding: 18px 18px 14px;
  position: relative;
}
#contactPopup .contact-popup-title{
  margin: 6px 0 6px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--fwc-ink);
}
#contactPopup .contact-popup-close:hover{
  background: rgba(255,255,255,0.16);
}
#contactPopup .contact-popup-btn{
  flex: 1;
  min-width: 160px;
  border-radius: 12px;
  padding: 11px 13px;
  font-weight: 800;
  border: 1px solid var(--fwc-gray-200);
  background: var(--fwc-gray-50);
  color: var(--fwc-ink);
  cursor: pointer;
}


/* === Gibraltar subnav (placed after Hero) === */
.subnav .page-gibraltar .subnav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  line-height: 1.1;
}

.subnav .page-gibraltar .subnav-inner a{
  font-size: 14px;
  font-weight: 700;
  color: #1f3a5f;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dbe3f0;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.subnav .page-gibraltar .subnav-inner a:hover{
  background: #1f3a5f;
  color: #ffffff;
  border-color: #1f3a5f;
  transform: translateY(-1px);
}

/* GENERIC: Sub-navigation for ALL jurisdiction pages (Gibraltar, Czech Republic, etc.) */
/* This selector targets any page with a class starting with "page-" */
body[class*="page-"] .subnav,
.page-gibraltar .subnav,
.page-czechrepublic .subnav,
.page-czechrepublic-sro .subnav{
  position: fixed !important;
  top: 78px !important;
  left: 0;
  right: 0;
  z-index: 950 !important;
  background: rgba(244,247,251,0.98) !important;
  border-top: 1px solid #dde3ee !important;
  border-bottom: 1px solid #dde3ee !important;
  backdrop-filter: blur(6px);
  display: block !important;
}

body[class*="page-"] .subnav-inner,
.page-gibraltar .subnav-inner,
.page-czechrepublic .subnav-inner,
.page-czechrepublic-sro .subnav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  line-height: 1;
}

body[class*="page-"] .subnav-inner a,
.page-gibraltar .subnav-inner a,
.page-czechrepublic .subnav-inner a,
.page-czechrepublic-sro .subnav-inner a{
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f3a5f !important;
  text-decoration: none;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid #dbe3f0 !important;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(17, 38, 79, 0.06);
  white-space: nowrap;
}

body[class*="page-"] .subnav-inner a:hover,
.page-gibraltar .subnav-inner a:hover,
.page-czechrepublic .subnav-inner a:hover,
.page-czechrepublic-sro .subnav-inner a:hover{
  background: #1f3a5f !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 38, 79, 0.14);
}

/* Add padding to first section after fixed subnav to prevent content overlap */
body[class*="page-"] .subnav ~ section:first-of-type,
.page-gibraltar .subnav ~ section:first-of-type,
.page-czechrepublic .subnav ~ section:first-of-type,
.page-czechrepublic-sro .subnav ~ section:first-of-type{
  padding-top: calc(5rem + 70px); /* normal section padding + subnav height */
}

/* On very small screens keep it on one line with horizontal scroll */
@media (max-width: 640px){
  body[class*="page-"] .subnav-inner,
  .page-gibraltar .subnav-inner,
  .page-czechrepublic .subnav-inner,
  .page-czechrepublic-sro .subnav-inner{
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .subnav-inner::-webkit-scrollbar{ height: 8px; }
}



/* ================================
   Gibraltar floating subnav (sticky)
   ================================ */
.page-gibraltar #gibraltarSubnav.subnav{
  position: -webkit-sticky !important;
  position: sticky !important;
  top: var(--fwc-header-offset, 88px) !important;
  z-index: 1200 !important;

  display: block !important;
  background: rgba(244, 247, 251, 0.92) !important; /* soft blue/grey */
  border-top: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35) !important;

  /* keep it visually separated from hero/content */
  margin: 10px 0 18px 0 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-gibraltar #gibraltarSubnav .subnav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 14px;            /* tighter */
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;
  line-height: 1;               /* tighter vertical rhythm */
}

/* On narrow screens: keep in one row + scroll */
@media (max-width: 1024px){
  .page-gibraltar #gibraltarSubnav .subnav-inner{
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .page-gibraltar #gibraltarSubnav .subnav-inner a{ white-space: nowrap; }
}

/* Ensure anchor jumps don't hide under header + sticky subnav */
.page-gibraltar [id]{
  scroll-margin-top: calc(var(--fwc-header-offset, 88px) + 64px);
}


/* JS fallback class if sticky is prevented by an overflow ancestor */
.page-gibraltar #gibraltarSubnav.is-fixed{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
}


/* =========================================================
   CONTACT POPUP - compact navy/silver theme (overrides)
   Goal: shorter height, no internal scrolling, full text visible
   ========================================================= */
#contactPopup .contact-popup-content{
  background: linear-gradient(180deg, #f6f8fc 0%, #eef2f8 100%);
  border: 2px solid rgba(192,200,210,0.95); /* silver */
  border-radius: 14px;
  max-width: 520px;
  width: min(92vw, 520px);
  padding: 18px 20px;
  box-shadow: 0 18px 55px rgba(11,42,74,0.22);
}

#contactPopup .contact-popup-icon{
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 30% 30%, #2b6cb0 0%, #0b2a4a 70%);
  border: 2px solid rgba(192,200,210,0.85);
  box-shadow: 0 10px 25px rgba(11,42,74,0.18);
  margin-bottom: 10px;
}

#contactPopup .contact-popup-title{
  color: #0b2a4a; /* navy */
  font-size: 1.22rem;
  line-height: 1.15;
  margin: 0 0 8px 0;
}

#contactPopup .contact-popup-subtitle{
  color: #3f4f63;
  font-size: 0.98rem;
  line-height: 1.25;
  margin: 0 0 12px 0;
}

#contactPopup .contact-popup-features{
  margin: 10px 0 14px 0;
  padding: 0;
}

#contactPopup .contact-popup-features li{
  padding: 6px 0;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #2d3b4e;
}

#contactPopup .contact-popup-features li::before{
  left: 0;
  font-size: 1.05rem;
  color: #2b6cb0; /* marine blue */
}

#contactPopup .contact-popup-actions{
  margin-top: 12px;
  gap: 10px;
}

#contactPopup .contact-popup-btn{
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid rgba(192,200,210,0.9);
}

#contactPopup .contact-popup-btn.primary{
  background: linear-gradient(135deg, #2b6cb0 0%, #0b2a4a 100%);
  color: #fff;
  border-color: rgba(43,108,176,0.55);
}

#contactPopup .contact-popup-btn.secondary{
  background: #ffffff;
  color: #0b2a4a;
}

#contactPopup .contact-popup-close{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(192,200,210,0.95);
  background: rgba(255,255,255,0.9);
  color: #0b2a4a;
}

#contactPopup .contact-popup-close:hover{
  background: #ffffff;
}

/* Make sure it fits on small screens without needing internal scroll */
@media (max-height: 720px){
  #contactPopup .contact-popup-content{
    padding: 14px 16px;
  }
  #contactPopup .contact-popup-title{
    font-size: 1.12rem;
  }
  #contactPopup .contact-popup-features li{
    padding: 5px 0;
    padding-left: 26px;
    font-size: 0.92rem;
  }
}


/* =========================================================
   When mega-menu is open, hide the Gibraltar subnav to avoid overlap
   (mega-menu gets priority)
   ========================================================= */
body.mega-open #gibraltarSubnav.is-fixed,
body.mega-open nav.subnav.is-fixed{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-6px) !important;
}


/* =========================================================
   FIX: When mega-menu is open, hide the Gibraltar subnav
   (regardless of sticky/fixed state) to prevent overlap
   ========================================================= */
body.mega-open nav.subnav,
body.mega-open #gibraltarSubnav{
  display: none !important;
}


/* =========================================================
   FINAL FIX: Mega-menu priority over Gibraltar subnav
   - Ensure header/mega-menu stays above
   - Hide Gibraltar subnav only when mega-menu is open
   ========================================================= */
header.header, header, .navbar{
  position: sticky;
  top: 0;
  z-index: 10050;
}

/* Gibraltar subnav below header by default */
#gibraltarSubnav{
  z-index: 10010;
}

/* When mega menu is open -> hide subnav completely */
body.mega-open nav.subnav,
body.mega-open #gibraltarSubnav{
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
