/* ═══════════════════════════════════════════════════════════════
   Le Hub — Réalisations CSS
   Galerie vertical sticky OpenAI-style
════════════════════════════════════════════════════════════════ */

/* ─── Footer 4 colonnes ──────────────────────────────────────── */
.footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }

@media (max-width: 1024px) {
    .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .footer__inner          { grid-template-columns: 1fr 1fr; }
    .footer__brand          { grid-column: 1 / -1; }
    .footer__col:last-child { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
.rl-hero {
    padding-block: 80px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rl-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 360px;
    background: radial-gradient(ellipse,
        rgba(108,59,255,0.12) 0%,
        rgba(214,51,255,0.05) 50%,
        transparent 70%);
    pointer-events: none;
}

.rl-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-inline: auto;
}

.rl-hero__inner .section-label { margin-bottom: 16px; display: block; }

.rl-hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: 20px;
}

.rl-hero__desc {
    font-size: 16px;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 560px;
    margin-inline: auto;
}

.rl-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    padding: 8px 20px;
    font-size: 13px;
    color: var(--c-text-muted);
}
.rl-hero__count strong { color: var(--c-text); font-weight: 700; }
.rl-hero__count-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-brand);
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   STACK OPENAI-STYLE
════════════════════════════════════════════════════════════════ */
.openai-stack-section {
    position: relative;
    padding: 8rem 1rem;
    background:
        radial-gradient(circle at 50% 0%,  rgba(108,59,255,0.20), transparent 35%),
        radial-gradient(circle at 80% 40%, rgba(214,51,255,0.14), transparent 30%),
        #0F0F14;
    overflow: hidden;
}

.openai-stack-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 6rem;
}

.openai-stack-header .section-label { display: block; margin-bottom: 14px; }

.openai-stack-header__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: 14px;
}

.openai-stack-header__sub {
    font-size: 15px;
    color: var(--c-text-muted);
    line-height: 1.65;
}

/* Conteneur 3D */
.openai-stack-container {
    position: relative;
    perspective: 1400px;
    transform-style: preserve-3d;
}

/* Item sticky */
.openai-stack-item {
    position: sticky;
    top: 12vh;
    display: flex;
    justify-content: center;
    padding: 4rem 0;
    min-height: 85vh;
    will-change: transform;
}

/* Carte */
.openai-stack-card {
    width: min(900px, 92vw);
    border-radius: 24px;
    overflow: hidden;
    background: #16161D;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 30px 100px rgba(0,0,0,0.65),
        0 0 60px  rgba(108,59,255,0.25),
        0 0 120px rgba(214,51,255,0.12);
    transform-origin: center center;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    transition: box-shadow 220ms ease, filter 220ms ease;
    cursor: default;
}

.openai-stack-card.is-focused {
    cursor: grab;
}

.openai-stack-card.is-dragging,
.openai-stack-card.is-dragging * {
    cursor: grabbing !important;
    user-select: none;
}

.openai-stack-card:hover {
    box-shadow:
        0 35px 120px rgba(0,0,0,0.75),
        0 0 80px  rgba(214,51,255,0.35);
}

.openai-stack-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Caption sous l'image */
.openai-stack-caption {
    padding: 16px 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.openai-stack-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-accent);
    background: rgba(255,45,122,0.10);
    border: 1px solid rgba(255,45,122,0.20);
    border-radius: var(--r-full);
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.openai-stack-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════════════ */
.rl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rl-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.rl-lightbox__img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow:
        0 0 80px rgba(108,59,255,0.35),
        0 40px 80px rgba(0,0,0,0.6);
    display: block;
}

.rl-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--dur-fast) ease;
    font-size: 0;
    line-height: 1;
}
.rl-lightbox__close:hover { background: rgba(255,255,255,0.20); }

/* ═══════════════════════════════════════════════════════════════
   CTA FINAL
════════════════════════════════════════════════════════════════ */
.rl-cta { padding-block: 80px; }

.rl-cta__inner {
    background: var(--c-bg-2);
    border: 1px solid rgba(108,59,255,0.22);
    border-radius: var(--r-xl);
    padding: 56px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.rl-cta__inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse,
        rgba(108,59,255,0.14) 0%,
        transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.rl-cta__left  { position: relative; z-index: 1; flex: 1; }
.rl-cta__right { position: relative; z-index: 1; flex-shrink: 0; }

.rl-cta__title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: 12px;
}

.rl-cta__desc {
    font-size: 15px;
    color: var(--c-text-muted);
    line-height: 1.65;
    max-width: 460px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .openai-stack-section  { padding: 5rem 0.75rem; }
    .openai-stack-item     { top: 10vh; min-height: 72vh; padding: 2.5rem 0; }
    .openai-stack-card     { width: 94vw; border-radius: 18px; }
    .openai-stack-header   { margin-bottom: 4rem; }

    .rl-cta__inner  { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
    .rl-cta__right a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .openai-stack-card {
        transform: none !important;
        opacity: 1    !important;
        filter: none  !important;
    }
}
