/* IPTV Premium — page Comparateur (Comparateur.dc.html). Préfixe « cpr ».
 * Chargée par les shortcodes [iptv_cpr_*] (inc/pages/comparateur.php). */

/* ---------- Héros : fond dégradé, filet bas, marges propres à la maquette ---------- */
.iptv-cpr-hero { background: linear-gradient(180deg,#f3f2ef 0%,#fff 100%); }
.iptv-cpr-hero .iptv-page-hero { padding-bottom: 56px; }
.iptv-cpr-hero .iptv-fil { margin-bottom: 30px; }
.iptv-cpr-hero .iptv-page-hero__in { max-width: 700px; gap: 16px; }
.iptv-cpr-hero .iptv-page-lead { font-size: 18px; max-width: 560px; }

/* ---------- Profils « Je regarde surtout » + conseil ---------- */
.iptv-cpr-prof { padding-top: clamp(40px,4.9vw,64px); }
.iptv-cpr-prof__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.iptv-cpr-prof__k { font-size: 13px; font-weight: 700; color: var(--encre-2); }
.iptv-cpr-prof__pills { display: flex; flex-wrap: wrap; gap: 4px; background: #f3f2ef; border: 1px solid var(--bord-2); border-radius: 14px; padding: 5px; max-width: 100%; box-sizing: border-box; }
.iptv-cpr-prof__pill { font: 700 14px var(--f-texte); border: 0; border-radius: 10px; padding: 12px 18px; min-height: 44px; cursor: pointer; white-space: nowrap; background: transparent; color: var(--encre-3); transition: all .18s ease; }
.iptv-cpr-prof__pill:hover { color: var(--encre); }
.iptv-cpr-prof__pill[aria-pressed="true"] { background: #fff; color: var(--encre); box-shadow: 0 2px 8px rgba(13,18,48,0.10); }

.iptv-cpr-advice { background: #f3f2ef; border: 1px solid var(--bord-fort); border-radius: 20px; padding: 22px 26px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 36px; }
.iptv-cpr-advice__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-top: 9px; flex-shrink: 0; }
.iptv-cpr-advice__txt { flex: 1; min-width: 240px; font-size: 16px; line-height: 1.7; color: var(--encre-2); }
.iptv-cpr-advice__cta { font: 800 15px var(--f-titre); color: var(--nuit); background: #fff; border-radius: 12px; padding: 13px 22px; white-space: nowrap; box-shadow: var(--sh-anneau); transition: all .18s ease; }
.iptv-cpr-advice__cta:hover, .iptv-cpr-advice__cta:focus-visible { background: var(--lavande); color: var(--nuit); }

/* ---------- Tableau comparatif ---------- */
.iptv-cpr-tab { padding-bottom: 40px; }
.iptv-cpr-tab__hint { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 13px; color: var(--attenue); }
.iptv-cpr-tab__hint svg { flex-shrink: 0; }
.iptv-cpr-tab__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--bord-2); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-carte); }
/* 2 formules comparées (Standard, VIP ; Adulte gelée retirée du comparatif) : largeur minimale réduite en conséquence. */
.iptv-cpr-tab__t { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; text-align: left; }
.iptv-cpr-tab__t :is(th, td) { text-align: left; }

/* En-têtes (collants sous l'en-tête du site quand le tableau tient en largeur, voir plus bas) */
.iptv-cpr-tab__t thead th { position: sticky; top: 0; z-index: 3; padding: 26px 24px; vertical-align: bottom; font-weight: 400; background: #f3f2ef; border-bottom: 1px solid var(--bord-2); }
.iptv-cpr-tab__t thead th.is-pop { background: #fdf6e4; border-left: 1px solid var(--bord-lavande); border-right: 1px solid var(--bord-lavande); }
.iptv-cpr-tab__t thead th.iptv-cpr-tab__corner { left: 0; z-index: 4; vertical-align: middle; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--attenue); }
.iptv-cpr-tab__hd { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.iptv-cpr-tab__badge { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(120deg,#5B2EFF 0%,#5B2EFF 45%,#FF2E88 55%,#FF2E88 100%); border-radius: 999px; padding: 4px 10px; }
.iptv-cpr-tab__name { font-family: var(--f-titre); font-size: 20px; font-weight: 800; letter-spacing: -0.015em; color: var(--encre); }
.iptv-cpr-tab__from { font-size: 13px; font-weight: 500; color: var(--attenue); }
a.iptv-cpr-tab__from--ask { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }

/* Lignes */
.iptv-cpr-tab__t tbody :is(th, td) { padding: 20px 24px; vertical-align: top; border-bottom: 1px solid var(--filet-2); }
.iptv-cpr-tab__t tbody tr.is-alt { background: #faf9f7; }
.iptv-cpr-tab__t tbody th { position: sticky; left: 0; z-index: 1; font-weight: 400; background: #fff; }
.iptv-cpr-tab__t tbody tr.is-alt th { background: #faf9f7; }
.iptv-cpr-tab__lab { display: flex; flex-direction: column; gap: 3px; }
.iptv-cpr-tab__l { font-size: 15px; font-weight: 700; color: var(--encre-2); }
.iptv-cpr-tab__h { font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--attenue); }
.iptv-cpr-tab__t tbody td { font-size: 15px; line-height: 1.55; font-weight: 600; color: var(--encre); }
.iptv-cpr-tab__t tbody td.is-no { font-weight: 500; color: #4a5170; }
.iptv-cpr-tab__t tbody td.is-pop { background: rgba(255,46,136,0.07); border-left: 1px solid var(--bord-lavande); border-right: 1px solid var(--bord-lavande); }

/* Ligne « Choisir X » (le filet du dessus est celui de la dernière ligne, comme en bordures fusionnées) */
.iptv-cpr-tab__t tbody tr.iptv-cpr-tab__acts :is(th, td) { padding: 26px 24px; border-bottom: 0; background: #fff; }
.iptv-cpr-tab__cta { display: inline-block; font: 800 15px var(--f-titre); color: var(--violet); border: 1px solid var(--bord-fort); border-radius: 12px; padding: 13px 20px; white-space: nowrap; transition: all .18s ease; }
.iptv-cpr-tab__cta:hover, .iptv-cpr-tab__cta:focus-visible { background: var(--lavande); color: var(--violet-hover); }
.iptv-cpr-tab__cta--pop { color: var(--nuit); background: var(--spectre); border: 0; box-shadow: 0 10px 26px rgba(255,138,31,0.38); }
.iptv-cpr-tab__cta--pop:hover, .iptv-cpr-tab__cta--pop:focus-visible { background: var(--spectre); color: var(--nuit); box-shadow: 0 14px 30px rgba(255,138,31,0.45); }

.iptv-cpr-tab__note { font-size: 14px; line-height: 1.6; color: var(--attenue); margin: 18px 4px 0; }

/* Ombre de la 1re colonne quand le tableau a défilé (classe posée par modules/comparateur.js) */
.iptv-cpr-tab__scroll.is-scrolled :is(thead th.iptv-cpr-tab__corner, tbody th) { box-shadow: 10px 0 14px -10px rgba(13,18,48,0.22); }

/* Le tableau tient en largeur : pas de conteneur défilant, donc les en-têtes collent sous l'en-tête du site
   (un conteneur overflow:auto les bornerait à lui-même). Retour au défilement si le contenu déborde (.is-scroll, JS). */
@supports (overflow: clip) {
	@media (min-width: 980px) {
		.iptv-cpr-tab__scroll:not(.is-scroll) { overflow: clip; }
		.iptv-cpr-tab__scroll:not(.is-scroll) .iptv-cpr-tab__t thead th { top: 84px; }
		.admin-bar .iptv-cpr-tab__scroll:not(.is-scroll) .iptv-cpr-tab__t thead th { top: 116px; }
	}
}

/* ---------- En résumé ---------- */
.iptv-cpr-sum { padding-block: clamp(40px,4.9vw,64px) clamp(64px,8vw,104px); }
.iptv-cpr-sum__head { display: flex; flex-direction: column; gap: 14px; max-width: 620px; margin-bottom: 32px; }
.iptv-cpr-sum__card { background: #fff; border: 1px solid var(--bord-2); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; color: var(--encre); transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; }
.iptv-cpr-sum__card:hover, .iptv-cpr-sum__card:focus-visible { transform: translateY(-5px); border-color: var(--bord-actif); box-shadow: 0 24px 56px rgba(13,18,48,0.09); color: var(--encre); }
.iptv-cpr-sum__n { font-family: var(--f-titre); font-size: 20px; font-weight: 800; }
.iptv-cpr-sum__t { font-size: 15px; line-height: 1.65; color: var(--encre-3); }
.iptv-cpr-sum__go { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--violet); }

/* ---------- « Toujours hésitant ? » : l'espace au-dessus vient déjà de la section précédente ---------- */
.iptv-ask.iptv-cpr-ask { margin-top: 0; }

/* ---------- Petits écrans : 1re colonne resserrée pour laisser voir les formules en défilant ---------- */
@media (max-width: 719px) {
	.iptv-cpr-tab__t thead th.iptv-cpr-tab__corner { font-size: 11px; letter-spacing: .06em; }
	.iptv-cpr-tab__t :is(thead th.iptv-cpr-tab__corner, tbody th) { width: 132px; padding-inline: 14px; }
	.iptv-cpr-tab__t tbody tr.iptv-cpr-tab__acts th { padding-inline: 14px; }
	.iptv-cpr-tab__l { font-size: 14px; }
	.iptv-cpr-tab__h { font-size: 12px; }
}
@media (max-width: 519px) {
	.iptv-cpr-prof__row { gap: 12px; }
	.iptv-cpr-prof__pill { padding: 12px 14px; }
	.iptv-cpr-advice { padding: 20px; }
	.iptv-cpr-advice__txt { min-width: 0; flex-basis: calc(100% - 22px); }
	.iptv-cpr-sum__card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.iptv-cpr-sum__card:hover, .iptv-cpr-sum__card:focus-visible { transform: none; }
}
