@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Playfair+Display:wght@600;700&family=Noto+Sans+SC:wght@400;600&display=swap');

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont;
}

/* Keep ScrollTrigger debug markers clearly visible above site overlays. */
.gsap-marker-start,
.gsap-marker-end,
.gsap-marker-scroller-start,
.gsap-marker-scroller-end,
[class*="gsap-marker"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483647 !important;
}

:root {
    --hero-accent: #111111;
}

.dark {
    --hero-accent: #f5f5f5;
}

:root {
    --nav-glow-accent: #38bdf8;
    --nav-glow-accent-soft: rgba(56, 189, 248, 0.2);
}

.dark {
    --nav-glow-accent: #7dd3fc;
    --nav-glow-accent-soft: rgba(125, 211, 252, 0.24);
}

#hero-text {
    color: var(--hero-accent);
}

.media-hover img,
.media-hover video {
    transition: transform .8s ease;
}

.media-hover:hover img,
.media-hover:hover video {
    transform: scale(1.04);
}

.lettre {
    display: inline-block;
    will-change: transform, opacity;
}

.about-stats {
    perspective: 1400px;
}

.about-stat {
    transform-style: preserve-3d;
    will-change: transform;
}

.featured-scroll-section {
    padding-top: 0;
    padding-bottom: 0;
    transition: background-color 0.8s ease;
}

.featured-scroll-shell {
    position: relative;
}

.featured-intro-panel {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
}

.featured-text-reveal {
    max-width: 72rem;
    margin-top: 1.75rem;
    font-size: clamp(2.8rem, 6vw, 6.4rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.featured-word {
    display: inline-block;
    color: rgba(255, 255, 255, 0.24);
    margin-right: 0.22em;
}

.featured-horizontal-wrapper {
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.featured-cards-track {
    display: flex;
    width: max-content;
    height: 100%;
}

.featured-panel {
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 7rem 5vw 4rem;
}

.featured-panel-shell {
    width: min(100%, 86rem);
    min-height: min(76vh, 46rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: stretch;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 32px 90px rgba(2, 6, 23, 0.34);
    overflow: hidden;
}

.featured-panel-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-panel-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.featured-panel-title {
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    margin-bottom: 1.25rem;
}

.featured-panel-text {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.02rem;
    line-height: 1.7;
}

.featured-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.featured-panel-tag {
    padding: 0.55rem 0.9rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.featured-panel-media {
    position: relative;
    border-radius: 1.6rem;
    overflow: hidden;
    min-height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-panel-shell.is-crique {
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 28%),
        linear-gradient(135deg, #0f1e44, #102b5a 55%, #113b62);
}

.featured-panel-shell.is-lyfe {
    background:
        radial-gradient(circle at top right, rgba(103, 232, 249, 0.22), transparent 28%),
        linear-gradient(135deg, #0a2440, #0f3f57 55%, #115e59);
}

.featured-panel-shell.is-icoach {
    background:
        radial-gradient(circle at top right, rgba(196, 181, 253, 0.18), transparent 28%),
        linear-gradient(135deg, #1f2147, #2c255f 55%, #4c1d95);
}

.products-fusion-section {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    overflow: clip;
    z-index: 3;
    box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.08);
}

.products-fusion-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 90px 90px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 82%);
    pointer-events: none;
    z-index: 0;
}

/* Canvas 3D positionné sur TOUTE la section #products */
#products-webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: var(--products-canvas-opacity, 1);
    transition: opacity 0.1s linear;
}

/* Hero : zone de contenu au-dessus du canvas partagé */
.products-fusion-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
    isolation: isolate;
    z-index: 1;
}

.products-fusion-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.88) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.35));
    z-index: 1;
    pointer-events: none;
}

/* Ligne de transition douce entre hero et section tech */
.products-fusion-hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, rgba(10, 20, 60, 0.18));
    z-index: 2;
    pointer-events: none;
}

.products-fusion-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(1.5rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1600px;
}

.products-fusion-panel {
    width: min(1320px, 100%);
    display: grid;
    gap: 2rem;
    text-align: center;
    justify-items: center;
    padding: clamp(2rem, 5vw, 4rem) 0;
    font-family: "Cormorant Garamond", serif;
}

.products-eyebrow {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont;
    letter-spacing: 0.38rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.58);
}

.products-text-line {
    text-align: center;
}

.products-text-line.title {
    width: 100%;
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 600;
    letter-spacing: 0.015em;
    text-transform: none;
    line-height: 0.96;
}

.products-text-line.subtitle {
    max-width: 900px;
    margin-top: 1.25rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: rgba(15, 23, 42, 0.74);
}

.products-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-width: 220px;
    padding: 1.25rem 2rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    color: #0f172a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.9rem;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 14px 40px rgba(15, 23, 42, 0.12),
        0 0 1.2rem rgba(56, 189, 248, 0.14);
    isolation: isolate;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.products-btn::before {
    content: "";
    position: absolute;
    width: 180%;
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            rgba(255, 255, 255, 0) 0deg,
            rgba(255, 255, 255, 0) 32deg,
            rgba(255, 255, 255, 0.98) 54deg,
            rgba(56, 189, 248, 1) 92deg,
            rgba(76, 242, 215, 0.98) 126deg,
            rgba(255, 107, 107, 0.95) 164deg,
            rgba(255, 255, 255, 0) 205deg,
            rgba(255, 255, 255, 0) 360deg);
    animation: productsButtonSweep 2.1s linear infinite;
    opacity: 1;
    z-index: 1;
}

.products-btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.88),
        inset 0 0 2rem rgba(255, 255, 255, 0.28);
    pointer-events: none;
    z-index: 2;
}

.products-btn:hover,
.products-btn:focus-visible {
    box-shadow:
        0 18px 44px rgba(15, 23, 42, 0.16),
        0 0 1.4rem rgba(56, 189, 248, 0.22),
        0 0 2.6rem rgba(76, 242, 215, 0.18);
    transform: translateY(-2px) scale(1.02);
}

.products-btn-text,
.products-btn-arrow {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.products-btn-arrow {
    font-size: 1.1rem;
}

@keyframes productsButtonSweep {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        filter: saturate(1.05) brightness(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        filter: saturate(1.35) brightness(1.12);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        filter: saturate(1.05) brightness(1);
    }
}

.products-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.32rem;
    color: rgba(15, 23, 42, 0.4);
}

.products-scroll-line {
    width: 1px;
    height: 72px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.65));
    transform-origin: top center;
}

/* Section technologie — fond transparent pour laisser le canvas 3D visible */
.products-after {
    position: relative;
    z-index: 1;
    min-height: 110vh;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 5rem);
    background: linear-gradient(180deg,
            rgb(253, 253, 253) 0%,
            rgba(246, 246, 249, 0.92) 100%);
}

/* Card glassmorphism */
.products-after-card {
    width: min(960px, 100%);
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.products-after-card .products-eyebrow {
    color: rgba(147, 197, 253, 0.85);
}

.products-after-card h2 {
    margin: 0.4rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #171a4d;
    text-shadow: 0 0 2rem rgba(99, 179, 253, 0.4);
}

.products-after-card>p {
    margin: 0 0 0.5rem;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
    color: rgba(24, 50, 89, 0.82);
}

/* Orbite tech — identique à avant */
.products-tech-grid {
    position: relative;
    width: min(100%, 760px);
    height: 32rem;
    margin-top: 4rem;
    margin-left: auto;
    margin-right: auto;
    perspective: 1200px;
}

/* Centre lumineux de l'orbite */
.products-tech-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(99, 179, 253, 0.22), rgba(56, 130, 248, 0.09) 48%, transparent 72%);
    box-shadow:
        0 0 3rem rgba(99, 179, 253, 0.18),
        inset 0 0 0 1px rgba(99, 179, 253, 0.2);
    pointer-events: none;
    animation: techCorePulse 3s ease-in-out infinite;
}

@keyframes techCorePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.12);
        opacity: 1;
    }
}

/* Cards tech — glassmorphism */
.products-tech-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10.5rem;
    min-height: 9.5rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    color: #ffffff;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(.22, 1, .36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
    transform-style: preserve-3d;
    cursor: default;
}

.products-tech-card:hover {
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 1.5rem rgba(99, 179, 253, 0.22);
    border-color: rgba(147, 200, 255, 0.3);
}

.products-tech-icon {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 8px rgba(147, 200, 255, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.products-tech-card:hover .products-tech-icon {
    transform: scale(1.14) translateY(-3px);
    filter: drop-shadow(0 0 14px rgba(147, 200, 255, 0.75));
}

.products-tech-card h3 {
    color: #e0eeff;
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.products-tech-card p {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 0.35rem;
    color: rgba(186, 213, 253, 0.78);
}

.services-editorial {
    position: relative;
    padding: clamp(5rem, 8vw, 8rem) 1.5rem;
    background:
        /*radial-gradient(circle at top, rgb(247, 247, 247), transparent 28%),*/
        radial-gradient(circle at 85% 18%, rgba(77, 71, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #fafafa 100%);
    color: #0a1d42;
    overflow: hidden;
}

.services-simple-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.services-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.32rem;
    text-transform: uppercase;
    color: rgba(25, 31, 88, 0.58);
}

.services-diagonal-content {
    display: grid;
    gap: 1rem;
}

.services-diagonal-title {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(3.2rem, 10vw, 7.4rem);
    line-height: 0.9;
    letter-spacing: 0.01em;
}

.services-diagonal-text {
    max-width: 680px;
    margin: 0;
    font-size: clamp(1.02rem, 1.9vw, 1.22rem);
    line-height: 1.75;
    color: rgba(14, 12, 58, 0.82);
}

.services-list {
    display: grid;
    gap: 1.75rem;
}

.services-item {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: center;
    padding: clamp(1rem, 2.2vw, 1.5rem) 0;
    background:
        radial-gradient(circle at top, rgba(213, 157, 46, 0.11), transparent 28%),
        radial-gradient(circle at 25% 68%, rgba(138, 71, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #fafafa 100%);
    perspective: 1000px;
}

.services-item-right {
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
    background:
        radial-gradient(circle at bottom, rgba(213, 118, 46, 0.11), transparent 28%),
        radial-gradient(circle at 85% 68%, rgba(181, 71, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #fafafa 100%);
}

.services-item-copy {
    max-width: 42rem;
}

.services-item-right .services-item-copy {
    order: 2;
    margin-left: auto;
    text-align: right;
}

.services-item-right .services-item-media {
    order: 1;
}

.services-item-label {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-family: "Noto Sans SC", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.32rem;
    text-transform: uppercase;
    color: rgba(13, 31, 67, 0.55);
}

.services-item-title {
    margin: 0 0 0.75rem;
    font-family: "Noto Sans SC", sans-serif;
    font-size: clamp(1.9rem, 3.9vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: 0.02em;
}

.services-item-text {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(1rem, 1.75vw, 1.08rem);
    line-height: 1.8;
    color: rgba(10, 27, 63, 0.82);
    text-align: justify;
    text-justify: inter-word;
}

.services-item-right .services-item-text {
    margin-left: auto;
}

.services-item-media {
    width: 100%;
}

.services-video-slot {
    min-height: clamp(15rem, 28vw, 22rem);
    border-radius: 1.8rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.22);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.services-video-slot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-letter {
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity;
    transform-origin: center bottom;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
    display: block;
}

.nav-glow-link {
    position: relative;
    overflow: visible;
    transition: color 0.25s ease;
}

.nav-glow-word {
    display: inline-flex;
    align-items: center;
}

.nav-glow-letter {
    position: relative;
    display: inline-block;
    min-width: 0.02em;
    color: rgba(4, 20, 36, 0.98);
    animation: navLetterGlow 2.8s linear infinite;
    animation-delay: calc(var(--letter-index, 0) * 0.08s);
    transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.nav-glow-space {
    width: 0.35em;
}

.dark .nav-glow-letter {
    color: rgba(213, 219, 226, 0.98);
}

.nav-glow-link:hover .nav-glow-letter,
.nav-glow-link:focus-visible .nav-glow-letter {
    animation-duration: 1.05s;
}

.nav-glow-link:hover .nav-glow-letter {
    transform: translateY(-1px);
}

@keyframes navLetterGlow {

    0%,
    100% {
        color: rgba(4, 20, 36, 0.98);
        text-shadow: 0 0 0 transparent;
        filter: saturate(1) brightness(1);
    }

    20% {
        color: rgba(4, 20, 36, 0.98);
        text-shadow: 0 0 0 transparent;
        filter: saturate(1) brightness(1);
    }

    38% {
        color: #ffffff;
        text-shadow:
            0 0 0.35rem rgba(255, 255, 255, 0.45),
            0 0 0.8rem var(--nav-glow-accent-soft);
        filter: saturate(1.15) brightness(1.1);
    }

    52% {
        color: var(--nav-glow-accent);
        text-shadow:
            0 0 0.5rem var(--nav-glow-accent-soft),
            0 0 1.1rem var(--nav-glow-accent-soft),
            0 0 1.7rem rgba(56, 189, 248, 0.16);
        filter: saturate(1.4) brightness(1.22);
    }

    68% {
        color: rgba(4, 20, 36, 0.98);
        text-shadow: 0 0 0 transparent;
        filter: saturate(1.05) brightness(1.04);
    }
}

.dark .nav-glow-link:hover .nav-glow-letter,
.dark .nav-glow-link:focus-visible .nav-glow-letter {
    color: rgba(4, 20, 36, 0.98);
}

.dark .nav-glow-letter {
    animation-name: navLetterGlowDark;
}

@keyframes navLetterGlowDark {

    0%,
    100% {
        color: rgba(4, 20, 36, 0.98);
        text-shadow: 0 0 0 transparent;
        filter: saturate(1) brightness(1);
    }

    20% {
        color: rgba(4, 20, 36, 0.98);
        text-shadow: 0 0 0 transparent;
        filter: saturate(1) brightness(1);
    }

    38% {
        color: #ffffff;
        text-shadow:
            0 0 0.4rem rgba(255, 255, 255, 0.55),
            0 0 0.9rem var(--nav-glow-accent-soft);
        filter: saturate(1.15) brightness(1.12);
    }

    52% {
        color: var(--nav-glow-accent);
        text-shadow:
            0 0 0.55rem var(--nav-glow-accent-soft),
            0 0 1.2rem var(--nav-glow-accent-soft),
            0 0 1.8rem rgba(125, 211, 252, 0.2);
        filter: saturate(1.45) brightness(1.25);
    }

    68% {
        color: rgba(4, 20, 36, 0.98);
        text-shadow: 0 0 0 transparent;
        filter: saturate(1.05) brightness(1.04);
    }
}

.site-header {
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-header.is-hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

.header-visibility-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(209, 213, 219, 0.92);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .header-visibility-toggle {
    background: rgba(2, 6, 23, 0.88);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}

.header-visibility-toggle svg {
    width: 1rem;
    height: 1rem;
}

.mobile-menu-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu-panel.is-open {
    max-height: 28rem;
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

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

.reveal-soft {
    opacity: 0;
    transform: translateY(18px) scale(.98);
    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-soft-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-x {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-x-visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger>* {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-visible>* {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-visible>*:nth-child(1) {
    transition-delay: 0ms;
}

.stagger-visible>*:nth-child(2) {
    transition-delay: 80ms;
}

.stagger-visible>*:nth-child(3) {
    transition-delay: 160ms;
}

.parallax {
    will-change: transform;
}

@media (max-width: 1024px) {
    .featured-panel {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .featured-panel-shell {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.9fr);
        min-height: min(72vh, 42rem);
    }

    .products-tech-grid {
        width: min(100%, 620px);
        height: 28rem;
    }

    .products-tech-card {
        width: 9.25rem;
        min-height: 8.8rem;
    }
}

@media (max-width: 768px) {
    .featured-intro-panel {
        padding-top: 7rem;
    }

    .featured-text-reveal {
        font-size: clamp(2.25rem, 11vw, 4rem);
        line-height: 1.02;
    }

    .featured-panel {
        padding: 6.5rem 1.25rem 2rem;
    }

    .featured-panel-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .featured-panel-media {
        min-height: 14rem;
    }

    .products-fusion-panel {
        padding-top: 5rem;
    }

    .products-text-line.title {
        font-size: clamp(2.5rem, 13vw, 4.2rem);
    }

    .products-btn {
        min-width: 100%;
    }

    .products-scroll-cue {
        bottom: 1.2rem;
    }

    .products-scroll-line {
        height: 48px;
    }

    .products-tech-grid {
        display: grid;
        position: static;
        width: 100%;
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        animation: none;
    }

    .products-tech-grid::before {
        display: none;
    }

    .products-tech-card {
        position: static;
        width: auto;
        min-height: 0;
        transform: none !important;
        animation: none;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .services-editorial {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .services-item,
    .services-item-right {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .services-item-copy,
    .services-item-right .services-item-copy,
    .services-item-right .services-item-media {
        order: initial;
        margin-left: 0;
        text-align: left;
    }

    .services-item-text,
    .services-item-right .services-item-text {
        margin-left: 0;
        max-width: none;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-soft,
    .reveal-x,
    .stagger>* {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .parallax {
        transform: none !important;
    }

    .featured-panel-shell,
    .featured-panel-media img {
        transition: none !important;
    }
}

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.section-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.section-with-particles>*:not(.section-particles-canvas) {
    position: relative;
    z-index: 2;
}

body>section,
body>header,
body>footer {
    position: relative;
    z-index: 2;
}

.hero-full {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    transition: min-height 0.8s cubic-bezier(.22, 1, .36, 1),
        padding 0.8s cubic-bezier(.22, 1, .36, 1);
}

.hero-compact {
    min-height: 0;
    padding-top: 8rem;
    padding-bottom: 4rem;
    transition: min-height 0.8s cubic-bezier(.22, 1, .36, 1),
        padding 0.8s cubic-bezier(.22, 1, .36, 1);
}

.section-screen {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.section-screen>* {
    width: 100%;
}

#contact {
    z-index: 6;
}


@media (max-width: 768px) {
    .section-screen {
        padding-top: 8rem;
        padding-bottom: 4.5rem;
    }

    .header-visibility-toggle {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        z-index: 9991; /* au-dessus du cube 3D (9990) */
        padding: 0.75rem;
        gap: 0;
    }

    /* Masquer le label texte sur mobile — icône seule */
    .header-visibility-toggle #headerVisibilityLabel {
        display: none;
    }
}


/* ═══════════════════════════════════════
   CUBE CSS 3D — flottant section products
═══════════════════════════════════════ */
#products-cube-wrap {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9990;
    opacity: 0;
    will-change: transform;
}

.p-cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: pSpinCube 9s linear infinite;
}

.p-cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(2px);
}

.p-face-front {
    transform: translateZ(30px);
    background: rgba(37, 99, 235, 0.72);
}

.p-face-back {
    transform: rotateY(180deg) translateZ(30px);
    background: rgba(15, 23, 42, 0.85);
}

.p-face-left {
    transform: rotateY(-90deg) translateZ(30px);
    background: rgba(56, 189, 248, 0.65);
}

.p-face-right {
    transform: rotateY(90deg) translateZ(30px);
    background: rgba(37, 99, 235, 0.72);
}

.p-face-top {
    transform: rotateX(90deg) translateZ(30px);
    background: rgba(99, 179, 253, 0.60);
}

.p-face-bottom {
    transform: rotateX(-90deg) translateZ(30px);
    background: rgba(8, 22, 47, 0.90);
}

@keyframes pSpinCube {
    0% {
        transform: rotateX(22deg) rotateY(0deg) rotateZ(8deg);
    }

    100% {
        transform: rotateX(22deg) rotateY(360deg) rotateZ(8deg);
    }
}

/* ═══════════════════════
   TECH AWARD LIST — Design Award style
═══════════════════════ */
.tech-award-list {
    display: flex;
    flex-direction: column;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.tech-award-item {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Ligne de hover lumineuse */
.tech-award-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(247, 145, 2, 0.9), rgba(56, 189, 248, 0.3));
    transition: width 0.55s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

.tech-award-item:hover::before {
    width: 100%;
}

/* Fond scintillant au hover */
.tech-award-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(99, 179, 253, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tech-award-item:hover::after {
    opacity: 1;
}

.tech-award-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: rgba(147, 197, 253, 0.5);
    font-weight: 500;
    transition: color 0.35s ease;
    flex-shrink: 0;
}

.tech-award-item:hover .tech-award-num {
    color: rgba(147, 197, 253, 0.9);
}

.tech-award-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(32, 27, 99, 0.92);
    /* Animation — masque depuis le bas */
    display: block;
    clip-path: inset(0 0 110% 0);
    transition:
        clip-path 0.7s cubic-bezier(.22, 1, .36, 1),
        color 0.35s ease,
        letter-spacing 0.45s cubic-bezier(.22, 1, .36, 1);
    will-change: clip-path;
}

.tech-award-item.is-visible .tech-award-name {
    clip-path: inset(0 0 0% 0);
}

.tech-award-item:hover .tech-award-name {
    color: #ea8305;
    letter-spacing: 0.01em;
}

.tech-award-tag {
    font-family: Inter, system-ui;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(10, 217, 232, 0.55);
    border: 1px solid rgba(147, 197, 253, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition:
        opacity 0.5s ease,
        transform 0.5s cubic-bezier(.22, 1, .36, 1),
        color 0.3s ease,
        border-color 0.3s ease;
    flex-shrink: 0;
}

.tech-award-item.is-visible .tech-award-tag {
    opacity: 1;
    transform: translateX(0);
}

.tech-award-item:hover .tech-award-tag {
    color: rgb(255, 172, 5);
    border-color: rgba(147, 197, 253, 0.4);
}

/* Délai d'entrée en cascade */
.tech-award-item[data-index='0'] .tech-award-name {
    transition-delay: 0ms;
}

.tech-award-item[data-index='1'] .tech-award-name {
    transition-delay: 80ms;
}

.tech-award-item[data-index='2'] .tech-award-name {
    transition-delay: 160ms;
}

.tech-award-item[data-index='3'] .tech-award-name {
    transition-delay: 240ms;
}

.tech-award-item[data-index='4'] .tech-award-name {
    transition-delay: 320ms;
}

.tech-award-item[data-index='0'] .tech-award-tag {
    transition-delay: 120ms;
}

.tech-award-item[data-index='1'] .tech-award-tag {
    transition-delay: 200ms;
}

.tech-award-item[data-index='2'] .tech-award-tag {
    transition-delay: 280ms;
}

.tech-award-item[data-index='3'] .tech-award-tag {
    transition-delay: 360ms;
}

.tech-award-item[data-index='4'] .tech-award-tag {
    transition-delay: 440ms;
}

/* ═══════════════════════════════════════
   RESPONSIVE — Section Technologies
═══════════════════════════════════════ */

/* Tablette (≤ 1024px) */
@media (max-width: 1024px) {
    .tech-award-name {
        font-size: clamp(1.7rem, 4vw, 2.8rem);
    }

    .tech-award-item {
        gap: 1.1rem;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .products-after {
        min-height: auto;
        padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
    }

    .products-after-card {
        padding: clamp(1.5rem, 5vw, 2.5rem);
        border-radius: 1.4rem;
    }

    .products-after-card h2 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        letter-spacing: 0.02em;
    }

    .tech-award-list {
        margin-top: 1.75rem;
    }

    .tech-award-item {
        grid-template-columns: 2.2rem 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.85rem;
        padding: 1.1rem 0;
        align-items: start;
    }

    /* Le numéro reste sur la 1ère colonne, 1ère ligne */
    .tech-award-num {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        font-size: 0.72rem;
    }

    /* Le nom occupe toute la largeur sur la 2e ligne */
    .tech-award-name {
        grid-column: 2;
        grid-row: 1;
        font-size: clamp(1.55rem, 7.5vw, 2.5rem);
        letter-spacing: -0.01em;
    }

    /* Le tag passe en dessous du nom */
    .tech-award-tag {
        grid-column: 2;
        grid-row: 2;
        white-space: normal;
        align-self: start;
        font-size: 0.66rem;
        letter-spacing: 0.15em;
        padding: 0.28rem 0.65rem;
        width: fit-content;
    }
}

/* Très petit mobile (≤ 400px) */
@media (max-width: 400px) {
    .products-after-card {
        padding: 1.25rem;
        border-radius: 1.1rem;
    }

    .tech-award-name {
        font-size: clamp(1.4rem, 9vw, 2rem);
    }

    .tech-award-item {
        gap: 0.35rem 0.6rem;
        padding: 0.9rem 0;
    }
}

/* ═════════════════════════════
   CANVAS PARTICULES — suit le cube 3D
═════════════════════════════ */
#cubeParticlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9989;
    /* juste en dessous du cube (9990) */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#cubeParticlesCanvas.is-active {
    opacity: 1;
}
