/* ═══════════════════════════════════════════════════════════════
   ANVEN Consulting — Page dédiée Podcast « La Juste Performance »
   S'appuie sur styles.css (nav, footer, boutons, cartes épisodes).
   Palette : orange signature (#f2a833) / gris / noir.
   ═══════════════════════════════════════════════════════════════ */

/* Palette chaude dérivée de la pochette « La Juste Performance »
   (sépia/espresso + papier crème, orange en unique accent) */
.pod-hero,
.pod-episodes,
.pod-reviews {
    --pod-espresso: #1c1206;
    --pod-coffee: #2c1e0d;
    --pod-paper: #faf6ee;
    --pod-paper-deep: #f2e9d9;
    --pod-ink: #211a12;
    --pod-line: #e7dcc7;
    --pod-muted: #7a6f5e;
}

.pod-section-inner,
.pod-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =============== HERO =============== */
.pod-hero {
    position: relative;
    background:
        radial-gradient(120% 90% at 78% 30%, rgba(242, 168, 51, 0.16) 0%, rgba(242, 168, 51, 0) 55%),
        linear-gradient(158deg, #2a1b0a 0%, #1a1208 52%, #100b06 100%);
    color: var(--blanc);
    padding: 9rem 0 5.5rem;
    text-align: center;
    overflow: hidden;
}

.pod-hero-inner {
    max-width: 780px;
}

/* Variante deux colonnes : texte à gauche, pochette à droite */
.pod-hero-inner--split {
    max-width: 1160px;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.pod-hero-text {
    min-width: 0;
}

/* --- Visuel pochette + badges flottants --- */
.pod-hero-visual {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 420px;
}

.pod-hero-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.pod-hero-badge {
    position: absolute;
    background: var(--pod-paper);
    color: var(--pod-ink);
    border: 1px solid rgba(242, 168, 51, 0.35);
    border-radius: 14px;
    padding: 0.7rem 1.1rem;
    font-size: 0.8rem;
    line-height: 1.15;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.pod-hero-badge strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--orange-fonce);
    letter-spacing: -0.01em;
}

.pod-hero-badge--top {
    top: 1.5rem;
    left: -1.25rem;
}

.pod-hero-badge--bottom {
    bottom: 1.5rem;
    right: -1.25rem;
}

/* Alignements gauche dans la variante split */
.pod-hero-inner--split .pod-hero-sub {
    margin-left: 0;
    margin-right: 0;
}

.pod-hero-inner--split .pod-ratings,
.pod-hero-inner--split .pod-hero-links {
    justify-content: flex-start;
}

/* --- Onde sonore signature (bas du hero) --- */
.pod-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='44' viewBox='0 0 160 44'%3E%3Cpath d='M0 18 Q40 3 80 18 T160 18' fill='none' stroke='%23f2a833' stroke-width='2.5'/%3E%3Cpath d='M0 30 Q40 15 80 30 T160 30' fill='none' stroke='%23f2a833' stroke-opacity='0.32' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: 160px 44px;
    pointer-events: none;
}

.pod-hero .label {
    display: inline-block;
    color: var(--orange-signature);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1.1rem;
}

.pod-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--blanc);
}

.pod-hero-sub {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gris-clair);
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.pod-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.pod-hero-stats .podcast-stat {
    display: flex;
    flex-direction: column;
}

.pod-hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-signature);
    line-height: 1;
}

.pod-hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--gris-clair);
    margin-top: 0.35rem;
}

/* =============== NOTES PLATEFORMES =============== */
.pod-ratings {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pod-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.pod-rating:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--orange-signature);
    transform: translateY(-2px);
}

.pod-rating-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 5px;
}

.pod-rating-stars {
    color: var(--orange-signature);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.pod-rating-score {
    color: var(--blanc);
    font-size: 0.9rem;
}

.pod-rating-score strong {
    font-weight: 700;
}

.pod-rating-count {
    color: var(--gris-clair);
    white-space: nowrap;
}

.pod-hero-links {
    justify-content: center;
    display: flex;
    gap: 1rem;
}

/* =============== SECTION ÉPISODES + PLAYER =============== */
.pod-episodes {
    padding: 5rem 0;
    background: var(--pod-paper);
}

.pod-episodes .section-intro,
.pod-reviews .section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.pod-episodes .section-intro .label,
.pod-reviews .section-intro .label {
    display: block;
    color: var(--orange-fonce);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
}

.pod-episodes .section-intro h2,
.pod-reviews .section-intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    color: var(--pod-ink);
    margin: 0.5rem 0 0;
}

/* Onde miniature sous chaque intro de section (fil signature) */
.pod-episodes .section-intro .label::after,
.pod-reviews .section-intro .label::after {
    content: "";
    display: block;
    width: 54px;
    height: 10px;
    margin: 0.6rem auto 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='10' viewBox='0 0 54 10'%3E%3Cpath d='M0 5 Q13.5 0 27 5 T54 5' fill='none' stroke='%23f2a833' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

.pod-player-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* --- Player audio (reproduit le look du player d'accueil) --- */
.pod-player {
    background: var(--pod-paper-deep);
    border: 1px solid var(--pod-line);
    border-radius: 16px;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.pod-player .player-episode-info {
    margin-bottom: 1.25rem;
    text-align: left;
}

.pod-player .player-episode-title {
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: var(--bleu-nuit);
}

.pod-player .player-episode-meta {
    font-size: 0.85rem;
    margin: 0;
    color: var(--gris-moyen);
}

.pod-player .player-controls-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pod-player .player-play-pause {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--bleu-electrique);
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.pod-player .player-play-pause:hover:not(:disabled) {
    transform: scale(1.06);
    background: var(--orange-fonce);
}

.pod-player .player-play-pause:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pod-player .player-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pod-player .player-time-current,
.pod-player .player-time-total {
    font-size: 0.75rem;
    color: var(--gris-moyen);
    min-width: 35px;
}

.pod-player .player-progress-track {
    flex: 1;
    height: 5px;
    background: var(--gris-tres-clair);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.pod-player .player-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--bleu-electrique);
    border-radius: 3px;
    transition: width 0.1s ease;
}

/* --- Liste des épisodes : le carrousel devient une grille d'archive ---
   (tous les épisodes sont déjà dans le DOM ; on neutralise le défilement
   translateX du carrousel et on masque flèches/puces devenues inutiles) */
.pod-carousel-wrap {
    text-align: left;
    min-width: 0;
}

.pod-carousel-wrap .carousel-wrapper {
    overflow: visible;
    padding: 0;
}

.pod-carousel-wrap .carousel-container {
    overflow: visible;
    margin: 0;
    width: 100%;
    border-radius: 0;
}

.pod-carousel-wrap .carousel-track {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    grid-auto-columns: auto;
    gap: 1.25rem;
    transform: none !important;
    transition: none !important;
}

.pod-carousel-wrap .carousel-arrow,
.pod-carousel-wrap .carousel-dots {
    display: none;
}

.pod-carousel-wrap .episode-card {
    max-width: none;
    margin: 0;
}

/* Repli : seuls les 12 premiers épisodes sont visibles */
.pod-carousel-wrap:not(.pod-expanded) .episode-card:nth-child(n+13) {
    display: none;
}

.pod-episodes-more {
    text-align: center;
    margin-top: 2.75rem;
}

.pod-episodes-more .btn-primary[hidden] {
    display: none;
}

/* =============== AVIS AUDITEURS =============== */
.pod-reviews {
    padding: 5rem 0 6rem;
    background: var(--pod-paper-deep);
}

.pod-reviews-sub {
    color: var(--orange-fonce);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 0.75rem;
}

.pod-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pod-review {
    position: relative;
    background: var(--pod-paper);
    border: 1px solid var(--pod-line);
    border-radius: 4px;
    padding: 2rem 1.75rem 1.6rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

/* Filet orange à gauche : marque éditoriale de citation */
.pod-review::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--orange-signature);
    border-radius: 4px 0 0 4px;
}

.pod-review:hover {
    transform: translateY(-3px);
    border-color: rgba(242, 168, 51, 0.5);
    box-shadow: 0 12px 28px rgba(28, 18, 6, 0.1);
}

.pod-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.pod-review-stars {
    color: var(--orange-signature);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.pod-review-platform-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 5px;
    opacity: 0.85;
}

.pod-review-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--pod-ink);
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}

.pod-review-text {
    margin: 0 0 1.5rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #3a3128;
    font-style: normal;
    flex: 1;
}

.pod-review-author {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--pod-muted);
}

.pod-reviews-cta {
    text-align: center;
    margin-top: 3rem;
}

.pod-reviews-cta p {
    color: var(--gris-fonce);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.pod-reviews-cta .podcast-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {
    .pod-player-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pod-player {
        position: static;
    }
    /* Hero repasse en une colonne, pochette au-dessus du texte */
    .pod-hero-inner--split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 560px;
        text-align: center;
    }
    .pod-hero-visual {
        grid-row: 1;
        max-width: 320px;
    }
    .pod-hero-inner--split .pod-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .pod-hero-inner--split .pod-ratings,
    .pod-hero-inner--split .pod-hero-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .pod-hero {
        padding: 7rem 0 3.5rem;
    }
    .pod-hero-stats {
        gap: 2rem;
    }
    .pod-ratings {
        flex-direction: column;
        align-items: stretch;
    }
    .pod-rating {
        justify-content: center;
    }
    .pod-episodes,
    .pod-reviews {
        padding: 3.5rem 0;
    }
    .pod-reviews-grid {
        grid-template-columns: 1fr;
    }
}
