/* =============================================================================
   HERO V3 — Éventail de cartes + onglets sport
   Fichier autonome, enqueue par le bloc (functions/blocks.php).
   Palette : bleu #2440e0, violet #7c2fd6, rose #d63a86, encre #1c2a78.
   ============================================================================= */

.hero-v3-wrap { margin: 0; padding: 0; }

.hero-v3 {
    --hero-v3-float: 6.5s;
    --hero-v3-overlap: calc(-1 * min(44px, 6.25cqw));
    width: 100%;
    background: #fff;
    font-family: Barlow, system-ui, sans-serif;
}

/* ── Corps deux colonnes ── */
.hero-v3__body {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    align-items: center;
    gap: 32px;
    padding: 78px clamp(24px, 4vw, 60px) 78px clamp(28px, 5.5vw, 84px);
    overflow: hidden;
}

.hero-v3__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero-v3__glow--purple {
    top: -280px; right: -120px;
    width: 900px; height: 900px;
    background: radial-gradient(closest-side, rgba(124, 47, 214, .13), rgba(124, 47, 214, 0));
}
.hero-v3__glow--pink {
    bottom: -320px; right: 180px;
    width: 760px; height: 760px;
    background: radial-gradient(closest-side, rgba(214, 58, 134, .12), rgba(214, 58, 134, 0));
}

/* ── Colonne éditoriale ── */
.hero-v3__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.hero-v3__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 10px;
    border-radius: 999px;
    background: #f2f0ff;
    border: 1px solid #ddd6ff;
}
.hero-v3__badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #d63a86;
    animation: scV3Pulse 2.4s ease-in-out infinite;
}
.hero-v3__badge-text {
    font: 600 14px/1 Barlow, sans-serif;
    letter-spacing: .02em;
    color: #5b2fd6;
}

.hero-v3__title {
    margin: 24px 0 0;
    font-family: Rowdies, 'Barlow Condensed', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 3.9vw, 58px);
    line-height: 1.04;
    letter-spacing: -.01em;
    color: #1c2a78;
    text-wrap: balance;
}
.hero-v3__title-line { display: block; }
.hero-v3__title-gradient {
    display: block;
    background: linear-gradient(90deg, #2440e0, #7c2fd6 55%, #d63a86);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-v3__lead {
    margin: 24px 0 0;
    max-width: 520px;
    font: 400 21px/1.55 Barlow, sans-serif;
    color: #4a5270;
    text-wrap: pretty;
}

.hero-v3__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.hero-v3__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 32px;
    border-radius: 13px;
    font: 700 18px/1 Barlow, sans-serif;
    transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.hero-v3__btn--primary {
    background: linear-gradient(90deg, #2440e0, #7c2fd6);
    color: #fff;
    box-shadow: 0 16px 34px rgba(60, 50, 220, .36);
}
.hero-v3__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(60, 50, 220, .46);
    color: #fff;
}
.hero-v3__btn-arrow { font-size: 19px; }
.hero-v3__btn--secondary {
    padding: 17px 30px;
    background: #fff;
    border: 2px solid #d7ddf0;
    color: #1c2a78;
}
.hero-v3__btn--secondary:hover { border-color: #1c2a78; color: #1c2a78; }

/* ── Éventail de cartes ── */
.hero-v3__fan {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    container-type: inline-size;
    height: clamp(280px, 32vw, 420px);
}

.hero-v3__card-slot {
    margin-left: var(--hero-v3-overlap);
    transform: translateY(0) rotate(var(--rot, 0deg));
    z-index: var(--z, 1);
    transition: transform .45s cubic-bezier(.2, .8, .3, 1);
}
.hero-v3__card-slot.is-first { margin-left: 0; }

.hero-v3__card-float {
    animation: scV3Float var(--hero-v3-float) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.hero-v3__card {
    position: relative;
    display: block;
    width: min(170px, 24cqw);
    aspect-ratio: 5 / 7;
    border-radius: 15px;
    padding: 5px;
    background: linear-gradient(150deg, #7c2fd6, #2440e0 48%, #d63a86);
    box-shadow: 0 22px 46px rgba(28, 42, 120, .28);
    opacity: 1;
    transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s, opacity .3s;
}
.hero-v3__card:hover {
    transform: translateY(-16px) scale(1.05);
    box-shadow: 0 34px 62px rgba(28, 42, 120, .4);
}

.hero-v3__card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    overflow: hidden;
    background: #f4f6fc;
}
.hero-v3__card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-v3__card-ph {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, #e7ebfa, #f4f6fc 60%, #efe7fb);
}

.hero-v3__card-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px 10px 9px;
    background: linear-gradient(180deg, rgba(18, 24, 58, 0), rgba(18, 24, 58, .86));
    pointer-events: none;
}
.hero-v3__card-sport {
    font: 700 12px/1.35 'Barlow Semi Condensed', 'Barlow Condensed', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ffc531;
}
.hero-v3__card-name {
    margin-top: 2px;
    font: 700 15px/1.15 Barlow, sans-serif;
    color: #fff;
}

.hero-v3__card-shine {
    position: absolute;
    top: -20%; bottom: -20%; left: 0;
    width: 38%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .72), rgba(255, 255, 255, 0));
    animation: scV3Shine 8s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* ── Réduction des animations ── */
@media (prefers-reduced-motion: reduce) {
    .hero-v3__card-float,
    .hero-v3__card-shine,
    .hero-v3__badge-dot { animation: none; }
}

@keyframes scV3Float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes scV3Shine {
    0% { transform: translateX(-160%) skewX(-16deg); }
    26%, 100% { transform: translateX(420%) skewX(-16deg); }
}
@keyframes scV3Pulse {
    0%, 100% { opacity: .45; }
    50% { opacity: .95; }
}

/* ── Responsive : une colonne, éventail sous le texte ── */
@media (max-width: 900px) {
    .hero-v3__body {
        grid-template-columns: 1fr;
        padding: 48px clamp(20px, 5vw, 32px) 56px;
    }
    .hero-v3__content { max-width: none; }
    .hero-v3__fan { height: clamp(240px, 60vw, 340px); }
}
