/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    overflow: hidden;
    
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: calc(100% - 13%);
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ========================================
   COLONNE TEXTE
   ======================================== */
.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--color-brand);
    margin-bottom: 0.4rem;
    -webkit-text-stroke: 1px #000000;
    paint-order: stroke fill;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 900;
    color: var(--color-charcoal);
    letter-spacing: 0.55em;
    text-transform: uppercase;
    margin-bottom: 2rem;

    /* Ligne décorative avant/après */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-tagline::before,
.hero-tagline::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: var(--color-charcoal);
    opacity: 0.35;
}


.hero-description {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: black;
    line-height: 1.85;
    max-width: none;
    margin-bottom: 0.75rem;
    text-align: justify;

}

.hero-list {
    list-style: disc;
    padding-left: 1.5rem;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: black;
    line-height: 1.85;
    max-width: none;
    margin-bottom: 0.75rem;
}

/* ── Event : badge d'affiche ── */
.hero-event {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 0.7rem 1rem;
    background: var(--color-brand);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: 2px;

}
/* ========================================
   COLONNE VISUELLE
   ======================================== */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ========================================
   HERO PHOTO STACK — 3 CARTES
   ======================================== */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo-stack {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 520px;
    cursor: pointer;
    user-select: none;
    --back-x: 148px;
    --back-y: 0px;
    --back-rot: 5deg;
    --mid-x: 74px;
    --mid-y: 52px;
    --mid-rot: 1.5deg;
    --front-x: 0px;
    --front-y: 104px;
    --front-rot: -3.5deg;
}

/* ── Carte commune ── */
.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    will-change: transform, filter, box-shadow;
    transition:
        transform    0.65s cubic-bezier(0.34, 1.25, 0.64, 1),
        filter       0.55s ease,
        box-shadow   0.55s ease;
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 3px solid rgb(255, 255, 255);
    pointer-events: none;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Positions par slot ── */
.hero-photo[data-slot="back"] {
    transform: translate(var(--back-x), var(--back-y)) rotate(var(--back-rot));
    z-index: 1;
    filter: brightness(0.60) saturate(0.82);
    border: 1px solid var(--color-brand);
}

.hero-photo[data-slot="mid"] {
    transform: translate(var(--mid-x), var(--mid-y)) rotate(var(--mid-rot));
    z-index: 2;
     filter: brightness(0.80) saturate(0.82);
    border: 1px solid var(--color-brand);
  
}

.hero-photo[data-slot="front"] {
    transform: translate(var(--front-x), var(--front-y)) rotate(var(--front-rot));
    z-index: 3;
    filter: brightness(1) saturate(1);
    border: 1px solid var(--color-brand);

}

/* Bordure décorative sur la carte arrière */
.hero-photo[data-slot="back"]::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 24px;
    pointer-events: none;
    z-index: -1;
}

/* ── Hover : soulèvement de la carte du dessus ── */
.hero-photo-stack:not(.is-locked):hover .hero-photo[data-slot="front"] {
    transform: translate(var(--front-x), calc(var(--front-y) - 6px)) rotate(var(--front-rot)) scale(1.03);
}

/* ── Animation de lancer ── */
@keyframes card-toss {
    0%   { transform: translate(var(--front-x), var(--front-y)) rotate(var(--front-rot)) scale(1); }
    20%  { transform: translate(calc(var(--front-x) + (var(--back-x) - var(--front-x)) * 0.14), calc(var(--front-y) + (var(--back-y) - var(--front-y)) * 0.30)) rotate(calc(var(--front-rot) + (var(--back-rot) - var(--front-rot)) * 0.42)) scale(0.96); }
    45%  { transform: translate(calc(var(--front-x) + (var(--back-x) - var(--front-x)) * 0.42), calc(var(--front-y) + (var(--back-y) - var(--front-y)) * 0.64)) rotate(calc(var(--front-rot) + (var(--back-rot) - var(--front-rot)) * 1.08)) scale(0.92); }
    70%  { transform: translate(calc(var(--front-x) + (var(--back-x) - var(--front-x)) * 0.80), calc(var(--front-y) + (var(--back-y) - var(--front-y)) * 0.90)) rotate(calc(var(--front-rot) + (var(--back-rot) - var(--front-rot)) * 0.82)) scale(0.96); }
    100% { transform: translate(var(--back-x), var(--back-y)) rotate(var(--back-rot)) scale(1); }
}

.hero-photo.is-tossing {
    animation: card-toss 0.65s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    transition: none;
    z-index: 0 !important;
    filter: brightness(0.70) saturate(0.82) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16) !important;
}

@media (max-width: 1000px) {
    .hero {
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 6.2rem;
        padding-bottom: 1.2rem;
        min-height: 100svh;
        overflow: hidden;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: calc(100svh - 7.4rem);
        gap: 1rem;
        text-align: center;
        width: calc(100% - 10%);
    }

    .hero-content {
        order: 1;
        max-width: 760px;
        margin: 0 auto;
    }

    .hero-visual {
        order: 2;
        margin-top: auto;
        align-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 0.6rem;
        padding-bottom: 1.6rem;
        overflow: hidden;
    }

    .hero-photo-stack {
        width: min(82vw, 300px);
        max-width: none;
        height: 380px;
        margin: 0 auto;
        --back-x: 66px;
        --back-y: 0px;
        --back-rot: 3.6deg;
        --mid-x: 33px;
        --mid-y: 22px;
        --mid-rot: 1deg;
        --front-x: 0px;
        --front-y: 44px;
        --front-rot: -2.4deg;
    }

    .hero-photo {
        width: 72%;
    }

    .hero-tagline {
        justify-content: center;
    }

    .hero-list {
        text-align: left;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-event {
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-description {
        display: none;
    }

}

@media (max-width: 360px) {
    .hero-title   { font-size: 2.6rem; }
    .hero-tagline { font-size: 0.8rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 5% 3rem;
        height: auto;
    }

    .hero-description {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

