/* ==========================================================
   PODCAST
   ========================================================== */

.mc-podcast-page {
    width: min(100% - 40px, 1100px);
    margin: 50px auto 80px;
}

.mc-podcast-image {
    margin-bottom: 30px;
}

.mc-podcast-image img {
    display: block;
    width: 50%;
    max-width: 760px;
    height: auto;
    border-radius: 18px;
}

.mc-podcast-page h1 {
    max-width: 900px;
    margin: 0 0 20px;
    font-size: 2rem;
    /*font-size: clamp(2rem, 4vw, 3.2rem);*/
    line-height: 1.1;
}

.mc-podcast-chapo {
    max-width: 900px;
    margin-bottom: 35px;
    font-size: 1.15rem;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   LECTEUR
   ---------------------------------------------------------- */

.mc-podcast-player {
    width: 100%;
    max-width: 900px;
    /*margin: 35px 0 50px;*/
    padding: 10px 30px;
    box-sizing: border-box;
    background: #f2f1f8;
    border-radius: 22px;
}

.mc-podcast-audio {
    display: none;
}

.mc-podcast-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.mc-podcast-controls button {
    min-width: 52px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #0078c1;
    border-radius: 22px;
    background: #fff;
    color: #0078c1;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.mc-podcast-controls .mc-podcast-play {
    min-width: 52px;
    background: #0078c1;
    color: #fff;
}

.mc-podcast-controls button:hover {
    opacity: 0.85;
}

.mc-podcast-controls button:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}


/* ----------------------------------------------------------
   PROGRESSION
   ---------------------------------------------------------- */

.mc-podcast-progress {
    width: 100%;
}

.mc-podcast-seek {
    display: block;
    width: 100%;
    margin: 0;
    cursor: pointer;
}


/* ----------------------------------------------------------
   TEMPS
   ---------------------------------------------------------- */

.mc-podcast-time {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}


/* ----------------------------------------------------------
   VOLUME
   ---------------------------------------------------------- */

.mc-podcast-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.mc-podcast-volume label {
    font-size: 0.9rem;
    font-weight: 600;
}

.mc-podcast-volume-control {
    width: 120px;
    cursor: pointer;
}


/* ----------------------------------------------------------
   TRANSCRIPTION
  ---------------------------------------------------------- */

.mc-podcast-transcript {
    max-width: 900px;
    margin-top: 55px;
    padding-top: 35px;
    border-top: 1px solid #d8d8d8;
}

.mc-podcast-transcript h2 {
    margin: 0 0 25px;
    font-size: 1.8rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.mc-podcast-transcript-content {
    font-size: 1.05rem;
    line-height: 1.75;
}

.mc-podcast-transcript-content p {
    margin: 0 0 1.25em;
}

/* ----------------------------------------------------------
   TRANSCRIPTION - BOUTON
  ---------------------------------------------------------- */

.mc-podcast-transcript-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 0;

    background: transparent;
    border: 0;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;

    color: #0078c1;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;

    cursor: pointer;
}

.mc-podcast-transcript-toggle-icon {
    font-size: 1.25rem;
    line-height: 1;

    transition: transform 0.2s ease;
}

.mc-podcast-transcript-toggle[aria-expanded="true"]
    .mc-podcast-transcript-toggle-icon {
    transform: rotate(180deg);
}

.mc-podcast-transcript-toggle:hover {
    color: #005f96;
}

.mc-podcast-transcript-toggle:focus-visible {
    outline: 2px solid #0078c1;
    outline-offset: 3px;
}

/* ----------------------------------------------------------
   RETOUR VERS L'ARTICLE
   ---------------------------------------------------------- */

.mc-podcast-article-link {
    max-width: 900px;
    margin-top: 40px;
}

.mc-podcast-article-link a {
    color: var(--em-blue);
    font-weight: 700;
    text-decoration: none;
}

.mc-podcast-article-link a:hover {
    text-decoration: underline;
}

.mc-podcast-article-link a:focus-visible {
    outline: 2px solid var(--em-blue);
    outline-offset: 3px;
}

/* ----------------------------------------------------------
   CONTENU PODCAST VERROUILLÉ
   ---------------------------------------------------------- */

.mc-podcast-locked {
    max-width: 900px;
    margin: 35px 0 50px;
    padding: 30px;
    box-sizing: border-box;
    background: #f2f1f8;
    border-radius: 22px;
}

.mc-podcast-locked h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    line-height: 1.2;
}

.mc-podcast-locked p {
    margin: 0 0 18px;
    line-height: 1.6;
}

.mc-podcast-locked a {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid var(--em-blue);
    border-radius: 22px;
    background: var(--em-blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.mc-podcast-locked a:hover {
    opacity: 0.85;
}

.mc-podcast-locked a:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

/* ==========================================================
   PAGE LISTE DES PODCASTS
   ========================================================== */

.mc-podcast-list-page {
    width: min(100% - 40px, 1100px);
    margin: 50px auto 80px;
}

.mc-podcast-list-header {
    margin-bottom: 40px;
}

.mc-podcast-list-header h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.mc-podcast-list {
    display: grid;
    gap: 35px;
}

.mc-podcast-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding-bottom: 35px;
    border-bottom: 1px solid #d9d9d9;
}

.mc-podcast-card-image {
    display: block;
}

.mc-podcast-card-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.mc-podcast-card-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.mc-podcast-card-player {
    width: 100%;
}

.mc-podcast-card-title {
    margin: 0 0 15px;
    font-size: 1.6rem;
    line-height: 1.2;
}

.mc-podcast-card-title a {
    color: inherit;
    text-decoration: none;
}

.mc-podcast-card-title a:hover {
    color: #0078c1;
}

.mc-podcast-card-title a:focus-visible {
    outline: 2px solid #0078c1;
    outline-offset: 3px;
}

.mc-podcast-card-chapo {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.6;
}

.mc-podcast-card-duration {
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.mc-podcast-card-link {
    display: inline-block;
    padding: 11px 20px;
    background: #0078c1;
    color: #fff;
    border-radius: 22px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.mc-podcast-card-link:hover {
    opacity: 0.85;
}

.mc-podcast-card-link:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

/* ==========================================================
   EN-TÊTE DE LA PAGE PODCAST
   ========================================================== */

.mc-podcast-list-page .em-archive-heading {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.mc-podcast-list-page .em-archive-title {
    margin: 0;
    color: var(--em-blue);
}

.mc-podcast-list-page .em-archive-count {
    position: relative;
    top: -2px;
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
    padding-left: 1.5rem;
    border-left: 1px solid #ccc;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    .mc-podcast-list-page {
        width: min(100% - 24px, 1100px);
        margin-top: 25px;
    }

    .mc-podcast-list-header {
        margin-bottom: 30px;
    }

    .mc-podcast-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 30px;
    }

    .mc-podcast-card-image img {
        border-radius: 14px;
    }

    .mc-podcast-card-title {
        font-size: 1.35rem;
    }
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    .mc-podcast-page {
        width: min(100% - 24px, 1100px);
        margin-top: 25px;
    }
    
    .mc-podcast-image img {
        width: 100%;
        max-width: 760px;
    }

    .mc-podcast-image {
        margin-bottom: 22px;
    }

    .mc-podcast-image img {
        border-radius: 14px;
    }

    .mc-podcast-page h1 {
        font-size: 1.6rem;
    }

    .mc-podcast-chapo {
        font-size: 1rem;
        line-height: 1.55;
    }

    .mc-podcast-player {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .mc-podcast-controls {
        justify-content: center;
    }

    .mc-podcast-volume {
        justify-content: center;
    }

    .mc-podcast-transcript {
        margin-top: 40px;
        padding-top: 28px;
    }

    .mc-podcast-transcript-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}
