@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/*
 * Refonte visuelle 2026
 * La feuille d'origine reste intacte pour préserver la logique des composants.
 * Ce fichier remplace uniquement leur présentation.
 */

:root {
    --cream: #f8f7f5;
    --navy: #181724;
    --yellow: #f4cb5a;
    --pink: #ec4679;
    --mint: #b9d8ce;
    --lavender: #f2eff3;
    --white: #ffffff;
    --line: #e7e3e4;
    --muted: #706d78;
    --soft-pink: #fff0f4;
    --soft-mint: #eef7f3;
    --page-width: 1280px;
    --shadow-sm: 0 12px 34px rgba(24, 23, 36, 0.07);
    --shadow-lg: 0 28px 70px rgba(34, 25, 38, 0.14);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    background: var(--cream);
}

body {
    color: var(--navy);
    background:
        radial-gradient(circle at 8% 10%, rgba(236, 70, 121, 0.055), transparent 27rem),
        radial-gradient(circle at 94% 37%, rgba(185, 216, 206, 0.15), transparent 26rem),
        var(--cream);
    font-family: "Manrope", "Poppins", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: #fff;
    background: var(--pink);
}

a,
button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button,
a {
    outline-color: var(--pink);
    outline-offset: 4px;
}

/* Navigation */
.promo-bar {
    padding: 7px 20px;
    color: rgba(255, 255, 255, 0.9);
    background: #181724;
    background-image: none;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    animation: none;
}

.promo-bar span {
    color: var(--pink);
}

.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    min-height: 84px;
    padding: 14px max(5vw, calc((100vw - var(--page-width)) / 2));
    border: 0;
    border-bottom: 1px solid rgba(24, 23, 36, 0.07);
    background: rgba(248, 247, 245, 0.88);
    box-shadow: 0 8px 30px rgba(24, 23, 36, 0.025);
    backdrop-filter: blur(20px) saturate(1.5);
}

.logo {
    gap: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.055em;
}

.logo::before {
    display: block;
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 50%;
    background: url("images/kdrama-list-logo.png") center / cover no-repeat;
    box-shadow: 0 10px 28px rgba(236, 70, 121, 0.18);
    content: "";
}

.logo > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.footer-logo::before {
    width: 82px;
    height: 82px;
}

.logo-list,
.logo:hover .logo-list {
    color: var(--pink);
}

.menu {
    gap: clamp(15px, 2vw, 30px);
    color: #474450;
    font-size: 0.72rem;
    font-weight: 650;
}

.menu a:not(.nav-button) {
    padding: 9px 0;
}

.menu a:not(.nav-button, .icon-link)::after {
    height: 1px;
    border-radius: 99px;
    background: var(--pink);
}

.menu a.active {
    color: var(--navy);
    border-bottom: 0;
}

.menu a.active::after {
    transform: scaleX(1) !important;
}

.icon-link,
.notification-bell {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    color: var(--navy);
    background: white;
    box-shadow: 0 5px 15px rgba(24, 23, 36, 0.05);
}

.icon-link:hover {
    color: white;
    background: var(--pink);
    transform: translateY(-2px);
}

.nav-button,
.primary-button,
.small-button,
.login-submit,
.proposal-submit button,
.feedback-form button,
.comment-form button,
.reply-form button,
.review-form button,
.collection-action button,
.collection-create-form button,
.library-actions > button,
.watch-progress-action button,
.watch-card-controls button {
    border: 1px solid var(--navy);
    color: white;
    background: var(--navy);
    box-shadow: none;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
                transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.nav-button {
    padding: 11px 18px;
}

.nav-button:hover,
.primary-button:hover,
.small-button:hover,
.login-submit:hover,
.proposal-submit button:hover,
.feedback-form button:hover {
    color: white;
    border-color: var(--pink);
    background: var(--pink);
    box-shadow: 0 12px 26px rgba(236, 70, 121, 0.2);
    transform: translateY(-2px);
}

/* Accueil */
.hero {
    position: relative;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.68fr);
    gap: clamp(45px, 8vw, 120px);
    width: min(100%, 1500px);
    min-height: 700px;
    margin: 0 auto;
    padding: clamp(70px, 8vw, 118px) max(6vw, calc((100vw - var(--page-width)) / 2)) 88px;
}

.hero-copy,
.hero-visual {
    z-index: 2;
}

.hero-atmosphere {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-mini-poster {
    position: absolute;
    display: none;
    width: clamp(165px, 9vw, 230px);
    padding: 8px 8px 12px;
    border: 1px solid rgba(24, 23, 36, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 55px rgba(34, 25, 38, 0.12);
    backdrop-filter: blur(12px);
}

.hero-mini-poster img {
    height: clamp(190px, 11vw, 275px);
    border-radius: 14px;
    object-fit: cover;
}

.hero-mini-poster span {
    display: inline-flex;
    margin: 10px 5px 0;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--pink);
    background: var(--soft-pink);
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-mini-poster-left {
    top: 18%;
    left: max(24px, calc(50% - 1100px));
    transform: rotate(-6deg);
}

.hero-mini-poster-right {
    right: max(24px, calc(50% - 1110px));
    bottom: 13%;
    transform: rotate(6deg);
}

.hero-confetti {
    position: absolute;
    display: none;
    font-style: normal;
    line-height: 1;
}

.confetti-one {
    top: 16%;
    right: max(11%, calc(50% - 930px));
    color: var(--pink);
    font-size: 1.4rem;
    transform: rotate(14deg);
}

.confetti-two {
    bottom: 18%;
    left: max(10%, calc(50% - 920px));
    color: #79c2ae;
    font-size: 1.1rem;
}

.confetti-three {
    top: 28%;
    left: max(12%, calc(50% - 900px));
    color: var(--yellow);
    font-size: 1rem;
    transform: rotate(17deg);
}

.hero::before,
.discover-search::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 72%;
    background:
        radial-gradient(circle at 53% 6%, rgba(255, 194, 213, 0.42), transparent 37%),
        linear-gradient(180deg, #fff9fb 0%, rgba(248, 247, 245, 0) 100%);
    content: "";
    pointer-events: none;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--pink);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.19em;
}

.hero h1,
.discover-search h1,
.space-hero h1,
.actor-hero h1,
.proposal-intro h1,
.contact-card h1,
.drama-details h1 {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    letter-spacing: -0.075em;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(4.5rem, 7.6vw, 8rem);
    line-height: 0.9;
}

.hero-copy::after {
    top: auto;
    right: auto;
    bottom: 172px;
    left: 2px;
    width: min(27vw, 245px);
    height: 9px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--pink), #ff99b8);
    clip-path: none;
    opacity: 0.86;
    transform: rotate(-1deg);
}

.hero-text {
    max-width: 610px;
    margin: 34px 0 30px;
    color: var(--muted);
    font-size: clamp(0.9rem, 1.1vw, 1.02rem);
    line-height: 1.78;
}

.primary-button {
    gap: 44px;
    padding: 14px 23px;
    border-radius: 14px;
    font-size: 0.72rem;
}

.category-pills {
    gap: 8px;
    margin-top: 30px;
}

.category-pills a,
.discover-tags a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    color: #5d5964;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.63rem;
    font-weight: 650;
    box-shadow: none;
}

.category-pills a:hover,
.category-pills a:nth-child(2),
.discover-tags a:hover {
    color: white;
    border-color: var(--pink);
    background: var(--pink);
    box-shadow: 0 8px 20px rgba(236, 70, 121, 0.15);
    transform: translateY(-2px);
}

.hero-visual {
    width: min(100%, 440px);
}

.hero-carousel-link {
    overflow: hidden;
    aspect-ratio: 4 / 5.2;
    border: 0;
    border-radius: 30px;
    background: #eae6e8;
    box-shadow: var(--shadow-lg);
    transform: rotate(1.3deg);
    transition: transform 0.55s var(--ease), box-shadow 0.55s ease;
}

.hero-visual:hover .hero-carousel-link {
    box-shadow: 0 35px 80px rgba(34, 25, 38, 0.18);
    transform: rotate(0) translateY(-8px);
}

.hero-visual:hover .hero-carousel-link img:not(.is-changing) {
    filter: saturate(1.03);
    transform: scale(1.035);
}

.carousel-button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(24, 23, 36, 0.09);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 26px rgba(24, 23, 36, 0.13);
}

.carousel-button:hover,
.carousel-button:focus-visible {
    color: white;
    border-color: var(--pink);
    background: var(--pink);
    box-shadow: 0 12px 30px rgba(236, 70, 121, 0.26);
    transform: translateY(-50%) scale(1.06);
}

.carousel-previous { left: -22px; }
.carousel-next { right: -22px; }

.hero-card {
    left: -30px;
    bottom: 24px;
    min-width: 210px;
    max-width: 270px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(24, 23, 36, 0.15);
    backdrop-filter: blur(14px);
    transform: none;
}

.hero-card span {
    color: var(--pink);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.hero-card strong {
    margin-top: 2px;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.25;
}

.hero-visual:hover .hero-card {
    box-shadow: 0 22px 45px rgba(24, 23, 36, 0.18);
    transform: translateY(-5px);
}

.floating-icon {
    width: 38px;
    height: 38px;
    border: 0;
    color: white;
    box-shadow: 0 12px 25px rgba(24, 23, 36, 0.1);
}

.icon-star { left: -30px; background: var(--yellow); }
.icon-heart { right: -24px; background: var(--pink); }
.icon-smile { right: -20px; background: #77bda9; }

.trend-strip {
    justify-content: flex-start;
    width: min(calc(100% - 10vw), var(--page-width));
    margin: 0 auto 96px;
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: white;
    box-shadow: var(--shadow-sm);
    font-size: 0.64rem;
}

.trend-strip > span {
    color: var(--pink);
    background: var(--soft-pink);
}

.trend-strip i {
    color: #cdc8cc;
}

.releases,
.drama-program,
.releases + .drama-program {
    width: min(calc(100% - 10vw), var(--page-width));
    margin: 0 auto 108px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.section-heading {
    align-items: end;
    margin-bottom: 34px;
}

.section-heading h2,
.search-panel h2,
.challenge-card h2,
.published-feedback h2,
.collection-reviews h2,
.drama-discussion h2,
.main-cast h2,
.stills-heading h2,
.synopsis h2,
.space-empty h3,
.collection-card h3,
.watch-group h3,
.proposal-form legend,
.proposal-actor h2,
.notification-panel > strong {
    font-family: "Manrope", sans-serif;
    font-weight: 760;
    letter-spacing: -0.055em;
}

.section-heading h2 {
    font-size: clamp(2.6rem, 4.5vw, 4.5rem);
    line-height: 1;
}

.text-link,
.quick-links a {
    color: var(--pink);
}

.release-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}

.release-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
    flex-direction: column;
    transition: transform 0.5s var(--ease);
}

.release-card:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-9px);
}

.release-image {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    background: #e9e5e6;
    box-shadow: var(--shadow-sm);
}

.release-image img {
    height: 100%;
    border: 0;
    border-radius: 0;
    object-position: center;
}

.release-card:hover .release-image img {
    filter: saturate(1.05);
    transform: scale(1.045);
}

.release-image span {
    top: 16px;
    left: 16px;
    padding: 6px 11px;
    border: 0;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 18px rgba(24, 23, 36, 0.08);
    backdrop-filter: blur(10px);
    font-size: 0.51rem;
    letter-spacing: 0.1em;
}

.release-info {
    padding: 18px 3px 0;
}

.card-meta {
    margin-bottom: 6px;
    color: var(--pink);
    font-size: 0.56rem;
}

.release-info h3,
.discover-card h3 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.08rem, 1.6vw, 1.38rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.release-info > p:last-child {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rating {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 15px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 5px 18px rgba(24, 23, 36, 0.08);
    backdrop-filter: blur(10px);
    font-size: 0.6rem;
}

.discovery {
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.7fr);
    gap: 22px;
    width: min(calc(100% - 10vw), var(--page-width));
    margin: 0 auto 110px;
}

.search-panel,
.challenge-card {
    min-height: 360px;
    padding: clamp(40px, 5vw, 66px);
    border: 0;
    border-radius: 30px;
    box-shadow: none;
}

.search-panel {
    background: linear-gradient(135deg, #eaf7f2, #cfe8df);
}

.challenge-card {
    color: white;
    background: linear-gradient(150deg, #252235, #151421);
}

.search-panel:hover,
.challenge-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.search-panel h2,
.challenge-card h2 {
    font-size: clamp(2.35rem, 4vw, 4rem);
    line-height: 1.02;
}

.search-box,
.discover-search-box {
    padding: 6px;
    border: 1px solid rgba(24, 23, 36, 0.11);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(24, 23, 36, 0.07);
}

.search-box:focus-within,
.discover-search-box:focus-within {
    border-color: rgba(236, 70, 121, 0.35);
    box-shadow: 0 14px 34px rgba(236, 70, 121, 0.12);
    transform: none;
}

.search-box input,
.discover-search-box input {
    padding: 11px 16px;
    font-size: 0.72rem;
}

.search-box button,
.discover-search-box button {
    padding: 11px 18px;
    border: 0;
    background: var(--navy);
}

.challenge-card::after {
    color: var(--pink);
}

/* Découvrir */
.discover-search {
    padding: clamp(82px, 9vw, 132px) max(5vw, calc((100vw - var(--page-width)) / 2)) 80px;
    border-bottom: 0;
    text-align: left;
}

.discover-search::before {
    height: 100%;
}

.discover-search h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(4rem, 7.2vw, 7.5rem);
    line-height: 0.92;
}

.discover-search > p:not(.eyebrow) {
    max-width: 670px;
    margin: 24px 0 0;
    color: var(--muted);
}

.discover-search-box {
    max-width: 700px;
    margin: 34px 0 20px;
}

.discover-tags {
    justify-content: flex-start;
}

.discover-shape {
    opacity: 0.55;
}

.shape-one { left: auto; right: 19%; }

.drama-program {
    margin-top: 72px;
}

.drama-program .section-heading {
    margin-bottom: 12px;
}

.search-results-status {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 0.67rem;
}

.drama-program .discover-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 2.4vw, 38px) clamp(15px, 1.8vw, 25px);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.drama-program .discover-card,
.drama-program .discover-card-wide {
    display: flex;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    flex-direction: column;
    transition: transform 0.48s var(--ease);
}

.drama-program .discover-card:hover,
.drama-program .discover-card:nth-child(even):hover,
.drama-program .community-discover-card:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-8px);
}

.drama-program .placeholder-image,
.drama-program .discover-card-wide .placeholder-image,
.drama-program .discover-card:nth-child(even) .placeholder-image {
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5.5;
    border: 0;
    border-radius: 22px;
    background: #e9e5e6;
    box-shadow: var(--shadow-sm);
}

.drama-program .placeholder-image img {
    min-height: 0;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease), filter 0.35s ease;
}

.drama-program .discover-card:hover .placeholder-image img {
    filter: saturate(1.05);
    transform: scale(1.045);
}

.drama-program .discover-card-content {
    display: block;
    padding: 17px 2px 0;
}

.drama-program .discover-card-content h3 {
    margin: 3px 0 7px;
    font-size: clamp(1rem, 1.45vw, 1.24rem);
    line-height: 1.22;
}

.drama-program .discover-card-content > p:last-of-type {
    display: -webkit-box;
    margin-top: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.64rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.drama-program .discover-card-content .card-detail-link {
    margin-top: 12px;
    border: 0;
    color: var(--pink);
    font-size: 0.61rem;
}

.search-no-results,
.moderation-empty,
.space-empty {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
}

/* Pages de contenu, compte et formulaires */
.technical-page,
.space-page,
.actor-page,
.proposal-page,
.public-collection-page {
    width: min(calc(100% - 10vw), var(--page-width));
}

.technical-page,
.actor-page {
    padding-top: 55px;
}

.back-link {
    margin-bottom: 28px;
    border: 0;
    color: var(--muted);
    transition: color 0.2s ease, transform 0.3s var(--ease);
}

.back-link:hover {
    color: var(--pink);
    transform: translateX(-4px);
}

.technical-sheet,
.actor-hero,
.public-collection-hero,
.contact-card,
.proposal-form fieldset,
.profile-bubble,
.collection-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.technical-sheet {
    padding: clamp(28px, 4.5vw, 60px);
    border-radius: 32px;
}

.technical-sheet::after {
    background: var(--soft-pink);
}

.sheet-kicker {
    padding-bottom: 15px;
    border-color: var(--line);
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -0.05em;
}

.technical-layout {
    gap: clamp(38px, 6vw, 82px);
}

.gallery-frame {
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.gallery-badge,
.detail-facts span,
.library-count,
.collection-visibility,
.community-creator,
.creator-credit {
    border: 0;
    color: var(--pink);
    background: var(--soft-pink);
}

.cast-portrait,
.actor-main-photo,
.profile-avatar > span,
.profile-avatar > img,
.feedback-avatar {
    border: 3px solid white;
    box-shadow: 0 8px 25px rgba(24, 23, 36, 0.14);
}

.cast-member:hover .cast-portrait {
    box-shadow: 0 13px 30px rgba(236, 70, 121, 0.2);
}

.drama-details h1 {
    font-size: clamp(3rem, 5.7vw, 5.7rem);
    line-height: 0.95;
}

.synopsis p,
.actor-hero > div:last-child > p:last-child,
.proposal-intro > p:last-child,
.space-hero > div:first-child > p:last-child {
    color: var(--muted);
}

.community-rating,
.user-rating,
.library-actions,
.watch-progress-action,
.personal-library,
.collection-reviews,
.drama-discussion {
    border-color: var(--line);
}

.community-rating {
    border: 0;
    background: var(--soft-mint);
}

.user-rating,
.library-actions,
.watch-progress-action {
    background: white;
}

.drama-still,
.open-still-form,
.still-form,
.still-lightbox {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.actor-hero {
    border-radius: 30px;
}

.actor-hero h1,
.space-hero h1,
.proposal-intro h1 {
    line-height: 0.96;
}

.space-hero h1 span {
    color: var(--pink);
}

.profile-bubble {
    border-radius: 24px;
}

.space-stat {
    border: 0;
    border-radius: 22px;
    box-shadow: none;
}

.space-stat:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.space-stat strong,
.space-rating-main h3,
.library-drama-card strong,
.community-rating strong {
    font-family: "Manrope", sans-serif;
    font-weight: 750;
    letter-spacing: -0.045em;
}

.library-drama-card,
.space-rating-card,
.watch-group,
.watch-card,
.review-card,
.drama-comment,
.feedback-item,
.moderation-item,
.collection-create-form {
    border-color: var(--line);
    background: white;
    box-shadow: none;
}

.library-drama-card,
.space-rating-card {
    border-radius: 18px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.library-drama-card:hover,
.space-rating-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.contact-page {
    padding-top: 80px;
    padding-bottom: 100px;
}

.contact-card {
    border-radius: 30px;
}

.contact-card h1 {
    font-size: clamp(3.2rem, 6vw, 5.4rem);
    line-height: 0.98;
}

.login-field input,
.feedback-form textarea,
.proposal-form input,
.proposal-form textarea,
.comment-form textarea,
.reply-form textarea,
.review-form textarea,
.collection-create-form input,
.collection-action select,
.watch-progress-action select,
.watch-progress-action input,
.watch-card-controls select,
.watch-card-controls input,
.still-form input[type="file"],
.still-form input[type="text"] {
    border: 1px solid var(--line);
    color: var(--navy);
    background: #fbfaf9;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field input:focus,
.feedback-form textarea:focus,
.proposal-form input:focus,
.proposal-form textarea:focus,
.comment-form textarea:focus,
.reply-form textarea:focus,
.review-form textarea:focus,
.collection-create-form input:focus {
    border-color: rgba(236, 70, 121, 0.55);
    outline: 0;
    background: white;
    box-shadow: 0 0 0 4px rgba(236, 70, 121, 0.09);
}

.login-submit {
    border-radius: 13px;
}

#signup-button {
    color: var(--navy);
    border-color: var(--line);
    background: white;
}

#signup-button:hover {
    color: var(--pink);
    border-color: rgba(236, 70, 121, 0.35);
    background: var(--soft-pink);
}

.proposal-form fieldset {
    border-radius: 26px;
}

.proposal-form legend {
    background: var(--cream);
}

.proposal-actor {
    border-color: var(--line);
    border-radius: 17px;
    background: #fbfaf9;
}

.public-collection-hero {
    border-radius: 28px;
    background: linear-gradient(135deg, #fff0f4, #f6dce5);
}

.watch-group {
    border-radius: 20px;
}

.watch-group > header {
    background: var(--soft-pink);
}

.watch-watching > header { background: var(--soft-mint); }
.watch-completed > header { background: #fff7dc; }
.watch-dropped > header { background: #f1eff1; }

.notification-panel {
    border-color: var(--line);
    background: white;
    box-shadow: var(--shadow-lg);
}

footer {
    width: min(calc(100% - 10vw), var(--page-width));
    margin: 0 auto;
    padding: 48px 0 54px;
    border-color: var(--line);
    color: var(--muted);
}

.footer-logo {
    color: var(--navy);
}

/* Animation générale, discrète et fluide */
.hero-copy,
.hero-visual,
.releases,
.discovery {
    animation: smoothReveal 0.85s both var(--ease);
}

@keyframes smoothReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
        gap: 50px;
    }

    .hero h1 {
        font-size: clamp(4.2rem, 8.2vw, 6.5rem);
    }

    .drama-program .discover-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .release-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1900px) {
    .hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.72fr);
        gap: clamp(80px, 6vw, 140px);
        width: min(calc(100% - 9vw), 2360px);
        max-width: none;
        padding-right: clamp(210px, 10vw, 300px);
        padding-left: clamp(210px, 10vw, 300px);
    }

    .hero h1 {
        font-size: clamp(5.8rem, 5.7vw, 7.7rem);
    }

    .hero-mini-poster,
    .hero-confetti {
        display: block;
    }

    .hero-mini-poster-left {
        left: 12px;
    }

    .hero-mini-poster-right {
        right: 8px;
    }
}

@media (max-width: 820px) {
    .site-header {
        align-items: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 75px;
        text-align: center;
    }

    .hero-copy::after {
        right: 50%;
        bottom: 171px;
        left: auto;
        transform: translateX(50%) rotate(-1deg);
    }

    .hero-text {
        margin-right: auto;
        margin-left: auto;
    }

    .category-pills {
        justify-content: center;
    }

    .hero-visual {
        width: min(78%, 440px);
        margin-top: 24px;
    }

    .release-list,
    .drama-program .discover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discovery {
        grid-template-columns: 1fr;
    }

    .technical-page,
    .space-page,
    .actor-page,
    .proposal-page,
    .public-collection-page,
    .releases,
    .drama-program,
    .releases + .drama-program,
    .discovery,
    .trend-strip,
    footer {
        width: min(calc(100% - 48px), var(--page-width));
    }
}

@media (max-width: 680px) {
    .promo-bar {
        padding-inline: 12px;
        font-size: 0.56rem;
    }

    .promo-bar span {
        margin-inline: 6px;
    }

    .site-header {
        display: flex;
        min-height: 0;
        padding: 13px 18px 10px;
        overflow: hidden;
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        align-self: flex-start;
        font-size: 1.05rem;
    }

    .logo::before {
        width: 48px;
        height: 48px;
    }

    .footer-logo::before {
        width: 68px;
        height: 68px;
    }

    .menu {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 18px;
        margin-top: 9px;
        padding-bottom: 2px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .menu::-webkit-scrollbar {
        display: none;
    }

    .menu a:not(.nav-button) {
        padding: 6px 0;
    }

    .menu .nav-button {
        padding: 7px 11px;
    }

    .hero {
        padding: 58px 24px 72px;
    }

    .hero h1 {
        font-size: clamp(3.6rem, 17vw, 5.1rem);
    }

    .hero-copy::after {
        display: block;
        bottom: 167px;
        width: 170px;
    }

    .hero-visual {
        width: min(84%, 400px);
    }

    .hero-card {
        left: -18px;
        min-width: 180px;
        max-width: 220px;
    }

    .trend-strip {
        width: calc(100% - 32px);
        margin-bottom: 76px;
        overflow-x: auto;
    }

    .releases,
    .drama-program,
    .releases + .drama-program,
    .discovery,
    .technical-page,
    .space-page,
    .actor-page,
    .proposal-page,
    .public-collection-page,
    footer {
        width: calc(100% - 32px);
        margin-right: auto;
        margin-left: auto;
    }

    .release-list,
    .drama-program .discover-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 12px;
    }

    .release-image,
    .drama-program .placeholder-image,
    .drama-program .discover-card-wide .placeholder-image {
        border-radius: 17px;
    }

    .release-info h3,
    .drama-program .discover-card-content h3 {
        font-size: 0.93rem;
    }

    .release-info > p:last-child,
    .drama-program .discover-card-content > p:last-of-type,
    .drama-program .discover-card-content .card-detail-link {
        display: none;
    }

    .rating {
        top: 9px;
        right: 9px;
    }

    .release-image span {
        top: 9px;
        left: 9px;
        padding: 5px 8px;
    }

    .discover-search {
        padding: 65px 24px 62px;
    }

    .discover-search h1 {
        font-size: clamp(3.25rem, 15vw, 5rem);
    }

    .discover-shape {
        display: none;
    }

    .search-box,
    .discover-search-box {
        align-items: stretch;
        border-radius: 18px;
        flex-direction: column;
    }

    .search-box button,
    .discover-search-box button {
        border-radius: 12px;
    }

    .search-panel,
    .challenge-card {
        min-height: 0;
        padding: 38px 26px;
        border-radius: 24px;
    }

    .technical-sheet,
    .actor-hero,
    .contact-card,
    .proposal-form fieldset,
    .public-collection-hero {
        border-radius: 22px;
    }

    .technical-sheet {
        padding: 22px;
    }

    .actor-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .actor-main-photo {
        margin: 0 auto;
    }

    .section-heading {
        align-items: flex-start;
    }

    footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .release-list,
    .drama-program .discover-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .release-image,
    .drama-program .placeholder-image,
    .drama-program .discover-card-wide .placeholder-image {
        aspect-ratio: 4 / 5;
    }

    .release-info > p:last-child,
    .drama-program .discover-card-content > p:last-of-type,
    .drama-program .discover-card-content .card-detail-link {
        display: -webkit-box;
    }
}

/* Expérience éditoriale dynamique */
.trend-ticker {
    gap: 18px;
    overflow: hidden;
    padding: 10px 12px 10px 18px;
}

.trend-ticker .trend-label {
    position: relative;
    z-index: 2;
    flex: none;
    margin: 0;
}

.trend-marquee {
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.trend-track,
.trend-sequence {
    display: flex;
    width: max-content;
    align-items: center;
}

.trend-track {
    animation: editorialTicker 30s linear infinite;
}

.trend-sequence {
    gap: clamp(24px, 3vw, 48px);
    padding-right: clamp(24px, 3vw, 48px);
}

.trend-sequence p {
    margin: 0;
    color: #4e4a56;
    font-weight: 650;
}

.trend-sequence i {
    color: var(--pink);
    font-size: 0.62rem;
}

.trend-ticker:hover .trend-track {
    animation-play-state: paused;
}

@keyframes editorialTicker {
    to { transform: translateX(-50%); }
}

.weekly-spotlight {
    position: relative;
    isolation: isolate;
    width: min(calc(100% - 10vw), var(--page-width));
    min-height: clamp(430px, 45vw, 590px);
    margin: 0 auto 112px;
    overflow: hidden;
    border-radius: 34px;
    color: white;
    background: #2b1522;
    box-shadow: var(--shadow-lg);
}

.weekly-spotlight-image,
.weekly-spotlight-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.weekly-spotlight-image {
    z-index: -2;
    object-fit: cover;
    object-position: center 35%;
    filter: saturate(0.92) contrast(1.03);
    transform: scale(1.01);
    transition: transform 1.2s var(--ease), filter 0.8s ease;
}

.weekly-spotlight-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(30, 13, 28, 0.96) 0%, rgba(86, 22, 57, 0.82) 42%, rgba(55, 15, 38, 0.2) 78%),
        linear-gradient(0deg, rgba(21, 12, 24, 0.55), transparent 60%);
}

.weekly-spotlight:hover .weekly-spotlight-image {
    filter: saturate(1.02) contrast(1.04);
    transform: scale(1.055);
}

.weekly-spotlight-content {
    display: flex;
    width: min(620px, 62%);
    min-height: inherit;
    padding: clamp(48px, 7vw, 90px);
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.weekly-spotlight .eyebrow {
    color: #ff91b3;
}

.weekly-spotlight h2 {
    max-width: 600px;
    font-size: clamp(3.2rem, 6vw, 6.4rem);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.9;
}

.weekly-spotlight-content > p:not(.eyebrow) {
    max-width: 540px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.75;
}

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0 28px;
}

.spotlight-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
    font-size: 0.57rem;
    font-weight: 700;
}

.spotlight-button {
    display: inline-flex;
    gap: 38px;
    padding: 14px 20px;
    border-radius: 14px;
    color: var(--navy);
    background: white;
    font-size: 0.68rem;
    font-weight: 750;
    transition: color 0.25s ease, background 0.25s ease, transform 0.35s var(--ease);
}

.spotlight-button:hover {
    color: white;
    background: var(--pink);
    transform: translateY(-3px);
}

.spotlight-floater {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(9px);
    animation: ambientFloat 8s ease-in-out infinite;
}

.spotlight-star { top: 14%; right: 8%; color: var(--yellow); }
.spotlight-heart { right: 4%; bottom: 20%; color: #ff91b3; animation-delay: -2.6s; }
.spotlight-flower { top: 48%; right: 31%; color: #bde7d9; animation-delay: -5.2s; }

.hero-confetti {
    display: block;
    animation: ambientFloat 9s ease-in-out infinite;
}

.confetti-two { animation-delay: -3s; }
.confetti-three { animation-delay: -6s; }

.shape-three {
    top: 21%;
    right: 8%;
    color: #7fbdaa;
    animation-delay: -3s;
}

.shape-four {
    right: 35%;
    bottom: 12%;
    color: var(--yellow);
    animation-delay: -6s;
}

.discover-shape {
    animation: ambientFloat 10s ease-in-out infinite;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
    50% { transform: translate3d(0, -13px, 0) rotate(5deg); }
}

.genre-filters {
    display: flex;
    max-width: 900px;
    align-items: stretch;
    gap: 10px;
}

.genre-filters-label {
    display: flex;
    align-items: center;
    margin-right: 5px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 750;
}

.discover-tags.genre-filters .genre-filter {
    display: inline-flex;
    min-width: 112px;
    padding: 10px 14px 10px 10px;
    align-items: center;
    gap: 8px;
    border-color: transparent;
    border-radius: 15px;
    color: var(--navy);
    font-weight: 750;
    box-shadow: 0 8px 20px rgba(24, 23, 36, 0.055);
}

.genre-filter > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
}

.discover-tags.genre-filters .genre-filter:hover {
    color: var(--navy);
    border-color: rgba(24, 23, 36, 0.08);
    transform: translateY(-4px);
}

.filter-romance { background: #ffe7ef !important; }
.filter-thriller { background: #e7e5ef !important; }
.filter-historique { background: #f7e9cf !important; }
.filter-fantastique { background: #e2f3ed !important; }
.filter-comedie { background: #fff1bd !important; }

/* Squelettes pastel pendant le chargement du catalogue Supabase */
.drama-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 2.4vw, 38px) clamp(15px, 1.8vw, 25px);
}

.drama-skeleton-card {
    animation: skeletonArrive 0.5s var(--skeleton-delay) both var(--ease);
}

.skeleton-poster,
.skeleton-line {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #f4e8ed, #e7f1ed);
}

.skeleton-poster {
    aspect-ratio: 4 / 5.5;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.skeleton-line {
    height: 9px;
    margin-top: 11px;
    border-radius: 999px;
}

.skeleton-line-short { width: 38%; margin-top: 18px; }
.skeleton-line-title { width: 72%; height: 14px; }

.skeleton-poster::after,
.skeleton-line::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.75) 48%, transparent 72%);
    content: "";
    transform: translateX(-100%);
    animation: pastelShimmer 1.55s ease-in-out infinite;
}

@keyframes pastelShimmer {
    to { transform: translateX(100%); }
}

@keyframes skeletonArrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cartes enrichies : voile, synopsis, note et favoris rapides */
.interactive-card-shell {
    position: relative;
    min-width: 0;
}

.interactive-card-shell > .release-card,
.interactive-card-shell > .discover-card {
    height: 100%;
}

.interactive-card-shell .placeholder-image,
.interactive-card-shell .release-image {
    position: relative;
}

.card-hover-overlay {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    padding: 22px;
    align-items: stretch;
    justify-content: flex-end;
    flex-direction: column;
    color: white;
    background: linear-gradient(180deg, transparent 25%, rgba(30, 15, 28, 0.25) 48%, rgba(25, 12, 24, 0.94) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.38s ease, transform 0.48s var(--ease);
}

.interactive-card-shell .release-image > .card-hover-overlay {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px;
    border: 0;
    border-radius: 0;
    color: white;
    background: linear-gradient(180deg, transparent 25%, rgba(30, 15, 28, 0.25) 48%, rgba(25, 12, 24, 0.94) 100%);
    box-shadow: none;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
}

.interactive-card-shell .release-image .card-hover-synopsis,
.interactive-card-shell .release-image .card-hover-actions,
.interactive-card-shell .release-image .card-hover-actions > span {
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    font-size: inherit;
    letter-spacing: normal;
}

.interactive-card-shell:hover .card-hover-overlay,
.interactive-card-shell:focus-within .card-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-hover-synopsis {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.65rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-hover-actions {
    display: flex;
    margin-top: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-hover-rating,
.card-hover-detail {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.56rem;
    font-weight: 800;
}

.interactive-card-shell .release-image .card-hover-actions > .card-hover-rating,
.interactive-card-shell .release-image .card-hover-actions > .card-hover-detail {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.56rem;
    font-weight: 800;
}

.card-hover-rating {
    color: #ffe083;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(9px);
}

.interactive-card-shell .release-image .card-hover-actions > .card-hover-rating {
    color: #ffe083;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(9px);
}

.card-hover-detail {
    color: var(--navy);
    background: white;
}

.interactive-card-shell .release-image .card-hover-actions > .card-hover-detail {
    color: var(--navy);
    background: white;
}

.card-favorite-button {
    position: absolute;
    z-index: 7;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(24, 23, 36, 0.08);
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(24, 23, 36, 0.14);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease, background 0.2s ease, transform 0.3s var(--ease);
}

.card-favorite-button:hover,
.card-favorite-button.is-favorite {
    color: white;
    background: var(--pink);
    transform: scale(1.08);
}

.interactive-card-shell .release-card .rating {
    top: 60px;
}

/* Révélation progressive au scroll */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
                transform 0.75s var(--ease) var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cœur rebondissant et étincelles */
#favorite-button,
.card-favorite-button {
    position: relative;
    overflow: visible;
}

#favorite-button.is-favorite {
    color: white;
    border-color: var(--pink);
    background: var(--pink);
}

.is-celebrating {
    animation: favoriteHeartPop 0.62s var(--ease);
}

.favorite-sparkles {
    position: absolute;
    z-index: 10;
    inset: 50% auto auto 50%;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.favorite-sparkles i {
    --spark-x: 0px;
    --spark-y: -30px;
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pink);
    animation: favoriteSpark 0.72s ease-out forwards;
}

.favorite-sparkles i:nth-child(2) { --spark-x: 27px; --spark-y: -18px; background: var(--yellow); }
.favorite-sparkles i:nth-child(3) { --spark-x: 30px; --spark-y: 14px; background: #79c2ae; }
.favorite-sparkles i:nth-child(4) { --spark-x: 0px; --spark-y: 30px; background: var(--yellow); }
.favorite-sparkles i:nth-child(5) { --spark-x: -28px; --spark-y: 16px; background: #79c2ae; }
.favorite-sparkles i:nth-child(6) { --spark-x: -27px; --spark-y: -18px; }

@keyframes favoriteHeartPop {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.16) rotate(-3deg); }
    72% { transform: scale(0.96) rotate(2deg); }
}

@keyframes favoriteSpark {
    from { opacity: 1; transform: translate(0, 0) scale(1); }
    to { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(0.2); }
}

/* Transition cinématographique du carrousel */
.hero-carousel-link img {
    transition: opacity 0.55s ease, transform 0.9s var(--ease), filter 0.55s ease;
}

.hero-carousel-link img.is-changing {
    opacity: 0;
    filter: blur(7px) saturate(0.75);
    transform: scale(1.09);
}

.hero-carousel-link img.is-entering {
    animation: cinematicPosterIn 0.85s both var(--ease);
}

.hero-card strong {
    display: block;
    transition: opacity 0.3s ease, transform 0.4s var(--ease), filter 0.3s ease;
}

.hero-card strong.is-changing {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(8px);
}

.hero-card strong.is-entering {
    animation: cinematicTitleIn 0.7s both var(--ease);
}

@keyframes cinematicPosterIn {
    from { opacity: 0; filter: blur(6px) saturate(0.8); transform: scale(1.075); }
    to { opacity: 1; filter: blur(0) saturate(1); transform: scale(1); }
}

@keyframes cinematicTitleIn {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
    .drama-skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .genre-filters { max-width: 760px; }
    .discover-tags.genre-filters .genre-filter { min-width: 104px; }
}

@media (max-width: 820px) {
    .hero-confetti { display: none; }

    .trend-ticker {
        overflow: hidden;
    }

    .weekly-spotlight {
        width: calc(100% - 32px);
        min-height: 520px;
        margin-bottom: 82px;
        border-radius: 25px;
    }

    .weekly-spotlight-shade {
        background: linear-gradient(0deg, rgba(30, 13, 28, 0.98) 0%, rgba(67, 18, 47, 0.76) 57%, rgba(30, 13, 28, 0.12) 100%);
    }

    .weekly-spotlight-content {
        width: 100%;
        min-height: inherit;
        padding: 230px 30px 38px;
        justify-content: flex-end;
    }

    .weekly-spotlight h2 { font-size: clamp(2.65rem, 12vw, 4.5rem); }
    .spotlight-flower { display: none; }

    .genre-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .genre-filters-label { grid-column: 1 / -1; }
    .discover-tags.genre-filters .genre-filter { min-width: 0; }
    .drama-skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
}

@media (max-width: 520px) {
    .trend-ticker { align-items: center; }
    .trend-ticker .trend-label { padding: 5px 8px; font-size: 0.5rem; }
    .trend-sequence { gap: 22px; padding-right: 22px; }
    .weekly-spotlight-content { padding-right: 23px; padding-left: 23px; }
    .weekly-spotlight-content > p:not(.eyebrow) { font-size: 0.72rem; }
    .spotlight-meta { margin: 18px 0 21px; }
    .card-hover-overlay { display: none; }
    .card-favorite-button { top: 9px; right: 9px; width: 34px; height: 34px; }
    .interactive-card-shell .release-card .rating { top: 49px; }
}

/* Hero d’accueil : cluster d’affiches plus généreux et plus éditorial */
.carousel-progress {
    display: none;
}

.hero-backdrop-posters,
.hero-backdrop-gradient {
    display: none;
}

@media (min-width: 1060px) {
    .hero {
        isolation: isolate;
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        max-width: none;
        min-height: max(760px, calc(100vh - 84px));
        padding-right: max(6vw, calc((100vw - 1500px) / 2));
        padding-left: max(6vw, calc((100vw - 1500px) / 2));
        padding-top: 74px;
        padding-bottom: 78px;
    }

    .hero::before {
        z-index: 0;
        top: 14px;
        right: -3vw;
        bottom: 18px;
        left: -3vw;
        height: auto;
        border-radius: 0;
        background: linear-gradient(115deg, #fbf9f8 0%, #f8f5f5 45%, #efe8eb 100%);
        opacity: 1;
    }

    .hero-copy {
        z-index: 3;
        width: min(700px, 52vw);
        align-self: center;
    }

    .hero-confetti {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .hero-backdrop-posters,
    .hero-backdrop-gradient {
        position: absolute;
        display: block;
        inset: 0;
    }

    .hero-backdrop-posters {
        z-index: 0;
        left: 17%;
        display: grid;
        grid-template-columns: 1.08fr 1fr 1.12fr 0.95fr;
        overflow: hidden;
    }

    .hero-backdrop-panel {
        position: relative;
        min-width: 0;
        overflow: hidden;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
        background: #ddd7da;
    }

    .hero-backdrop-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.5s ease, filter 0.6s ease, transform 1s var(--ease);
    }

    .backdrop-panel-soft img { opacity: 0.46; filter: saturate(0.62) contrast(0.9); object-position: 50% center; }
    .backdrop-panel-story img { opacity: 0.7; filter: saturate(0.74) contrast(0.94); }
    .backdrop-panel-featured { animation: featuredPanelBreath 13s ease-in-out infinite alternate; }
    .backdrop-panel-featured img { opacity: 0.94; filter: saturate(0.86) contrast(0.98); }
    .backdrop-panel-last img { opacity: 0.74; filter: saturate(0.7) contrast(0.92); }

    #hero-backdrop-featured.is-changing {
        opacity: 0.28;
        filter: saturate(0.55) blur(7px);
        transform: scale(1.055);
    }

    .hero-backdrop-gradient {
        z-index: 1;
        background:
            linear-gradient(90deg,
                #f8f7f5 0%,
                rgba(248, 247, 245, 0.99) 23%,
                rgba(248, 247, 245, 0.9) 37%,
                rgba(248, 247, 245, 0.58) 50%,
                rgba(248, 247, 245, 0.15) 68%,
                rgba(248, 247, 245, 0.08) 100%),
            linear-gradient(180deg,
                rgba(248, 247, 245, 0.2) 0%,
                transparent 15%,
                transparent 74%,
                rgba(248, 247, 245, 0.72) 100%);
    }

    @keyframes featuredPanelBreath {
        from { transform: scale(1); }
        to { transform: scale(1.025); }
    }

    .hero-visual::before {
        display: none;
    }

    .hero-visual::after {
        position: absolute;
        z-index: -1;
        right: 7%;
        bottom: -30px;
        left: 7%;
        height: 58px;
        border-radius: 50%;
        background: rgba(46, 25, 40, 0.18);
        content: "";
        filter: blur(26px);
        opacity: 0.58;
        transition: opacity 0.6s ease, transform 0.8s var(--ease);
    }

    .hero-visual:hover::after {
        opacity: 0.72;
        transform: scaleX(1.06);
    }

    .hero-carousel-link {
        position: relative;
        z-index: 2;
        aspect-ratio: 4 / 5.05;
        border-radius: 34px;
        box-shadow: 0 38px 90px rgba(34, 25, 38, 0.2);
        transform: rotate(1deg);
    }

    .hero-carousel-link::after {
        position: absolute;
        z-index: 2;
        inset: 42% 0 0;
        background: linear-gradient(180deg, transparent, rgba(20, 13, 21, 0.54));
        content: "";
        pointer-events: none;
    }

    .hero-visual:hover .hero-carousel-link {
        box-shadow: 0 46px 105px rgba(34, 25, 38, 0.24);
        transform: rotate(0) translateY(-10px) scale(1.012);
    }

    .hero-card {
        z-index: 5;
        right: 24px;
        bottom: 24px;
        left: 24px;
        min-width: 0;
        max-width: none;
        padding: 17px 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 18px;
        color: white;
        background: rgba(25, 18, 28, 0.7);
        box-shadow: 0 18px 45px rgba(17, 11, 18, 0.24);
        backdrop-filter: blur(16px) saturate(1.2);
    }

    .hero-card span { color: #ff91b3; }

    .hero-card strong {
        color: white;
        font-size: 1.16rem;
    }

    .carousel-button {
        z-index: 6;
        width: 52px;
        height: 52px;
    }

    .carousel-previous { left: -26px; }
    .carousel-next { right: -26px; }

    .floating-icon {
        z-index: 5;
        width: 42px;
        height: 42px;
    }

    .icon-star { left: -34px; }
    .icon-heart { right: -28px; }
    .icon-smile { right: -26px; }

    .carousel-progress {
        position: absolute;
        z-index: 4;
        top: auto;
        right: max(6vw, calc((100vw - 1500px) / 2));
        bottom: 54px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-shadow: 0 2px 12px rgba(24, 23, 36, 0.28);
    }

    .carousel-progress i {
        position: relative;
        display: block;
        width: 92px;
        height: 2px;
        overflow: hidden;
        border-radius: 99px;
        background: rgba(255, 255, 255, 0.48);
    }

    .carousel-progress b {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: var(--pink);
        transform: scaleX(0.2);
        transform-origin: left center;
        transition: transform 0.75s var(--ease);
    }

    .carousel-progress em {
        margin-left: 18px;
        color: var(--pink);
        font-size: 1.1rem;
        font-style: normal;
        text-shadow: none;
    }

    .carousel-progress em:last-child {
        margin-left: 2px;
        color: #79c2ae;
    }
}

@media (min-width: 1380px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (min-width: 1900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        min-height: max(820px, calc(100vh - 84px));
        padding-top: 70px;
        padding-right: clamp(90px, 6vw, 145px);
        padding-bottom: 72px;
        padding-left: clamp(90px, 6vw, 145px);
    }

    .hero-backdrop-posters {
        left: 18%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy,
    .hero-visual,
    .releases,
    .discovery {
        animation: none;
    }

    .trend-track,
    .backdrop-panel-featured,
    .spotlight-floater,
    .hero-confetti,
    .discover-shape,
    .drama-skeleton-card,
    .skeleton-poster::after,
    .skeleton-line::after,
    .is-celebrating,
    .favorite-sparkles i,
    .hero-carousel-link img.is-entering,
    .hero-card strong.is-entering {
        animation: none;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
