/* =============================================================
   L'entre-sons — design system
   ============================================================= */
:root {
    --es-bg: #faf6f0;
    --es-surface: #ffffff;
    --es-ink: #211a15;
    --es-muted: #7a6f64;
    --es-accent: #2a2a28;
    --es-accent-dark: #0d0d0c;
    --es-accent-tint: #ece9e4;
    --es-border: #e8ddd0;
    --es-radius-lg: 20px;
    --es-radius: 14px;
    --es-radius-sm: 8px;
    --es-shadow: 0 10px 30px -12px rgba(33, 26, 21, .18);
    --es-maxw: 1520px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    /* Teintes de marque assombries pour tenir 4.5:1 sur fond blanc */
    --es-brand-spotify: #157F3C;
    --es-brand-apple: #8332A8;
    --es-brand-youtube: #C4302B;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--es-ink);
    background: var(--es-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    padding-top: 72px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
}

a { color: var(--es-accent); }
a:hover { color: var(--es-accent-dark); }

img { max-width: 100%; height: auto; }

.es-skip {
    position: absolute;
    left: -9999px;
}
.es-skip:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    background: var(--es-ink);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--es-radius-sm);
    z-index: 1001;
    text-decoration: none;
}

/* Texte réservé aux lecteurs d'écran (ex. « nouvelle fenêtre », RGAA 13.2) */
.es-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.es-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    background: var(--es-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background .15s ease, transform .15s ease;
}
.es-btn:hover { background: var(--es-accent-dark); color: #fff; transform: translateY(-1px); }
.es-btn--ghost {
    background: transparent;
    color: var(--es-ink);
    border: 1.5px solid var(--es-border);
}
.es-btn--ghost:hover { border-color: var(--es-accent); color: var(--es-accent); background: transparent; }

/* --- Header (fixed) --- */
.es-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 72px;
    background: #fff;
    transition: height .25s ease, background .25s ease, box-shadow .25s ease;
}
.es-header.is-scrolled {
    height: 56px;
    background: rgba(255,255,255,.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.es-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.es-logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--es-ink);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}
.es-logo__mark {
    width: 2.8rem;
    height: auto;
    display: block;
    transition: width .25s ease;
}
.es-logo__name { transition: font-size .25s ease; }
.es-header.is-scrolled .es-logo__mark { width: 2.2rem; }
.es-header.is-scrolled .es-logo__name { font-size: 1.2rem; }

/* Nav panel (desktop: inline flex; mobile: slide-in panel) */
.es-nav-panel {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex: 1;
    justify-content: flex-end;
}

/* Nav links */
.es-nav > ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.es-nav li { position: relative; }
.es-nav a {
    font-size: .9rem;
    color: #444;
    text-decoration: none;
    font-weight: 400;
    transition: color .15s ease;
    white-space: nowrap;
}
.es-nav a:hover { color: #111; }
.es-nav a.is-active {
    color: #111;
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px;
}
.es-nav a:focus-visible {
    outline: 2px solid var(--es-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Chevron on parent items */
.es-nav li.has-children > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: .35rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    vertical-align: middle;
    opacity: .6;
}

/* Dropdown submenu */
.es-nav__sub {
    display: none;
    list-style: none;
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    flex-direction: column;
    gap: 0;
    min-width: 13rem;
    padding: .5rem;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,.12);
    z-index: 20;
}
.es-nav li.has-children.is-open > .es-nav__sub,
.es-nav li.has-children:focus-within > .es-nav__sub { display: flex; }
.es-nav__sub li { width: 100%; }
.es-nav__sub a {
    display: block;
    padding: .45rem .75rem;
    border-radius: 5px;
    font-size: .875rem;
    color: #333;
    white-space: nowrap;
}
.es-nav__sub a:hover { background: rgba(0,0,0,.04); color: #000; }

/* Mobile-only nav search (hidden on desktop) */
.es-nav-search { display: none; }

/* Actions: search icon + burger */
.es-header__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

/* Desktop search */
.es-search-wrap {
    display: flex;
    align-items: center;
    position: relative;
}
.es-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    border-radius: 50%;
    transition: color .15s ease, background .15s ease;
    flex-shrink: 0;
}
.es-search-btn:hover { color: #111; background: rgba(0,0,0,.06); }
.es-search-btn:focus-visible {
    outline: 2px solid var(--es-accent);
    outline-offset: 2px;
}
.es-search-field-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0;
    visibility: hidden;
    transition: width .25s ease;
}
.es-search-wrap.is-open .es-search-field-wrap {
    width: 280px;
    visibility: visible;
}
.es-search-field-wrap form {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid rgba(0,0,0,.2);
    width: 100%;
    padding-bottom: 2px;
    flex-shrink: 0;
}
.es-search-field-wrap input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--es-ink);
    outline: none;
    min-width: 0;
    padding: .15rem .25rem;
}
.es-search-field-wrap input[type="search"]::-webkit-search-cancel-button { display: none; }
.es-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    transition: color .15s ease;
}
.es-search-close:hover { color: #111; }
.es-search-close:focus-visible { outline: 2px solid var(--es-accent); outline-offset: 2px; }

/* Burger */
.es-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.es-nav-toggle span {
    display: block;
    width: 1.4rem;
    height: 2px;
    background: var(--es-ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.es-nav-toggle:focus-visible {
    outline: 2px solid var(--es-accent);
    outline-offset: 2px;
    border-radius: 4px;
}
.es-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.es-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.es-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Skip link anchor compensation */
#contenu { scroll-margin-top: 80px; }

/* --- ke_search (recherche & résultats) --- */
.kesearch_searchbox {
    border: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
.kesearchbox { flex: 1 1 16rem; }
.kesearchbox input[type="search"] {
    width: 100%;
    padding: .75rem 1.1rem;
    border: 1.5px solid var(--es-border);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--es-surface);
}
.kesearch_searchbox input[type="submit"] {
    padding: .75rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: var(--es-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.kesearch_searchbox input[type="submit"]:hover { background: var(--es-accent-dark); }
.kesearch_searchbox .resetbutt a {
    text-decoration: none;
    /* var(--es-muted) tombait à 4.49:1 sur ce fond clair (RGAA exige 4.5:1 minimum) */
    color: #5c5249;
    font-weight: 600;
}
#kesearch_filters {
    background: var(--es-surface);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
#kesearch_num_results { color: var(--es-muted); margin-bottom: 1.25rem; }
#kesearch_results { display: grid; gap: 1.25rem; }
.result-list-item {
    background: var(--es-surface);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    padding: 1.25rem 1.5rem;
    display: block;
}
.result-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: .3rem;
}
.result-title a { text-decoration: none; color: var(--es-ink); }
.result-title a:hover { color: var(--es-accent); }
.add-info { color: var(--es-muted); font-size: .85rem; margin-bottom: .4rem; }
.result-teaser { color: var(--es-ink); }
.kesearch_pagebrowser ul.pagination {
    list-style: none; display: flex; gap: .4rem; padding: 0; margin: 2rem 0 0;
}
.kesearch_pagebrowser .page-link {
    display: inline-flex; min-width: 2.2rem; justify-content: center;
    padding: .4rem .6rem; border-radius: var(--es-radius-sm);
    text-decoration: none; color: var(--es-ink); border: 1px solid var(--es-border);
}
.kesearch_pagebrowser .page-item.active .page-link {
    background: var(--es-accent); color: #fff; border-color: var(--es-accent);
}
.pages_total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.result_txt { color: var(--es-muted); font-size: .85rem; }

/* Pagination News (widget Fluid core, markup f3-widget-paginator) */
.f3-widget-paginator {
    list-style: none; display: flex; gap: .4rem; padding: 0; margin: 2rem 0 0;
}
.f3-widget-paginator li {
    display: inline-flex; min-width: 2.2rem; justify-content: center;
    padding: .4rem .6rem; border-radius: var(--es-radius-sm);
    border: 1px solid var(--es-border); color: var(--es-ink);
}
.f3-widget-paginator li.current { background: var(--es-accent); color: #fff; border-color: var(--es-accent); }
.f3-widget-paginator a { text-decoration: none; color: inherit; }
.f3-widget-paginator a:hover { color: var(--es-accent); }

/* Lecteur SoundCloud intégré (fiche épisode) */
.es-audio-embed { margin: 1.5rem 0; border-radius: var(--es-radius); overflow: hidden; }
.es-audio-embed iframe { display: block; border-radius: var(--es-radius); }

/* Déclencheur du lecteur persistant (fiche épisode, fichier auto-hébergé) */
.es-episode-audio { margin: 1.5rem 0; }
.es-episode-audio__play {
    display: inline-flex; align-items: center; gap: .6rem;
    background: var(--es-accent); color: #fff; border: none;
    padding: .75rem 1.5rem; border-radius: 999px;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.es-episode-audio__play:hover { background: var(--es-accent-dark); transform: translateY(-1px); }
.es-episode-credits, .es-episode-personnes { margin: 1.5rem 0; }
.es-episode-credits h2, .es-episode-personnes h2 { font-size: 1.1rem; }
.es-episode-personnes ul { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.es-episode-personnes li {
    background: var(--es-accent-tint); color: var(--es-accent-dark);
    padding: .3rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
}

/* --- Layout --- */
.es-main { max-width: var(--es-maxw); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* Éléments de contenu (Bootstrap Package : header, text, textpic, image, bullets, quote, table…) */
.es-main .frame { margin: 0 0 5rem; }
.es-main .frame-inner {
    max-width: 100%;
    margin: 0 0;
}
/* Les plugins News (frame-type-news_*) ont besoin de toute la largeur du conteneur.
   Le sélecteur d'attribut couvre newslist, newsliststicky, newssingleselect… */
.es-main [class*="frame-type-news"] .frame-inner,
.es-main .frame-type-list .frame-inner { max-width: 100%; }

/* Séparateur visuel + respiration au-dessus de chaque plugin News */
.es-main [class*="frame-type-news"] {
    padding-top: 2rem;
    border-top: 1px solid var(--es-border);
}
.es-main [class*="frame-type-news"] .frame-header {
    margin-bottom: 1.75rem;
}
.es-main .frame-header {
    margin-bottom: 1rem;
}
.es-main .frame-header .element-header {
    font-size: 1.8rem;
    margin: 0;
}
.es-main .frame-inner p {
    color: var(--es-ink);
    margin: 0 0 1.1rem;
}
.es-main .frame-inner p:last-child { margin-bottom: 0; }
.es-main .frame-inner a { text-decoration: underline; }
.es-main .frame-inner ul,
.es-main .frame-inner ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}
.es-main .frame-inner li { margin-bottom: .4rem; }
.es-main .frame-inner blockquote {
    margin: 1.5rem 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--es-accent);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
}
.es-main .frame-inner table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.es-main .frame-inner th,
.es-main .frame-inner td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--es-border);
    text-align: left;
}

/* Images : pleine largeur de la colonne de lecture, coins arrondis */
.es-main .frame-type-image .frame-inner,
.es-main .frame-type-textmedia .frame-inner,
.es-main .frame-type-textpic .frame-inner {
    max-width: 64rem;
}
.es-main .gallery-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1.1rem; }
.es-main figure.image {
    margin: 0;
    flex: 1 1 auto;
}
.es-main figure.image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--es-radius);
}
.es-main figure.image figcaption {
    margin-top: .6rem;
    color: var(--es-muted);
    font-size: .85rem;
}

/* --- Footer --- */
.es-footer {
    background: var(--es-ink);
    color: #f3ece4;
    margin-top: 3rem;
}
.es-footer__inner {
    max-width: var(--es-maxw);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}
.es-footer h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: .9rem;
}
.es-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.es-footer a { color: #d9cdc1; text-decoration: none; }
.es-footer a:hover { color: #fff; }
.es-tel::before { content: attr(data-tel); }
.es-footer__bottom {
    max-width: var(--es-maxw);
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #a89c8f;
    font-size: .85rem;
}
.es-after-footer {
    background: #181410;
    color: #8a7e72;
    text-align: center;
    font-size: .78rem;
    padding: .75rem 1.5rem;
}
.es-after-footer a { color: #d9cdc1; text-decoration: underline; }
.es-after-footer a:hover { color: #fff; }

/* --- Hero (accueil) --- */
.es-hero {
    background: linear-gradient(180deg, var(--es-accent-tint), var(--es-bg) 70%);
    border-bottom: 1px solid var(--es-border);
}
.es-hero__inner {
    max-width: var(--es-maxw);
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
}
.es-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin: .5rem 0 1rem;
}
.es-hero p {
    max-width: 38rem;
    margin: 0 auto 2rem;
    color: var(--es-muted);
    font-size: 1.15rem;
}
/* Sélecteur en (0,2,1) : la règle .es-hero p ci-dessus est plus spécifique
   qu'une simple classe et écrasait taille + couleur de l'eyebrow. */
.es-hero p.es-hero__eyebrow {
    max-width: none;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--es-accent);
}
.es-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

/* Plateformes d'écoute : pastilles claires à icône de marque, pour ne pas
   entrer en concurrence avec le bouton plein du CTA principal. */
.es-hero p.es-hero__listen {
    max-width: none;
    margin: 0 0 .9rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5c5249; /* 4.5:1 sur le dégradé clair du hero */
}

.es-platforms {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
}

.es-platform {
    --brand: var(--es-accent);
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1.15rem;
    border-radius: 999px;
    background: var(--es-surface);
    border: 1.5px solid var(--es-border);
    color: var(--es-ink);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.es-platform:hover,
.es-platform:focus-visible {
    color: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -10px rgba(33, 26, 21, .45);
}
.es-platform:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.es-platform__icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    color: var(--brand);
}

.es-platform--spotify { --brand: var(--es-brand-spotify); }
.es-platform--apple   { --brand: var(--es-brand-apple); }
.es-platform--youtube { --brand: var(--es-brand-youtube); }

/* --- Episode cards (accueil + News) --- */
.es-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.es-section-title h2 { margin: 0; font-size: 1.8rem; }
.es-section-title a { font-weight: 600; text-decoration: none; }

.es-episodes-grid,
.news-list-view {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) {
    .es-episodes-grid, .news-list-view { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1300px) {
    .es-episodes-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Cartes plus larges sur les pages de listing (Interviews, Histoires…) :
   on reste à 2 colonnes plus loin que sur l'accueil, qui n'affiche que 3
   épisodes fixes et profite donc d'une 3e colonne plus tôt. */
@media (min-width: 1700px) {
    .news-list-view { grid-template-columns: repeat(3, 1fr); }
}
/* La pagination est un enfant direct de .news-list-view au même niveau que les
   cartes : sans ça elle devient une cellule de grille étirée en hauteur. */
.news-list-view > .f3-widget-paginator {
    grid-column: 1 / -1;
}

.es-episode-card,
.news-list-view .article {
    background: var(--es-surface);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-lg);
    overflow: hidden;
    box-shadow: var(--es-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.news-list-view .article:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -14px rgba(33, 26, 21, .26);
}

/* Image : technique en position absolue, fiable quelle que soit la cascade
   flex/grid environnante (un simple width:100% sur l'img ne suffisait pas
   à le faire remplir la carte dans tous les cas). */
.es-episode-card__media,
.news-list-view .news-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 68.75%; /* ratio 16:11, technique universelle (remplace aspect-ratio) */
    margin: 0;
    background: var(--es-accent-tint);
    overflow: hidden;
    order: -1; /* l'image remonte avant le titre, quel que soit son ordre dans le HTML */
    flex-shrink: 0;
}
.es-episode-card__media a,
.news-list-view .news-img-wrap a {
    position: absolute;
    inset: 0;
    display: block;
}
.es-episode-card__media img,
.news-list-view .news-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.news-list-view .article:hover .news-img-wrap img { transform: scale(1.04); }

.es-episode-card__body,
.news-list-view .article > .header,
.news-list-view .article > .teaser-text,
.news-list-view .article > .footer {
    padding: 1.5rem 1.75rem;
}
.news-list-view .article > .header { padding-bottom: 0; padding-top: 1.75rem; }
.news-list-view .article > .teaser-text { padding-top: .6rem; padding-bottom: .6rem; }
.news-list-view .article > .footer {
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--es-border);
}

.es-episode-card h3,
.news-list-view .article h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0 0 .6rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.es-episode-card h3 a,
.news-list-view .article h3 a {
    color: var(--es-ink);
    text-decoration: none;
}
.es-episode-card h3 a:hover,
.news-list-view .article h3 a:hover { color: var(--es-accent); }

.es-episode-card__meta,
.news-list-view .footer {
    color: var(--es-muted);
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.news-list-view .news-list-date { color: var(--es-muted); }
.news-list-view .news-list-category {
    background: var(--es-accent-tint);
    color: var(--es-accent-dark);
    font-weight: 600;
    font-size: .78rem;
    padding: .25rem .7rem;
    border-radius: 999px;
}

.es-episode-card__teaser,
.news-list-view .teaser-text {
    color: var(--es-muted);
    flex-grow: 1;
    line-height: 1.55;
}
.news-list-view .teaser-text > div {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.news-list-view .teaser-text .more {
    display: inline-block;
    margin-top: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.no-news-found { color: var(--es-muted); }

/* Pagination */
.pagination {
    list-style: none;
    display: flex;
    gap: .4rem;
    padding: 0;
    margin: 2rem 0 0;
}
.pagination .page-link {
    display: inline-flex;
    min-width: 2.2rem;
    justify-content: center;
    padding: .4rem .6rem;
    border-radius: var(--es-radius-sm);
    text-decoration: none;
    color: var(--es-ink);
    border: 1px solid var(--es-border);
}
.pagination .page-item.active .page-link {
    background: var(--es-accent);
    color: #fff;
    border-color: var(--es-accent);
}
.pagination .page-link:hover { border-color: var(--es-accent); color: var(--es-accent); }

/* News detail */
.news-single .article { max-width: 100%; margin: 0; }
.news-single .header h1 { font-size: 2.2rem; }
.news-single .footer { color: var(--es-muted); margin-bottom: 1.5rem; }
.news-single .teaser-text { font-size: 1.15rem; color: var(--es-ink); margin-bottom: 1.5rem; }
.news-single .news-text-wrap p { margin: 0 0 1.1rem; }
.news-single .news-text-wrap figure {
    margin: 1.5rem 0;
}
.news-single .news-text-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: var(--es-radius);
    display: block;
}
.news-single .news-text-wrap a { text-decoration: underline; }
.news-single .audio-wrapper,
.news-single .video-wrapper {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: var(--es-radius);
}
.news-single .audio-wrapper audio { width: 100%; }
.news-single .news-backlink-wrap { margin-top: 2rem; }
.news-single .news-backlink-wrap a { text-decoration: none; font-weight: 600; }
.news-single .pager {
    list-style: none; padding: 0; display: flex; justify-content: space-between;
    margin-bottom: 2rem; gap: 1rem;
}
.news-single .pager a { text-decoration: none; font-weight: 600; }
.news-single .news-related-wrap ul { list-style: none; padding: 0; }
.news-single .news-related-wrap li { padding: .4rem 0; border-bottom: 1px solid var(--es-border); }
.news-single .news-related-wrap a { text-decoration: none; }

/* --- Annuaire (Les voix) --- */
.es-annuaire h1 { font-size: 2.2rem; margin-bottom: 1.75rem; }
.es-annuaire__grid {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.75rem;
}
.es-personne-card a { text-decoration: none; color: inherit; display: block; }
.es-personne-card img,
.es-personne-card__placeholder {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--es-radius); display: block;
    background: var(--es-accent-tint);
}
.es-personne-card h2 { font-size: 1.1rem; margin: .8rem 0 .1rem; }
.es-personne-card__role { color: var(--es-muted); margin: 0; font-size: .9rem; }

/* Fiche personne */
.es-personne { max-width: 42rem; margin: 0 auto; }
.es-personne__header { text-align: center; margin-bottom: 2rem; }
.es-personne__header img {
    width: 160px; aspect-ratio: 1; object-fit: cover;
    border-radius: 50%; margin: 0 auto 1.25rem; display: block;
}
.es-personne__header h1 { font-size: 2rem; margin-bottom: .25rem; }
.es-personne__role { color: var(--es-muted); font-weight: 600; margin: 0; }
.es-personne__citation {
    border-left: 3px solid var(--es-accent);
    padding-left: 1.25rem; margin: 1.5rem 0;
    font-family: var(--font-display);
    font-style: italic; font-size: 1.2rem; color: var(--es-ink);
}
.es-personne__episodes { margin-top: 2.5rem; }
.es-episode-list { list-style: none; padding: 0; }
.es-episode-item { padding: .6rem 0; border-bottom: 1px solid var(--es-border); }
.es-episode-item a { text-decoration: none; font-weight: 600; }
.es-episode-item__duree { color: var(--es-muted); }

/* --- Lecteur persistant ---
   position: sticky (et non fixed) dans .es-scroll-area (cf. Layouts/Default.html) :
   le lecteur flotte au-dessus du contenu mais s'arrête juste avant le footer au lieu
   de le recouvrir, puisqu'il ne peut pas sortir de son conteneur. --- */
.es-player[hidden] { display: none; }
.es-player {
    position: sticky; bottom: 1.25rem;
    width: calc(100% - 2.5rem);
    max-width: var(--es-maxw); margin: 0 auto;
    display: flex; align-items: center; gap: 1rem;
    background: var(--es-ink); color: #fff;
    padding: .75rem 1.25rem; border-radius: 999px; z-index: 50;
    box-shadow: var(--es-shadow);
}
.es-player__toggle {
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--es-accent); border: none; color: #fff; cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.es-player__toggle::before {
    content: '';
    width: 0; height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}
.es-player.is-playing .es-player__toggle::before {
    width: 9px; height: 11px;
    border-width: 0;
    border-style: none;
    background:
        linear-gradient(to right, #fff 3px, transparent 3px, transparent 6px, #fff 6px);
    margin-left: 0;
}
.es-player__title { font-weight: 600; }
.es-player__logo {
    position: absolute;
    left: 50%; top: 50%;
    width: 2.1rem; height: 2.1rem;
    transform: translate(-50%, -50%) scale(1);
    transition: transform .08s ease-out;
    pointer-events: none;
    opacity: .9;
}
.es-player__logo img { width: 100%; height: 100%; display: block; }
.es-player audio { margin-left: auto; max-width: 16rem; }

/* --- Responsive: mobile nav (< 900px) --- */
@media (max-width: 900px) {
    .es-nav-toggle { display: flex; }
    .es-search-wrap { display: none; }

    .es-nav-panel {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(320px, 90vw);
        background: #fff;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 4.5rem 1.75rem 2rem;
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 24px rgba(0,0,0,.12);
    }
    .es-nav-panel.is-open { transform: translateX(0); }

    body.nav-is-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.35);
        z-index: 998;
    }

    .es-nav { width: 100%; }
    .es-nav > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .es-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,.07);
    }
    .es-nav > ul > li:first-child { border-top: 1px solid rgba(0,0,0,.07); }
    .es-nav a { font-size: 1.125rem; padding: .8rem 0; display: block; white-space: normal; }
    .es-nav a.is-active { border-bottom: none; padding-bottom: .8rem; font-weight: 600; color: #111; }

    .es-nav__sub {
        display: flex;
        position: static;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 .5rem .75rem;
        min-width: 0;
        background: transparent;
    }
    .es-nav__sub a { font-size: 1rem; padding: .4rem 0; color: #555; border-radius: 0; }
    .es-nav__sub a:hover { background: transparent; color: #111; }

    .es-nav-search {
        display: flex;
        align-items: center;
        width: 100%;
        margin-top: 1.5rem;
        border: 1.5px solid rgba(0,0,0,.12);
        border-radius: 999px;
        padding: .4rem .4rem .4rem 1rem;
        gap: .5rem;
        background: #f7f7f7;
        flex-shrink: 0;
    }
    .es-nav-search input[type="search"] {
        flex: 1;
        border: none;
        background: transparent;
        font-family: var(--font-body);
        font-size: 1rem;
        color: var(--es-ink);
        outline: none;
        min-width: 0;
    }
    .es-nav-search button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.1rem;
        height: 2.1rem;
        border: none;
        background: var(--es-accent);
        color: #fff;
        border-radius: 50%;
        cursor: pointer;
        flex-shrink: 0;
    }
    .es-nav-search button:hover { background: var(--es-accent-dark); }
}

/* --- Responsive: player (< 640px) --- */
@media (max-width: 640px) {
    .es-player { width: calc(100% - 1.5rem); bottom: .75rem; }
    .es-player audio { max-width: 100%; }
    .es-player__logo { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Fil d'ariane
   ═══════════════════════════════════════════════════════════════════ */

.es-breadcrumb {
    margin-bottom: 1.75rem;
}

.es-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .8125rem;
    color: var(--es-muted);
}

.es-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: .1rem;
}

.es-breadcrumb__link {
    color: var(--es-muted);
    text-decoration: none;
    transition: color .15s ease;
}
.es-breadcrumb__link:hover { color: var(--es-ink); }

.es-breadcrumb__sep {
    color: var(--es-border);
    margin: 0 .35rem;
    font-size: .75rem;
}

.es-breadcrumb__current {
    color: var(--es-ink);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   Formulaire de contact (EXT:form)
   ═══════════════════════════════════════════════════════════════════ */

#contact {
    max-width: 44rem;
}

/* Champ individuel */
.es-field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-bottom: 1.5rem;
}

.es-field label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--es-ink);
    letter-spacing: .01em;
}

.es-field__required {
    color: #c0392b;
    margin-left: .2em;
}

/* Inputs et textarea */
.es-input,
.es-textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    background: var(--es-surface);
    color: var(--es-ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
}

.es-input:focus,
.es-textarea:focus {
    outline: none;
    border-color: var(--es-accent);
    box-shadow: 0 0 0 3px rgba(42, 42, 40, .1);
}

.es-input::placeholder,
.es-textarea::placeholder {
    color: var(--es-muted);
}

.es-textarea {
    resize: vertical;
    min-height: 10rem;
}

/* État d'erreur */
.es-field--invalid .es-input,
.es-field--invalid .es-textarea {
    border-color: #c0392b;
}

.es-field__error {
    font-size: .825rem;
    color: #c0392b;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

/* Bouton d'envoi */
.es-form__actions {
    margin-top: 2rem;
}

.es-btn-contact {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 2rem;
    background: var(--es-ink);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}

.es-btn-contact:hover { background: var(--es-accent-dark); }
.es-btn-contact:active { transform: scale(.98); }

/* Message de confirmation */
.es-form-confirm {
    padding: 1.25rem 1.5rem;
    background: #f0faf4;
    border-left: 3px solid #27ae60;
    border-radius: var(--es-radius-sm);
    color: var(--es-ink);
    line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
    .es-input,
    .es-textarea {
        background: #1c1916;
        border-color: rgba(255,255,255,.15);
        color: #e8ddd0;
    }
    .es-input:focus, .es-textarea:focus {
        border-color: #d9cdc1;
        box-shadow: 0 0 0 3px rgba(217,205,193,.12);
    }
    .es-input::placeholder, .es-textarea::placeholder { color: #7a6f64; }
    .es-form-confirm { background: #0f2a1a; border-color: #27ae60; color: #d9cdc1; }
}

/* Bouton retour en haut */
.es-back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: none;
    background: var(--es-accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px -4px rgba(33,26,21,.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, background .15s ease;
    pointer-events: none;
}
.es-back-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.es-back-top:hover { background: var(--es-accent-dark); }
.es-back-top:focus-visible { outline: 2px solid var(--es-accent); outline-offset: 3px; }

/* Page d'erreur 404 */
.es-error-page {
    max-width: 36rem;
    margin: 5rem auto;
    padding: 0 1.5rem;
    text-align: center;
}
.es-error-page__code {
    font-size: clamp(5rem, 20vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: var(--es-border);
    margin: 0 0 .5rem;
    font-family: 'Fraunces', serif;
}
.es-error-page__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin: 0 0 1rem;
}
.es-error-page__msg {
    color: var(--es-muted);
    margin: 0 0 2.5rem;
    line-height: 1.7;
}
.es-error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════
   Mouvement réduit (RGAA / prefers-reduced-motion)
   ═══════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .es-platform,
    .es-btn,
    .es-btn-contact,
    .es-episode-audio__play,
    .es-back-top,
    .news-list-view .article,
    .news-list-view .news-img-wrap img {
        transition: none;
    }
    .es-platform:hover,
    .es-platform:focus-visible,
    .es-btn:hover,
    .es-episode-audio__play:hover,
    .news-list-view .article:hover {
        transform: none;
    }
    .news-list-view .article:hover .news-img-wrap img { transform: none; }
}