/* ═══════════════════════════════════════════════════════════════
   HERO SECTION — Logo Communication — hero.css
   Chargé uniquement sur is_front_page()
   Tous les sélecteurs sont scopés à .hero-section
   Aucun sélecteur global (pas de h1, body, * reset)
   ═══════════════════════════════════════════════════════════════ */

/* Variables héritées de main.css (:root)
   --red, --purple, --blue, --grad, --bg-dark, --font-display, --font-body
   Alias local pour rétro-compat des sélecteurs existants */
.hero-section {
    --lc-red:    var(--red);
    --lc-purple: var(--purple);
    --lc-blue:   var(--blue);
    --lc-grad:   var(--grad);
    --lc-bg-dark: var(--bg-dark);
}

/* ─── Wrapper principal ──────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--lc-bg-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* ─── Noise overlay ──────────────────────────────────────────── */
.hero-section .noise-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

/* ─── Ambient glows ──────────────────────────────────────────── */
.hero-section .ambient-glows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-section .glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
    transition: transform 0.25s ease-out;
}

.hero-section .glow.red {
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(176, 29, 44, 0.38) 0%, transparent 70%);
    top: -15%;
    left: -8%;
}

.hero-section .glow.purple {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(123, 31, 162, 0.32) 0%, transparent 70%);
    top: 15%;
    right: 10%;
}

.hero-section .glow.blue {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(46, 40, 157, 0.32) 0%, transparent 70%);
    bottom: -8%;
    right: 28%;
}

/* ─── Container — Stacked (texte au-dessus, cartes centrées) ─── */
.hero-section .hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 70px 3% 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   GAUCHE — Hero Content
   ═══════════════════════════════════════════════════════════════ */

.hero-section .hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* Badge pill — masqué (validé) */
.hero-section .badge {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    width: fit-content;
    backdrop-filter: blur(10px);
}

.hero-section .badge svg {
    fill: var(--lc-red);
    flex-shrink: 0;
}

.hero-section .badge > span {
    font-weight: 700;
    color: white;
}

/* H1 */
.hero-section h1 {
    font-family: var(--font-display) !important;
    font-size: clamp(2.4rem, 3.8vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    color: white !important;
    margin: 0 !important;
    letter-spacing: -0.02em;
}

/* GSAP text reveal containers */
.hero-section .line-wrap {
    display: block;
    overflow: hidden;
    line-height: 1.05;
}

.hero-section .line-wrap + .line-wrap {
    margin-top: 2px;
}

.hero-section .line {
    display: block;
    transform: translateY(105%);
    white-space: nowrap;
}

/* Gradient text */
.hero-section .text-gradient {
    background: var(--lc-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Description */
.hero-section .hero-desc {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 600px;
}

/* CTA group */
.hero-section .cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-section .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: var(--lc-grad);
    color: white !important;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 32px rgba(176, 29, 44, 0.38);
    white-space: nowrap;
}

.hero-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 44px rgba(176, 29, 44, 0.55);
    color: white !important;
}

.hero-section .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none !important;
    backdrop-filter: blur(10px);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.hero-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: white !important;
}

/* ═══════════════════════════════════════════════════════════════
   DROITE — Card Slider
   ═══════════════════════════════════════════════════════════════ */

.hero-section .hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

/* V4.6.1 — Slider container centré sur le viewport (pas de décalage left:450px) */
.hero-section .card-slider-container {
    position: relative;
    width: 340px;
    height: 460px;
    cursor: default;
    user-select: none;
    perspective: 4000px;
    perspective-origin: center center;
    transform-style: preserve-3d;
    margin: 0 auto;
    /* left: 450px supprimé pour centrage écran V4.6.1 */
}

/* ── Halo gradient multi-spots derrière les cards ── */

/* Spot chaud (rouge) en haut-gauche + spot froid (bleu) en bas-droite */
.hero-section .card-slider-container::before {
    content: '';
    position: absolute;
    top: 50%; left: 40%;
    transform: translate(-50%, -50%);
    width: 900px; height: 700px;
    background:
        radial-gradient(ellipse 45% 50% at 25% 30%,
            rgba(176, 29, 44, 0.18) 0%,
            rgba(176, 29, 44, 0.06) 40%,
            transparent 70%
        ),
        radial-gradient(ellipse 50% 45% at 80% 75%,
            rgba(46, 40, 157, 0.16) 0%,
            rgba(46, 40, 157, 0.05) 40%,
            transparent 70%
        );
    filter: blur(50px);
    pointer-events: none;
    z-index: -2;
}

/* Spot central violet dominant */
.hero-section .card-slider-container::after {
    content: '';
    position: absolute;
    top: 45%; left: 45%;
    transform: translate(-50%, -50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse 70% 60% at 50% 50%,
        rgba(123, 31, 162, 0.22) 0%,
        rgba(123, 31, 162, 0.10) 30%,
        rgba(46, 40, 157, 0.06) 55%,
        transparent 75%
    );
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

/* Stack card base — effet noir métal
   V4.6 — Layout éventail centré : la card en pos-0 est au centre du container,
   les autres se déploient symétriquement à droite/gauche. */
.hero-section .stack-card {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -170px; /* centrage horizontal (170 = width/2) */
    width: 340px;
    /* V3.4-fix9 — Cards pleinement opaques : suppression des 2 gradients
       de sheen translucides + backdrop-filter. On garde uniquement la
       base aluminium anodisé noir (opaque) pour un rendu solide premium. */
    background:
        linear-gradient(180deg,
            #282634 0%,
            #0e0c16 40%,
            #0a0812 70%,
            #14121e 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.65s cubic-bezier(0.34, 1.2, 0.64, 1),
                opacity   0.65s ease,
                box-shadow 0.65s ease,
                scale 0.3s ease;
    will-change: transform, opacity;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.85),
        0 0 0 1px rgba(255,255,255,0.06),
        inset 0 1px 0 rgba(255,255,255,0.18),
        inset 0 -1px 0 rgba(0,0,0,0.5),
        inset 40px 0 60px -40px rgba(255,255,255,0.03),
        inset -40px 0 60px -40px rgba(255,255,255,0.02);
}

/* V3.4-fix10 — Reflet métal supprimé pour rendu pleinement opaque
   (le ::before ajoutait un overlay translucide qui laissait transparaître
   le background hero violet à travers la card). */
.hero-section .stack-card::before {
    content: none;
}

/* Liseré lumineux bord supérieur */
.hero-section .stack-card::after {
    content: '';
    position: absolute;
    top: -1px; left: 5%; right: 5%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.18) 15%,
        rgba(255,255,255,0.36) 35%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0.36) 65%,
        rgba(255,255,255,0.18) 85%,
        transparent 100%
    );
    border-radius: 24px;
    pointer-events: none;
    z-index: 11;
    filter: blur(0.5px);
}

/* V4.6 — Hover : la card survolée passe au vrai premier plan 3D.
   On surcharge le transform de chaque pos-* pour forcer translateZ(160px)
   tout en conservant le translateX/rotateY d'origine. */
.hero-section .stack-card:hover {
    z-index: 100 !important;
    filter: brightness(1.08);
    box-shadow: 0 50px 100px rgba(0,0,0,0.7), 0 0 40px rgba(176,29,44,0.15);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1),
                z-index 0s,
                filter 0.35s ease,
                box-shadow 0.4s ease;
}
/* V4.6.1 — Hover : la carte passe devant + redresse rotateY pour lisibilité */
.hero-section .stack-card.pos-0:hover { transform: translateX(0)      translateY(-8px) translateZ(120px) rotateY(0deg) scale(1.05); }
.hero-section .stack-card.pos-1:hover { transform: translateX(220px)  translateY(-8px) translateZ(120px) rotateY(0deg) scale(1.05); }
.hero-section .stack-card.pos-2:hover { transform: translateX(-220px) translateY(-8px) translateZ(120px) rotateY(0deg) scale(1.05); }
.hero-section .stack-card.pos-3:hover { transform: translateX(420px)  translateY(-8px) translateZ(120px) rotateY(0deg) scale(1.05); }
.hero-section .stack-card.pos-4:hover { transform: translateX(-420px) translateY(-8px) translateZ(120px) rotateY(0deg) scale(1.05); }
.hero-section .stack-card.pos-5:hover { transform: translateX(600px)  translateY(-8px) translateZ(120px) rotateY(0deg) scale(1.05); }
.hero-section .stack-card.pos-6:hover { transform: translateX(-600px) translateY(-8px) translateZ(120px) rotateY(0deg) scale(1.05); }

/* ═══════════════════════════════════════════════════════════════
   V4.6.1 — Éventail centré écran, espacement large, profondeur réduite
   Gaps : ±220px (proche) / ±420px (moyen) / ±600px (extrême)
   RotateY doux : ±6° / ±10° / ±14° (au lieu de ±14/22/30 — moins de perspective)
   Scale subtil : 0.95 / 0.88 / 0.80 (transitions douces)
   ═══════════════════════════════════════════════════════════════ */
.hero-section .stack-card.pos-0 {
    transform: translateX(0) translateY(0) translateZ(20px) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 50;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        -8px 0 30px rgba(123, 31, 162, 0.12),
        8px 0 30px rgba(46, 40, 157, 0.08);
}

/* Niveau 1 — droite proche */
.hero-section .stack-card.pos-1 {
    transform: translateX(220px) translateY(0) translateZ(-10px) rotateY(-6deg) scale(0.95);
    opacity: 1;
    z-index: 40;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
    background: linear-gradient(160deg, #1a1828 0%, #111020 40%, #0d0b16 70%, #16142a 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Niveau 1 — gauche proche */
.hero-section .stack-card.pos-2 {
    transform: translateX(-220px) translateY(0) translateZ(-10px) rotateY(6deg) scale(0.95);
    opacity: 1;
    z-index: 40;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
    background: linear-gradient(160deg, #1a1828 0%, #111020 40%, #0d0b16 70%, #16142a 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* V3.4-fix10 — Toutes les positions à opacity:1 (cards pleinement opaques).
   Avant : pos-3/4 = 0.95, pos-5/6 = 0.85 → le fond hero violet transparaissait
   à travers les cards. Désormais : background opaque pour TOUTES les positions
   éloignées du centre + opacity 1. */

/* Niveau 2 — droite moyen */
.hero-section .stack-card.pos-3 {
    transform: translateX(420px) translateY(0) translateZ(-20px) rotateY(-10deg) scale(0.88);
    opacity: 1;
    z-index: 30;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    background: linear-gradient(160deg, #1a1828 0%, #111020 40%, #0d0b16 70%, #16142a 100%);
}

/* Niveau 2 — gauche moyen */
.hero-section .stack-card.pos-4 {
    transform: translateX(-420px) translateY(0) translateZ(-20px) rotateY(10deg) scale(0.88);
    opacity: 1;
    z-index: 30;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    background: linear-gradient(160deg, #1a1828 0%, #111020 40%, #0d0b16 70%, #16142a 100%);
}

/* Niveau 3 — droite extrême */
.hero-section .stack-card.pos-5 {
    transform: translateX(600px) translateY(0) translateZ(-35px) rotateY(-14deg) scale(0.80);
    opacity: 1;
    z-index: 20;
    background: linear-gradient(160deg, #1a1828 0%, #111020 40%, #0d0b16 70%, #16142a 100%);
}

/* Niveau 3 — gauche extrême */
.hero-section .stack-card.pos-6 {
    transform: translateX(-600px) translateY(0) translateZ(-35px) rotateY(14deg) scale(0.80);
    opacity: 1;
    z-index: 20;
    background: linear-gradient(160deg, #1a1828 0%, #111020 40%, #0d0b16 70%, #16142a 100%);
}

/* Card image wrapper */
.hero-section .card-img-wrapper {
    position: relative;
    width: 100%;
    height: 175px;
    background: linear-gradient(135deg, rgba(176, 29, 44, 0.2) 0%, rgba(46, 40, 157, 0.25) 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.hero-section .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.hero-section .stack-card.pos-0 .card-img-wrapper img {
    transform: scale(1.02);
}

/* Floating tag */
.hero-section .floating-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 13px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: white;
    z-index: 2;
    letter-spacing: 0.02em;
}
.hero-section .floating-tag.tag-purple { color: #e0a0ff; }
.hero-section .floating-tag.tag-blue   { color: #a0b4ff; }

/* Card content area */
.hero-section .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.hero-section .card-header h3 {
    font-family: var(--font-display) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.hero-section .card-content > p {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

/* Ratings rows */
.hero-section .card-ratings {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-section .rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-section .rating-row > span {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.hero-section .stars {
    display: flex;
    gap: 2px;
    line-height: 1;
}

.hero-section .stars span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.15);
}

.hero-section .stars span.filled {
    background: var(--lc-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card CTA */
.hero-section .card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 16px;
    margin-top: 4px;
    background: var(--lc-grad);
    border: none;
    border-radius: 14px;
    color: #fff !important;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-section .card-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.4);
    color: #fff !important;
}

.hero-section .card-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* ─── Slider navigation (dots + arrows) ──────────────────────── */
.hero-section .slider-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-section .slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-section .slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-section .slider-arrow:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hero-section .nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.35s ease, border-radius 0.35s ease, background 0.35s ease;
    -webkit-appearance: none;
    appearance: none;
}

.hero-section .nav-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--lc-grad);
}

.hero-section .nav-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.45);
}

/* Hide arrows on small screens, keep dots */
@media (max-width: 640px) {
    .hero-section .slider-arrow { display: none; }
}

/* ─── GSAP targets (initial hidden states) ───────────────────── */
.hero-section .fade-up {
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Progressive breakpoints
   Le texte a z-index:3, les cartes passent DERRIÈRE si débordement.
   hero-section overflow:hidden clippe ce qui sort du viewport.
   ═══════════════════════════════════════════════════════════════ */

/* ── Laptop compact (≤ 1440px) ──────────────────────────────── */
@media (max-width: 1440px) {
    .hero-section .hero-container {
        gap: clamp(30px, 4vw, 50px);
    }
}

/* ── Small laptop (≤ 1280px) ────────────────────────────────── */
@media (max-width: 1280px) {
    .hero-section .hero-container {
        padding: 90px 3% 30px;
        gap: clamp(16px, 2.5vw, 30px);
    }
    .hero-section h1 {
        font-size: clamp(2rem, 3.2vw, 3.2rem) !important;
    }
    .hero-section .card-slider-container {
        width: 310px;
        height: 470px;
        left: 400px;
    }
    .hero-section .stack-card { width: 310px; }
    .hero-section .card-img-wrapper { height: 180px; }
}

/* ── Tablette portrait (≤ 1024px) ────────────────────────────── */
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto;
    }
    .hero-section .hero-container {
        min-height: auto;
        padding: clamp(100px, 14vh, 140px) 5% clamp(60px, 8vh, 100px);
        gap: 40px;
    }

    .hero-section .card-slider-container {
        width: 320px;
        height: 440px;
        left: 350px;
    }
    .hero-section .stack-card { width: 320px; }
    .hero-section .card-img-wrapper { height: 170px; }
}

/* ── Tablette small / Phablet (≤ 768px) ───────────────────── */
@media (max-width: 768px) {
    .hero-section .hero-container {
        padding: clamp(90px, 12vh, 120px) 5% clamp(50px, 6vh, 80px);
        gap: 36px;
    }
    .hero-section h1 {
        font-size: clamp(2.2rem, 7vw, 3rem) !important;
    }
    .hero-section .card-slider-container {
        width: 300px;
        height: 460px;
        left: 250px;
        transform: translateX(0);
    }
    .hero-section .stack-card { width: 300px; margin-left: -150px; }
    .hero-section .card-img-wrapper { height: 175px; }

    /* V4.6 — Éventail centré tablette (gap réduit 70px / 130px / 190px) */
    .hero-section .stack-card.pos-0 {
        transform: translateX(0) translateY(0) translateZ(20px) rotateY(0deg) scale(1);
    }
    .hero-section .stack-card.pos-1 {
        transform: translateX(70px) translateY(0) translateZ(-15px) rotateY(-14deg) scale(0.92);
    }
    .hero-section .stack-card.pos-2 {
        transform: translateX(-70px) translateY(0) translateZ(-15px) rotateY(14deg) scale(0.92);
    }
    .hero-section .stack-card.pos-3 {
        transform: translateX(130px) translateY(0) translateZ(-30px) rotateY(-22deg) scale(0.82);
        opacity: 0.9;
    }
    .hero-section .stack-card.pos-4 {
        transform: translateX(-130px) translateY(0) translateZ(-30px) rotateY(22deg) scale(0.82);
        opacity: 0.9;
    }
    .hero-section .stack-card.pos-5 {
        transform: translateX(190px) translateY(0) translateZ(-50px) rotateY(-30deg) scale(0.70);
        opacity: 0.65;
    }
    .hero-section .stack-card.pos-6 {
        transform: translateX(-190px) translateY(0) translateZ(-50px) rotateY(30deg) scale(0.70);
        opacity: 0.65;
    }
    /* Hover 3D — 768px (redresse rotateY) */
    .hero-section .stack-card.pos-0:hover { transform: translateX(0)    translateY(-8px) translateZ(140px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-1:hover { transform: translateX(70px) translateY(-8px) translateZ(140px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-2:hover { transform: translateX(-70px) translateY(-8px) translateZ(140px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-3:hover { transform: translateX(130px) translateY(-8px) translateZ(140px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-4:hover { transform: translateX(-130px) translateY(-8px) translateZ(140px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-5:hover { transform: translateX(190px) translateY(-8px) translateZ(140px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-6:hover { transform: translateX(-190px) translateY(-8px) translateZ(140px) rotateY(0deg) scale(1.05); }
}

/* ── Mobile (≤ 680px) ─────────────────────────────────────── */
@media (max-width: 680px) {
    .hero-section .card-slider-container {
        width: 280px;
        height: 440px;
        left: 180px;
        transform: translateX(0);
    }
    .hero-section .stack-card { width: 280px; margin-left: -140px; }
    .hero-section .card-img-wrapper { height: 165px; }

    .hero-section h1 {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
    }
    .hero-section .hero-desc { font-size: 15px; }

    /* V4.6 — Éventail mobile compact (gap 55 / 105 / 145) */
    .hero-section .stack-card.pos-0 {
        transform: translateX(0) translateY(0) translateZ(20px) rotateY(0deg) scale(1);
    }
    .hero-section .stack-card.pos-1 {
        transform: translateX(55px) translateY(0) translateZ(-15px) rotateY(-12deg) scale(0.92);
        opacity: 0.95;
    }
    .hero-section .stack-card.pos-2 {
        transform: translateX(-55px) translateY(0) translateZ(-15px) rotateY(12deg) scale(0.92);
        opacity: 0.95;
    }
    .hero-section .stack-card.pos-3 {
        transform: translateX(105px) translateY(0) translateZ(-30px) rotateY(-22deg) scale(0.82);
        opacity: 0.7;
    }
    .hero-section .stack-card.pos-4 {
        transform: translateX(-105px) translateY(0) translateZ(-30px) rotateY(22deg) scale(0.82);
        opacity: 0.7;
    }
    .hero-section .stack-card.pos-5 {
        transform: translateX(145px) translateY(0) translateZ(-45px) rotateY(-30deg) scale(0.70);
        opacity: 0.4;
    }
    .hero-section .stack-card.pos-6 {
        transform: translateX(-145px) translateY(0) translateZ(-45px) rotateY(30deg) scale(0.70);
        opacity: 0.4;
    }
    /* Hover 3D — 680px (redresse rotateY) */
    .hero-section .stack-card.pos-0:hover { transform: translateX(0)    translateY(-8px) translateZ(130px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-1:hover { transform: translateX(55px) translateY(-8px) translateZ(130px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-2:hover { transform: translateX(-55px) translateY(-8px) translateZ(130px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-3:hover { transform: translateX(105px) translateY(-8px) translateZ(130px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-4:hover { transform: translateX(-105px) translateY(-8px) translateZ(130px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-5:hover { transform: translateX(145px) translateY(-8px) translateZ(130px) rotateY(0deg) scale(1.05); }
    .hero-section .stack-card.pos-6:hover { transform: translateX(-145px) translateY(-8px) translateZ(130px) rotateY(0deg) scale(1.05); }

    /* Glows réduits */
    .hero-section .glow { filter: blur(70px); }
    .hero-section .glow.red    { width: 320px; height: 320px; }
    .hero-section .glow.purple { width: 260px; height: 260px; }
    .hero-section .glow.blue   { width: 220px; height: 220px; }
}

/* ── Mobile petit (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {
    .hero-section .hero-container {
        padding: 90px 4% 50px;
        gap: 30px;
    }

    .hero-section .cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-section .btn-primary,
    .hero-section .btn-secondary {
        justify-content: center;
        padding: 13px 24px;
        font-size: 14px;
    }

    .hero-section .card-slider-container {
        width: 270px;
        height: 420px;
        left: 120px;
    }
    .hero-section .stack-card { width: 270px; }
    .hero-section .card-img-wrapper { height: 155px; }

    .hero-section .card-content { padding: 16px; gap: 10px; }
    .hero-section .card-header h3 { font-size: 18px !important; }
    .hero-section .card-content > p { font-size: 12px; }
    .hero-section .rating-row > span { font-size: 11px; }
    .hero-section .stars span { font-size: 11px; }
    .hero-section .card-btn { padding: 10px 14px; font-size: 12px; }
    .hero-section .floating-tag { font-size: 10px; padding: 4px 10px; }
}

/* ── Très petit mobile (≤ 380px — iPhone SE, etc.) ────────── */
@media (max-width: 380px) {
    .hero-section h1 {
        font-size: clamp(1.7rem, 9vw, 2.2rem) !important;
    }

    .hero-section .badge { font-size: 11px; padding: 6px 12px; }

    .hero-section .card-slider-container {
        width: 250px;
        height: 400px;
        left: 90px;
    }
    .hero-section .stack-card { width: 250px; }
    .hero-section .card-img-wrapper { height: 140px; }
    .hero-section .card-content { padding: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   Effet shiny hover — reflet lumineux glissant
   ═══════════════════════════════════════════════════════════════ */
.hero-section .stack-card .shiny-overlay {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0) 70%,
        transparent 100%
    );
    z-index: 11;
    pointer-events: none;
    transition: left 0.6s ease;
    border-radius: 24px;
}
.hero-section .stack-card:hover .shiny-overlay {
    left: 120%;
}
