/* IPTV Premium — page Installation (/installation/, étude SEO fiche B1, mois 1). Préfixe « inst ».
 * Chargée par les shortcodes [iptv_inst_appareils], [iptv_installation], [iptv_inst_methodes], [iptv_inst_erreurs] (inc/install.php).
 * Les composants historiques du pas à pas, des tutoriels, de l'encart essai et de la bande « Pourquoi » restent dans style.css (section 27b). */

/* ---------- Sections du plan ---------- */
.iptv-inst-sec { padding-top: clamp(64px,8vw,104px); }
.iptv-inst-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 32px; }
.iptv-inst-head p.iptv-lead { max-width: 680px; }
.iptv-inst-sec a:not([class]), .iptv-inst-steps a:not([class]), .iptv-inst-apps__head a:not([class]), .iptv-inst-faq details a:not([class]) {
	font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* ---------- 1. Les 3 étapes communes (bande blanche, composant .iptv-steps de l'accueil) ---------- */
.iptv-inst-steps { border-top: 0; }
.iptv-inst-steps .iptv-step p:not(.iptv-step__n) { color: var(--encre-3); }
/* Le numéro est un <p> : marge basse du navigateur (1em = 56 px) et couleur de « :root :where(p) » neutralisées. */
.iptv-inst-steps .iptv-step > p.iptv-step__n { margin: 0 0 4px; color: var(--violet); }
.iptv-inst-steps .iptv-grid { --min: 210px; }

/* ---------- 2. Choisissez votre appareil : 9 liens vers les guides ---------- */
.iptv-inst-dv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.iptv-inst-dv > li { display: flex; min-width: 0; margin: 0; }
.iptv-inst-dv__a {
	flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0; box-sizing: border-box;
	background: #fff; border: 1px solid var(--bord-2); border-radius: 20px; padding: 18px 20px; color: var(--encre);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.iptv-inst-dv__a:hover, .iptv-inst-dv__a:focus-visible { border-color: var(--violet); box-shadow: var(--sh-carte-survol); transform: translateY(-2px); color: var(--encre); }
.iptv-inst-dv__ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--lavande); color: var(--violet); display: flex; align-items: center; justify-content: center; }
.iptv-inst-dv__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.iptv-inst-dv__k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--attenue); }
.iptv-inst-dv__n { font-family: var(--f-titre); font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--encre); }
.iptv-inst-dv__s { font-size: 13.5px; line-height: 1.45; color: var(--encre-3); }
.iptv-inst-dv__go { flex-shrink: 0; display: flex; color: var(--violet); transition: transform .18s ease; }
.iptv-inst-dv__a:hover .iptv-inst-dv__go { transform: translateX(3px); }

/* Pas à pas rapide (sous la grille) */
.iptv-inst { padding-top: clamp(44px,5.5vw,64px); }
.iptv-inst__k { margin-bottom: 18px; }
.iptv-inst__devs { margin-bottom: 40px; }
.iptv-inst__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: -6px 0 0; font-size: 14px; line-height: 1.5; color: var(--attenue); }
.iptv-inst__links[hidden], .iptv-inst__shot[hidden] { display: none; }
.iptv-inst__links a { font-weight: 700; color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- 3. Tutoriels par application : l'espace bas est porté par la section suivante ---------- */
.iptv-inst-apps { padding-bottom: 0; }
.iptv-inst-apps__good a + a { margin-top: -2px; }

/* ---------- 4. Identifiants Xtream, lien M3U, adresse MAC ---------- */
.iptv-inst-ess { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 16px; }
.iptv-inst-ess__c { display: flex; flex-direction: column; gap: 12px; min-width: 0; background: #fff; border: 1px solid var(--bord-2); border-radius: 22px; padding: clamp(22px,2.6vw,28px); }
.iptv-inst-ess__c h3 { font-family: var(--f-titre); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--encre); }
.iptv-inst-ess__c p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--encre-3); }
.iptv-inst-ess__c p strong { color: var(--encre); }
.iptv-inst-ess__c p.iptv-inst-ess__warn { margin-top: auto; font-size: 14px; line-height: 1.55; color: #6b3a00; background: #fff7ec; border: 1px solid #ffe0b8; border-radius: 12px; padding: 10px 12px; }
.iptv-inst-ess__k { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--lavande); color: var(--violet); font: 800 15px var(--f-titre); }
/* Enfants directs d'une section de contenu : la règle « [class*="iptv-"].is-layout-flow > * » (0,2,0) remet leur marge haute à 0. */
.iptv-inst-sec > p.iptv-inst-ess__where { margin: 24px 0 0; max-width: 820px; font-size: 16px; line-height: 1.7; color: var(--encre-2); }

/* Quel lecteur demande quoi (tableau) */
.iptv-inst-sec > .iptv-inst-meth { margin-top: 28px; }
.iptv-inst-meth { background: #fff; border: 1px solid var(--bord-2); border-radius: var(--r-card); box-shadow: var(--sh-carte); overflow: hidden; }
.iptv-inst-meth__t { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: 15px; }
.iptv-inst-meth__cap { caption-side: top; text-align: left; padding: 20px 24px 6px; font-family: var(--f-titre); font-size: 18px; font-weight: 800; color: var(--encre); }
.iptv-inst-meth__t thead th { padding: 14px 24px; background: #f3f2ef; border-block: 1px solid var(--bord-2); font: 700 12px/1.3 var(--f-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--attenue); text-align: left; }
.iptv-inst-meth__t tbody :is(th, td) { padding: 16px 24px; border-bottom: 1px solid var(--filet-2); vertical-align: top; line-height: 1.55; color: var(--encre-3); text-align: left; }
.iptv-inst-meth__t tbody tr:last-child > * { border-bottom: 0; }
.iptv-inst-meth__t tbody th { width: 22%; font-family: var(--f-titre); font-size: 17px; font-weight: 800; color: var(--encre); white-space: nowrap; }
.iptv-inst-meth__t tbody th a { color: var(--violet); }
.iptv-inst-meth__t tbody th a:hover { color: var(--violet-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5. Erreurs fréquentes ---------- */
.iptv-inst-err { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,420px),1fr)); gap: 14px; }
.iptv-inst-err__i { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; margin: 0; background: #fff; border: 1px solid var(--bord-2); border-radius: 20px; padding: 20px 22px; }
.iptv-inst-err__n { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #fff7ec; border: 1px solid #ffe0b8; color: #8a4a00; font: 800 14px var(--f-titre); }
.iptv-inst-err__b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
p.iptv-inst-err__e { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--encre); }
p.iptv-inst-err__s { margin: 0; font-size: 15px; line-height: 1.6; color: var(--encre-3); }
p.iptv-inst-err__s strong { color: var(--succes-texte); }

/* ---------- 6. Questions : l'espace haut vient de la section ---------- */
.iptv-inst-faq.iptv-inst-sec { padding-top: clamp(64px,8vw,104px); }

/* ---------- 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; }

/* ---------- Moyens écrans ---------- */
@media (max-width: 899px) {
	.iptv-inst-dv { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- Tableau en cartes sous 720 px ---------- */
@media (max-width: 719px) {
	.iptv-inst-meth__t, .iptv-inst-meth__t tbody, .iptv-inst-meth__t tr, .iptv-inst-meth__t th, .iptv-inst-meth__t td { display: block; }
	.iptv-inst-meth__t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
	.iptv-inst-meth__cap { display: block; padding: 18px 18px 4px; }
	.iptv-inst-meth__t tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--filet-2); }
	.iptv-inst-meth__t tbody tr:last-child { border-bottom: 0; }
	.iptv-inst-meth__t tbody :is(th, td) { width: auto; padding: 0; border: 0; white-space: normal; }
	.iptv-inst-meth__t tbody td { margin-top: 6px; font-size: 14.5px; }
	.iptv-inst-meth__t tbody td::before { content: attr(data-label) " : "; font-weight: 700; color: var(--encre-2); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 519px) {
	.iptv-inst-dv { grid-template-columns: 1fr; gap: 10px; }
	.iptv-inst-dv__a { padding: 14px 16px; gap: 14px; border-radius: 16px; }
	.iptv-inst-dv__ic { width: 42px; height: 42px; border-radius: 12px; }
	.iptv-inst-dv__n { font-size: 17px; }
	.iptv-inst-err__i { padding: 16px; gap: 12px; }
	.iptv-inst-err__n { width: 34px; height: 34px; }
	/* Pas à pas : le bouton principal prend toute la ligne (son libellé ne tenait pas à 390 px). */
	.iptv-inst__nav .iptv-inst__next { order: -1; flex: 1 1 100%; min-width: 0; white-space: normal; }
	.iptv-inst__nav .iptv-inst__prev, .iptv-inst__nav .iptv-inst__stuck { flex: 1 1 0; }
}
