.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media-mobile,
.hero-media-desktop {
    display: block;
}

.hero-media-mobile {
    display: none;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 575px;
    display: flex;
    align-items: center;
    width: min(calc(100% - 40px), var(--container));
    padding: 115px 0;
}

.hero-grid {
    width: 100%;
}

.hero-copy {
    color: #fff;
    max-width: min(42rem, calc(100% - 416px));
}

.hero-copy h1 {
    margin-bottom: 16px;
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero-kicker {
    margin: 0 0 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-text {
    max-width: 30rem;
    margin-bottom: 24px;
    font-size: 1.125rem;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.9);
}

.hero-points {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.hero-points li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

.promo-badge {
    display: inline-block;
    width: fit-content;
    padding: 8px 16px;
    background: #dc2828;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

.hero-card {
    width: 100%;
    max-width: 24rem;
    margin-left: auto;
    padding: 32px;
    border-radius: 1rem;
    background: #fff;
    color: var(--text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr;
}

.hero-wrapper > .hero {
    grid-column: 1;
    grid-row: 1;
}

.hero-wrapper > .hero-card-shell {
    grid-column: 1;
    grid-row: 1;
}

.hero-card-shell {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
}

.hero-card-shell > * {
    pointer-events: auto;
}

.hero-card-shell .hero-card {
    margin-left: 0;
}

.hero-card h2 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-card .hors-saison {
    display: flex;
    color: var(--primary);
    /*background: var(--primary);*/
    /*border: 1px solid var(--primary);*/
    font-size: 0.975rem;
    font-weight: 500;
    justify-content: center;
    padding: 16px;
    /*border-radius: 1rem;*/
}
.hero-card-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.hero-card-tabs__button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.hero-card-tabs__button.is-active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.hero-card__panel {
    display: none;
}

.hero-card__panel.is-active {
    display: block;
}

.static-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 6px;
}

.static-form label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.static-form label span {
    color: var(--primary);
}

.static-form input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 50px;
    font: inherit;
    font-size: 0.875rem;
    background: var(--bg);
}

.static-form .button {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
}

.alert-error {
    background: #fff3f3;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 8px;
    padding: 16px;
}
.email-display {
    background: #f5f5f5;
    padding: 14px 18px;
    border-radius: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.email-display a:hover, .btn-modify:hover {
    text-decoration: underline;
}

.email-display a, .btn-modify {
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.email-display span {
    color: #333;
    font-weight: 400;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.duree-commande {
    color: #000000;
    font-family: var(--typo-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .hero-content {
        min-height: 70vh;
        padding: 96px 24px 32px;
        align-items: end;
    }

    .hero-copy {
        max-width: 42rem;
    }

    /* Mobile : flux normal, la carte apparaît sous la bannière */
    .hero-wrapper {
        display: block;
    }

    .hero-card-shell {
        display: block;
        padding: 24px 0 0;
        pointer-events: auto;
    }
}

@media (max-width: 767px) {
    .hero-media-mobile {
        display: block;
    }

    .hero-media-desktop {
        display: none;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.9) 100%);
    }

    .hero-content {
        min-height: 70vh;
        padding: 64px 16px 32px;
    }

    .hero-copy h1 {
        margin-bottom: 8px;
        font-size: 1.875rem;
        line-height: 1;
    }

    .hero-kicker {
        margin-bottom: 4px;
        font-size: 0.75rem;
    }

    .hero-text {
        margin-bottom: 12px;
        font-size: 1rem;
        line-height: 1.4;
    }

    .hero-points {
        gap: 8px;
        margin-bottom: 16px;
    }

    .hero-points li {
        font-size: 1rem;
    }

    .promo-badge {
        display: none;
    }

    .hero-card {
        max-width: none;
        margin-left: 0;
        padding: 2rem;
    }

    .hero-card-shell {
        padding: 24px 16px 0;
    }
}

@media (min-width: 768px) {
    .hero-media-mobile {
        display: none;
    }

    .hero-media-desktop {
        display: block;
    }

    .hero-copy h1 {
        font-size: 3rem;
        line-height: 1.15;
    }
}
