.home-shell {
    max-width: 1240px;
}

.home-main {
    display: grid;
    gap: 2rem;
}

.hero-home {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 360px);
    gap: 1.5rem;
    align-items: stretch;
}

.hero-home-copy,
.hero-home-panel,
.films-home-section {
    border-radius: 28px;
    overflow: hidden;
}

.hero-home-copy {
    padding: 2.6rem;
    background:
        radial-gradient(circle at top left, rgba(255, 212, 59, 0.28), transparent 28%),
        linear-gradient(135deg, #0f172a, #1d3557 56%, #345995);
    color: #fff;
    text-align: left;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.2);
}

.hero-home-copy p,
.hero-home-copy h1 {
    color: #fff;
}

.hero-home-copy h1 span {
    color: #ffd166;
}

.hero-home-lead {
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
}

.hero-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.bouton.bouton-secondaire-home {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.bouton.bouton-secondaire-home:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-home-panel {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 45px rgba(79, 142, 247, 0.12);
}

.hero-stat {
    padding: 1.1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #f5f9ff);
    text-align: left;
}

.hero-stat span {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--dark);
}

.hero-stat p {
    margin-top: 0.35rem;
    font-size: 0.95rem;
}

.films-home-section {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.section-heading p {
    max-width: 680px;
}

.section-heading h2 {
    font-size: 2rem;
    color: var(--dark);
}

.section-heading h2 span {
    color: var(--primary);
}

.films-toolbar {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
}

.films-search-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid #dbe4f0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.films-search-box:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.films-search-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--dark);
}

.films-search-box input:focus {
    outline: none;
}

.films-search-help {
    margin: 0;
    color: var(--text-light);
    font-size: 0.94rem;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}

.film-card-home {
    position: relative;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    min-height: 100%;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #edf2f7;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    transition: var(--transition);
}

.film-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.1);
}

.form-suppression {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.btn-supprimer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.btn-supprimer:hover {
    background: #991b1b;
    transform: translateY(-2px);
}

.film-card-visual {
    position: relative;
    min-height: 100%;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe 40%, #fde68a);
}

.film-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.film-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.68);
}

.film-rating-pill {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.film-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1rem 1.1rem;
    text-align: left;
    flex: 1;
}

.film-card-content h3 {
    font-size: 1.15rem;
    color: var(--dark);
    line-height: 1.25;
}

.film-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.film-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
}

.film-review-copy {
    color: var(--text);
    line-height: 1.6;
    flex: 1;
}

.film-review-copy p {
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-synopsis {
    padding-top: 0.75rem;
    border-top: 1px solid #edf2f7;
}

.film-synopsis span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    font-weight: 700;
}

.film-synopsis p {
    font-size: 0.88rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-empty-state {
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px dashed #cbd5e0;
    background: linear-gradient(180deg, #fff, #f8fbff);
    text-align: center;
}

.film-empty-state i {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.film-empty-state p {
    max-width: 560px;
    margin: 0 auto;
}

.film-empty-state .bouton {
    margin-top: 1.25rem;
}

.film-empty-state-search {
    margin-top: 1.4rem;
}

@media (max-width: 960px) {
    .hero-home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero-home-copy,
    .films-home-section {
        padding: 1.4rem;
    }

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

    .hero-home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .film-card-home {
        grid-template-columns: 1fr;
    }

    .film-card-visual {
        aspect-ratio: 2 / 3;
        min-height: 0;
    }
}
