/* ===== JLB Informatique — Design System ===== */

:root {
    /* Brand */
    --accent:           #2563EB;
    --accent-hover:     #1D4ED8;
    --accent-subtle:    #E1ECFA;
    --accent-deep:      #1E3A8A;

    /* Neutrals */
    --bg:               #FFFFFF;
    --bg-secondary:     #FFFFFF;
    --bg-dark:          #1D1D1F;
    --bg-dark-mid:      #2D2D2F;
    --border:           #D2D2D7;
    --border-hover:     #A1A1A6;

    /* Text */
    --text:             #1D1D1F;
    --text-secondary:   #424245;
    --text-tertiary:    #86868B;
    --text-inverse:     #F8FAFC;

    /* Semantic */
    --success:          #059669;

    /* Spacing */
    --section-y:        5.5rem;
    --container-max:    1140px;

    /* Radius */
    --radius:           10px;
    --radius-lg:        16px;

    /* Shadows (warmer) */
    --shadow-xs:        0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm:        0 2px 8px rgba(15,23,42,0.05);
    --shadow-md:        0 4px 24px rgba(15,23,42,0.07);
    --shadow-lg:        0 16px 48px rgba(15,23,42,0.1);
    --shadow-card:      0 1px 3px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.04);
}

/* ===== Reset & Base ===== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0;
}

h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; color: var(--text); }

p { margin-bottom: 0; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}
a:hover { color: var(--accent-hover); }

strong { color: var(--text); font-weight: 600; }

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

/* ===== Layout ===== */

.main-content { padding-top: 72px; }

.section {
    padding: var(--section-y) 0;
}

.section-white  { background: var(--bg); }
.section-gray   { background: var(--bg); }
.section-light  { background: var(--bg); }

.section-gray::before,
.section-light::before {
    content: "";
    display: block;
    max-width: 800px;
    height: 1px;
    margin: 0 auto 3rem;
    background: radial-gradient(ellipse at center, var(--border) 0%, transparent 70%);
}

/* ===== Navbar ===== */

#mainNav {
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
    z-index: 1030;
}

#mainNav.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

#mainNav .navbar-brand img { height: 36px; }

#mainNav .nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    transition: color 0.15s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--text);
}

#mainNav .dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 6px;
    margin-top: 4px;
}

#mainNav .dropdown-item {
    font-size: 0.875rem;
    border-radius: 6px;
    padding: 8px 12px;
}

#mainNav .dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.nav-btn-contact {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text) !important;
    background: transparent;
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s;
}

.nav-btn-contact:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
}

.nav-btn-demo {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--accent);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s;
}

.nav-btn-demo:hover {
    background: var(--text);
    color: #fff !important;
}

/* ===== Mobile Menu ===== */

@@media (max-width: 991.98px) {
    #mainNav {
        background: #fff;
    }

    #mainNav .navbar-brand img {
        height: 32px;
    }

    #mainNav .navbar-toggler {
        border: none;
        padding: 0.4rem 0.6rem;
        font-size: 1.1rem;
    }

    #mainNav .navbar-toggler:focus {
        box-shadow: none;
    }

    #mainNav .navbar-collapse {
        background: #fff;
        margin: 0 -1rem;
        padding: 1rem 1.25rem 1.5rem;
        border-top: 1px solid var(--border);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    #mainNav .navbar-nav {
        align-items: stretch !important;
        gap: 0;
    }

    #mainNav .nav-item {
        border-bottom: 1px solid var(--border);
    }

    #mainNav .nav-item:last-child,
    #mainNav .nav-item:nth-last-child(2) {
        border-bottom: none;
    }

    #mainNav .nav-link {
        padding: 1rem 0.25rem !important;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text) !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #mainNav .dropdown-toggle::after {
        border: none;
        content: "\203A";
        font-size: 1.4rem;
        line-height: 1;
        vertical-align: middle;
        transition: transform 0.2s;
        color: var(--text-tertiary);
        margin-left: auto;
    }

    #mainNav .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(90deg);
    }

    #mainNav .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none !important;
        box-shadow: none !important;
        background: var(--bg-secondary);
        margin: 0 -1.25rem !important;
        padding: 0.5rem 2rem 1rem !important;
        border-radius: 0 !important;
        width: auto;
    }

    #mainNav .dropdown-item {
        font-size: 0.92rem !important;
        padding: 0.65rem 0 !important;
        color: var(--text-secondary) !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }

    #mainNav .dropdown-item:last-child {
        border-bottom: none;
    }

    #mainNav .dropdown-item:hover,
    #mainNav .dropdown-item:focus {
        background: transparent !important;
        color: var(--accent) !important;
    }

    #mainNav .dropdown-divider {
        display: none;
    }

    /* Mobile CTAs: full-width stacked */
    #mainNav .nav-item:nth-last-child(2),
    #mainNav .nav-item:last-child {
        margin: 0;
        padding: 0.5rem 0 0;
    }

    .nav-btn-contact,
    .nav-btn-demo {
        display: block !important;
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
        margin: 0 !important;
    }

    #mainNav .nav-item:has(.nav-btn-contact) {
        margin-top: 0.75rem;
        border-bottom: none;
    }

    #mainNav .nav-item:has(.nav-btn-demo) {
        margin-top: 0.5rem;
    }
}

/* ===== Buttons ===== */

.btn-jlb {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s;
}

.btn-jlb:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.btn-jlb.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn-outline-jlb {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s;
}

.btn-outline-jlb:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

/* ===== Hero ===== */

.hero {
    padding: 5.5rem 0 4rem;
    background: var(--bg);
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

h1 em, h2 em, .section-title em {
    font-style: normal;
    color: var(--accent);
    background: linear-gradient(transparent 60%, rgba(37,99,235,0.1) 60%);
    padding: 0 2px;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.hero-product-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Trust Bar ===== */

.trust-bar {
    padding: 2rem 0;
}

.trust-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ===== Section Titles ===== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ===== Cards ===== */

.card-jlb {
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-jlb:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-jlb h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-jlb ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-jlb ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 0;
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.card-jlb ul li:last-child {
    border-bottom: none;
}

.card-jlb p {
    font-size: 0.95rem;
}

/* ===== Client Logos (legacy, kept for transition) ===== */

.client-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.client-logos img {
    max-height: 48px;
    width: auto;
}

/* ===== Trust Logos (bounded-cell grid, visually uniform) ===== */

.trust-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 200px));
    gap: 0.875rem;
    justify-content: center;
    max-width: 1000px;
    margin: 1.5rem auto 0;
}

.trust-logos.trust-logos-wide {
    max-width: 1120px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.trust-logo {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0.75rem 0.75rem;
    gap: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: default;
}

.trust-logo:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.trust-logo-img {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.trust-logo-img img {
    max-height: 64px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(12%);
    opacity: 0.92;
    transition: filter 0.2s, opacity 0.2s;
}

/* Force-upscale logos sourced from low-resolution favicons */
.trust-logo-img img[src$="hsbc.png"],
.trust-logo-img img[src$="min-interieur.png"],
.trust-logo-img img[src$="croix-rouge.png"],
.trust-logo-img img[src$="colas.png"],
.trust-logo-img img[src$="saipem.png"],
.trust-logo-img img[src$="systra.png"],
.trust-logo-img img[src$="region-normandie.png"],
.trust-logo-img img[src$="chateau-versailles.png"],
.trust-logo-img img[src$="cinematheque.png"] {
    height: 44px;
    width: auto;
    max-height: none;
    image-rendering: -webkit-optimize-contrast;
}

.trust-logo-img img[src$="nausicaa.png"],
.trust-logo-img img[src$="icom.png"],
.trust-logo-img img[src$="lne.png"],
.trust-logo-img img[src$="planet-tech-care.png"] {
    max-height: 52px;
}

.trust-logo:hover .trust-logo-img img {
    filter: grayscale(0%);
    opacity: 1;
}

.trust-logo-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.25rem;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    flex-shrink: 0;
}

.trust-logo:hover .trust-logo-name {
    color: var(--text);
}

@media (max-width: 600px) {
    .trust-logos { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
    .trust-logo { height: 116px; padding: 0.625rem 0.5rem 0.5rem; }
    .trust-logo-img img { max-height: 52px; }
    .trust-logo-name { font-size: 0.68rem; }
}

/* ===== Partner Badge (inline brand chip) ===== */

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.partner-badge:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    transform: translateY(-1px);
}

.partner-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.partner-badge > span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.partner-badge-lbl {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}

.partner-badge strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.partner-badge i {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: transform 0.2s, color 0.2s;
}

.partner-badge:hover i {
    color: var(--accent);
    transform: translate(2px, -2px);
}

/* ===== Trust Carousel (scrolling cells, homepage) ===== */

.trust-carousel {
    overflow: hidden;
    padding: 1rem 0 0.5rem;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.trust-carousel-track {
    display: flex;
    gap: 0.875rem;
    width: max-content;
    animation: trust-scroll 70s linear infinite;
}

.trust-carousel:hover .trust-carousel-track {
    animation-play-state: paused;
}

.trust-carousel .trust-logo {
    flex: 0 0 auto;
    width: 180px;
    height: 120px;
}

@keyframes trust-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .trust-carousel-track {
        animation-duration: 50s;
        gap: 0.625rem;
    }
    .trust-carousel .trust-logo {
        width: 150px;
        height: 108px;
    }
}

/* ===== "See all references" text link ===== */

.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: gap 0.15s, color 0.15s;
}

.btn-text-link:hover {
    color: var(--accent-hover);
    gap: 10px;
}

/* ===== Testimonials ===== */

.testi-card {
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.testi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testi-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1.25rem;
    color: #F59E0B;
    font-size: 1.15rem;
}

.testi-card blockquote {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.testi-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.testi-author strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.testi-author span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 1px;
}

/* Legacy testimonial class (used in sub-pages) */
.testimonial {
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.testimonial h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.testimonial blockquote {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.testimonial .attribution strong {
    font-weight: 600;
    color: var(--text);
}

.testimonial .attribution span {
    color: var(--text-tertiary);
    font-size: 0.825rem;
}

/* ===== Feature Rows ===== */

.feature-row {
    padding: 4.5rem 0;
}

.feature-row img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 100%;
    height: auto;
}

.feature-row h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.feature-row p {
    font-size: 1.05rem;
    line-height: 1.75;
}

.feature-row ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.feature-row ul li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.6rem;
    color: var(--text-secondary);
}

.feature-row ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}

/* ===== CTA Banner ===== */

.cta-banner {
    background: var(--bg);
    padding: 3rem 0;
    text-align: center;
}

.cta-banner .container {
    max-width: 740px;
    padding: 3.5rem 3rem;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow: var(--shadow-card);
}

.cta-banner h2 {
    color: var(--text);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.cta-banner .btn {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

.cta-banner .btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

/* ===== Event Banner ===== */

.event-banner {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    text-align: center;
    margin: 1.5rem 0;
}

.event-banner strong {
    color: var(--text);
}

/* ===== Product Sections ===== */

.prod-section {
    padding: 4rem 0;
}

.prod-section-gray {
    background: var(--bg);
}

.prod-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.prod-tagline {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.prod-features {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: feat;
}

.prod-features li {
    position: relative;
    padding: 0.6rem 0 0.6rem 2.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    counter-increment: feat;
}

.prod-features li::before {
    content: counter(feat);
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-screenshot {
    background: var(--accent-deep);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 0;
    overflow: hidden;
}

.prod-screenshot img {
    width: 100%;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ===== Value & Advantage Cards ===== */

/* ===== Advantage Grid ===== */

.adv-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow-card);
}

.adv-item {
    padding: 2rem 1.75rem;
    border-right: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.adv-item:last-child {
    border-right: none;
}

.adv-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.adv-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.adv-item p {
    font-size: 0.83rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.adv-item-accent {
    background: var(--accent-deep);
}

.adv-item-accent .adv-number {
    color: rgba(255,255,255,0.2);
    opacity: 1;
}

.adv-item-accent h4 {
    color: var(--text-inverse);
}

.adv-item-accent p {
    color: rgba(255,255,255,0.65);
}

@@media (max-width: 991.98px) {
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .adv-item {
        border-right: 1px solid rgba(0,0,0,0.05);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .adv-item:nth-child(2n) {
        border-right: none;
    }
    .adv-item:nth-last-child(-n+2):nth-child(odd),
    .adv-item:last-child {
        border-bottom: none;
    }
}

@@media (max-width: 575.98px) {
    .adv-grid {
        grid-template-columns: 1fr;
    }
    .adv-item {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .adv-item:last-child {
        border-bottom: none;
    }
}

/* ===== Value Cards ===== */

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.value-card .icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.value-card h4,
.advantage-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.value-card p,
.advantage-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== AI Feature Cards ===== */

.ai-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.ai-card .icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.ai-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.ai-card p {
    font-size: 0.9rem;
}

/* ===== Home Role Cards ===== */

.home-role-card {
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.home-role-img {
    height: 160px;
    overflow: hidden;
}

.home-role-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-role-card:hover .home-role-img img {
    transform: scale(1.04);
}

.home-role-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.home-role-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-subtle);
}

.home-role-body h3 em {
    font-style: normal;
    color: var(--accent);
    background: linear-gradient(transparent 60%, rgba(37,99,235,0.1) 60%);
    padding: 0 2px;
}

.home-role-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-role-body ul li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.4rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.home-role-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.5;
}

/* ===== Solutions Page ===== */

.sol-role-card {
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sol-role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sol-role-img {
    height: 180px;
    overflow: hidden;
}

.sol-role-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sol-role-card:hover .sol-role-img img {
    transform: scale(1.04);
}

.sol-role-body {
    padding: 1.75rem;
}

.sol-role-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.sol-role-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== Capabilities List ===== */

.cap-list {
    display: flex;
    flex-direction: column;
}

.cap-list-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.cap-list-item:first-child {
    padding-top: 0;
}

.cap-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cap-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cap-list-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.cap-list-item p {
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Legacy sol-cap (used in WhyChooseUs) */
.sol-cap-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s, box-shadow 0.15s;
}

.sol-cap-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sol-cap-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 1.1rem;
}

.sol-cap-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.sol-cap-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ===== Société Page ===== */

.societe-stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.societe-stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.societe-stat-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.societe-stat-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.societe-stat-card p {
    font-size: 0.9rem;
}

.societe-stat-accent {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: var(--text-inverse);
}

.societe-stat-accent h3 {
    color: var(--text-inverse);
}

.societe-stat-accent p {
    color: rgba(255,255,255,0.6);
}

.societe-stat-accent:hover {
    border-color: var(--bg-dark);
}

/* ===== Société Hero Stats ===== */

.societe-hero-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.societe-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2.25rem;
    min-width: 170px;
}

.societe-hero-stat .num {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--text);
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.societe-hero-stat .num em {
    font-style: normal;
    font-size: 1.75rem;
    vertical-align: super;
    margin-left: 2px;
    font-weight: 700;
}

.societe-hero-stat .lbl {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
    text-align: center;
}

.societe-hero-sep {
    width: 1px;
    background: var(--border);
    align-self: stretch;
}

@media (max-width: 768px) {
    .societe-hero-stats {
        gap: 1.5rem 0;
        padding-top: 2rem;
    }
    .societe-hero-stat {
        flex: 0 0 50%;
        padding: 0.5rem;
        min-width: 0;
    }
    .societe-hero-stat .num { font-size: 2rem; }
    .societe-hero-sep { display: none; }
}

/* ===== Timeline ===== */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 90px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--border) 8%, var(--border) 92%, transparent 100%);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 2.5rem;
    padding: 1.25rem 0;
    align-items: start;
}

.timeline-item + .timeline-item {
    border-top: none;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1;
    padding-top: 0.25rem;
    text-align: right;
    position: relative;
}

.timeline-year span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-left: 1px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 84px;
    top: 0.6rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    z-index: 1;
    transition: transform 0.2s;
}

.timeline-item:hover::before {
    transform: scale(1.2);
}

.timeline-content {
    padding-left: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 640px) {
    .timeline::before { left: 20px; }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-left: 3rem;
    }
    .timeline-year { text-align: left; }
    .timeline-item::before { left: 14px; top: 0.8rem; }
}

/* ===== Group (Calico IIM) ===== */

.group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.group-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s;
}

.group-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.group-card-logo {
    height: 48px;
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.group-card-logo img {
    max-height: 36px;
    width: auto;
}

.group-card-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1;
}

/* Calico IIM card: use the Calico brand orange instead of the accent blue */
.group-card--calico .group-card-brand {
    color: #D4722C;
}

.group-card--calico:hover {
    border-color: #D4722C;
}

.group-card--calico .group-card-link {
    color: #D4722C;
}

.group-card--calico .group-card-link:hover {
    color: #B55F1E;
}

.group-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.group-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    flex: 1;
}

.group-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.group-card-link i {
    transition: transform 0.2s;
}

.group-card-link:hover i {
    transform: translate(2px, -2px);
}

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

/* ===== Group Leaders ===== */

.group-leaders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.group-leader {
    padding: 0 1rem;
}

.group-leader-role {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.group-leader h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.group-leader h4 a {
    color: inherit;
}

.group-leader h4 a:hover {
    color: var(--accent);
}

/* LinkedIn icon chip next to leader names */
.leader-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #FFFFFF !important;
    background: #0A66C2;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

.leader-linkedin:hover {
    background: #084F9A;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(10,102,194,0.3);
}

.leader-linkedin i {
    line-height: 1;
}

.group-leader-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .group-leaders {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .group-leader { padding: 0; }
}

/* ===== Actualités Page ===== */

.actu-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--accent-subtle);
    color: var(--accent);
}

/* Event cards with date block */
.actu-event-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.actu-event-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.actu-event-date {
    min-width: 56px;
    text-align: center;
    padding: 0.6rem 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    line-height: 1.1;
}

.actu-event-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.actu-event-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.actu-event-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.actu-event-body p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Highlight card (Documation) */
.actu-highlight-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.actu-highlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.actu-highlight-card h3 {
    font-size: 1.25rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.actu-highlight-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.actu-highlight-meta i {
    color: var(--accent);
    margin-right: 6px;
    font-size: 0.8rem;
}

/* Guide card */
.actu-guide-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
}

.actu-guide-card h3 {
    font-size: 1.3rem;
    color: var(--text);
}

.actu-guide-card p {
    font-size: 0.93rem;
}

/* Article cards */
.actu-article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    height: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.actu-article-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.actu-article-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.actu-article-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.actu-article-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.actu-article-source {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.actu-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.actu-article-link:hover .actu-article-card {
    border-color: var(--accent);
}

.actu-article-link:hover h4 {
    color: var(--accent);
}

/* ===== Contact Page ===== */

.contact-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}

.contact-card:hover {
    border-color: var(--border-hover);
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 1.1rem;
}

.contact-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-card p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

.contact-form-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.newsletter-inline {
    display: flex;
    gap: 0.5rem;
    max-width: 540px;
    margin: 0 auto;
}

.newsletter-inline .form-control {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
}

.newsletter-inline .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.newsletter-inline .btn {
    white-space: nowrap;
}

/* ===== Deploy Inline ===== */

.deploy-inline {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.deploy-inline-item {
    flex: 0 1 220px;
    padding: 1.25rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border);
}

.deploy-inline-item:last-child {
    border-right: none;
}

.deploy-inline-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.deploy-inline-item span {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

@@media (max-width: 575.98px) {
    .deploy-inline {
        flex-direction: column;
        align-items: center;
    }
    .deploy-inline-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
    }
    .deploy-inline-item:last-child {
        border-bottom: none;
    }
}

/* ===== Compare Cards ===== */

.compare-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-card);
    height: 100%;
}

.compare-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.compare-card-body {
    padding: 1.5rem;
}

.compare-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.compare-card-body p {
    font-size: 0.9rem;
}

.compare-card-muted {
    opacity: 0.6;
}

.compare-card-muted h3 {
    color: var(--text-tertiary);
}

.compare-card-accent {
    border: 2px solid var(--accent);
}

.compare-card-accent h3 {
    color: var(--accent);
}

/* ===== Deploy Photo ===== */

.deploy-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg);
    outline: 1px solid var(--border);
}

.deploy-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Why Stat ===== */

.why-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--accent-deep);
    border-radius: var(--radius);
    color: var(--text-inverse);
}

.why-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-inverse);
}

.why-stat-label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.6);
}

/* ===== Support Grid ===== */

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.support-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.support-item:nth-child(2n) {
    border-right: none;
}

.support-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.support-item strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.support-item span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

@@media (max-width: 575.98px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
    .support-item {
        border-right: none;
    }
    .support-item:last-child {
        border-bottom: none;
    }
}

/* ===== Reference Stats ===== */

.ref-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    max-width: 600px;
    margin: 0 auto;
}

.ref-stat {
    flex: 1;
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(0,0,0,0.06);
}

.ref-stat:last-child {
    border-right: none;
}

.ref-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
}

.ref-stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: 0.35rem;
}

/* ===== Client Favicon Grid ===== */

.client-favicons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.client-favicons img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s;
}

.client-favicons img:hover {
    transform: scale(1.15);
}

/* ===== Reference List ===== */

.ref-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ref-list li {
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.ref-list li:last-child {
    border-bottom: none;
}

/* ===== Cookie Banner ===== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

.cookie-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-inner p {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    min-width: 300px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-btn-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.cookie-btn-accept:hover {
    background: var(--accent-hover);
}

.cookie-btn-refuse {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 0.45rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s;
}

.cookie-btn-refuse:hover {
    border-color: var(--text-tertiary);
}

.cookie-link {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* ===== Legal Sections ===== */

.legal-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ===== FAQ ===== */

.faq-item {
    padding: 1.5rem 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== Forms ===== */

.form-jlb .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.form-jlb .form-control {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-jlb .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Inline validation error text */
.form-jlb .form-error {
    display: block;
    font-size: 0.82rem;
    color: #B91C1C;
    margin-top: 0.35rem;
    min-height: 1em;
}

.form-jlb .form-control.input-validation-error,
.form-jlb .form-control[aria-invalid="true"] {
    border-color: #B91C1C;
}

.form-jlb .form-control.input-validation-error:focus {
    box-shadow: 0 0 0 3px rgba(185,28,28,0.12);
}

/* Honeypot: hidden from real users but visible to bots */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alert banners (contact form success / error) */
.alert-jlb {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-jlb i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-jlb-success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.alert-jlb-success i { color: #059669; }

.alert-jlb-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #7F1D1D;
}

.alert-jlb-error i { color: #DC2626; }

/* Banner body: title + message stacked */
.alert-jlb-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alert-jlb-body strong {
    font-weight: 700;
    color: inherit;
    font-size: 0.98rem;
}

.alert-jlb-body span {
    font-size: 0.9rem;
    opacity: 0.92;
    line-height: 1.5;
}

/* Dismiss (×) button on the success banner */
.alert-jlb-close {
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.55;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.85rem;
    line-height: 1;
    border-radius: 6px;
    transition: opacity 0.15s, background 0.15s;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.alert-jlb-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
}

/* Entrance + attention pulse for the success banner */
.alert-jlb-success {
    animation: alert-slide-in 0.35s cubic-bezier(.4,0,.2,1);
}

.alert-jlb-pulse {
    animation: alert-slide-in 0.35s cubic-bezier(.4,0,.2,1),
               alert-pulse 1.4s 0.35s ease-out 1;
}

@keyframes alert-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alert-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.25); }
    50%  { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Submit button loading state */
.btn-jlb .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: 10px;
    vertical-align: -4px;
    animation: btn-spin 0.7s linear infinite;
}

.btn-jlb.is-loading {
    cursor: wait;
    opacity: 0.85;
}

.btn-jlb.is-loading .btn-spinner {
    display: inline-block;
}

.btn-jlb:disabled,
.btn-jlb[disabled] {
    cursor: wait;
    pointer-events: none;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ===== News Cards ===== */

.news-card {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}

.news-card:hover {
    border-color: var(--border-hover);
}

.news-card .date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.news-card p {
    font-size: 0.875rem;
}

/* ===== Footer ===== */

.footer-jlb {
    background: #FFFFFF;
    color: var(--text);
    padding: 4.5rem 0 0;
    border-top: 1px solid var(--border);
}

/* Link columns */
.footer-links {
    padding-bottom: 3rem;
    row-gap: 2rem;
}

.footer-links h6 {
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.footer-address {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.footer-address p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--text);
}

/* Contact CTA */
.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.75rem;
    font-size: 0.82rem !important;
    font-weight: 500;
    color: var(--text) !important;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.15s;
    text-decoration: none;
}

.footer-cta:hover {
    background: var(--bg);
    border-color: var(--border-hover);
    color: var(--text) !important;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.5rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}

.footer-bottom span,
.footer-bottom a {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.footer-dot {
    margin: 0 0.75rem;
    color: var(--border);
}

.footer-calico {
    text-decoration: none;
    color: var(--text-tertiary);
    transition: color 0.15s;
}

.footer-calico:hover {
    color: var(--text-secondary);
}

.footer-calico strong {
    color: #D4722C;
    font-weight: 600;
}

.footer-social-link {
    text-decoration: none;
    color: var(--text-tertiary) !important;
    transition: color 0.15s;
}

.footer-social-link:hover {
    color: var(--accent) !important;
}

.footer-social-link i {
    font-size: 0.65rem;
    margin-left: 1px;
}


/* ===== Fade Animation ===== */

.fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

/* ===== Responsive ===== */

@@media (max-width: 991.98px) {
    h1, .hero h1 { font-size: 2.5rem; }
    h2, .section-title { font-size: 1.85rem; }
    :root { --section-y: 4.5rem; }
}

@@media (max-width: 767.98px) {
    .hero { padding: 4rem 0 3rem; text-align: center; }
    h1, .hero h1 { font-size: 2rem; }
    .hero p { max-width: 100%; }
    .hero-image { margin-top: 2rem; }
    .client-logos { gap: 2rem; }
    .client-logos img { max-height: 32px; }
}

/* ================================================================== */
/* ===== MOBILE NAV DRAWER (< 992px) ================================ */
/* ================================================================== */

@media (max-width: 991.98px) {

    /* --- Hamburger button: 3 animated bars --- */
    .navbar-toggler {
        position: relative;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0 !important;
        background: transparent;
        box-shadow: none !important;
        z-index: 1060;
        cursor: pointer;
    }

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none !important;
    }

    .navbar-toggler .bar {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        position: absolute;
        left: 11px;
        transition: transform 0.28s cubic-bezier(.4,0,.2,1),
                    top 0.28s cubic-bezier(.4,0,.2,1),
                    opacity 0.2s;
    }

    .navbar-toggler .bar:nth-child(1) { top: 14px; }
    .navbar-toggler .bar:nth-child(2) { top: 21px; }
    .navbar-toggler .bar:nth-child(3) { top: 28px; }

    /* Hide hamburger when drawer is open (drawer has its own close button) */
    body.nav-open .navbar-toggler {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    /* --- Drawer container: fixed right-side slide-in --- */
    #navbarNav,
    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(380px, 88vw) !important;
        max-width: 88vw;
        height: 100vh !important;
        max-height: 100vh !important;
        background: var(--bg) !important;
        box-shadow: -14px 0 40px rgba(15,23,42,0.12);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(.4,0,.2,1);
        z-index: 1060 !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        pointer-events: auto;
    }

    #navbarNav.show,
    .navbar-collapse.show {
        transform: translateX(0);
    }

    /* Drawer header: brand + close */
    .mobile-drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .mobile-drawer-brand img { height: 32px; width: auto; }

    .mobile-drawer-close {
        background: transparent;
        border: 0;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text);
        font-size: 1.1rem;
        cursor: pointer;
        transition: background 0.15s;
    }

    .mobile-drawer-close:hover {
        background: rgba(0,0,0,0.04);
    }

    /* Nav list */
    #navbarNav .navbar-nav {
        padding: 0.5rem 1.25rem 1.25rem;
        margin: 0 !important;
        gap: 0;
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
    }

    #navbarNav .nav-item {
        width: 100%;
        margin: 0 !important;
        border-bottom: 1px solid var(--border);
    }

    #navbarNav .nav-item:last-child { border-bottom: 0; }

    #navbarNav .nav-link {
        padding: 1.05rem 0 !important;
        font-size: 1.02rem !important;
        font-weight: 600;
        color: var(--text) !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    #navbarNav .nav-link:hover,
    #navbarNav .nav-link:focus {
        color: var(--accent) !important;
    }

    /* Chevron for mobile dropdowns (override Bootstrap's triangle) */
    #navbarNav .dropdown-toggle::after {
        display: none;
    }

    #navbarNav .dropdown-toggle::before {
        content: "";
        width: 10px;
        height: 10px;
        border-right: 2px solid var(--text-tertiary);
        border-bottom: 2px solid var(--text-tertiary);
        transform: rotate(45deg);
        margin-right: 4px;
        transition: transform 0.22s;
        order: 2;
    }

    #navbarNav .dropdown-toggle[aria-expanded="true"]::before {
        transform: rotate(-135deg);
        border-color: var(--accent);
        margin-top: 4px;
    }

    /* Dropdown menus inline (accordion style) */
    #navbarNav .dropdown-menu {
        position: static !important;
        transform: none !important;
        inset: auto !important;
        margin: 0 !important;
        padding: 0 0 0.875rem 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        display: none !important;
        float: none !important;
    }

    #navbarNav .dropdown-menu.show {
        display: block !important;
    }

    #navbarNav .dropdown-item {
        padding: 0.625rem 0.75rem !important;
        font-size: 0.925rem !important;
        color: var(--text-secondary) !important;
        background: transparent !important;
        border-left: 2px solid var(--border);
        margin-left: 0.5rem;
        border-radius: 0;
        white-space: normal;
        line-height: 1.4;
        transition: color 0.15s, border-left-color 0.15s;
    }

    #navbarNav .dropdown-item:hover,
    #navbarNav .dropdown-item:focus,
    #navbarNav .dropdown-item:active {
        background: transparent !important;
        color: var(--accent) !important;
        border-left-color: var(--accent);
    }

    #navbarNav .dropdown-divider {
        display: none !important;
    }

    /* CTAs at bottom: prominent full-width buttons */
    #navbarNav .nav-item.ms-lg-3,
    #navbarNav .nav-item.ms-lg-2 {
        margin-left: 0 !important;
        border-bottom: 0;
        width: 100%;
    }

    #navbarNav .nav-item.ms-lg-3 {
        margin-top: 1.25rem !important;
        padding-top: 1.25rem;
        border-top: 1px solid var(--border);
    }

    #navbarNav .nav-btn-contact,
    #navbarNav .nav-btn-demo {
        display: block !important;
        width: 100%;
        margin: 0.375rem 0 !important;
        padding: 0.9rem 1rem !important;
        font-size: 0.98rem !important;
        text-align: center;
        border-radius: 10px;
    }

    /* --- Backdrop --- */
    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 1040;
    }

    body.nav-open .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    /* CRITICAL: #mainNav has Bootstrap z-index 1030 which creates a
       stacking context. The drawer is a child of #mainNav and can't
       escape that context. The backdrop (z-index 1040) is a sibling of
       mainNav at body level, so it renders ABOVE mainNav and kills
       interactivity. Raise mainNav above backdrop when drawer is open. */
    body.nav-open #mainNav {
        z-index: 1060 !important;
    }

    /* Lock body scroll when drawer open */
    body.nav-open {
        overflow: hidden;
    }

    /* Hide desktop navbar borders that leak into mobile drawer */
    #mainNav.scrolled { box-shadow: none; }
}

/* Hide mobile-only pieces on desktop */
@media (min-width: 992px) {
    .mobile-drawer-header,
    .mobile-nav-backdrop {
        display: none !important;
    }
}
