/*
 * Agencement A du magazine (2026-10-28) : chargé APRÈS magazine-article-v4.0.css, seulement si l'interrupteur
 * PIXIDIA_MAG_LAYOUT_A est ouvert (includes/magazine-lecture.php, pixidia_mag_layout_a_on()). Réutilise les jetons
 * --mag-* et les composants .mag2-pxa et .mag2-sidecta de la v4 ; ne change aucune règle de la v4.
 */

/* Bloc après la 1re info-card et rappel avant la FAQ : même carte compacte (.mag2-pxa--fin de la v4). */
.mag2-article .mag2-cta-a--milieu { margin: 28px 0 8px; }
.mag2-article .mag2-cta-a--fin { margin: 40px 0 0; }
.mag2-wrapper .mag2-cta-a__kicker { margin: 0 0 4px; font-size: 0.72rem; font-weight: 800; line-height: 1.35; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mag-muted); }
@media (max-width: 600px) {
	.mag2-article .mag2-cta-a { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 18px; }
	/* En colonne, le flex-basis 260px du corps (v4) devient une hauteur : le bloc faisait 426 px dont 150 de vide. */
	.mag2-article .mag2-cta-a .mag2-pxa__body { flex: 0 0 auto; }
	.mag2-wrapper .mag2-cta-a a.mag2-pxa__btn { width: 100%; }
}

/* Le CTA planner du bas de page (écrit dans le contenu, adresse /en/, /de/… qui renvoie au français) est remplacé
   par le rappel avant la FAQ ; sur une page sans CTA (langue sans planificateur, page non éligible) il disparaît. */
.mag2-layout-a .mag2-article:has(.mag2-cta-a--fin) .pxd-planner-cta,
.mag2-layout-a.mag2-a-nocta .mag2-article .pxd-planner-cta { display: none; }

/* Encart du sommaire (desktop) : absent jusqu'à 25 % de lecture (js/magazine-lecture-ext.js). display:none et non
   visibility/opacity : l'observateur de la mesure (events.js, cta_vu) compte un élément transparent comme visible. */
.mag2-layout-a .mag2-sidecta.mag2-a-wait { display: none; }
.mag2-layout-a .mag2-sidecta { animation: mag2-a-in 0.35s var(--mag-ease) both; }
@keyframes mag2-a-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mag2-layout-a .mag2-sidecta { animation: none; } }

/* Vers la démo de l'accueil (D-088, chantier ARTICLES, 30/11/2026) : destination dans une pastille (jamais dans la
   phrase), bouton principal au dégradé signature à point blanc (norme « Aurore et verre »). */
.mag2-wrapper .mag2-cta-a__dest { margin: 12px 0 0; }
.mag2-wrapper .mag2-sidecta .mag2-cta-a__dest { margin: 0; }
.mag2-wrapper .mag2-cta-a__dest span { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 0.9rem; font-weight: 700; line-height: 1.25; color: var(--mag-ink); background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(14, 151, 132, 0.28), 0 6px 16px -12px rgba(13, 82, 74, 0.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mag2-wrapper .mag2-cta-a__dest span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mag-grad); }
.mag2-wrapper .mag2-cta-a[data-pxd-cta-type="demo"] a.mag2-pxa__btn,
.mag2-wrapper .mag2-cta-a[data-pxd-cta-type="demo"] a.mag2-pxa__btn:hover,
.mag2-wrapper .mag2-cta-a[data-pxd-cta-type="demo"] a.mag2-pxa__btn:focus { color: #fff; background: var(--mag-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 28px -14px rgba(14, 151, 132, 0.85); }
.mag2-wrapper .mag2-cta-a[data-pxd-cta-type="demo"] a.mag2-pxa__btn svg.mag2-i { color: #fff; }
.mag2-wrapper .mag2-cta-a[data-pxd-cta-type="demo"] a.mag2-pxa__btn:focus-visible { outline: 3px solid rgba(14, 151, 132, 0.45); outline-offset: 3px; }
.mag2-wrapper .mag2-fab a.mag2-fab__cta--demo, .mag2-wrapper .mag2-fab a.mag2-fab__cta--demo:hover, .mag2-wrapper .mag2-fab a.mag2-fab__cta--demo:focus { color: #fff; background: var(--mag-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 24px -14px rgba(14, 151, 132, 0.85); }
.mag2-wrapper .mag2-fab a.mag2-fab__cta--demo svg.mag2-i { color: #fff; }

/* Barre mobile avec le bouton vers la démo : « Sommaire » réduit à son icône (nom accessible gardé) pour que la destination
   et l action tiennent sans être coupées (« Lisbonne · Prépar… » à 390 px, recette staging du 30/11). */
.mag2-layout-a .mag2-fab.has-cta:has(.mag2-fab__cta--demo) button.mag2-btn#mag2OpenDrawer { flex: 0 0 48px; width: 48px; padding: 0; gap: 0; font-size: 0; }
.mag2-layout-a .mag2-fab.has-cta:has(.mag2-fab__cta--demo) button.mag2-btn#mag2OpenDrawer svg.mag2-i { width: 20px; height: 20px; }
