:root {
    --primary-blue: #1E293B;
    --accent-gold: #EAB308;
    --light-bg: #F8FAFC;
    --text-dark: #1E293B;
    --text-light: #F8FAFC;
    --shadow: 0 8px 30px rgba(30, 41, 59, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    width: 100%;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-padding {
    padding: 80px 0;
}

.section-padding-small {
    padding: 40px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.section-title span {
    color: var(--accent-gold);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin-bottom: 40px;
}

/* ======================= BUTTONS ======================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
}

.btn-primary:hover {
    background-color: #ca8a04;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-light);
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.btn.pulse {
    animation: pulse 2.5s infinite;
}

/* ======================= SCROLL REVEAL ======================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.float-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

/* ======================= HEADER ======================= */
header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-container img.navbar-logo {
    height: 44px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-light);
}
.logo-text span {
    color: var(--accent-gold);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-gold);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* ======================= BURGER MENU ANIMÉ ======================= */
.mobile-menu-btn {
    display: none;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-btn.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-btn.open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ======================= LANGUE DROPDOWN CUSTOM ======================= */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lang-btn i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.lang-switcher.open .lang-btn i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 6px;
    min-width: 80px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.lang-dropdown button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition);
}

.lang-dropdown button:hover {
    background: #f1f5f9;
    color: var(--accent-gold);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ======================= PARTNERS ======================= */
#partners {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.partners-wrapper {
    text-align: center;
}

.partners-wrapper p {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;  /* Largeur fixe identique pour tous */
    height: 70px;  /* Hauteur fixe identique pour tous */
    padding: 10px;
    background: #fff; /* Fond blanc pur */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Ombre subtile */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 700;
    color: #94a3b8;
}

.logo-box img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.logo-box .partner-fallback {
    display: none;
    font-weight: 700;
    color: #94a3b8;
}

.logo-box:hover {
    border-color: var(--accent-gold); /* Bordure Dorée */
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.08); /* Ombre plus profonde */
    transform: translateY(-5px); /* Effet de lévitation */
    background: #fff;
}

.logo-box:hover img {
    transform: scale(1.08); /* Agrandissement subtil du logo */
}

/* ======================= ABOUT ======================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content {
    /* Grid items also refuse to shrink below their content's natural
       width by default — same root cause as the li/span fix below. */
    min-width: 0;
}

.about-content h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-content ul {
    margin-top: 20px;
}

.about-content ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.about-content ul li i {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.about-content ul li span {
    /* Flex items refuse to shrink below their content's natural width
       by default (the "min-width:auto" flexbox footgun). Without this,
       the longest line ("Parc matériel : ...") never wraps and pushes
       the whole column past the right edge of the screen on mobile. */
    min-width: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    /* Same automatic-minimum-size footgun as .about-content: grid items
       (this block, and each .stat-item inside it) refuse to shrink below
       their content's natural width by default. */
    min-width: 0;
}

.stat-item {
    text-align: center;
    padding: 10px;
    min-width: 0;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* ======================= SERVICES ======================= */
#services {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-card h4 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

/* ======================= PORTFOLIO ======================= */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    background: #fff;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 190px;
    grid-auto-flow: dense;
    gap: 20px;
}

.portfolio-item {
    grid-column: span 2;
    grid-row: span 1;
}
.portfolio-item.pf-feature {
    grid-column: span 2;
    grid-row: span 2;
}
.portfolio-item.pf-wide {
    grid-column: span 4;
    grid-row: span 2;
}

.portfolio-item {
    position: relative;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.25);
}
.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-image {
    position: absolute;
    inset: 0;
    background-color: #ddd;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 30%, rgba(15,23,42,0.55) 68%, rgba(15,23,42,0.94) 100%);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.portfolio-item:hover::after {
    background: linear-gradient(180deg, rgba(15,23,42,0.1) 20%, rgba(15,23,42,0.65) 60%, rgba(15,23,42,0.96) 100%);
}

.portfolio-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px;
    transform: translateY(8px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h4 {
    margin-bottom: 6px;
    color: #fff;
}

.portfolio-info .tag {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.view-project {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition);
}
.view-project i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}
.portfolio-item:hover .view-project {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-item:hover .view-project i {
    transform: translateX(4px);
}

/* ======================= MISSION & VISION ======================= */
#mission {
    background: var(--primary-blue);
    color: #fff;
}

#mission .section-title {
    color: #fff;
}

#mission .section-title span {
    color: var(--accent-gold);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.mission-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}

.mission-card i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mission-card ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.mission-card ul li {
    margin-bottom: 8px;
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.commit-item {
    background: rgba(255,255,255,0.05);
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition);
}

.commit-item:hover {
    background: rgba(234, 179, 8, 0.2);
    transform: translateY(-5px);
}

.commit-icon {
    background: rgba(234, 179, 8, 0.15);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    margin: 0 auto 10px;
    color: var(--accent-gold);
}

.commit-item h4 {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ======================= TESTIMONIALS ======================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 15px;
    color: #475569;
    font-weight: 300;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary-blue);
}

.testimonial-card .role {
    font-size: 0.9rem;
    color: #64748b;
}

/* ======================= CONTACT ======================= */
#contact {
    background: #fff;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}
.form-group {
    margin-bottom: 15px;
}
.hp-field {
    /* Visually-hidden honeypot: clipped to a 1px box instead of pushed
       off-canvas with a large negative offset. The old -9999px approach
       had no positioned ancestor to contain it, so it inflated the
       document's scrollable width at the root <html> level and caused
       the page to gain horizontal scroll — revealing <html>'s default
       white background past the edge of dark sections. This pattern
       keeps the field invisible and out of the tab order without ever
       affecting layout size. */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: var(--transition);
    background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.contact-image-wrapper img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.contact-image-wrapper img:hover {
    transform: scale(1.02);
}

.contact-details h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.contact-details p {
    margin-bottom: 20px;
    color: #64748b;
}

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

.contact-details li i {
    color: var(--accent-gold);
    width: 20px;
    flex-shrink: 0;
}

.contact-details li span {
    min-width: 0;
}

.google-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
    width: 100%;
}

.google-map-iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}

/* ======================= FOOTER ======================= */
footer {
    background: #0f172a;
    color: var(--text-light);
    padding: 40px 0 20px;
    text-align: center;
}

footer .footer-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

footer .footer-info i {
    color: var(--accent-gold);
    margin-right: 8px;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

footer .social-icons a:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ======================= BOUTON RETOUR EN HAUT ======================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.4);
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .commitments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero-content {
        order: 1;
    }
    .hero-image-container {
        order: 2;
        display: flex;
        justify-content: center;
    }
    .hero-actions, .hero-values, .hero-badges {
        justify-content: center;
    }
    .hero p {
        margin: 0 auto 40px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .mission-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-image-wrapper img {
        height: 200px;
    }
    .logo-box {
        width: 120px;
        height: 60px;
    }

    /* CORRECTION DÉFINITIVE POUR LA CARTE DE DROITE (TABLETTE) */
    .testimonials-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    .testimonial-card {
        margin: 0 !important;
    }
    /* On ajoute une marge inférieure à la dernière carte (celle de droite) */
    .testimonial-card:last-child {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 768px) {
    /* CORRECTION DES MARGES MOBILES GÉNÉRALES */
    .container {
        padding: 0 20px !important;
    }

    .mobile-menu-btn {
        display: flex;
    }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 15px;
        padding: 25px 0;
        background: var(--primary-blue);
        margin-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    nav.open {
        display: flex;
    }
    .lang-switcher {
        margin-top: 5px;
    }
    .lang-dropdown {
        top: -70px;
        right: 0;
    }

    .hero h1 {
        font-size: 2.6rem;
    }
    .hero-image-glass img {
        height: 250px;
    }
    .hero-image-glass {
        max-width: 100%;
    }

    .floating-stat-card {
        left: 15px;
        bottom: 15px;
        min-width: 140px;
        padding: 10px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
    .portfolio-item,
    .portfolio-item.pf-feature,
    .portfolio-item.pf-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    .commitments-grid {
        grid-template-columns: 1fr 1fr;
    }

    .partners-logos {
        gap: 15px;
    }
    .logo-box {
        width: 100px;
        height: 50px;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    footer .footer-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px !important;
    }
    .logo-box {
        width: 80px;
        height: 45px;
        padding: 5px;
    }
    .partners-logos {
        gap: 12px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}
/* =======================================================================
   REFONTE PREMIUM — NOUVEAUX COMPOSANTS
   ======================================================================= */

/* ---- Eyebrow / numbered section label ---- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

/* ---- HERO V2 : immersive, real photo backdrop ----
   min-height (not a fixed height) on purpose: a fixed height combined
   with overflow:hidden clips the hero's own text whenever the content
   (kicker + heading + subtitle + buttons) is taller than the available
   viewport — which happens on short mobile screens and was cutting off
   the top/bottom of the section. min-height keeps the section at least
   svh-tall on generously-sized screens, but lets it grow to fit its
   content instead of clipping on short ones. overflow:hidden is still
   needed and kept — it contains the zooming background photo layer,
   not the text content, so nothing is lost by switching to min-height. */
.hero-v2 {
    position: relative;
    min-height: calc(100vh - 74px);
    min-height: calc(100svh - 74px);
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
    background: var(--primary-blue);
    border-bottom: 4px solid var(--accent-gold);
}
.hero-v2-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-v2-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.6s ease;
}
.hero-v2-bg img.is-active {
    opacity: 0.55;
}
.hero-v2-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.55) 40%, var(--primary-blue) 96%);
}
.hero-v2-content {
    /* Vertical centering now happens one level up, via align-items:center
       on .hero-v2, against this block's own natural (content + padding)
       size. Previously this block tried to center-and-fill its own
       min-height:100%, but on short mobile viewports that height
       resolved smaller than the content needed, so justify-content:center
       ate into padding-top/padding-bottom and glued the text to the
       section's edges. Sizing naturally guarantees the padding below is
       always real, visible spacing. */
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 48px;
}
.hero-v2-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 34px;
}
.hero-v2-kicker span.sep { color: rgba(255,255,255,0.35); }
.hero-v2 h1 {
    font-size: clamp(2.6rem, 6.2vw, 6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 36px;
    max-width: 900px;
}
.hero-v2 h1 .line { display: block; overflow: hidden; }
.hero-v2 h1 .accent { color: var(--accent-gold); }
.hero-v2-sub {
    font-size: 1.05rem;
    max-width: 480px;
    opacity: 0.85;
    font-weight: 300;
    margin-bottom: 44px;
    border-left: 2px solid var(--accent-gold);
    padding-left: 18px;
}
.hero-v2-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 36px;
    margin-top: 14px;
}
.hero-v2-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-values {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.hero-values span::after {
    content: "·";
    margin-left: 15px;
}
.hero-values span:last-child::after {
    content: "";
    margin-left: 0;
}
.scroll-indicator {
    position: absolute;
    right: 30px;
    bottom: 26px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.scroll-indicator .line::after {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--accent-gold);
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { top: -40px; }
    60% { top: 40px; }
    100% { top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator .line::after { animation: none; top: 0; }
}

/* ---- SCALE OF WX ---- */
#scale {
    background: var(--primary-blue);
    color: #fff;
    padding: 90px 0;
}
#scale .eyebrow { color: var(--accent-gold); }
#scale .section-title { color: #fff; }
.scale-lead {
    font-size: 1.05rem;
    max-width: 640px;
    opacity: 0.75;
    font-weight: 300;
    margin-bottom: 50px;
}
.scale-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
}
.scale-cell {
    background: var(--primary-blue);
    padding: 34px 24px;
    text-align: left;
}
.scale-cell .big {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}
.scale-cell .lbl {
    margin-top: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    opacity: 0.75;
}

/* ---- WHAT WE BUILD : capability tabs ---- */
#capabilities { background: #fff; }
.capa-wrap {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 40px;
}
.capa-list {
    background: var(--light-bg);
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.capa-list button {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    width: 100%;
    text-align: left;
    padding: 26px 28px;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.capa-list button:first-child { border-top-left-radius: 18px; }
.capa-list button:last-child { border-bottom-left-radius: 18px; border-bottom: none; }
.capa-list button .n {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
}
.capa-list button .t {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
}
.capa-list button.active {
    background: #fff;
    border-left: 3px solid var(--accent-gold);
}
.capa-list button.active .n,
.capa-list button.active .t { color: var(--primary-blue); }
.capa-list button.active .n { color: var(--accent-gold); }
.capa-list button:hover { background: rgba(234,179,8,0.08); }

.capa-panel {
    position: relative;
    min-height: 420px;
}
.capa-pane {
    display: none;
    padding: 40px;
    animation: fadeInPane 0.5s ease;
}
.capa-pane.active { display: block; }
@keyframes fadeInPane { from { opacity: 0; } to { opacity: 1; } }
.capa-pane h4 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 14px;
}
.capa-pane p { color: #475569; max-width: 640px; margin-bottom: 18px; }
.capa-pane .capa-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.capa-pane .capa-tags span {
    background: var(--light-bg);
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* ---- PROJECT EXPLORER (status badges) ---- */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 8px;
}
.status-ongoing { background: rgba(234,179,8,0.9); color: #1e293b; }
.status-done { background: rgba(34,197,94,0.9); color: #052e16; }
.portfolio-info h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 1.05rem; }
.portfolio-info .loc { font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ---- EQUIPMENT & CAPACITY ---- */
#equipment { background: var(--light-bg); }
.equip-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}
table.equip-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
table.equip-table th {
    text-align: left;
    background: var(--primary-blue);
    color: #fff;
    padding: 16px 20px;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
table.equip-table th:first-child { border-radius: 16px 0 0 0; }
table.equip-table th:last-child { border-radius: 0 16px 0 0; }
table.equip-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.92rem;
    color: var(--text-dark);
}
table.equip-table tr:last-child td { border-bottom: none; }
table.equip-table td.qty { color: var(--accent-gold); font-weight: 800; font-size: 1.05rem; }

/* ---- VISION / PLANNING (neutral, sourced) ---- */
.vision-text-block {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 34px;
    margin-bottom: 40px;
}
.vision-text-block p { margin-bottom: 14px; opacity: 0.9; font-weight: 300; line-height: 1.7; }
.vision-text-block p:last-child { margin-bottom: 0; }

/* ---- INSIDE WX (real photos) ---- */
#inside { background: #fff; }
.inside-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-top: 40px;
}
.inside-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.inside-col { display: flex; flex-direction: column; gap: 24px; }
.inside-col img { height: 100%; }

/* ---- RESPONSIVE : new components ---- */
@media (max-width: 992px) {
    .scale-grid { grid-template-columns: repeat(2, 1fr); }
    .capa-wrap { grid-template-columns: 1fr; position: relative; }
    .capa-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }
    .capa-list button {
        flex: none;
        width: auto; /* overrides the desktop width:100% — without this,
            each button's flex-basis:auto resolves to the full row width
            (100%), so only one tab is ever visible with zero peek of the
            others, which is exactly what made the tabs look static
            instead of scrollable. */
        border-bottom: none;
        border-right: 1px solid #e2e8f0;
        white-space: nowrap;
        border-radius: 0 !important;
        scroll-snap-align: start;
    }
    /* Active tab: bottom underline instead of the desktop left-border —
       reads correctly as "selected" in a horizontal strip, and a gold
       tint makes it pop enough to notice while scrolling. */
    .capa-list button.active {
        border-left: none;
        border-bottom: 3px solid var(--accent-gold);
        background: rgba(234,179,8,0.08);
    }
    /* Right-edge fade: hints there's more to scroll to without needing
       arrows or dots. Fades itself out once the strip is scrolled near
       its end (toggled via .is-scrolled-end from script.js). */
    .capa-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 32px;
        height: 63px; /* matches the ~single-line tab row height */
        background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .capa-wrap.has-scroll-hint::after {
        opacity: 1;
        left: auto;
        right: 0;
        background: linear-gradient(270deg, rgba(255,255,255,0.95), rgba(255,255,255,0));
    }
    .inside-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-v2 { height: auto; min-height: calc(100vh - 74px); min-height: calc(100svh - 74px); }
    .hero-v2-content { padding-top: 76px !important; padding-bottom: 34px !important; }
    .hero-v2-kicker { margin-bottom: 22px; flex-wrap: wrap; row-gap: 6px; font-size: 0.72rem; letter-spacing: 2px; }
    .hero-v2 h1 { margin-bottom: 22px; }
    .hero-v2-sub { margin-bottom: 28px; }
    .hero-v2-row { flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 24px; }
    .scale-grid { grid-template-columns: 1fr 1fr; }
    .scroll-indicator { display: none; }
}

/* ---- CONTACT FORM STATUS MESSAGE ---- */
.form-status {
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--primary-blue);
    background: #fffbeb;
    border: 1px solid #eab308;
    border-radius: 8px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: var(--transition);
}
.form-status.visible {
    padding: 12px 16px;
    max-height: 200px;
    opacity: 1;
}
.form-status.form-status-error {
    background: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
}

/* =======================================================================
   PREMIUM POLISH — micro-interactions & staggered reveals
   ======================================================================= */

/* Staggered entrance for grid/list items */
/* Portfolio card row-based reveal now handled via JS (row grouping + transitionDelay) */

.scale-grid.reveal .scale-cell { opacity: 0; transform: translateY(16px); transition: all 0.7s cubic-bezier(0.25,0.46,0.45,0.94); }
.scale-grid.reveal.active .scale-cell { opacity: 1; transform: translateY(0); }
.scale-grid.reveal.active .scale-cell:nth-child(1) { transition-delay: 0.05s; }
.scale-grid.reveal.active .scale-cell:nth-child(2) { transition-delay: 0.15s; }
.scale-grid.reveal.active .scale-cell:nth-child(3) { transition-delay: 0.25s; }
.scale-grid.reveal.active .scale-cell:nth-child(4) { transition-delay: 0.35s; }

.commitments-grid.reveal .commit-item { opacity: 0; transform: translateY(16px); transition: all 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.commitments-grid.reveal.active .commit-item { opacity: 1; transform: translateY(0); }
.commitments-grid .commit-item:nth-child(1) { transition-delay: 0.02s; }
.commitments-grid .commit-item:nth-child(2) { transition-delay: 0.08s; }
.commitments-grid .commit-item:nth-child(3) { transition-delay: 0.14s; }
.commitments-grid .commit-item:nth-child(4) { transition-delay: 0.2s; }
.commitments-grid .commit-item:nth-child(5) { transition-delay: 0.26s; }

/* Scale cell hover lift */
.scale-cell { transition: var(--transition); }
.scale-cell:hover {
    background: rgba(234,179,8,0.06);
    transform: translateY(-4px);
}
.scale-cell:hover .big { color: #fcd34d; }

/* Capability tab micro-interaction */
.capa-list button .t { transition: var(--transition); }
.capa-list button:hover .t { color: var(--primary-blue); transform: translateX(2px); }
.capa-list button .t { display: inline-block; }
.capa-pane h4 {
    position: relative;
    padding-bottom: 14px;
}
.capa-pane h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    background: var(--accent-gold);
}

/* Button sweep hover (premium gold sheen) */
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn:hover::before { left: 130%; }

/* Section title accent rule */
.section-title {
    position: relative;
}

/* Inside-WX gallery hover zoom */
.inside-grid img { transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.5s ease; filter: saturate(0.92); }
.inside-grid img:hover { transform: scale(1.03); filter: saturate(1.05); }

/* Equipment table row hover */
table.equip-table tbody tr { transition: var(--transition); }
table.equip-table tbody tr:hover { background: rgba(234,179,8,0.06); }
table.equip-table tbody tr:hover td.qty { color: #ca8a04; }

/* Hero headline stagger-in on load */
.hero-v2 h1 .line {
    opacity: 0;
    transform: translateY(100%);
    animation: heroLineIn 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-v2 h1 .line:nth-child(1) { animation-delay: 0.15s; }
.hero-v2 h1 .line:nth-child(2) { animation-delay: 0.32s; }
@keyframes heroLineIn {
    to { opacity: 1; transform: translateY(0); }
}
.hero-v2-kicker, .hero-v2-sub, .hero-v2-row {
    opacity: 0;
    animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-v2-kicker { animation-delay: 0.05s; }
.hero-v2-sub { animation-delay: 0.5s; }
.hero-v2-row { animation-delay: 0.68s; }
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-v2 h1 .line, .hero-v2-kicker, .hero-v2-sub, .hero-v2-row { animation: none; opacity: 1; transform: none; }
}

/* Slow, subtle hero background zoom for cinematic feel */
.hero-v2-bg img { animation: heroBgZoom 18s ease-in-out infinite alternate; }
.hero-v2-bg img.parallax-layer,
.vision-v2-bg img.parallax-layer { animation: none; }
@keyframes heroBgZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-v2-bg img { animation: none; }
}

/* =======================================================================
   PANACHE — signature visual details
   ======================================================================= */

/* ---- Numbered section positioning helper ---- */
.num-section {
    position: relative;
}

/* ---- Scroll progress bar ---- */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-gold), #fcd34d);
    z-index: 2000;
    transition: width 0.1s linear;
}

/* ---- Nav CTA (Contact) ---- */
#mainNav a[href*="contact"] {
    background: var(--accent-gold);
    color: var(--primary-blue) !important;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 700;
}
#mainNav a[href*="contact"]::after { display: none; }
#mainNav a[href*="contact"]:hover {
    background: #fcd34d;
    transform: translateY(-2px);
}

/* ---- Hero: diagonal gold accent shape (asymmetric composition) ---- */
.hero-v2::before {
    content: "";
    position: absolute;
    top: 0;
    right: 8%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent-gold) 20%, var(--accent-gold) 80%, transparent);
    opacity: 0.5;
    z-index: 1;
}
.hero-v2-kicker {
    position: relative;
}
.hero-v2-kicker::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    transform: rotate(45deg);
    margin-right: 4px;
}

/* ---- Portfolio card: subtle tilt + gold frame on hover ---- */
.portfolio-item {
    transform-style: preserve-3d;
}

/* ---- Textured diagonal background on Scale & Equipment (blueprint feel) ---- */
#scale {
    background-image:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 34px),
        var(--primary-blue);
}
#equipment {
    background-image:
        repeating-linear-gradient(135deg, rgba(15,23,42,0.02) 0px, rgba(15,23,42,0.02) 1px, transparent 1px, transparent 34px),
        var(--light-bg);
}

@media (max-width: 768px) {
    .hero-v2::before { display: none; }
}

/* =======================================================================
   HOW WE BUILD — process stepper
   ======================================================================= */
.process-track {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 44px;
    border-top: 1px solid #e2e8f0;
}
.process-step {
    flex: 1;
    min-width: 110px;
    text-align: left;
    padding: 22px 14px 20px;
    border: none;
    border-top: 3px solid #e2e8f0;
    margin-top: -1px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
    position: relative;
}
.process-step .num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}
.process-step .lbl {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
}
.process-step.active {
    border-top-color: var(--accent-gold);
}
.process-step.active .num { color: var(--accent-gold); }
.process-step:hover .lbl { color: var(--accent-gold); }
.process-step::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 22px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #cbd5e1;
    border-right: 2px solid #cbd5e1;
    transform: rotate(45deg);
    display: none;
}
.process-step:not(:last-child)::after { display: block; }

.process-detail {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 40px;
    margin-top: 0;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}
.process-detail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gold);
}
.process-pane { display: none; animation: fadeInPane 0.5s ease; }
.process-pane.active { display: block; }
.process-pane h4 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}
.process-pane p { color: #475569; max-width: 640px; }

@media (max-width: 768px) {
    .process-track {
        flex-direction: column;
        border-top: none;
    }
    .process-step {
        border-top: none;
        border-left: 3px solid #e2e8f0;
        padding: 14px 16px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .process-step.active { border-left-color: var(--accent-gold); border-top: none; }
    .process-step::after { display: none !important; }
}

/* =======================================================================
   PARTNERS — infinite logo marquee
   ======================================================================= */
#partners {
    background: #fff;
    padding: 40px 0 46px;
    border-bottom: 1px solid #e2e8f0;
}
.partners-label {
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 24px;
}
.marquee {
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    padding: 14px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}
.marquee:hover .marquee-track {
    animation-play-state: paused;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.partner-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 50px;
    background: var(--light-bg);
    border: 1px solid #e2e8f0;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: var(--transition);
}
.partner-badge i { color: var(--accent-gold); font-size: 1.1rem; }
.partner-badge:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}
.partner-badge-ghost {
    background: transparent;
    border-style: dashed;
    color: #94a3b8;
    font-weight: 600;
}
.partner-badge-ghost i { color: #cbd5e1; }

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* =======================================================================
   NOTRE SAVOIR-FAIRE — animated expertise cards
   ======================================================================= */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 44px;
}
.expertise-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 34px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.expertise-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}
.expertise-card:hover::before { transform: scaleX(1); }
.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 34px rgba(15,23,42,0.1);
    border-color: transparent;
}
.expertise-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}
.expertise-icon .float-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .expertise-icon .float-icon { animation: none; }
}
.expertise-card h4 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.expertise-card p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
}
.expertise-card.reveal:nth-child(1) { transition-delay: 0.02s; }
.expertise-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.expertise-card.reveal:nth-child(3) { transition-delay: 0.18s; }
.expertise-card.reveal:nth-child(4) { transition-delay: 0.02s; }
.expertise-card.reveal:nth-child(5) { transition-delay: 0.1s; }
.expertise-card.reveal:nth-child(6) { transition-delay: 0.18s; }

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

/* =======================================================================
   VISION 2030 — full-bleed photographic emphasis
   ======================================================================= */
.vision-v2 {
    position: relative;
    color: #fff;
    background: var(--primary-blue);
}
.vision-v2-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.vision-v2-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}
.vision-v2-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.92) 55%, var(--primary-blue) 100%);
}
.vision-v2 .container {
    position: relative;
    z-index: 1;
}
.vision-v2-title {
    color: #fff !important;
    font-size: clamp(2.6rem, 5vw, 4.2rem) !important;
    letter-spacing: -1px;
    margin-bottom: 6px !important;
}
.vision-v2-title span { color: var(--accent-gold); }
.vision-v2-sub {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 40px !important;
}
.vision-v2 .vision-text-block {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(2px);
}
.vision-v2 .commit-item {
    transition: var(--transition);
}
.vision-v2 .commit-icon {
    transition: var(--transition);
}
.vision-v2 .commit-item:hover .commit-icon {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: scale(1.12) rotate(6deg);
}
.vision-v2 .commit-item:hover h4 { color: var(--accent-gold); }

/* ---- Partner logo images in marquee ---- */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 8px 10px;
}
.partner-logo img {
    max-height: 64px;
    max-width: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: filter 0.4s ease, transform 0.4s ease;
}
.partner-logo:hover img {
    filter: grayscale(0) opacity(1);
    transform: translateY(-3px);
}

/* ---- Footer social icons ---- */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 22px;
}
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* =======================================================================
   EXIT FADE — sections fade as they leave via the top
   ======================================================================= */
.reveal.exit-bottom {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =======================================================================
   PARALLAX backgrounds
   ======================================================================= */
.parallax-layer {
    will-change: transform;
}

/* =======================================================================
   TIMELINE — continuous vertical spine through Partners → Vision
   ======================================================================= */
.timeline-wrap {
    position: relative;
}
.timeline-item {
    position: relative;
}

/* base + progress line, spans the FULL height of the wrap — never interrupted */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 64px;
    width: 3px;
    background: rgba(234, 179, 8, 0.18);
    transform: translateX(-50%);
    border-radius: 3px;
    z-index: 15;
    pointer-events: none;
}
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-gold), #fcd34d);
    border-radius: 3px;
}

/* make room in the content column so nothing collides with the rail */
.timeline-wrap .container {
    padding-left: 110px;
}
#partners.timeline-item .container {
    padding-left: 20px; /* keep the short centered "trusted by" label centered */
}

/* ---- Node: halo + outer ring + inner dot ---- */
.timeline-node {
    position: absolute;
    top: 0;
    left: 64px;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    z-index: 20;
    cursor: pointer;
}
.tn-halo {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.35), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.tn-outer {
    position: absolute;
    top: 50%; left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(15, 23, 42, 0.25);
    transition: var(--transition);
}
.tn-inner {
    position: absolute;
    top: 50%; left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    transition: var(--transition);
}

/* hover label */
.timeline-node::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 28px;
    transform: translateY(-50%) translateX(-6px);
    background: var(--primary-blue);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 25;
}
.timeline-node:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.timeline-node:hover .tn-outer {
    border-color: var(--accent-gold);
}
.timeline-node:focus-visible .tn-outer {
    border-color: var(--accent-gold);
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}
.timeline-node:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ---- States: future (default) / active / completed ---- */
.timeline-node.is-completed .tn-outer {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
}
.timeline-node.is-completed .tn-inner {
    background: var(--primary-blue);
}
.timeline-node.is-active .tn-outer {
    width: 28px;
    height: 28px;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 5px rgba(234, 179, 8, 0.15);
}
.timeline-node.is-active .tn-inner {
    width: 12px;
    height: 12px;
    background: var(--accent-gold);
}
.timeline-node.is-active .tn-halo {
    opacity: 1;
    animation: tnPulse 2.4s ease-in-out infinite;
}
@keyframes tnPulse {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.18); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
    .timeline-node.is-active .tn-halo { animation: none; opacity: 0.6; }
}

/* ---- Mobile: tighter rail, smaller nodes, still continuous ---- */
@media (max-width: 768px) {
    .timeline-line { left: 28px; }
    .timeline-wrap .container { padding-left: 56px !important; }
    #partners.timeline-item .container { padding-left: 20px !important; }
    /* The stats card inherits the same 56px left offset as the timeline
       text above it, but unlike that text it isn't visually tied to the
       timeline rail — so on the right it only had the container's 15-20px
       edge padding, making it look lopsided/cramped against the right
       edge compared to its generous left-side gap. A bit of extra right
       margin rebalances it. */
    .about-stats { margin-right: 20px; }
    .timeline-node { left: 28px; width: 24px; height: 24px; }
    .tn-outer { width: 20px; height: 20px; }
    .tn-inner { width: 7px; height: 7px; }
    .timeline-node.is-active .tn-outer { width: 24px; height: 24px; }
    .timeline-node::after { display: none; } /* hover labels aren't useful on touch */
}

/* =======================================================================
   PROJECTS — editorial mosaic refinements: number overlay + premium photo filter
   ======================================================================= */

/* Professional "Instagram-style" color grade on every project photo:
   slightly deeper contrast/saturation + a warm-navy duotone wash for
   visual cohesion across photos shot in different light/quality. */
.portfolio-image img {
    filter: contrast(1.12) saturate(1.12) brightness(0.97) sepia(0.06);
}
.portfolio-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(30, 58, 95, 0.22), rgba(234, 179, 8, 0.06) 60%, transparent 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

/* Big editorial project number, top-left */
.pf-num {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 3;
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
    transition: var(--transition);
}
.portfolio-item:hover .pf-num {
    color: var(--accent-gold);
    transform: scale(1.15);
}

/* Feature / wide tiles get a bigger number and roomier, bolder caption */
.pf-feature .pf-num,
.pf-wide .pf-num {
    font-size: 2.4rem;
    top: 26px;
    left: 28px;
}
.pf-feature .portfolio-info,
.pf-wide .portfolio-info {
    padding: 32px;
}
.pf-feature .portfolio-info h4,
.pf-wide .portfolio-info h4 {
    font-size: 1.4rem;
}
.pf-wide .portfolio-info h4 {
    font-size: 1.8rem;
}
.pf-feature .portfolio-info .loc,
.pf-wide .portfolio-info .loc {
    font-size: 0.92rem;
}
.pf-feature .portfolio-info .tag,
.pf-wide .portfolio-info .tag {
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .pf-feature .pf-num, .pf-wide .pf-num { font-size: 1.4rem; top: 18px; left: 20px; }
    .pf-feature .portfolio-info, .pf-wide .portfolio-info { padding: 22px; }
    .pf-feature .portfolio-info h4, .pf-wide .portfolio-info h4 { font-size: 1.15rem; }
}

/* =======================================================================
   IMMERSIVE PROJECT GALLERY — filmstrip modal
   ======================================================================= */

/* Clickable affordance on cards that have a real photo gallery */
.portfolio-item[data-gallery] { cursor: pointer; }

body.gallery-open {
    overflow: hidden;
}
body.gallery-open #scrollTopBtn {
    display: none;
}

.project-gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.project-gallery-overlay.open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.gallery-modal {
    position: relative;
    z-index: 1;
    width: min(1200px, 94vw);
    height: min(86vh, 900px);
    display: flex;
    flex-direction: column;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.project-gallery-overlay.open .gallery-modal {
    transform: scale(1);
    opacity: 1;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    background: transparent;
    padding: 4px 4px 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.gallery-header::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    height: 90px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), transparent);
    pointer-events: none;
    z-index: -1;
}
.project-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.project-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
}
.gallery-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
    white-space: nowrap;
}
.gallery-close {
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.gallery-close:hover, .gallery-close:focus-visible {
    background: transparent;
    color: var(--accent-gold);
    outline: none;
    transform: rotate(90deg);
}

.gallery-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.gallery-main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(6px);
}
.gallery-nav:hover, .gallery-nav:focus-visible {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-blue);
    outline: none;
}
.gallery-prev { left: 6px; }
.gallery-next { right: 6px; }

.gallery-filmstrip {
    margin-top: 20px;
    overflow: hidden;
}
.filmstrip-track {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 6px 16px;
    scrollbar-width: none;
}
.filmstrip-track::-webkit-scrollbar { display: none; }

.filmstrip-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.55;
    filter: brightness(0.8);
    transform: scale(0.92);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.filmstrip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.filmstrip-item.is-near {
    width: 90px;
    height: 90px;
    opacity: 0.8;
    filter: brightness(0.9);
    transform: scale(0.97);
}
.filmstrip-item.is-active {
    width: 130px;
    height: 130px;
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(234, 179, 8, 0.15);
}
.filmstrip-item:hover {
    opacity: 1;
    filter: brightness(1);
}

@media (prefers-reduced-motion: reduce) {
    .gallery-modal, .gallery-main-image img, .filmstrip-item, .project-gallery-overlay {
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .gallery-modal { width: 100%; height: 100%; padding: 16px; }
    .project-name { max-width: 50vw; font-size: 1rem; }
    .gallery-nav { width: 38px; height: 38px; }
    .filmstrip-item { width: 52px; height: 52px; }
    .filmstrip-item.is-near { width: 64px; height: 64px; }
    .filmstrip-item.is-active { width: 88px; height: 88px; }
}

/* =======================================================================
   404 — NOT FOUND — premium redesign
   Reuses existing tokens (--primary-blue, --accent-gold), the blueprint
   diagonal texture already used on #scale/#equipment, and the site's
   .reveal / .btn / .eyebrow / .float-icon components for full visual
   consistency with the rest of the site.
   ======================================================================= */
.notfound-hero {
    background: var(--primary-blue);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 60px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.notfound-bg {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 34px),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 34px);
    pointer-events: none;
}
.notfound-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
}
.notfound-figure {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.notfound-digits {
    font-size: clamp(6rem, 22vw, 13rem);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 0.9;
    color: var(--accent-gold);
}
.notfound-icon {
    position: absolute;
    top: -6px;
    right: -4px;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: rgba(255,255,255,0.22);
    transform: rotate(12deg);
}
.notfound-title {
    color: #fff;
    text-align: center;
    margin: 0 auto 18px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}
.notfound-sub {
    color: rgba(255,255,255,0.75);
    text-align: center;
    max-width: 480px;
    margin: 0 auto 44px;
    font-size: 1.1rem;
}
.notfound-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 46px;
}
.notfound-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.notfound-links a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
}
.notfound-links a:hover {
    color: var(--accent-gold);
}

@media (max-width: 600px) {
    .notfound-hero { padding: 120px 16px 50px; }
    .notfound-sub { font-size: 1rem; margin-bottom: 36px; }
    .notfound-actions { flex-direction: column; align-items: stretch; margin-bottom: 38px; }
    .notfound-actions .btn { text-align: center; }
    .notfound-links { gap: 10px 18px; padding-top: 22px; }
}
