/* ===== Programme TV — grille semaine modernisée ===== */
.ptv { margin-bottom: 40px; }
.ptv .breadcrumb { background: transparent; padding-left: 0; }

/* Barre titre + filtres */
.ptv-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    margin: 10px 0 18px;
}
.ptv-h2 { font-family: "Gotham Bold"; color: #2e2d30; margin: 0; font-size: 26px; }
.ptv-h2 small { color: #9a9a9a; font-size: 14px; font-family: inherit; }

.ptv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ptv-chip {
    border: 1px solid #e2e2e2; background: #fff; color: #444;
    border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
}
.ptv-chip:hover { border-color: #9ea211; color: #2e2d30; }
.ptv-chip.is-active { background: #9ea211; border-color: #9ea211; color: #fff; }
.ptv-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Accès rapide aux créneaux */
.ptv-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.ptv-jump-label { font-size: 13px; color: #9a9a9a; }
.ptv-jump-btn {
    border: 1px solid #d8dab0; background: #f6f7e8; color: #6f720c;
    border-radius: 999px; padding: 5px 16px; font-size: 13px; font-family: "Gotham Bold";
    text-decoration: none; transition: all .15s; cursor: pointer;
}
.ptv-jump-btn:hover, .ptv-jump-btn:focus { background: #9ea211; border-color: #9ea211; color: #fff; text-decoration: none; }

/* Mise en évidence brève du créneau ciblé */
.ptv-period.ptv-flash { animation: ptv-flash .9s ease; }
@keyframes ptv-flash { 0%,100% { background: transparent; } 30% { background: rgba(158,162,17,.18); } }

/* Zone scrollable (la semaine défile horizontalement sur mobile) */
.ptv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }

/* En-têtes des jours (collés en haut au défilement) */
.ptv-head, .ptv-row {
    display: grid; grid-template-columns: repeat(7, minmax(104px, 1fr));
    gap: 8px; min-width: 760px;
}
.ptv-head { position: sticky; top: 0; z-index: 5; margin-bottom: 8px; }
.ptv-dayhead {
    background: #2e2d30; color: #fff; text-align: center; border-radius: 8px;
    padding: 8px 4px; font-family: "Gotham Bold"; font-size: 13px; text-transform: uppercase;
}
.ptv-dayhead span { display: block; font-size: 11px; font-weight: normal; opacity: .75; }
.ptv-dayhead.is-today { background: #9ea211; }

/* Libellé de créneau */
.ptv-period {
    font-family: "Gotham Bold"; text-transform: uppercase; color: #9ea211;
    font-size: 14px; letter-spacing: .5px; margin: 18px 0 8px; padding-left: 2px;
    border-left: 4px solid #9ea211; padding-left: 10px;
}

/* Colonnes + cartes */
.ptv-row { align-items: start; margin-bottom: 4px; }
.ptv-col { display: flex; flex-direction: column; gap: 6px; }
.ptv-col.is-today { background: rgba(158,162,17,.07); border-radius: 8px; padding: 4px; }

.ptv-prog {
    text-align: left; width: 100%; background: #fff; border: 1px solid #ececec;
    border-left: 3px solid #ccc; border-radius: 7px; padding: 7px 9px; cursor: pointer;
    display: block; transition: box-shadow .15s, transform .1s; position: relative;
}
.ptv-prog:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-1px); }
.ptv-time { display: block; font-family: "Gotham Bold"; color: #9ea211; font-size: 13px; }
.ptv-title { display: block; color: #2e2d30; font-size: 12.5px; line-height: 1.25; margin-top: 2px; }
.ptv-vod {
    position: absolute; top: 6px; right: 6px; background: #e86256; color: #fff;
    font-size: 8px; font-weight: bold; padding: 1px 5px; border-radius: 4px; letter-spacing: .5px;
}
.ptv-empty { color: #ccc; text-align: center; padding: 6px 0; }

/* Filtrage par catégorie : on estompe ce qui ne correspond pas */
.ptv-prog.ptv-dim { opacity: .12; pointer-events: none; }

/* ===== Fiche détail (overlay) ===== */
.ptv-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1500;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ptv-overlay[hidden] { display: none; }
.ptv-card {
    background: #fff; border-radius: 14px; overflow: hidden; max-width: 460px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.4); position: relative;
    animation: ptv-pop .18s ease;
}
@keyframes ptv-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ptv-close {
    position: absolute; top: 8px; right: 10px; z-index: 2; border: none; background: rgba(0,0,0,.5);
    color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
}
.ptv-card-img { width: 100%; aspect-ratio: 16/9; background: #2e2d30 center/cover no-repeat; position: relative; }
.ptv-card-img.is-empty { aspect-ratio: auto; height: 14px; }
.ptv-card-day {
    position: absolute; left: 0; bottom: 0; background: rgba(46,45,48,.82); color: #fff;
    font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px;
    border-top-right-radius: 8px; font-family: "Gotham Bold";
}
.ptv-card-img.is-empty .ptv-card-day { display: none; }

/* Flèches précédent / suivant */
.ptv-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 38px; height: 38px; border: none; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff; font-size: 26px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background-color .15s, opacity .15s;
}
.ptv-nav:hover { background: #9ea211; }
.ptv-nav:disabled { opacity: .25; cursor: default; background: rgba(0,0,0,.55); }
.ptv-prev { left: 10px; }
.ptv-next { right: 10px; }
.ptv-card-body { padding: 16px 18px 20px; }
.ptv-card-cat { font-size: 11px; text-transform: uppercase; font-weight: bold; letter-spacing: .5px; margin-bottom: 4px; }
.ptv-card-title { font-family: "Gotham Bold"; color: #2e2d30; margin: 0 0 4px; font-size: 20px; }
.ptv-card-time { color: #9a9a9a; font-size: 13px; margin-bottom: 10px; }
.ptv-card-desc { color: #444; font-size: 14px; line-height: 1.5; max-height: 220px; overflow: auto; }
.ptv-card-vod { display: inline-block; margin-top: 14px; border-radius: 4px; transition: background-color .15s; }
.ptv-card-vod:hover, .ptv-card-vod:focus { background: #2e2d30; color: #fff; text-decoration: none; }

@media (max-width: 767px) {
    .ptv-filters { margin-left: 0; width: 100%; }
    .ptv-h2 { font-size: 22px; }
}
