.home-shell {
    max-width: 1760px;
}

.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,
.files-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,
.files-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;
}

.files-home-section {
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.section-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.section-heading > div:first-child {
    display: grid;
    gap: 0.35rem;
}

.section-heading p {
    max-width: 680px;
    margin: 0;
}

.section-heading-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
}

.section-heading-actions .bouton {
    margin-top: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.bouton.bouton-jellyfin {
    background: #fff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.08);
}

.bouton.bouton-jellyfin:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.16);
}

.section-heading h2 {
    font-size: 2rem;
    color: var(--dark);
    line-height: 1.1;
    margin: 0;
}

.section-heading h2 span {
    color: var(--primary);
}

.files-limit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 700;
    white-space: nowrap;
}

