:root {
    --bleu-horizon-navy: #1A3C5A;
    --bleu-horizon-blue: #2C5282;
    --bleu-horizon-teal: #00A8A8;
    --bleu-horizon-light: #F8F9FA;
    --bleu-horizon-gray: #333333;
    --bleu-horizon-soft-gray: #6B7C93;
    --bleu-horizon-white: #FFFFFF;
    --bleu-horizon-border: #E2E8F0;
    --bleu-horizon-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --bleu-horizon-shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Navigation Variables */
    --nav-bg: var(--bleu-horizon-navy);
    --nav-text: var(--bleu-horizon-white);
    --nav-hover: var(--bleu-horizon-teal);
    --nav-cta-border: var(--bleu-horizon-white);
    --nav-cta-text-hover: var(--bleu-horizon-navy);

    /* Header Brand Variables */
    --brand-bg: var(--bleu-horizon-white);
    --brand-title: var(--bleu-horizon-navy);
    --brand-subtitle: var(--bleu-horizon-teal);
    --brand-border: var(--bleu-horizon-border);

    /* Logo Colors - Bleu Horizon */
    --logo-filter: none;
    --logo-grad-start: #29c6f5;
    --logo-grad-end: #3b56a8;

    /* Urgences Page Variables */
    --urg-bg-hero: linear-gradient(135deg, rgba(0, 168, 168, 0.1), rgba(26, 60, 90, 0.05));
    --urg-title: var(--bleu-horizon-navy);
    --urg-text: var(--bleu-horizon-gray);
    --urg-card-bg: var(--bleu-horizon-white);
    --urg-card-border: var(--bleu-horizon-border);
    --urg-accent-bg: linear-gradient(135deg, var(--bleu-horizon-teal), var(--bleu-horizon-blue));
    --urg-accent-text: var(--bleu-horizon-white);
    --urg-btn-bg: linear-gradient(135deg, var(--bleu-horizon-navy), var(--bleu-horizon-blue));
    --urg-btn-text: var(--bleu-horizon-white);
    --urg-box-shadow: var(--bleu-horizon-shadow);

    /* Cabinet Pages Variables */
    --cabinet-title: var(--bleu-horizon-navy);
    --cabinet-accent: var(--bleu-horizon-teal);
    --cabinet-bg: #ffffff;
    --cabinet-bg-subtle: #f8f9fa;
    --cabinet-border: #e5e7eb;
    --cabinet-text: #374151;
    --cabinet-text-light: #6b7280;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bleu-horizon-white);
    color: var(--bleu-horizon-gray);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-y: scroll;
    /* Always show scrollbar to prevent page jumps */
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--bleu-horizon-navy);
    margin-top: 0;
}

/* Elegant Brand Signature for Bleu Horizon */
.nav-brand-text .brand-title {
    font-family: 'Great Vibes', cursive !important;
    font-weight: normal !important;
    font-size: clamp(2rem, 8vw, 4.2rem) !important;
    color: var(--bleu-horizon-navy) !important;
    line-height: 1 !important;
    margin-bottom: 0 !important;
}

.nav-brand-text .brand-subtitle {
    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--bleu-horizon-teal) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-top: -5px !important;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background-color: var(--bleu-horizon-light);
    padding: 60px 0;
    border-bottom: 1px solid var(--bleu-horizon-border);
    text-align: center;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    font-size: 3rem;
    color: var(--bleu-horizon-navy);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--bleu-horizon-teal);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-image-container {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--bleu-horizon-shadow-large);
}

.speech-bubble {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--bleu-horizon-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--bleu-horizon-shadow);
    max-width: 250px;
    text-align: left;
    border-left: 4px solid var(--bleu-horizon-teal);
}

.speech-bubble p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--bleu-horizon-gray);
}

.hero-cta {
    display: inline-block;
    background-color: var(--bleu-horizon-navy);
    color: var(--bleu-horizon-white);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

/* Exuberant Nav CTA for Bleu Horizon */
.nav-cta {
    background: linear-gradient(135deg, var(--bleu-horizon-teal), var(--bleu-horizon-blue)) !important;
    color: white !important;
    border: 2px solid white !important;
    padding: 14px 30px !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    margin: -15px 0 -15px 15px !important;
    transform: rotate(-1deg) !important;
    position: relative !important;
    z-index: 2010 !important;
    border-radius: 50px !important;
    /* Elegant rounded pill */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Ensure the nav section is above the brand section so the CTA can overlap */
.header-nav-section {
    z-index: 2005 !important;
}

/* Reset main header stacking context so the smiley can pop out above the nav */
.main-header {
    z-index: auto !important;
}

/* Ensure mobile nav is still on top of everything */
.mobile-nav {
    z-index: 2100 !important;
}


/* Step Card Typography Refinement */
.step-card h3 {
    font-size: 1.5rem !important;
    margin-bottom: 0.8rem !important;
    color: var(--bleu-horizon-navy) !important;
}

.step-card p {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: var(--bleu-horizon-soft-gray) !important;
}

/* FAQ, Panels and Benefits Hierarchy */
.faq-item h4,
.panel h3,
.benefit-item h4,
.tech-info h2 {
    font-size: 1.6rem !important;
    color: var(--bleu-horizon-navy) !important;
    margin-bottom: 0.8rem !important;
}

.faq-item p,
.panel p,
.benefit-item p,
.tech-info p {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
}

.nav-cta:hover {
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 0 8px 25px rgba(0, 168, 168, 0.4) !important;
    background: white !important;
    color: var(--bleu-horizon-navy) !important;
}


.hero-cta:hover {
    background-color: var(--bleu-horizon-blue);
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--bleu-horizon-teal);
}

/* Ensure title visibility on all pages (fixes Sterilisation page issue) */
.section-title {
    -webkit-text-fill-color: var(--bleu-horizon-navy) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: var(--bleu-horizon-navy) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.comic-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.panel {
    background-color: var(--bleu-horizon-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--bleu-horizon-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--bleu-horizon-border);
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--bleu-horizon-shadow-large);
}

.panel h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--bleu-horizon-navy);
}

/* Digital Chain Section */
.digital-chain-section {
    background-color: var(--bleu-horizon-navy);
    color: var(--bleu-horizon-white);
    padding: 80px 0;
}

.digital-chain-section .section-title {
    color: var(--bleu-horizon-white);
}

.digital-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.digital-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.boom-text {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: var(--bleu-horizon-teal);
}

/* Facettes Section */
.facette-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.facette-card {
    background-color: var(--bleu-horizon-white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--bleu-horizon-border);
    box-shadow: var(--bleu-horizon-shadow);
}

.facette-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

/* Doctor Section */
.doctor-section {
    background-color: var(--bleu-horizon-light);
    padding: 80px 0;
}

.doctor-profile {
    display: flex;
    gap: 60px;
    align-items: center;
}

.doctor-image-wrapper {
    flex-shrink: 0;
    position: relative;
}

.doctor-image {
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--bleu-horizon-shadow-large);
}

.doctor-name-tag {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background-color: var(--bleu-horizon-teal);
    color: var(--bleu-horizon-white);
    padding: 10px 25px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: var(--bleu-horizon-shadow);
}

.doctor-bio {
    flex-grow: 1;
}

.doctor-bio .quote {
    font-style: italic;
    color: var(--bleu-horizon-soft-gray);
    margin-top: 30px;
    font-size: 1.25rem;
    border-left: 4px solid var(--bleu-horizon-teal);
    padding-left: 20px;
}

/* Team Section */
.team-section {
    padding: 80px 0 120px 0;
}

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

.team-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bleu-horizon-white);
    border: 1px solid var(--bleu-horizon-border);
    border-radius: 16px;
    /* Smooth rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* Thin accent bar on top */
    background: var(--bleu-horizon-teal);
    opacity: 0.8;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--bleu-horizon-teal);
}

.team-card h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--bleu-horizon-navy);
    font-family: 'Playfair Display', serif;
}

.team-card p {
    font-size: 1rem;
    color: var(--bleu-horizon-soft-gray);
    line-height: 1.6;
    margin: 0;
}

/* Footer Section */
.footer-section {
    background-color: var(--bleu-horizon-navy);
    color: var(--bleu-horizon-white);
    padding: 80px 0;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: var(--bleu-horizon-teal);
    color: var(--bleu-horizon-white);
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #008f8f;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-title {
        font-size: 2.5rem;
    }

    .doctor-profile {
        flex-direction: column;
        text-align: center;
    }

    .doctor-image {
        width: 100%;
        max-width: 500px;
    }

    .doctor-name-tag {
        right: 50%;
        transform: translateX(50%);
        bottom: -20px;
    }

    .doctor-bio .quote {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

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

    .panel {
        padding: 30px;
    }

    .digital-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .speech-bubble {
        position: static;
        margin-top: 20px;
        max-width: none;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* ===== CABINET PAGES - DISABLE DECORATIVE EFFECTS ===== */
/* When a cabinet-background-overlay is present, disable theme decorations */
body:has(.cabinet-background-overlay) {
    background: #f8f9fa !important;
}

body:has(.cabinet-background-overlay)::before,
body:has(.cabinet-background-overlay)::after {
    display: none !important;
}

/* Custom Smile Positioning for Bleu Horizon Theme */
.smile-logo {
    position: absolute !important;
    bottom: -45px !important;
    /* Moved up 5px (-50 -> -45) */
    left: -10px !important;
    /* Moved right 10px (-20 -> -10) */
    margin: 0 !important;
    filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 8px #ffffff) !important;
    /* Intense white glow */
    z-index: 2020 !important;
}

/* ===== MODERN HERO OVERRIDE FOR BLEU HORIZON ===== */
.modern-hero {
    background:
        /* Dark grey diagonal lines - more visible */
        repeating-linear-gradient(45deg,
            transparent,
            transparent 30px,
            rgba(0, 0, 0, 0.08) 30px,
            rgba(0, 0, 0, 0.08) 32px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 30px,
            rgba(0, 0, 0, 0.06) 30px,
            rgba(0, 0, 0, 0.06) 32px),
        /* Grey circles for texture */
        radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.05) 0%, transparent 15%),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.04) 0%, transparent 12%),
        /* Base gradient */
        linear-gradient(135deg, #dbe4e9 0%, #b4c5d1 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Stronger background patterns for better glass effect */
.modern-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(52, 152, 219, 0.03) 10px, rgba(52, 152, 219, 0.03) 20px);
    pointer-events: none;
    z-index: 0;
}

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

.modern-hero-description {
    /* 80% transparency glass - no blur */
    background: rgba(255, 255, 255, 0.20) !important;
    /* Simple transparency without backdrop-filter */

    /* Softer edges - more blurred shadow */
    box-shadow:
        /* Soft blurred outer shadow */
        0 16px 60px rgba(0, 0, 0, 0.1),
        /* Bright top edge highlight */
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
        /* Bright left edge highlight */
        inset 1px 0 0 0 rgba(255, 255, 255, 0.4),
        /* Subtle bottom shadow */
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.08),
        /* Subtle right shadow */
        inset -1px 0 0 0 rgba(0, 0, 0, 0.04) !important;

    /* Subtle glass border */
    border: 0.5px solid rgba(255, 255, 255, 0.2) !important;

    position: relative;
    z-index: 3;
}