/* IPTV Premium — page « Codes Downloader » (/code-downloader/). Préfixe « cdl ».
 * Chargée par les shortcodes [iptv_cdl_*] (inc/pages/code-downloader.php).
 * Réutilise : héros de page, .iptv-step + .iptv-inst-apps__shot (étapes illustrées des guides), .iptv-faq--lines,
 * .iptv-trialbox, .iptv-apl. Les règles sur p et h3 portent l'élément (p.x, h3.x) : « :root :where(p) » de theme.json,
 * imprimée après cette feuille, a la spécificité d'une classe seule. */

/* ---------- Héros ---------- */
.iptv-cdl-hero .iptv-page-hero__in { max-width: 820px; }
.iptv-cdl-hero__cta { --gap: 12px; margin-top: 6px; }

/* ---------- Sections : pile verticale (les marges du flux WordPress sont remises à 0 par style.css) ---------- */
.iptv-cdl-sec { display: flex; flex-direction: column; gap: 28px; }
.iptv-cdl-head { max-width: 760px; }
.iptv-cdl-head p.iptv-lead { max-width: 720px; }
.iptv-cdl-sec :is(p, li) a:not([class]), .iptv-cdl-bref a, .iptv-cdl-faq details a, .iptv-cdl-faq .iptv-lead a {
	font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
/* Codes et adresses : police à chasse fixe, coupure autorisée (aucun débordement à 390 px). */
[class*="iptv-cdl-"] code {
	font: 700 .92em/1.4 ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; color: var(--encre);
	background: var(--lavande); border: 1px solid var(--bord-lavande); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere;
}

/* ---------- En bref ---------- */
.iptv-cdl-bref-wrap { padding-top: clamp(48px,6vw,80px); }
.iptv-cdl-bref { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px; align-items: start; background: #fff; border: 1px solid var(--bord); border-left: 4px solid var(--violet); border-radius: 22px; padding: clamp(22px,3vw,30px); }
.iptv-cdl-bref p.iptv-cdl-bref__k { margin: 0; padding-top: 4px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase; color: var(--violet); white-space: nowrap; }
.iptv-cdl-bref p:not(.iptv-cdl-bref__k) { margin: 0; font-size: clamp(17px,1.6vw,19px); line-height: 1.65; color: var(--encre); }

/* ---------- Tableau des codes ---------- */
.iptv-cdl-t__box { background: #fff; border: 1px solid var(--bord-2); border-radius: var(--r-card); box-shadow: var(--sh-carte); overflow: hidden; }
.iptv-cdl-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.iptv-cdl-t :is(th, td) { text-align: left; }
.iptv-cdl-t thead th { padding: 16px 20px; background: #f3f2ef; border-bottom: 1px solid var(--bord-2); font: 700 12px/1.3 var(--f-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--attenue); }
.iptv-cdl-t tbody :is(th, td) { padding: 18px 20px; border-bottom: 1px solid var(--filet-2); vertical-align: top; line-height: 1.55; color: var(--encre-3); }
.iptv-cdl-t tbody tr:last-child > * { border-bottom: 0; }
.iptv-cdl-t tbody th { width: 20%; font-weight: 400; }
.iptv-cdl-t tbody td:nth-child(2) { width: 34%; }
.iptv-cdl-t__pl { display: block; font: 800 17px/1.25 var(--f-titre); letter-spacing: -0.01em; color: var(--encre); }
.iptv-cdl-t__pub { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--attenue); }
.iptv-cdl-t__k { display: block; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.iptv-cdl-t code.iptv-cdl-t__code { display: inline-block; max-width: 100%; box-sizing: border-box; margin: 8px 0 6px; padding: 4px 10px; font-size: 15px; }
.iptv-cdl-t code.iptv-cdl-t__code--big { padding: 4px 12px; font-size: 26px; letter-spacing: .08em; }
.iptv-cdl-t__how { display: block; font-size: 13.5px; line-height: 1.45; color: var(--attenue); }
.iptv-cdl-t tbody a { font-weight: 700; color: var(--violet); }
.iptv-cdl-t tbody a:hover { color: var(--violet-hover); text-decoration: underline; text-underline-offset: 3px; }
p.iptv-cdl-t__note { margin: 0; max-width: 900px; font-size: 14px; line-height: 1.6; color: var(--attenue); }

/* ---------- Avertissement (modèles Vega OS) ---------- */
.iptv-cdl-alert { display: flex; gap: 14px; align-items: flex-start; max-width: 1080px; box-sizing: border-box; background: #fff7ec; border: 1px solid #ffe0b8; border-radius: 20px; padding: 20px 24px; }
.iptv-cdl-alert::before { content: "!"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ambre); color: #fff; font: 800 15px/28px var(--f-titre); text-align: center; }
.iptv-cdl-alert p { margin: 0; min-width: 0; font-size: 15px; line-height: 1.65; color: var(--encre-2); }
.iptv-cdl-alert strong { color: var(--encre); }

/* ---------- Étapes illustrées ---------- */
.iptv-cdl-steps { display: flex; flex-direction: column; max-width: 1080px; }
.iptv-cdl-step { padding: 28px 0; border-top: 1px solid var(--bord); }
.iptv-cdl-step:last-child { padding-bottom: 4px; }
.iptv-cdl-step > .iptv-grid { --gap: clamp(24px,4vw,48px); }
.iptv-cdl-step .iptv-step { min-width: 0; }
.iptv-cdl-step h3.iptv-step__t { font-size: clamp(20px,2vw,24px); line-height: 1.2; letter-spacing: -0.02em; color: var(--encre); }
.iptv-cdl-step .iptv-step p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--encre-3); }
.iptv-cdl-step .iptv-step strong { color: var(--encre); }
.iptv-cdl-step .iptv-inst-apps__shot { min-width: 0; }
p.iptv-cdl-next { margin: 0; max-width: 1080px; box-sizing: border-box; background: var(--lavande); border: 1px solid var(--bord-lavande); border-radius: 18px; padding: 18px 22px; font-size: 16px; line-height: 1.65; color: var(--encre-2); }
p.iptv-cdl-aside { margin: 0; max-width: 1080px; box-sizing: border-box; background: #fff; border: 1px dashed var(--bord-fort); border-radius: 18px; padding: 16px 20px; font-size: 15px; line-height: 1.65; color: var(--encre-3); }
p.iptv-cdl-meth { margin: 0; max-width: 900px; font-size: 13px; line-height: 1.55; color: var(--attenue); }

/* ---------- Sécurité (cartes) ---------- */
.iptv-cdl-tips { --min: 250px; --gap: 16px; }
.iptv-cdl-tip { min-width: 0; background: #fff; border: 1px solid var(--bord-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh-carte); }
.iptv-cdl-tip h3.iptv-cdl-tip__t { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; color: var(--encre); }
.iptv-cdl-tip p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--encre-3); }

/* ---------- Dépannage ---------- */
ol.iptv-cdl-fix { margin: 0; padding-left: 1.4em; max-width: 900px; display: flex; flex-direction: column; gap: 14px; }
ol.iptv-cdl-fix li { margin: 0; padding-left: 4px; font-size: 16px; line-height: 1.7; color: var(--encre-3); }
ol.iptv-cdl-fix li::marker { font-weight: 800; color: var(--violet); }
ol.iptv-cdl-fix strong { color: var(--encre); }
p.iptv-cdl-help { margin: 0; max-width: 900px; font-size: 16px; line-height: 1.7; color: var(--encre-2); }

/* ---------- Questions ---------- */
.iptv-cdl-faq { padding-bottom: clamp(64px,8vw,104px); }
.iptv-cdl-faq p.iptv-lead { font-size: 16px; }

/* ---------- Encart essai : titre en paragraphe (H2 réservés au plan) ---------- */
.iptv-trialbox p.iptv-trialbox__t { margin: 0; color: var(--encre); line-height: 1.04; }

/* ---------- Sous 860 px : chaque ligne du tableau devient une carte (la sémantique de tableau reste) ---------- */
@media (max-width: 859px) {
	.iptv-cdl-t, .iptv-cdl-t tbody, .iptv-cdl-t tr, .iptv-cdl-t th, .iptv-cdl-t td { display: block; }
	.iptv-cdl-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
	.iptv-cdl-t tbody tr { padding: 18px; border-bottom: 1px solid var(--filet-2); }
	.iptv-cdl-t tbody tr:last-child { border-bottom: 0; }
	.iptv-cdl-t tbody :is(th, td), .iptv-cdl-t tbody td:nth-child(2) { width: auto; padding: 0; border: 0; }
	.iptv-cdl-t tbody td { margin-top: 10px; font-size: 14.5px; }
	.iptv-cdl-t tbody td:not(:nth-child(2))::before { content: attr(data-label) "\00a0: "; font-weight: 700; color: var(--encre-2); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 519px) {
	.iptv-cdl-hero__cta .iptv-btn { width: 100%; white-space: normal; }
	.iptv-cdl-bref { grid-template-columns: 1fr; gap: 8px; }
	.iptv-cdl-alert { padding: 18px; gap: 12px; }
	.iptv-cdl-tip { padding: 22px 20px; }
	.iptv-cdl-t code.iptv-cdl-t__code--big { font-size: 22px; }
	p.iptv-cdl-next, p.iptv-cdl-aside { padding: 16px 18px; }
}
