/* Le Mag : ce que pages.css (maquettes) ne couvre pas — image à la une d'un article, éléments des articles écrits dans
   l'éditeur (intertitres de niveau 3, listes numérotées, images, tableaux, légendes), pages de la liste. Chargé sur le Mag. */

.article-visuel img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; border-radius: 20px;
  box-shadow: 0 24px 48px rgba(3, 8, 60, .45); }

.article-corps > h3 { margin: 28px 0 10px; font-size: 21px; }
.article-corps > h4 { margin: 22px 0 8px; font-size: 18px; }
.article-corps > ol { margin: 0 0 14px; padding-left: 24px; line-height: 1.7; }
.article-corps li { margin-bottom: 6px; }
.article-corps li > ul, .article-corps li > ol { margin: 6px 0 0; }
.article-corps a:not(.bouton) { font-weight: 600; text-underline-offset: 3px; }
.article-corps figure { margin: 22px 0; }
.article-corps figure img { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.article-corps figcaption { margin-top: 8px; font-size: 16px; color: #4f5670; }
.article-corps .wp-block-gallery { display: grid; gap: 12px; }
.article-corps .wp-block-table { overflow-x: auto; }
.article-corps .wp-block-table table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }   /* tableaux larges : défilent dans leur cadre sur mobile */
.article-corps .wp-block-table a { display: inline-flex; align-items: center; min-height: 44px; }
.article-corps .wp-block-table th, .article-corps .wp-block-table td { padding: 10px 8px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.article-corps .wp-block-table thead th { background: var(--brume); color: var(--encre); }

.pagination-mag { margin-top: 24px; }

/* Blocs de prix (inc/gamsgo.php) : le tableau défile dans son cadre s'il dépasse sur mobile, jamais la page */
.tableau-defile { overflow-x: auto; margin: 0 0 8px; }
.tableau-defile small { font-size: 16px; color: #4f5670; }
.tableau-article td a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }   /* prix → fiche (inc/prix-iptv.php) : cible tactile */
.article-corps .offre-gamsgo { margin: 22px 0; }

/* En tête d'un article sans image (single.php) : la vignette des cartes du Mag, en grand. Son conteneur est centré sur sa
   largeur de contenu (pages.css) : on l'étire, sinon la carte prend la largeur de son texte (277 à 328 px, relevé le 03/11) */
.entete-page__visuel:has(> .vignette--entete) { justify-self: stretch; }
.vignette--entete { width: 100%; height: 220px; margin: 10px 0 0; border-radius: 20px; font-size: 32px; box-shadow: 0 24px 48px rgba(3, 8, 60, .45); }
.vignette--entete small { font-size: 18px; }
.vignette--entete .vignette__date { font-weight: 500; opacity: .85; }
@media (min-width: 900px) { .vignette--entete { height: 300px; font-size: 42px; } }

/* Article à la une (home.php) : toujours en colonne, image (ou vignette de l'article, sans image) en haut, texte dessous.
   Côte à côte, la colonne du texte n'avait que 167 px utiles dans l'en-tête : « Abonnements » (263 px en 30 px) débordait et
   la carte coupait le titre et le résumé à droite (relevé le 03/11 à 1 568 px ; à 768 px, la photo tombait à 35 px) */
.mag-une { grid-template-columns: minmax(0, 1fr); }
.mag-une picture img, .mag-une > .vignette { height: 200px; min-height: 0; }
.mag-une > .vignette { font-size: 28px; }
.mag-une__texte { grid-template-columns: minmax(0, 1fr); padding: 24px; }
.mag-une h2 { font-size: 26px; overflow-wrap: break-word; }
@media (min-width: 1000px) {
  .mag-une picture img, .mag-une > .vignette { height: 220px; }
  .mag-une__texte { padding: 28px; }
  .mag-une h2 { font-size: 28px; }
}

/* Icônes officielles des services (inc/mag.php, cardiptv_logo_service) : cartes, en-tête, bloc GamsGo, comparatif */
.vignette__logos { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.vignette__logos img { width: 48px; height: 48px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.vignette--entete .vignette__logos img { width: 88px; height: 88px; }
.vignette--entete .vignette__logos img + img, .vignette--entete .vignette__logos:has(img + img) img { width: 64px; height: 64px; }
.offre-gamsgo__titre { display: flex; align-items: center; gap: 12px; }
.offre-gamsgo__titre .logo-service { width: 40px; height: 40px; flex: none; }
.tableau-article .logo-service { display: block; width: 28px; height: 28px; margin-bottom: 4px; }   /* toujours au-dessus du nom */

/* Carte d'un appareil conseillé (inc/achats.php, 07/11) : cadre de .offre-gamsgo, deux boutons côte à côte */
.achat-box__conseil { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ciel-pale); font-weight: 700; color: var(--bleu-nuit); }
.achat-box__mention { margin: 0; font-size: 15px; color: var(--encre); }
.achat-box__boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.achat-box__boutons .bouton { flex: 1 1 220px; justify-content: center; }   /* même largeur, l'un sous l'autre sur téléphone */
.achat-box .aide { margin: 0; }
/* Bouton « contour » de la carte : sur fond blanc (le style général est fait pour les fonds sombres) */
.achat-box .bouton--contour { color: var(--bleu-nuit); border-color: var(--bleu-nuit); background: var(--blanc); }
.achat-box .bouton--contour:hover, .achat-box .bouton--contour:focus-visible { background: var(--ciel-pale); }
/* Photos d'appareils (inc/achats.php, 07/11) : pleine largeur de l'article, crédit discret ; photo en tête de la carte */
.photo-appareil img, .achat-box__photo img { display: block; width: 100%; height: auto; border-radius: 14px; }
.photo-appareil__credit { font-size: 14px; color: #5b6178; }
.photo-appareil__credit a { color: inherit; }
.achat-box__photo { margin: -4px 0 4px; }
