@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800;900&family=Share+Tech+Mono&display=swap');

/* ==========================================================================
   DESIGN SYSTEM TOKENS & INITIALIZATION
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-editorial: #ebeae4;
    --bg-dark: #050a18;
    --brand-blue: #0c256e; /* Sophisticated deep blue, high contrast, non-electric */
    --brand-blue-rgb: 12, 37, 110;
    --brand-blue-light: #6b8df2; /* Soft blue for accents in dark sections */
    --text-ink: #081026;
    --text-muted: #2d3342;
    --text-light: #ffffff;
    --text-light-muted: #c1d1e8;
    --accent-red: #d91438;
    
    /* Typography */
    --font-display: 'Urbanist', sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Spacing Scale */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(0.75rem, 1.5vw, 1.25rem);
    --spacing-md: clamp(1.25rem, 3vw, 2.25rem);
    --spacing-lg: clamp(2rem, 4vw, 3.5rem);
    --spacing-xl: clamp(3rem, 5vw, 5.5rem);
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Core Layout */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-editorial);
}

body {
    font-family: var(--font-body);
    color: var(--text-ink);
    background-color: var(--bg-editorial);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Global Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--brand-blue-light);
    outline-offset: 3px;
}

/* ==========================================================================
   TEXTURES, GRID OVERLAYS, DUOTONES
   ========================================================================== */

/* Subtle grid texture overlay */
.grid-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(107, 141, 242, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(107, 141, 242, 0.15) 1px, transparent 1px);
    background-size: 8px 8px; /* Even tinier grid pattern */
    z-index: 2;
}

/* Light overlay with grain/noise simulation using CSS */
.grain-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 3;
}

/* Duotone image treatments */
.duotone-multiply {
    position: relative;
    background-color: #133ab5; /* Vibrant brand blue for duotone shadows */
    overflow: hidden;
}

.duotone-multiply img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2) brightness(1.15); /* Clean, high-contrast highlights */
    mix-blend-mode: screen; /* Keeps highlights white, maps shadows to vibrant blue */
    transition: var(--transition-smooth);
}

.duotone-screen {
    position: relative;
    background-color: #133ab5; /* Vibrant brand blue for duotone shadows */
    overflow: hidden;
}

.duotone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2) brightness(1.15); /* Clean, high-contrast highlights */
    mix-blend-mode: screen; /* Keeps highlights white, maps shadows to vibrant blue */
    transition: var(--transition-smooth);
}

/* Standard visual styling for non-duotone images */
.about-image-card img,
.expertise-image img,
.contact-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Hover effects for cards */
.expertise-card:hover img,
.about-image-card:hover img,
.contact-image-card:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   LAYOUT SYSTEM & RESPONSIVE GRID
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

/* Editorial layout structures */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .editorial-grid {
        grid-template-columns: 320px 1fr;
        align-items: flex-end;
        gap: var(--spacing-lg);
    }
}

@media (min-width: 1200px) {
    .editorial-grid {
        grid-template-columns: 350px 1.5fr 1fr; /* Title on left, description in center, right column empty for whitespace */
        align-items: flex-end;
    }
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: fit-content;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--brand-blue);
    flex-shrink: 0;
    margin-right: 4px;
}

.section-label.dark {
    color: var(--text-light-muted);
}

.section-label.dark::before {
    background-color: var(--text-light-muted);
}

.editorial-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-ink);
    font-weight: 800; /* Stately upright bold sans-serif */
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.editorial-title span {
    display: inline;
    font-weight: 400; /* Lighter contrasting weight */
    color: var(--brand-blue);
}

/* Dark section header contrast override */
section[style*="background-color: var(--bg-dark)"] .editorial-title,
section[style*="background-color:var(--bg-dark)"] .editorial-title,
.case-section .editorial-title {
    color: #ffffff !important;
}

section[style*="background-color: var(--bg-dark)"] .editorial-title span,
section[style*="background-color:var(--bg-dark)"] .editorial-title span,
.case-section .editorial-title span {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400 !important;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid transparent; /* No line when transparent */
    background-color: transparent;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background-color: rgba(235, 234, 228, 0.95);
    padding: 10px 0;
    border-bottom: 1px solid rgba(12, 37, 110, 0.15); /* Match deep blue color */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* White logo on dark transparent background */
    transition: var(--transition-smooth);
}

.site-header.scrolled .logo-img {
    filter: brightness(0); /* Black logo on light scrolled background */
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.95); /* Whiter at rest for high contrast on dark hero */
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: #ffffff; /* Pure white on hover */
}

.site-header.scrolled .nav-link {
    color: #182c5f; /* Solid navy blue for excellent contrast on scrolled beige header */
}

.site-header.scrolled .nav-link:hover {
    color: var(--brand-blue);
}

.btn-contact {
    background-color: transparent;
    color: var(--text-light);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-contact:hover {
    background-color: var(--text-light);
    color: var(--text-ink);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.site-header.scrolled .btn-contact {
    background-color: var(--brand-blue);
    color: var(--text-light);
    border: none;
}

.site-header.scrolled .btn-contact:hover {
    background-color: var(--text-ink);
    color: var(--text-light);
}

/* Mobile Nav Toggle & Responsive Menu Overlay */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 101;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}

.site-header.scrolled .mobile-toggle span,
.site-header.nav-open .mobile-toggle span {
    background-color: var(--text-ink);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.is-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(235, 234, 228, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 24px 32px;
        border-bottom: 1px solid rgba(15, 58, 179, 0.15);
        box-shadow: 0 16px 32px rgba(5, 10, 24, 0.15);
        gap: 16px;
        z-index: 99;
    }

    .nav-menu.is-active .nav-link {
        color: #081026 !important; /* High contrast text on light background */
        font-size: 1.05rem;
        font-weight: 600;
        padding: 8px 0;
        display: block;
        border-bottom: 1px solid rgba(12, 37, 110, 0.06);
    }

    .nav-menu.is-active .btn-contact {
        margin-top: 8px;
        text-align: center;
        background-color: var(--brand-blue) !important;
        color: #ffffff !important;
        border: none !important;
        width: 100%;
        padding: 14px;
        font-size: 0.95rem;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Animated Close 'X' icon when active */
    .mobile-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 110px;
    padding-bottom: 3.5rem;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end !important;
        align-items: flex-start;
        padding-top: 90px !important;
        padding-bottom: 20dvh !important; /* Distance between end of hero content and bottom of hero image is exactly 20% of screen height */
    }

    .hero-bg-container img {
        object-position: center center !important; /* Keep investigator/cameraman centered across all mobile screen ratios */
    }

    .hero-meta-row {
        display: none !important; /* Hide cluttered meta detail boxes on mobile for a clean, elegant hero */
    }

    .hero-tag-num {
        display: none !important; /* Hide long registration number on mobile tag */
    }

    .about-image-card {
        display: none !important; /* Hide first section image on mobile for immediate text readability */
    }
}




/* Subpage Hero Height Override */
.hero.min-h-\[60dvh\],
.hero.min-h-\[50dvh\],
.hero.min-h-\[40dvh\],
.subpage-hero {
    min-height: 40vh !important;
    padding-top: 110px !important;
    padding-bottom: 2.5rem !important;
}

@media (max-width: 768px) {
    .hero.min-h-\[60dvh\],
    .hero.min-h-\[50dvh\],
    .hero.min-h-\[40dvh\],
    .subpage-hero {
        min-height: auto !important;
        padding-top: 96px !important;
        padding-bottom: 2rem !important;
    }
}


.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 6% 53%; /* Shift image horizontally to move investigator to the left */
}

.hero-bg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(5, 10, 24, 0.55) 0%, 
        rgba(5, 10, 24, 0.90) 100%
    );
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 992px) {
    .hero-inner {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: flex-end;
    }
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.2rem, 6.5vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-light);
    font-weight: 700;
}

.hero-title span {
    font-weight: 300;
}

.hero-description {
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    margin-bottom: var(--spacing-md);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Meta Row Clean Grid Rules */
.hero-meta-row {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .hero-meta-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px 20px !important;
        margin-top: 28px !important;
        padding-top: 16px !important;
    }
}

@media (max-width: 480px) {
    .hero-inner {
        gap: 16px;
    }

    .hero-tag {
        font-size: 0.72rem !important;
        letter-spacing: 0.12em !important;
        margin-bottom: 12px !important;
    }

    .hero-title {
        font-size: clamp(2.2rem, 9.5vw, 3rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 16px !important;
        letter-spacing: -0.02em !important;
    }

    .hero-description {
        font-size: 0.98rem !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .hero-actions {
        width: 100%;
        margin-top: 8px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 16px 24px;
        font-size: 0.9rem;
    }
}



.btn-primary {
    background-color: var(--brand-blue);
    color: var(--text-light);
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--text-light);
    color: var(--text-ink);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Oversized background typography (Static layout) */
.static-hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    opacity: 0.08;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: clamp(5.5rem, 12vw, 9.5rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    pointer-events: none;
    z-index: 4;
    user-select: none;
    transform: translateY(22%); /* Crop bottom portion of letters at absolute bottom edge */
}



/* ==========================================================================
   SECTION 1: À PROPOS (ABOUT)
   ========================================================================== */

.about-section {
    background-color: var(--bg-editorial);
    position: relative;
    overflow: hidden;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 992px) {
    .about-content-wrapper {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: center;
    }
}

.about-image-card {
    position: relative;
    height: 480px;
    width: 100%;
}

.about-text-container {
    max-width: 680px;
}

.about-lead {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-ink);
    margin-bottom: var(--spacing-md);
}

.about-paragraph {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    border-top: 1px solid rgba(15, 58, 179, 0.15);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--brand-blue);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ==========================================================================
   SECTION 2: EXPERTISES (SERVICES)
   ========================================================================== */

.expertises-section {
    background-color: var(--bg-editorial);
}

.expertises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.expertise-card {
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(15, 58, 179, 0.08);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.expertise-card:hover {
    background-color: #ffffff;
    border-color: var(--brand-blue);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(15, 58, 179, 0.08);
}

.expertise-image {
    height: 200px;
    width: 100%;
    margin-bottom: 24px;
}

.expertise-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--brand-blue);
    margin-bottom: 8px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expertise-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-ink);
}

.expertise-desc {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.expertise-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.expertise-link span {
    transition: var(--transition-fast);
}

.expertise-card:hover .expertise-link span {
    transform: translateX(6px);
}

/* ==========================================================================
   SECTION 3: FOCUS CASE STUDY (PORTFOLIO DRENCH)
   ========================================================================== */

.case-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}

.case-wrapper {
    position: relative;
    width: 100%;
    height: 560px;
    margin-top: var(--spacing-md);
}

.case-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.case-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right, 
        rgba(5, 10, 24, 0.8) 0%, 
        rgba(5, 10, 24, 0.4) 100%
    );
    z-index: 3;
}

.case-card {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 10;
    background-color: #ffffff;
    color: var(--text-ink);
    max-width: 600px;
    padding: var(--spacing-md);
    border-left: 4px solid var(--brand-blue);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .case-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .case-bg-image {
        position: relative;
        height: 280px;
    }

    .case-bg-image::after {
        background: linear-gradient(
            to bottom, 
            rgba(5, 10, 24, 0.3) 0%, 
            rgba(5, 10, 24, 0.85) 100%
        );
    }

    .case-card {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: 100%;
        margin-top: -30px;
        z-index: 10;
        width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
        padding: 1.5rem;
    }
}


.case-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    margin-bottom: 8px;
}

.case-title {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.2;
}

.case-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ==========================================================================
   SECTION 4: PROTOCOLE D'INTERVENTION (PROCESS)
   ========================================================================== */

.process-section {
    background-color: var(--bg-editorial);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.process-card {
    background-color: #faf9f6; /* Premium Alabaster paper white */
    border: 1px solid rgba(12, 37, 110, 0.05);
    padding: var(--spacing-md);
    position: relative;
    /* Snappy 0.25s transition for instant feel, avoiding layout delays */
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.25s ease,
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 2px 4px 10px rgba(7, 13, 29, 0.03), 
                0 1px 2px rgba(7, 13, 29, 0.02);
    transform-origin: top center; /* Swing from the pinned top center */
    
    /* Default initial state for scroll reveal (marked more with 40px offset) */
    opacity: 0;
    transform: translateY(40px) rotate(-1.2deg);
}

.process-card:nth-child(even) {
    transform: translateY(40px) rotate(1.2deg);
}

.process-card:nth-child(3n) {
    transform: translateY(40px) rotate(-0.8deg);
}

.process-card:nth-child(4n) {
    transform: translateY(40px) rotate(0.6deg);
}

/* Active State (Revealed) */
.process-card.active {
    opacity: 1;
    transform: translateY(0) rotate(-1.2deg);
}

.process-card.active:nth-child(even) {
    transform: translateY(0) rotate(1.2deg);
}

.process-card.active:nth-child(3n) {
    transform: translateY(0) rotate(-0.8deg);
}

.process-card.active:nth-child(4n) {
    transform: translateY(0) rotate(0.6deg);
}

/* Grab/Read State (Hover) - Snappy 2D lift and straighten */
.process-card:hover {
    background-color: #ffffff;
    border-color: rgba(12, 37, 110, 0.1);
    /* Swing straight and lift slightly for clean paper reading effect */
    transform: translateY(-6px) rotate(0deg) scale(1.015) !important;
    box-shadow: 0 12px 24px rgba(7, 13, 29, 0.06), 
                0 2px 6px rgba(7, 13, 29, 0.02);
}

.process-num {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(185, 28, 28, 0.35); /* Ink stamp red color */
    margin-bottom: 16px;
    line-height: 1;
    transition: var(--transition-smooth);
}

.process-card:hover .process-num {
    color: rgba(185, 28, 28, 0.8);
}

.process-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-ink);
}

.process-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ==========================================================================
   SECTION 5: TÉMOIGNAGES (TESTIMONIALS)
   ========================================================================== */

.testimonials-section {
    background-color: var(--bg-editorial);
}

.testimonials-nav {
    display: flex;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

@media (min-width: 1200px) {
    .testimonials-nav {
        justify-content: flex-end;
        margin-top: 0;
    }
}

.btn-nav-slider {
    background: none;
    border: 1px solid rgba(15, 58, 179, 0.2);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--brand-blue);
    transition: var(--transition-fast);
}

.btn-nav-slider:hover {
    background-color: var(--brand-blue);
    color: var(--text-light);
    border-color: var(--brand-blue);
}

.testimonials-slider {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background-color: #ffffff;
    border: 1px solid rgba(15, 58, 179, 0.08);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    box-shadow: 0 15px 30px -10px rgba(15, 58, 179, 0.05);
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 16px);
    }
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.5vw, 1.5rem);
    font-style: normal;
    line-height: 1.5;
    color: var(--text-ink);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(15, 58, 179, 0.1);
    padding-top: 16px;
}

.author-info h5 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-ink);
}

.author-info p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.testimonial-logo {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(15, 58, 179, 0.4);
}

/* ==========================================================================
   SECTION 6: CONTACT
   ========================================================================== */

.contact-section {
    background-color: var(--bg-editorial);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
        align-items: center;
    }
}

.contact-image-card {
    height: 520px;
    width: 100%;
}

.contact-form-container {
    background-color: #ffffff;
    border: 1px solid rgba(15, 58, 179, 0.08);
    padding: var(--spacing-md);
    box-shadow: 0 30px 60px -15px rgba(15, 58, 179, 0.05);
}

.contact-form-title {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-ink);
}

.contact-form-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(15, 58, 179, 0.15);
    background-color: #f7f6f3;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-ink);
    transition: var(--transition-fast);
}

textarea.form-input {
    resize: vertical;
}

.form-input:focus {
    outline: 2px solid var(--brand-blue);
    outline-offset: -2px;
    border-color: var(--brand-blue);
    background-color: #ffffff;
}

.form-input::placeholder {
    color: #a0a6b5;
}

.form-submit-btn {
    width: 100%;
    background-color: var(--brand-blue);
    color: var(--text-light);
    padding: 16px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.form-submit-btn:hover {
    background-color: var(--text-ink);
}

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

.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-lg); /* Restored default padding */
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 10;
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* Invert black logo to white on dark footer bg */
    margin-bottom: 24px;
}

.footer-desc {
    font-size: 1rem; /* Scaled up from 0.85rem */
    color: var(--text-light-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 360px;
}

.footer-cnaps {
    font-family: var(--font-mono);
    font-size: 0.8rem; /* Scaled up from 0.65rem */
    color: var(--brand-blue-light); /* High contrast light blue instead of dark navy */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-title {
    font-family: var(--font-mono);
    font-size: 0.9rem; /* Scaled up from 0.75rem */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light); /* Brighter for section headings */
    margin-bottom: 24px;
    display: block;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-link {
    font-size: 1.05rem; /* Scaled up from 0.85rem */
    color: rgba(255, 255, 255, 0.75); /* Highly visible light grey */
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--brand-blue-light);
    transform: translateX(4px);
    display: inline-block;
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-muted);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--brand-blue);
    color: var(--text-light);
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    margin-bottom: 0; /* Natural layout flow (no manual overlay pushing needed) */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.copyright {
    font-size: 0.85rem; /* Scaled up from 0.75rem */
    color: rgba(255, 255, 255, 0.65); /* Brighter for high contrast */
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-bottom-links a {
    font-size: 0.85rem; /* Scaled up from 0.75rem */
    color: rgba(255, 255, 255, 0.65); /* Brighter for high contrast */
}

.footer-bottom-links a:hover {
    color: var(--brand-blue-light);
}



/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal-element {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   SUBPAGE SPECIFIC STYLES
   ========================================================================== */

.subpage-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .subpage-grid-2 {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
    }
}

.cnaps-box {
    padding: 1.5rem;
    border-radius: 0px;
    border: 1px solid rgba(12, 37, 110, 0.15);
    background-color: rgba(12, 37, 110, 0.04);
}

.cnaps-box-inner {
    border-radius: 0px;
    background-color: var(--bg-editorial);
    padding: 30px;
}

.cnaps-list {
    list-style: none;
    padding: 0;
}

.cnaps-list-item {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cnaps-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--brand-blue);
    flex-shrink: 0;
    margin-top: 8px;
}

.interventions-section {
    background-color: #ede9e2;
}

.interventions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .interventions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.faq-section {
    background-color: var(--bg-editorial);
}

.faq-list {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(12, 37, 110, 0.15);
    padding: 24px 0;
}

.faq-question-container {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.faq-question {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-ink);
}

.faq-answer {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 18px;
}

.related-section {
    background-color: var(--bg-editorial);
    padding: var(--spacing-xl) 0;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-radius: 1.25rem;
    border: 1px solid rgba(12, 37, 110, 0.08);
    background-color: var(--bg-editorial);
    transition: var(--transition-fast);
}

.related-card:hover {
    border-color: rgba(12, 37, 110, 0.3);
    background-color: rgba(12, 37, 110, 0.03);
}

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

.related-arrow {
    width: 12px;
    height: 12px;
    stroke: var(--brand-blue);
    transition: transform 0.3s ease;
}

.related-card:hover .related-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   ZONE D'INTERVENTION SECTION
   ========================================================================== */
.intervention-section {
    background-color: var(--bg-editorial);
}

.intervention-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-lg);
}

@media (min-width: 992px) {
    .intervention-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

.intervention-desc {
    font-size: 1.05rem;
    color: var(--text-ink);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.villes-list-wrapper {
    margin-top: 30px;
}

.villes-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-blue);
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

.villes-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ville-badge {
    font-size: 0.8rem;
    font-family: var(--font-body);
    color: var(--text-ink);
    background-color: #ffffff;
    border: 1px solid rgba(12, 37, 110, 0.08);
    border-radius: 9999px;
    padding: 6px 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.ville-badge:hover {
    border-color: var(--brand-blue);
    background-color: rgba(12, 37, 110, 0.02);
}

.ville-badge.highlight {
    background-color: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.ville-badge.highlight:hover {
    background-color: var(--brand-blue-hover, #0e1e4a);
    border-color: var(--brand-blue-hover, #0e1e4a);
}

.intervention-card-wrapper {
    display: block;
}

.intervention-card-border {
    padding: 1px;
    border-radius: 0px;
    border: 1px solid rgba(12, 37, 110, 0.15);
    background-color: transparent;
}

.intervention-card {
    border-radius: 0px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgba(12, 37, 110, 0.15);
}

.intervention-card-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.intervention-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.intervention-card:hover .intervention-card-image img {
    transform: scale(1.03);
}

.image-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(6, 11, 30, 0.7) 100%);
    z-index: 2;
}

.card-image-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(12, 37, 110, 0.9);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 3;
}

.intervention-card-body {
    padding: 24px 30px;
}

.intervention-card-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-ink);
    margin-bottom: 4px;
}

.intervention-card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.intervention-card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   PRE-FOOTER CTA SECTION
   ========================================================================== */
.pre-footer-cta {
    background-color: var(--bg-editorial); /* Keep section background beige */
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.pre-footer-cta .container {
    position: relative;
    z-index: 10;
}

.cta-card {
    background-color: #020610; /* Dark navy background matching the footer */
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(2, 6, 16, 0.08);
}

@media (min-width: 992px) {
    .cta-card {
        flex-direction: row;
        align-items: center;
        padding: var(--spacing-lg) var(--spacing-lg);
        gap: var(--spacing-xl);
    }
}

.cta-content {
    flex: 1;
    max-width: 700px;
}

.cta-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-blue-light); /* Light blue for contrast on dark background */
    display: block;
    margin-bottom: 12px;
}

.cta-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-light); /* Light text on dark background */
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-desc {
    color: var(--text-light-muted); /* Light muted description text */
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-action-wrapper {
    flex-shrink: 0;
}

/* ==========================================================================
   SUBPAGE COMPONENT CARDS & LAYOUTS
   ========================================================================== */
.subpage-missions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .subpage-missions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .subpage-missions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mission-card {
    background-color: #ffffff;
    border: 1px solid rgba(12, 37, 110, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
    text-decoration: none;
    height: 100%;
}

.mission-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: 0 10px 30px rgba(12, 37, 110, 0.04);
}

.mission-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-blue);
    letter-spacing: 0.1em;
}

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mission-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-ink);
    line-height: 1.4;
}

.mission-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.mission-arrow {
    width: 10px;
    height: 10px;
    stroke: var(--brand-blue);
    transition: transform 0.3s ease;
}

.mission-card:hover .mission-arrow {
    transform: translate(2px, -2px);
}

.mission-link-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-blue);
    letter-spacing: 0.1em;
    align-self: flex-start;
    border-bottom: 1px solid rgba(12, 37, 110, 0.2);
    padding-bottom: 2px;
    margin-top: 8px;
}

/* Dark Feature Cards (Section 3) */
.why-us-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 992px) {
    .why-us-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-us-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .why-us-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .why-us-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dark-feature-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition-smooth);
}

.dark-feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

.dark-feature-label {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--brand-blue-light);
}

.dark-feature-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.dark-feature-desc {
    font-size: 0.92rem;
    color: var(--text-light-muted);
    line-height: 1.7;
}

/* Process Step Cards (Section 4) */
.process-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .process-steps-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.process-step-card {
    background-color: #ffffff;
    border: 1px solid rgba(12, 37, 110, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(12, 37, 110, 0.01);
}

.process-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: 0 10px 30px rgba(12, 37, 110, 0.03);
}

.process-step-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #c0cfe0;
    line-height: 1;
}

.process-step-divider {
    width: 24px;
    height: 1px;
    background-color: var(--brand-blue);
}

.process-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-ink);
}

.process-step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* General subpage title block adjustment */
.subpage-title-block {
    max-width: 900px;
}

/* Premium Accordion FAQ (Details/Summary) */
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    max-width: 900px;
}

.faq-details {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(12, 37, 110, 0.1);
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.faq-details[open] {
    border-bottom-color: rgba(12, 37, 110, 0.25);
}

.faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-ink);
    cursor: pointer;
    list-style: none; /* Hide default browser arrow */
    user-select: none;
    transition: color 0.2s ease;
}

/* Hide default marker in Chrome/Safari */
.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    color: var(--brand-blue);
}

.faq-summary-text {
    flex-grow: 1;
    padding-right: 16px;
    line-height: 1.4;
}

.faq-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(12, 37, 110, 0.04);
    color: var(--brand-blue);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
}

.faq-details:hover .faq-icon-wrapper {
    background-color: var(--brand-blue);
    color: #ffffff;
}

.faq-details[open] .faq-icon-wrapper {
    transform: rotate(45deg); /* Turns plus to cross */
    background-color: var(--brand-blue);
    color: #ffffff;
}

.faq-icon {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 300;
}

.faq-content {
    padding: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-details[open] .faq-content {
    max-height: 300px;
    opacity: 1;
    padding: 0 0 20px 0;
}

/* FAQ 2-Column Layout */
.faq-two-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

@media (min-width: 992px) {
    .faq-two-column-grid {
        grid-template-columns: 1fr 1.6fr;
        gap: 60px;
        align-items: start; /* Align to top to prevent the left column from jumping when right column expands */
    }
}

.faq-info-column {
    display: flex;
    flex-direction: column;
}

.faq-accordion-column {
    display: flex;
    flex-direction: column;
}

.faq-accordion-column .faq-accordion-group {
    margin-top: 0;
}

/* ==========================================================================
   CROSS-PLATFORM & RESPONSIVE REMEDIATION ENHANCEMENTS
   ========================================================================== */

/* Prevent horizontal scroll leakage globally */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Responsive static hero typography capping */
.static-hero-text {
    max-width: 100vw;
    overflow: hidden;
}

/* Form inputs iOS Safari focus auto-zoom fix */
@media (max-width: 768px) {
    .form-input,
    .form-select,
    .form-textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Mobile Card Padding & Fluid Spacing Adjustments */
@media (max-width: 480px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .expertise-card,
    .process-card,
    .testimonial-card,
    .dark-feature-card,
    .mission-card,
    .cnaps-box,
    .cnaps-box-inner,
    .contact-form-container {
        padding: 1.25rem;
    }

    .metric-number {
        font-size: 2.2rem;
    }

    /* Enforce 44px minimum touch targets for all interactive links & buttons */
    .btn-contact,
    .btn-primary,
    .btn-secondary,
    .nav-link,
    .related-card,
    .social-icon,
    .btn-nav-slider {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Subpage Grid Utilities Consolidation */
.why-us-grid-2-pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .why-us-grid-2-pricing {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 28px !important;
    }
}

.factors-grid-responsive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
@media (min-width: 768px) {
    .factors-grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-grid-responsive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .contact-grid-responsive {
        grid-template-columns: 1fr 1.2fr;
        gap: 60px;
    }
}

.contact-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 992px) {
    .contact-grid-wrapper {
        grid-template-columns: 1fr 1.2fr !important;
        gap: 64px !important;
        align-items: start !important;
    }
}

.contact-input-field {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(12, 37, 110, 0.15);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-ink);
    border-radius: 0px;
    transition: var(--transition-smooth);
}
@media (max-width: 768px) {
    .contact-input-field {
        font-size: 16px !important;
    }
}
.contact-input-field:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(12, 37, 110, 0.08);
}




