/* ==========================================================================
   Variables & Configuration Globale
   ========================================================================== */
:root {
    --brand-navy: #132238;
    --brand-navy-hover: #0a1424;
    --surface-bg: #f8fafc;
    --border-color: #e2e8f0;
    --nav-height: 72px;
    --mobile-nav-height: 62px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    padding-top: var(--nav-height);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-logo {
    font-family: 'Eagle Lake', cursive;
}

.text-navy { color: var(--brand-navy) !important; }
.bg-navy { background-color: var(--brand-navy) !important; }
.bg-surface { background-color: var(--surface-bg) !important; }

.nav-container,
.section-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================================================
   Navigation Haute
   ========================================================================== */
.site-navbar {
    height: var(--nav-height);
    padding: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.98);
}

.site-navbar .navbar-brand {
    font-size: 1.65rem;
}

.site-navbar .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    padding: 0.5rem 0.9rem;
    transition: color 0.15s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--brand-navy);
    font-weight: 600;
}

.btn-navy {
    background-color: var(--brand-navy);
    color: #ffffff;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-navy:hover {
    background-color: var(--brand-navy-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 34, 56, 0.18);
}

.btn-outline-navy {
    color: var(--brand-navy);
    border: 1px solid var(--brand-navy);
    font-weight: 600;
    border-radius: 6px;
}

/* ==========================================================================
   Section Hero Split-Screen
   ========================================================================== */
.split-hero {
    display: flex;
    flex-direction: column;
    width: 100vw;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.hero-image-half {
    width: 100%;
    min-height: 380px;
    background-image: url('../images/fond-accueil.jpg');
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
}

.hero-content-half {
    width: 100%;
    background-color: #ffffff;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-inner-wrapper {
    width: 100%;
    max-width: 580px;
}

.hero-card, .hero-bottom-text {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hero-card { margin-bottom: 2rem; }

/* Desktop, Téléviseurs & 4K (>= 992px) */
@media (min-width: 992px) {
    .split-hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: clamp(620px, 75vh, 880px);
        min-height: 620px;
    }

    .hero-image-half {
        height: 100%;
        min-height: auto;
    }

    .hero-content-half {
        height: 100%;
        padding: 3rem 4rem 3rem 2.5rem;
        align-items: flex-start;
    }

    .hero-card {
        margin-left: -55px;
        position: relative;
        z-index: 2;
    }

    .hero-bottom-text {
        margin-left: 35px;
    }
}

/* Écrans 4K & TV Ultra-Larges (>= 2560px) */
@media (min-width: 2560px) {
    html {
        font-size: 19px;
    }

    .nav-container,
    .section-container {
        max-width: 1920px;
    }

    .split-hero {
        height: clamp(750px, 60vh, 980px);
    }

    .hero-inner-wrapper {
        max-width: 760px;
    }

    .hero-card {
        margin-left: -70px;
        padding: 2.8rem;
    }

    .hero-bottom-text {
        margin-left: 50px;
        padding: 2.8rem;
    }

    .experience-text {
        max-width: 1200px;
    }

    .about-text {
        max-width: 1300px;
        font-size: 1.35rem;
    }

    .gallery-wrapper { height: 420px; }
    .gallery-wrapper-lg { height: 380px; }
}

/* Déverrouillage visuel AOS sur TV */
@media (min-width: 1920px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Tablette (768px à 1199px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1199.98px) {
    :root {
        --nav-height: 60px;
    }

    .site-navbar .navbar-brand { font-size: 1.35rem; }
    .site-navbar .nav-link { font-size: 0.85rem; padding: 0.3rem 0.5rem; }
    .nav-cta { font-size: 0.85rem; padding: 6px 14px; }
}

/* ==========================================================================
   Mobile (< 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
    :root {
        --nav-height: 56px;
    }

    body {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    }

    .site-navbar .navbar-brand { font-size: 1.35rem; }
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: color 0.15s ease;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--brand-navy);
    font-weight: 700;
}

/* ==========================================================================
   Composants et Décorations
   ========================================================================== */
.experience-strip {
    background: linear-gradient(rgba(19, 34, 56, 0.92), rgba(19, 34, 56, 0.92)), url('../images/fond-outils.jpg') center center / cover;
}

.domain-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    line-height: 1.6;
    color: #334155;
}

.bullet-dot {
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--brand-navy);
}

.gallery-wrapper { height: 260px; }
.gallery-wrapper-lg { height: 280px; }

@media (min-width: 768px) and (max-width: 1919.98px) {
    .gallery-wrapper { height: 320px; }
    .gallery-wrapper-lg { height: 300px; }
}

.logo-illustration {
    max-width: 290px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.04));
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    max-width: 860px;
}

.shadow-soft {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

.shadow-2xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03); }
.leading-relaxed { line-height: 1.7; }
.hover-navy:hover { color: var(--brand-navy) !important; }
.address-block { max-width: 650px; }

/* Piège honeypot anti-bot */
.bot-trap {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}