* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    background: #f8fafc;
    color: #111827;
}

.hero {
    min-height: 260px;
    padding: 48px 20px 36px;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    width: min(620px, 94%);
    height: auto;
    display: block;
    margin: 0 auto 24px;
}

.hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.65;
    min-height: 3.3em;
}

@media (max-width: 760px) {
    .hero p {
        font-size: 15px;
        min-height: 4.95em;
    }
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.main-nav a,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #4f46e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.main-nav a:hover,
.back-link:hover {
    background: #ffffff;
}

.container,
.episode-page {
    max-width: 1040px;
    margin: 42px auto 70px;
    padding: 0 20px;
}

.container h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 40px;
    color: #111827;
}

.episode-card {
    display: flex;
    gap: 22px;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.episode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.cover,
.detail-cover {
    object-fit: cover;
    border-radius: 10px;
    background: #e5e7eb;
    width: 96px;
    min-width: 96px;
    height: 96px;
}

.episode-nav-cover,
.other-cover,
.member-avatar {
    object-fit: cover;
    border-radius: 6px;
    background: #e5e7eb;
}

.cover {
    width: 168px;
    min-width: 168px;
    height: 168px;
    display: block;
}

.episode-content {
    flex: 1;
    min-width: 0;
}

.meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 10px;
}

.badge,
.member-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    flex: none;
    padding: 4px 10px;
    min-height: 22px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-sizing: border-box;
}

.badge.episode,
.member-role {
    background: #e0e7ff;
    color: #4338ca;
}

.badge.minicast {
    background: #dcfce7;
    color: #15803d;
}

h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.3;
}

h2 a,
.other-content h3 a {
    color: #111827;
    text-decoration: none;
}

h2 a:hover,
.other-content h3 a:hover {
    color: #4f46e5;
}

.episode-content p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

audio {
    width: 100%;
}

.episode-header {
    padding: 34px 20px 10px;
    text-align: center;
}

.episode-logo {
    width: min(460px, 90%);
    height: auto;
    display: block;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 22px;
}

.episode-detail {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 30px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1);
}

.detail-cover {
    width: 100%;
}

.detail-content h1 {
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.15;
}

.detail-content p {
    color: #374151;
    line-height: 1.7;
    font-size: 16px;
}

.episode-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 26px 0 44px;
}

.episode-nav-left {
    text-align: left;
}

.episode-nav-right {
    text-align: right;
}

.episode-nav-button {
    display: block;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.episode-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.episode-nav-button span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.episode-nav-button strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.episode-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.episode-nav-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.episode-nav-cover {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.episode-nav .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: auto;
    flex: none;
    padding: 0 10px;
    height: 20px;
    min-height: 20px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 20px;
    margin-bottom: 0;
    white-space: nowrap;
}

.episode-nav-right .episode-nav-text {
    align-items: flex-end;
}

.episode-nav-right .badge {
    align-self: flex-end;
}

.other-episodes {
    margin-top: 36px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-heading h2,
.members-section h2 {
    margin: 0 0 22px;
    font-size: 30px;
    font-weight: 700;
    color: #374151;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 700;
}

.other-episode-card {
    display: flex;
    gap: 18px;
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.other-cover {
    width: 120px;
    min-width: 120px;
    height: 120px;
}

.other-content {
    flex: 1;
    min-width: 0;
}

.other-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.other-content p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.members-section {
    margin-bottom: 52px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.member-card {
    display: flex;
    gap: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

.member-avatar {
    width: 104px;
    height: 104px;
    min-width: 104px;
}

.member-content {
    flex: 1;
}

.member-content h3 {
    margin: 0;
    font-size: 22px;
}

.member-role {
    margin: 8px 0 14px;
}

.member-content p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
}

.site-footer {
    margin-top: 60px;
    padding: 28px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 760px) {
    .hero {
        min-height: 270px;
        padding: 32px 20px 28px;
    }
}

    .hero-logo {
        width: 280px;
        max-width: 85%;
    }

    .hero p {
        font-size: 15px;
    }

    .container,
    .episode-page {
        margin-top: 32px;
    }

    .container h1 {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .episode-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .cover {
        width: 96px;
        height: 96px;
        min-width: 96px;
        margin: 36px 0 0;
    }

    .episode-content h2 {
        font-size: 20px;
    }

    .episode-content p {
        font-size: 15px;
    }

    .episode-detail {
        display: flex;
        gap: 14px;
        padding: 18px;
        align-items: flex-start;
    }

    .detail-cover {
        width: 96px;
        min-width: 96px;
        height: 96px;
        margin-top: 36px;
    }

    .detail-content h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .episode-nav {
        grid-template-columns: 1fr;
    }

    .episode-nav-right {
        text-align: left;
    }

    .episode-nav-right .episode-nav-text {
        align-items: flex-start;
    }

    .episode-nav-right .badge {
        align-self: flex-start;
    }

    .episode-nav-cover {
        width: 92px;
        height: 92px;
    }

    .other-cover {
        width: 88px;
        min-width: 88px;
        height: 88px;
    }

    .other-content p {
        display: none;
    }

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

    .member-card {
        align-items: flex-start;
    }

    .member-avatar {
        width: 88px;
        height: 88px;
        min-width: 88px;
    }

    .member-content h3 {
        font-size: 20px;
    }
}

.timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 34px;
}

.timeline-item {
    position: relative;
    padding-top: var(--spacing, 0px);
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -24px;
    width: 3px;
    background: rgba(79, 70, 229, 0.22);
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: calc(var(--spacing, 0px) + 22px);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #4f46e5;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    z-index: 2;
}

.timeline-content {
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.timeline-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.timeline-meta .timeline-date,
.timeline-meta .timeline-studio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    margin: 0;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.timeline-meta .timeline-date {
    background: #e0e7ff;
    color: #4338ca;
}

.timeline-meta .timeline-studio {
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
}

.timeline-content h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.timeline-content p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

@media (max-width: 760px) {
    .timeline {
        padding-left: 28px;
    }

    .timeline-item::before {
        left: -20px;
    }

    .timeline-dot {
        left: -28px;
    }

    .timeline-content h2 {
        font-size: 20px;
    }
}

/* ===========================
   Galerie photo
=========================== */

.photo-gallery {
    columns: 4;
    column-gap: 8px;
}

.photo-card {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    break-inside: avoid;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .25s ease;
}

.photo-card:hover img {
    transform: scale(1.03);
}

/* ===========================
   Lightbox
=========================== */

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.88);
}

.photo-lightbox.is-open {
    display: flex;
}

.photo-lightbox-inner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 40px;
}

.photo-lightbox img {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;

    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

/* ===========================
   Fermer
=========================== */

.photo-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 999px;

    background: rgba(255,255,255,.12);
    color: #fff;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: background .2s;
}

.photo-lightbox-close:hover {
    background: rgba(255,255,255,.25);
}

/* ===========================
   Flèches
=========================== */

.photo-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 56px;
    height: 56px;

    border: 0;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.12);
    color: white;

    font-size: 42px;
    line-height: 1;

    cursor: pointer;

    transition: background .2s;
}

.photo-lightbox-arrow:hover {
    background: rgba(255,255,255,.25);
}

.photo-lightbox-prev {
    left: 20px;
}

.photo-lightbox-next {
    right: 20px;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 1100px) {

    .photo-gallery {
        columns: 3;
    }

}

@media (max-width: 760px) {

    .photo-gallery {
        columns: 2;
        column-gap: 6px;
    }

    .photo-card {
        margin-bottom: 6px;
    }

    .photo-lightbox-arrow {
        width: 44px;
        height: 44px;
        font-size: 34px;
    }

    .photo-lightbox-prev {
        left: 10px;
    }

    .photo-lightbox-next {
        right: 10px;
    }

    .photo-lightbox-close {
        top: 10px;
        right: 10px;
    }

}

.tribute-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.tribute-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.video-card {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.video-card video {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 760px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card-paysage {
    width: 320px;
}

.video-card-portrait {
    width: 180px;
}

.video-card video {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .video-grid {
        justify-content: center;
    }

    .video-card-paysage {
        width: min(100%, 320px);
    }

    .video-card-portrait {
        width: min(100%, 180px);
    }
}

.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.video-lightbox.is-open {
    display: flex;
}

.video-lightbox-inner {
    position: relative;
    width: min(100%, 1000px);
}

.video-lightbox video {
    display: block;
    width: 100%;
    max-height: 90vh;
    background: #000;
}

.video-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.secret-trigger {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: text;
}

.secret-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.secret-modal.is-open {
    display: flex;
}

.secret-box {
    position: relative;
    width: min(100%, 420px);
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.secret-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.secret-box p {
    margin-top: 0;
}

.secret-box input {
    width: 100%;
    padding: 10px 12px;
    margin: 12px 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.secret-box button[type="submit"] {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: #4f46e5;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.secret-error {
    margin-top: 12px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 700;
}

#secretPlayer audio,
#secretPlayer video {
    width: 100%;
    margin-top: 16px;
    border-radius: 10px;
}