/**
 * Paragone Formation — styles du front (0.12.0, direction « Atelier v3 »).
 *
 * Principe : reprendre les composants du site vitrine paragone.pro (relevés le 26/10/2026),
 * validés par Lucas sur maquette :
 *  - surtitres en Red Hat Mono capitales (police H6 d'Impreza), titres H2 violets en 700 ;
 *  - cartes blanches, bordure 1 px #d0d0d0, rayon 25 px, marge interne 25 px,
 *    icône dans un petit carré pêche ;
 *  - bloc lavande #f7f6ff au rayon 35 px, en-têtes de cartes pêche ;
 *  - boutons : classes Impreza « w-btn us-btn-style_N » (pilules réglées dans le thème).
 * Les couleurs passent par des variables locales pour pouvoir suivre la palette du thème.
 */

.pgf {
	--pgf-violet: #612579;
	--pgf-beige: #d8b297;
	--pgf-marron: #ce9c79;
	--pgf-marron-txt: #8f5f3e; /* marron assombri pour le texte (contraste AA) */
	--pgf-peche: #fcefe6;
	--pgf-lavande: #f7f6ff;
	--pgf-alt: #f2f4f7;
	--pgf-border: #d0d0d0;
	--pgf-border-2: #e3e7f0;
	--pgf-text: #000;
	--pgf-faded: #555;
	--pgf-faded-2: #7a7a7a;
	--pgf-success: #1f7a4d;
	--pgf-success-bg: #eaf6ef;
	--pgf-error: #b3261e;
	--pgf-error-bg: #fbecea;
	--pgf-r-card: 25px;
	--pgf-r-block: 35px;
	--pgf-gap: 25px;
	--pgf-mono: var(--h6-font-family, "Red Hat Mono"), ui-monospace, monospace;
	--pgf-primary: var(--pgf-violet); /* alias conservé pour les anciens gabarits */
	--pgf-radius: var(--pgf-r-card);
	--pgf-bg-alt: var(--pgf-alt);
}

/* ------------------------------------------------------------------ */
/* Briques communes                                                    */
/* ------------------------------------------------------------------ */
.pgf-kicker,
.pgf-overline {
	display: block;
	margin: 0 0 .35rem;
	font: 400 14px/1.6 var(--pgf-mono);
	text-transform: uppercase;
	letter-spacing: 0;
	color: var(--pgf-text);
}
.pgf-title { margin: 0 0 1.5rem; color: var(--pgf-violet); }
.pgf-section { margin-top: clamp(48px, 6vw, 80px); }
.pgf-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.pgf-section__head .pgf-title { margin: 0; }

.pgf-card {
	border: 1px solid var(--pgf-border);
	border-radius: var(--pgf-r-card);
	padding: var(--pgf-gap);
	background: #fff;
}
.pgf-card__title { margin-bottom: .25em; }
.pgf-card__lead { color: var(--pgf-faded); margin-bottom: 1.25em; }
.pgf-block { background: var(--pgf-lavande); border-radius: var(--pgf-r-block); padding: clamp(28px, 5vw, 64px); }

/* Icône du vitrine : pictogramme marron dans un carré pêche. */
.pgf-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--pgf-peche); color: var(--pgf-marron); flex: none; }
.pgf-ico svg { width: 24px; height: 24px; }

/* Liste à coches beiges. */
.pgf-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.pgf-checks li { position: relative; padding-left: 32px; margin: 0; }
.pgf-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--pgf-beige) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.5L14 7.3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Progression en segments (un par module). */
.pgf-cells { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; margin: 0; padding: 0; list-style: none; }
.pgf-cells i { display: block; height: 8px; border-radius: 8px; background: rgba(0, 0, 0, .1); transition: background .4s ease; }
.pgf-cells i.is-done { background: var(--pgf-violet); }
.pgf-cells i.is-current { background: var(--pgf-beige); }

/* ------------------------------------------------------------------ */
/* Formulaires, messages, petits éléments                              */
/* ------------------------------------------------------------------ */
/* Mot de passe oublié / nouveau mot de passe (0.21.0) : un seul formulaire, centré. */
.pgf-account--single { max-width: 560px; margin: 0 auto; }
.pgf-account__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pgf-gap); align-items: start; }
@media (max-width: 767px) {
	.pgf-account__grid { grid-template-columns: 1fr; }
	.pgf-account--register-first .pgf-account__register { order: -1; }
}
.pgf-account__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: var(--pgf-gap); }
.pgf-account__section + .pgf-account__section { margin-top: calc(var(--pgf-gap) * 1.5); }

.pgf-form .pgf-field { margin-bottom: 1rem; }
.pgf-form label { display: block; font-weight: 500; margin-bottom: .35em; }
.pgf-form input[type="text"],
.pgf-form input[type="email"],
.pgf-form input[type="password"] { width: 100%; }
.pgf-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
@media (max-width: 480px) { .pgf-field-row { grid-template-columns: 1fr; } }
.pgf-field--inline { display: flex; align-items: flex-start; gap: .6em; }
.pgf-field--inline label { display: inline; font-weight: 400; margin: 0; }
.pgf-field--inline input { margin-top: .3em; flex: none; accent-color: var(--pgf-violet); }
.pgf-help { font-size: .9em; color: var(--pgf-faded); margin: -.5rem 0 1rem; }
.pgf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.25rem 0 0; }
.pgf-link { color: var(--pgf-violet); text-decoration: underline; text-underline-offset: .2em; }
.pgf-meta { margin: 1.25rem 0 0; font-size: .9em; color: var(--pgf-faded); }

/* Champ piège anti-robots : hors écran (pas display:none, que certains robots détectent) */
.pgf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.pgf-notice { border-radius: 16px; padding: .9rem 1.1rem; margin-bottom: var(--pgf-gap); background: var(--pgf-alt); color: var(--pgf-text); border-left: 4px solid var(--pgf-violet); }
.pgf-notice--error { background: var(--pgf-error-bg); border-left-color: var(--pgf-error); color: var(--pgf-error); }
.pgf-notice--success { background: var(--pgf-success-bg); border-left-color: var(--pgf-success); color: var(--pgf-success); }

.pgf-badge { display: inline-flex; align-items: center; gap: .4em; padding: .35em .9em; border-radius: 50px; font-size: .9em; font-weight: 500; margin: 0; }
.pgf-badge--done { background: var(--pgf-success-bg); color: var(--pgf-success); }
.pgf-badge--done::before { content: "✓"; }
.pgf-badge--ko { background: var(--pgf-error-bg); color: var(--pgf-error); }

.pgf-code { font-family: var(--pgf-mono); letter-spacing: .05em; padding: .15em .5em; border-radius: 6px; background: var(--pgf-peche); }

.pgf a:focus-visible,
.pgf button:focus-visible,
.pgf input:focus-visible,
.pgf summary:focus-visible { outline: 2px solid var(--pgf-violet); outline-offset: 2px; }

/* Ancienne barre de progression (espace apprenant). */
.pgf-progress { min-width: 220px; }
.pgf-progress__bar { height: 8px; border-radius: 8px; background: var(--pgf-alt); overflow: hidden; }
.pgf-progress__fill { display: block; height: 100%; background: var(--pgf-violet); border-radius: inherit; transition: width .4s ease; }
.pgf-progress__label { margin: .4rem 0 0; font-size: .9em; color: var(--pgf-faded); }
.pgf-progress--small { min-width: 160px; margin-top: .5rem; }

.pgf-formation-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pgf-formation-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin: 0; }
.pgf-formation-item__title { margin: 0; }
.pgf-formation-item__info { flex: 1 1 260px; }
.pgf-formation-item__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.pgf-empty p { margin: 0; color: var(--pgf-faded); }

/* ------------------------------------------------------------------ */
/* Fiche formation (visiteur) : bannière photo, chiffres clés          */
/* ------------------------------------------------------------------ */
.pgf-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 460px;
	padding: clamp(32px, 6vw, 72px);
	border-radius: var(--pgf-r-block);
	background: linear-gradient(135deg, #2a0f36, var(--pgf-violet) 60%, #8b4aa6);
	color: #fff;
}
.pgf-hero__media { position: absolute; inset: 0; z-index: -2; }
.pgf-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.pgf-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .12)); }
.pgf-hero__inner { max-width: 640px; }
.pgf-hero .pgf-kicker { color: #fff; }
.pgf-hero__title { margin: 0 0 1rem; color: #fff; }
.pgf-hero__lead { font-size: 1.1em; margin: 0 0 1.75rem; color: rgba(255, 255, 255, .9); }
.pgf-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .875rem 1.25rem; }
.pgf-hero__price { margin: 0; font: 400 14px/1.4 var(--pgf-mono); color: rgba(255, 255, 255, .85); }
@media (max-width: 600px) { .pgf-hero { min-height: 0; border-radius: var(--pgf-r-card); } }

.pgf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pgf-gap); margin: var(--pgf-gap) 0 0; padding: 0; list-style: none; }
.pgf-facts li { margin: 0; }
.pgf-facts b { display: block; margin-top: 1rem; font-size: 1.6rem; line-height: 1.15; font-weight: 700; color: var(--pgf-violet); }
.pgf-facts span:not(.pgf-ico) { font-size: .9em; color: var(--pgf-faded); }
@media (max-width: 1024px) { .pgf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pgf-facts { gap: 12px; } .pgf-facts .pgf-card { padding: 18px; } .pgf-facts b { font-size: 1.25rem; } }

.pgf-presentation { margin-top: clamp(48px, 6vw, 80px); }
.pgf-presentation:empty { display: none; }

/* Programme : tableau dans une carte. */
.pgf-table-card { border: 1px solid var(--pgf-border); border-radius: var(--pgf-r-card); overflow: hidden; background: #fff; }
.pgf-table { width: 100%; margin: 0; border-collapse: collapse; }
.pgf-table th { padding: 16px 20px; background: var(--pgf-peche); font: 400 13px/1.3 var(--pgf-mono); text-transform: uppercase; text-align: left; border: 0; }
.pgf-table td { padding: 18px 20px; border: 0; border-top: 1px solid var(--pgf-border-2); vertical-align: top; }
.pgf-table td:first-child { width: 64px; font-family: var(--pgf-mono); color: var(--pgf-violet); }
.pgf-table td strong { display: block; }
.pgf-table td span { display: block; margin-top: 2px; font-size: .9em; color: var(--pgf-faded); }
.pgf-table .pgf-num { text-align: right; white-space: nowrap; font-family: var(--pgf-mono); }
.pgf-table tbody tr:hover td { background: var(--pgf-lavande); }
.pgf-table tfoot td { background: var(--pgf-alt); font-weight: 500; }
@media (max-width: 600px) { .pgf-table td, .pgf-table th { padding-inline: 14px; } .pgf-table td:first-child { width: 44px; } }

/* ------------------------------------------------------------------ */
/* Attestation (aperçu HTML aux couleurs du PDF)                       */
/* ------------------------------------------------------------------ */
.pgf-certzone { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .pgf-certzone { grid-template-columns: 1fr; } }
.pgf-certzone .pgf-title { margin-bottom: 1.25rem; }
/* Réduction fidèle du PDF : fond d'Hugo + textes placés en % de la page (297 × 210 mm).
 * Tailles en cqw (1 pt = 0,1188 % de la largeur) : le texte suit la taille de l'aperçu. */
.pgf-cert {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 297 / 210;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 30px 60px -30px rgba(97, 37, 121, .35);
	color: #000;
	line-height: 1.15;
}
.pgf-cert__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pgf-cert__t { position: absolute; left: 16.3%; right: 16.3%; text-align: center; }
.pgf-cert__title { font-size: 3.56cqw; font-weight: 700; color: var(--pgf-violet); }
.pgf-cert__mention { font-size: 1.43cqw; color: #555; }
.pgf-cert__name { left: 13%; right: 13%; font-weight: 700; }
.pgf-cert__formation { font-size: 1.9cqw; font-weight: 700; color: var(--pgf-violet); }
.pgf-cert__score { font-size: 1.31cqw; color: #555; }
.pgf-cert__meta { position: absolute; left: 9.1%; top: 74.29%; font-size: 1.07cqw; line-height: 1.5; color: #555; }
.pgf-cert__meta b { color: #000; }
.pgf-cert__code { font-size: 1.43cqw; letter-spacing: .08em; }
.pgf-cert__sign { position: absolute; left: 38.2%; width: 23.6%; top: 82.1%; text-align: center; font-size: 1.07cqw; }
.pgf-cert__qr { position: absolute; left: 82.5%; top: 71.9%; width: 8.4%; aspect-ratio: 1; border: .5cqw solid #000; outline: .35cqw solid #fff; outline-offset: -.9cqw; background:
	conic-gradient(from 90deg at 30% 30%, #000 25%, transparent 0) 0 0 / 1.6cqw 1.6cqw,
	conic-gradient(from 0deg at 60% 60%, #000 25%, transparent 0) .4cqw .7cqw / 1.2cqw 1.2cqw; }

/* ------------------------------------------------------------------ */
/* Bloc d'inscription : récapitulatif pêche + formulaire              */
/* ------------------------------------------------------------------ */
.pgf-buy {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	margin-top: clamp(48px, 6vw, 80px);
	border: 1px solid var(--pgf-border);
	border-radius: var(--pgf-r-card);
	overflow: hidden;
	background: #fff;
	scroll-margin-top: 7rem;
}
@media (max-width: 960px) { .pgf-buy { grid-template-columns: 1fr; } }
.pgf-buy__text { padding: clamp(25px, 4vw, 44px); background: var(--pgf-peche); }
.pgf-buy__title { margin: 0; }
.pgf-buy__price { margin: 1rem 0 1.5rem; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; font-weight: 700; color: var(--pgf-violet); }
.pgf-buy__includes { margin: 0 0 1.25rem; }
.pgf-buy__text .pgf-help { margin: 0; }
.pgf-buy__contact { margin: 1rem 0 0; font-size: .95em; }
.pgf-buy__actions { padding: clamp(25px, 4vw, 44px); }
.pgf-buy__fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
/* Champs soulignés, comme le formulaire de contact du vitrine. */
.pgf-buy .pgf-field:not(.pgf-field--inline) label { font-weight: 400; font-size: .9em; color: var(--pgf-faded); margin-bottom: 0; }
.pgf-buy .pgf-form input[type="text"],
.pgf-buy .pgf-form input[type="email"],
.pgf-buy .pgf-form input[type="password"] {
	height: 43px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--pgf-border);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 16px;
}
.pgf-buy .pgf-form input[type="text"]:focus,
.pgf-buy .pgf-form input[type="email"]:focus,
.pgf-buy .pgf-form input[type="password"]:focus { outline: 0; border-bottom: 2px solid var(--pgf-violet); }
.pgf-buy .pgf-actions .w-btn { width: 100%; justify-content: center; }
.pgf-buy__login { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--pgf-border-2); }
.pgf-buy__login summary { cursor: pointer; color: var(--pgf-violet); font-weight: 500; }
.pgf-buy__login[open] summary { margin-bottom: 1rem; }

/* Étapes en pastilles : « 1 Votre compte · 2 Paiement ». */
.pgf-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.pgf-steps li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 16px 6px 6px; border-radius: 50px; background: var(--pgf-alt); font-size: .9em; font-weight: 500; color: var(--pgf-faded-2); }
.pgf-steps span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; font: 400 12px/1 var(--pgf-mono); }
.pgf-steps .is-current { background: var(--pgf-lavande); color: var(--pgf-violet); box-shadow: inset 0 0 0 1px rgba(97, 37, 121, .25); }
.pgf-steps .is-current span { background: var(--pgf-violet); color: #fff; }
.pgf-steps .is-done { background: var(--pgf-success-bg); color: var(--pgf-success); }
.pgf-steps .is-done span { color: var(--pgf-success); }

/* ------------------------------------------------------------------ */
/* En-tête apprenant                                                   */
/* ------------------------------------------------------------------ */
.pgf-page-head { margin-bottom: 1.75rem; }
.pgf-page-head__title { margin: 0; color: var(--pgf-violet); }

/* ------------------------------------------------------------------ */
/* Lecteur : sommaire à gauche, vidéo à droite                          */
/* ------------------------------------------------------------------ */
.pgf-course { scroll-margin-top: 6rem; }
.pgf-course__layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 32px; align-items: start; }
/* Le module est avant le sommaire dans le code ; sur grand écran, le sommaire passe à gauche. */
.pgf-course__main { grid-column: 2; grid-row: 1; min-width: 0; }
.pgf-course__nav { grid-column: 1; grid-row: 1; }
@media (max-width: 1024px) { .pgf-course__layout { grid-template-columns: 1fr; } .pgf-course__main, .pgf-course__nav { grid-column: auto; grid-row: auto; } }

.pgf-course__nav { position: sticky; top: 6rem; display: grid; gap: 20px; }
@media (max-width: 1024px) { .pgf-course__nav { position: static; } }
.pgf-toc { border: 1px solid var(--pgf-border); border-radius: var(--pgf-r-card); overflow: hidden; background: #fff; }
.pgf-toc__head { padding: 20px 22px; background: var(--pgf-peche); }
.pgf-toc__head .pgf-kicker { margin-bottom: .6rem; }
.pgf-toc__count { margin: .6rem 0 0; font: 400 13px/1.3 var(--pgf-mono); }

.pgf-modules { list-style: none; margin: 0; padding: 8px; }
.pgf-modules__item { margin: 0; }
.pgf-modules__item a {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) auto 18px;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
	line-height: 1.3;
	transition: background .2s ease;
}
.pgf-modules__item a:hover { background: var(--pgf-alt); }
.pgf-modules__num { font: 400 13px/1 var(--pgf-mono); color: var(--pgf-marron-txt); }
.pgf-modules__time { font: 400 12px/1 var(--pgf-mono); color: var(--pgf-faded-2); white-space: nowrap; }
.pgf-modules__check { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--pgf-border); }
.pgf-modules__item.is-done .pgf-modules__check { box-shadow: none; background: var(--pgf-beige) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.5L14 7.3' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.pgf-modules__item.is-active a { background: var(--pgf-lavande); color: var(--pgf-violet); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(97, 37, 121, .2); }
.pgf-modules__item.is-active .pgf-modules__num { color: var(--pgf-violet); }
.pgf-modules__item.is-active:not(.is-done) .pgf-modules__check { box-shadow: inset 0 0 0 1.5px var(--pgf-violet); background: radial-gradient(circle, var(--pgf-violet) 0 3px, transparent 3.5px); }

.pgf-course__kicker { margin-bottom: .25rem; }
.pgf-course__module-title { margin: 0 0 1.25rem; color: var(--pgf-violet); }
.pgf-video { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; }
.pgf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pgf-course__body { margin-top: var(--pgf-gap); }
.pgf-course__body > :last-child { margin-bottom: 0; }
.pgf-course__complete { margin-top: 1.25rem; }
.pgf-course__complete .pgf-help { margin: 0; }
/* 0.28.0 — bouton de vérification réservé aux administrateurs */
.pgf-course__admin-skip, .pgf-quiz__admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed currentColor; }
.pgf-quiz__admin-tools form { margin: 0; }
.pgf-quiz__admin-tools .pgf-help { flex-basis: 100%; margin: 0; }
/* Précédent à gauche, suivant à droite ; empilés sur mobile (bouton principal en premier). */
.pgf-course__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.pgf-course__next { margin-left: auto; text-align: left; }
.pgf-course__next small { display: block; font: 400 11px/1.3 var(--pgf-mono); text-transform: uppercase; opacity: .75; }
@media (max-width: 600px) {
	.pgf-course__pager { flex-direction: column-reverse; align-items: stretch; }
	.pgf-course__next { margin-left: 0; }
	.pgf-course__pager .w-btn { justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* QCM                                                                 */
/* ------------------------------------------------------------------ */
.pgf-quiz { scroll-margin-top: 6rem; }
.pgf-quiz__back { margin: 0 0 1.25rem; }
.pgf-quiz-card { overflow: hidden; padding: 0; }
.pgf-quiz-card__title { margin: 0; padding: 16px 22px; background: var(--pgf-peche); font: 400 13px/1.3 var(--pgf-mono); text-transform: uppercase; }
.pgf-quiz-card__body { padding: 20px 22px; }
.pgf-quiz-card__rules { margin: 0 0 1rem; padding-left: 1.1em; color: var(--pgf-faded); font-size: .95em; }
.pgf-quiz-card .pgf-help { margin: 0; }
.pgf-quiz-card form { margin: 0; }

/* Mise en page de la tentative : grille de navigation + carte question. */
.pgf-quiz__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .pgf-quiz__layout { grid-template-columns: 1fr; } .pgf-quiz__aside { order: 2; } }
.pgf-quiz__aside { position: sticky; top: 6rem; padding: 6px 22px; }
@media (max-width: 900px) { .pgf-quiz__aside { position: static; } }
.pgf-quiz__aside > div { padding: 16px 0; }
.pgf-quiz__aside > div + div { border-top: 1px solid var(--pgf-border-2); }
.pgf-quiz__aside p { margin: 0; font-size: .9em; color: var(--pgf-faded); }
.pgf-qnav { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0; padding: 0; }
@media (max-width: 900px) { .pgf-qnav { grid-template-columns: repeat(10, 1fr); gap: 4px; } }
.pgf-qnav li { margin: 0; }
.pgf-qnav button { width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--pgf-alt); color: #000; font: 400 12px/1 var(--pgf-mono); cursor: pointer; }
.pgf-qnav button:hover { background: var(--pgf-peche); }
.pgf-qnav button.is-done { background: var(--pgf-beige); }
.pgf-qnav button.is-current { background: var(--pgf-violet); color: #fff; }
.pgf-qnav__count { font: 400 13px/1.3 var(--pgf-mono); color: #000 !important; }

.pgf-quiz__card { padding: 0; overflow: hidden; }
.pgf-quiz__card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 18px clamp(22px, 4vw, 36px); background: var(--pgf-peche); font: 400 13px/1.3 var(--pgf-mono); text-transform: uppercase; }
.pgf-quiz__form { padding: clamp(22px, 4vw, 36px); }

.pgf-questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.pgf-question { margin: 0; }
.pgf-question fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pgf-question__title { display: block; margin: 0 0 .35rem; padding: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; font-weight: 700; color: var(--pgf-violet); }
.pgf-question__num { font: 400 .65em/1 var(--pgf-mono); color: var(--pgf-marron-txt); margin-right: .4em; vertical-align: .15em; }
.pgf-question__hint { margin: 0 0 1rem; }
/* Mode « une question à la fois » (activé par le script) : seule la question courante est visible. */
.pgf-quiz--stepped .pgf-question:not(.is-current) { display: none; }

.pgf-answer {
	position: relative;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	margin: 0 0 12px;
	padding: 12px 18px;
	border: 1px solid var(--pgf-border);
	border-radius: 18px;
	background: #fff;
	font-weight: 400;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}
.pgf-answer:hover { border-color: var(--pgf-beige); background: #fffaf6; }
/* La vraie case reste dans le flux pour le clavier et les lecteurs d'écran, mais invisible. */
.pgf-answer input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pgf-answer__key { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pgf-alt); font: 400 13px/1 var(--pgf-mono); }
.pgf-answer:has(input[type="checkbox"]) .pgf-answer__key { border-radius: 8px; }
.pgf-answer:has(input:checked) { border-color: var(--pgf-violet); background: var(--pgf-lavande); }
.pgf-answer:has(input:checked) .pgf-answer__key { background: var(--pgf-violet); color: #fff; }
.pgf-answer:has(input:focus-visible) { outline: 2px solid var(--pgf-violet); outline-offset: 2px; }

.pgf-quiz__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.pgf-quiz__foot .pgf-help { margin: 0; }
.pgf-quiz__nav { display: flex; flex-wrap: wrap; gap: 12px; }
.pgf-quiz__nav [hidden] { display: none !important; }

/* ------------------------------------------------------------------ */
/* Résultat : procès-verbal + score                                    */
/* ------------------------------------------------------------------ */
.pgf-result-head { margin-bottom: 1.75rem; }
.pgf-result-head .pgf-title { margin: 0 0 .5rem; }
.pgf-result-head p { margin: 0; color: var(--pgf-faded); max-width: 60ch; }
.pgf-pv { padding: 0; overflow: hidden; }
.pgf-pv__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 18px 28px; background: var(--pgf-peche); font: 400 13px/1.3 var(--pgf-mono); text-transform: uppercase; }
.pgf-pv__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
@media (max-width: 760px) { .pgf-pv__body { grid-template-columns: 1fr; } }
.pgf-pv table { width: 100%; margin: 0; border-collapse: collapse; }
.pgf-pv th, .pgf-pv td { padding: 13px 28px; border: 0; border-bottom: 1px solid var(--pgf-border-2); text-align: left; }
.pgf-pv tr:last-child th, .pgf-pv tr:last-child td { border-bottom: 0; }
.pgf-pv th { width: 42%; font: 400 13px/1.7 var(--pgf-mono); text-transform: uppercase; color: var(--pgf-faded-2); }
@media (max-width: 480px) { .pgf-pv th, .pgf-pv td { padding-inline: 18px; } }
.pgf-pv__score { display: grid; place-content: center; justify-items: center; gap: 18px; padding: 32px 24px; background: var(--pgf-lavande); }
.pgf-pv__value { margin: 0; font-size: 4rem; line-height: .9; font-weight: 700; color: var(--pgf-violet); }
.pgf-pv__value small { font-size: .32em; font-weight: 400; color: var(--pgf-faded); }
.pgf-result--failed .pgf-pv__value { color: var(--pgf-error); }
.pgf-gauge { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: 200px; margin: 14px 0 0; padding: 0; list-style: none; }
.pgf-gauge i { display: block; height: 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--pgf-border); }
.pgf-gauge i.is-on { background: var(--pgf-violet); box-shadow: none; }
.pgf-result--failed .pgf-gauge i.is-on { background: var(--pgf-error); }
/* Repère du seuil, placé par le gabarit (variable --pgf-pass, de 0 à 1). */
.pgf-gauge::before { content: ""; position: absolute; left: calc(var(--pgf-pass, .8) * 100%); top: -6px; bottom: -6px; width: 1px; background: #000; }
.pgf-gauge::after { content: attr(data-label); position: absolute; left: calc(var(--pgf-pass, .8) * 100%); top: -22px; transform: translateX(-50%); font: 400 11px/1 var(--pgf-mono); color: var(--pgf-faded); white-space: nowrap; }
.pgf-stamp { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 16px; border-radius: 50px; background: var(--pgf-success-bg); color: var(--pgf-success); font-weight: 500; }
.pgf-stamp::before { content: "✓"; }
.pgf-stamp--ko { background: var(--pgf-error-bg); color: var(--pgf-error); }
.pgf-stamp--ko::before { content: "!"; }
.pgf-result__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.75rem; }
.pgf-result__next { margin-top: var(--pgf-gap); }

.pgf-note { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.pgf-note p { margin: 0; color: var(--pgf-faded); }
.pgf-note strong { display: block; color: #000; }

.pgf-review { margin-top: clamp(40px, 5vw, 64px); }
.pgf-review .pgf-questions { gap: var(--pgf-gap); }
.pgf-review .pgf-question { border: 1px solid var(--pgf-border); border-radius: var(--pgf-r-card); padding: var(--pgf-gap); }
.pgf-review .pgf-question__title { font-size: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.pgf-review__answers { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: 8px; }
.pgf-review__answer { padding: 10px 16px; border-radius: 16px; border: 1px solid var(--pgf-border); }
.pgf-review__answer.is-correct { border-color: var(--pgf-success); color: var(--pgf-success); background: var(--pgf-success-bg); }
.pgf-review__answer.is-correct::before { content: "✓ "; }
.pgf-review__answer.is-chosen:not(.is-correct) { border-color: var(--pgf-error); color: var(--pgf-error); background: var(--pgf-error-bg); }
.pgf-review__answer.is-chosen:not(.is-correct)::before { content: "✕ "; }
.pgf-review__answer.is-chosen { font-weight: 500; }
/* 0.32.0 — étiquette « Votre réponse » à droite du libellé (sous le libellé sur petit écran) */
.pgf-review__answer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.pgf-review__answer::before { flex: none; margin-right: -.75rem; }
.pgf-review__text { flex: 1 1 16rem; }
.pgf-review__tag { flex: none; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.pgf-review__none { margin: .5rem 0 0; font-size: .9rem; font-weight: 500; color: var(--pgf-error); }
.pgf-review__explanation { margin: .75rem 0 0; }
.pgf-review__explanation p { margin: 0 0 .5em; }
.pgf-review__explanation p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Portail                                                             */
/* ------------------------------------------------------------------ */
.pgf-catalogue { display: grid; gap: var(--pgf-gap); }
.pgf-catalogue__item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); padding: 0; overflow: hidden; }
.pgf-catalogue__item:not(:has(.pgf-catalogue__media)) { grid-template-columns: 1fr; }
.pgf-catalogue__media { display: block; min-height: 240px; }
.pgf-catalogue__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pgf-catalogue__body { display: grid; gap: 1rem; align-content: start; padding: clamp(25px, 3vw, 36px); }
.pgf-catalogue__body > * { margin: 0; }
.pgf-catalogue__title { color: var(--pgf-violet); }
.pgf-catalogue__title a { color: inherit; text-decoration: none; }
.pgf-catalogue__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pgf-catalogue__facts li { margin: 0; padding: 4px 12px; border-radius: 50px; background: var(--pgf-peche); font: 400 12.5px/1.5 var(--pgf-mono); color: var(--pgf-marron-txt); }
.pgf-catalogue__progress .pgf-cells { margin-bottom: .5rem; }
.pgf-catalogue__progress p { margin: 0; font: 400 13px/1.4 var(--pgf-mono); }
.pgf-catalogue__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.pgf-catalogue__price { margin: 0; font-size: 1.4rem; font-weight: 700; color: var(--pgf-violet); }
@media (max-width: 768px) { .pgf-catalogue__item { grid-template-columns: 1fr; } .pgf-catalogue__media { min-height: 200px; } }

.pgf-portal-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; background: var(--pgf-lavande); border-color: transparent; border-radius: var(--pgf-r-block); padding: clamp(25px, 4vw, 40px); }
.pgf-portal-account__title { margin: 0 0 .25rem; color: var(--pgf-violet); }
.pgf-portal-account__lead { margin: 0; color: var(--pgf-faded); }

/* ------------------------------------------------------------------ */
/* Vérification d'une attestation                                       */
/* ------------------------------------------------------------------ */
.pgf-cert-cta { margin-top: 1rem; }
.pgf-cert-cta .pgf-meta { margin-top: .75rem; }
.pgf-verify { max-width: 680px; }
.pgf-verify__form .pgf-actions { margin-top: .5rem; }
.pgf-verify__form input[type="text"] { width: 100%; text-transform: uppercase; letter-spacing: .08em; }
.pgf-verify__result { margin-top: var(--pgf-gap); }
.pgf-verify__card--valid { border-color: var(--pgf-success); background: var(--pgf-success-bg); }
.pgf-verify__details { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 1rem 0 0; }
.pgf-verify__details dt { font: 400 13px/1.7 var(--pgf-mono); text-transform: uppercase; color: var(--pgf-faded); }
.pgf-verify__details dd { margin: 0; font-weight: 500; }
@media (max-width: 480px) { .pgf-verify__details { grid-template-columns: 1fr; gap: .15rem; } .pgf-verify__details dd { margin-bottom: .5rem; } }

@media (prefers-reduced-motion: reduce) {
	.pgf-progress__fill, .pgf-cells i, .pgf-modules__item a, .pgf-answer { transition: none; }
}

/* Le titre de question reçoit le focus au changement de question (lecteurs d'écran) : pas de cadre visuel. */
.pgf-question legend:focus { outline: 0; }
/* Écran d'accueil du QCM : carte de largeur raisonnable. */
.pgf-quiz > .pgf-quiz-card { max-width: 640px; }

/* ------------------------------------------------------------------ */
/* 0.14.2 — corrections relevées au test complet sur la préprod        */
/* ------------------------------------------------------------------ */
/* Impreza annule la marge haute du premier titre d'un bloc : on impose celle des bandeaux pêche. */
.pgf .pgf-quiz-card > .pgf-quiz-card__title { margin: 0 !important; padding: 16px 22px !important; line-height: 1.3; }
/* « .pgf-form label » (bloc, graisse 500) l'emportait sur la carte réponse : lettre au-dessus du texte. */
.pgf-form .pgf-answer { display: grid; margin: 0 0 12px; font-weight: 400; }
/* Étape 2 du bloc d'inscription : la mention Stripe se collait sous le bouton (marge négative générique). */
.pgf-buy .pgf-actions + .pgf-help { margin: .75rem 0 0; text-align: center; }

/* ------------------------------------------------------------------ */
/* 0.15.0 — paiement Stripe intégré dans le bloc d'inscription          */
/* ------------------------------------------------------------------ */
.pgf-checkout { scroll-margin-top: 7rem; }
/* Le formulaire Stripe arrive dans une iframe : on lui réserve la place pour éviter un saut de page. */
.pgf-checkout__frame { min-height: 420px; }
.pgf-checkout__loading { margin: 0; padding: 2rem 0; color: var(--pgf-faded); }
.pgf-buy [data-pgf-checkout-error]:not([hidden]) { margin: .75rem 0 0; color: var(--pgf-error); }
/* Le formulaire Stripe est haut : le récapitulatif (prix, arguments) suit le défilement.
 * Le fond pêche passe sur le bloc entier (dégradé net à la largeur de la colonne, .95 / 2 = 47,5 %)
 * pour que la colonne reste colorée jusqu'en bas même si son contenu ne l'occupe plus. */
@media (min-width: 961px) {
	.pgf-buy { background: linear-gradient(90deg, var(--pgf-peche) 47.5%, #fff 47.5%); }
	.pgf-buy__text { position: sticky; top: 6.5rem; align-self: start; background: transparent; }
}

/* Bouton « Mon espace » de l'en-tête : sur une ligne, sinon il passe à deux lignes sur téléphone. */
.l-subheader .w-btn { white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* 0.24.0 — deux documents et « Après réussite »                        */
/* ------------------------------------------------------------------ */
/* Deux boutons de téléchargement (certificat, attestation) : à la ligne sur téléphone. */
.pgf-docs { display: flex; flex-wrap: wrap; gap: 12px; }
.pgf-docs__help { flex-basis: 100%; margin: 0; color: var(--pgf-faded); font-size: .9em; }
/* Vidéo de fin et liens réservés aux reçus. */
.pgf-after { display: grid; gap: var(--pgf-gap); margin-top: var(--pgf-gap); }
.pgf-after .pgf-section { margin: 0; }
.pgf-after__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pgf-after__list li { margin: 0; }
.pgf-after__list .pgf-link { font-weight: 600; overflow-wrap: anywhere; }
.pgf-after__note { display: block; margin-top: .2rem; color: var(--pgf-faded); font-size: .92em; }
.pgf-result__actions > .pgf-link { align-self: center; }

/* ------------------------------------------------------------------ */
/* Prise en main (0.27.0) : entre le paiement et la première vidéo     */
/* ------------------------------------------------------------------ */
.pgf-onboarding__head { max-width: 46rem; margin-bottom: 1.75rem; }
.pgf-onboarding__head .pgf-title { margin-bottom: .75rem; }
.pgf-onboarding__lead { margin: 0; color: var(--pgf-faded); font-size: 1.05em; }
.pgf-guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pgf-guide__step { position: relative; margin: 0; padding-top: 22px; }
.pgf-guide__num { display: inline-grid; place-items: center; min-width: 44px; height: 44px; margin-bottom: 14px; border-radius: 8px; background: var(--pgf-peche); color: var(--pgf-marron-txt); font: 500 15px/1 var(--pgf-mono); }
.pgf-guide__title { margin: 0 0 .5rem; font-size: 1.15em; color: var(--pgf-violet); }
.pgf-guide__step p { margin: 0 0 .6rem; }
.pgf-guide__step p:last-child { margin-bottom: 0; }
.pgf-guide__note { color: var(--pgf-faded); font-size: .92em; }
.pgf-onboarding__actions { margin-top: 1.75rem; }
.pgf-onboarding__actions form { margin: 0; }
.pgf-toc__guide { margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--pgf-border-2); font-size: .92em; }
/* La 5e étape (« Une question ? ») sur toute la largeur : pas de carte orpheline sur sa ligne. */
.pgf-guide__step:last-child { grid-column: 1 / -1; }

/* ------------------------------------------------------------------ */
/* 0.33.0 — page de résultat du QCM et page « Formation validée »      */
/* Moins d'empilement : synthèse + action en haut, cartes côte à côte, */
/* correction repliable (maquette : maquettes/resultat-v2/).           */
/* ------------------------------------------------------------------ */

/* Bandeau de synthèse : le titre, les chiffres utiles et l'action suivante d'un côté,
 * le score de l'autre. Remplace l'en-tête + le grand tableau « procès-verbal ». */
.pgf-rs { display: grid; grid-template-columns: minmax(0, 1fr) 280px; padding: 0; overflow: hidden; }
@media (max-width: 760px) { .pgf-rs { grid-template-columns: minmax(0, 1fr); } }
.pgf-rs__main { min-width: 0; padding: clamp(22px, 3vw, 34px); display: grid; gap: 1rem; align-content: start; }
.pgf-rs__main > * { margin: 0; }
.pgf-rs__main .pgf-kicker { color: var(--pgf-faded); }
.pgf-rs__main .pgf-title { margin: 0; }
.pgf-rs__lead { color: var(--pgf-faded); max-width: 60ch; }
.pgf-rs__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pgf-rs__facts li { margin: 0; padding: 6px 12px; border-radius: 50px; background: var(--pgf-alt); font-size: .9em; }
.pgf-rs__facts b { font-weight: 600; }
.pgf-rs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: .25rem; }
.pgf-rs__actions .pgf-docs { gap: 12px; }
.pgf-rs__actions .pgf-help { margin: 0; color: var(--pgf-faded); }
.pgf-rs .pgf-pv__score { padding: 28px 24px; }
/* Mobile : le score passe en bandeau compact au-dessus du texte (chiffre, jauge et mention sur une ligne si la place le permet). */
@media (max-width: 760px) {
	.pgf-rs .pgf-pv__score { order: -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 14px 20px; padding: 26px 22px 18px; }
	.pgf-rs .pgf-pv__value { font-size: 2.75rem; white-space: nowrap; }
	.pgf-rs .pgf-gauge { width: 130px; margin: 0; }
}
.pgf-rs__note { display: flex; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--pgf-peche); font-size: .92em; }
.pgf-rs__note strong { display: block; }

/* Suite du parcours : cartes côte à côte au lieu de blocs empilés. */
.pgf-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--pgf-gap); margin-top: var(--pgf-gap); align-items: start; }
.pgf-next > .pgf-card { margin: 0; display: grid; gap: .9rem; align-content: start; }
.pgf-next > .pgf-card > * { margin: 0; }
.pgf-next .pgf-title { margin: 0; font-size: 1.25rem; }
/* Tuiles : 3 côte à côte quand la carte a toute la largeur, une colonne dans une carte étroite. */
.pgf-next__modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.pgf-next__modules li { margin: 0; }
.pgf-next__modules a { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--pgf-border); color: inherit; text-decoration: none; font-weight: 500; }
.pgf-next__modules a::after { content: "Revoir le module →"; margin-top: 6px; color: var(--pgf-violet); font-size: .88em; font-weight: 600; }
.pgf-next__modules a:hover, .pgf-next__modules a:focus-visible { border-color: var(--pgf-violet); background: var(--pgf-lavande); }
.pgf-next__modules span { order: -1; color: var(--pgf-faded); font: 400 13px/1.6 var(--pgf-mono); text-transform: uppercase; }

/* Correction repliable : une ligne par question, les erreurs ouvertes d'office. */
.pgf-review__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .75rem 2rem; margin-bottom: 1.25rem; }
.pgf-review__head .pgf-title { margin: 0; }
.pgf-review__count { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pgf-review .pgf-questions { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pgf-review .pgf-question { padding: 0; margin: 0; }
.pgf-rq > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; list-style: none; }
.pgf-rq > summary::-webkit-details-marker { display: none; }
.pgf-rq > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--pgf-violet); border-bottom: 2px solid var(--pgf-violet); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.pgf-rq[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.pgf-rq > summary:focus-visible { outline: 2px solid var(--pgf-violet); outline-offset: -2px; border-radius: var(--pgf-r-card); }
.pgf-rq__num { font: 400 13px/1 var(--pgf-mono); color: var(--pgf-faded); }
.pgf-rq__title { color: var(--pgf-violet); font-weight: 600; }
.pgf-rq__body { padding: 0 20px 20px; }
.pgf-rq__body .pgf-review__answers { margin-top: 0; }
.pgf-review .pgf-question--ko { border-color: var(--pgf-error); }
@media (prefers-reduced-motion: reduce) { .pgf-rq > summary::after { transition: none; } }
@media (max-width: 600px) { .pgf-rq > summary { grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 16px; } .pgf-rq > summary .pgf-badge { grid-column: 2; justify-self: start; } .pgf-rq > summary::after { grid-row: 1; grid-column: 3; } .pgf-rq__body { padding: 0 16px 16px; } }

/* Bloc « après réussite » en cartes : côte à côte dès que le conteneur le permet. */
.pgf-after { container-type: inline-size; }
.pgf-after__grid { display: grid; gap: var(--pgf-gap); align-items: start; }
@container (min-width: 760px) { .pgf-after__grid--two { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.pgf-after__grid > .pgf-card { margin: 0; display: grid; gap: .9rem; align-content: start; }
.pgf-after__grid > .pgf-card > * { margin: 0; }
.pgf-after__grid .pgf-title { margin: 0; font-size: 1.25rem; }
.pgf-rs__actions .pgf-cert-cta { margin: 0; display: grid; gap: .75rem; }
.pgf-rs__actions .pgf-cert-cta .pgf-meta { margin: 0; }
.pgf-next .pgf-quiz__admin-tools { margin: 0; padding: 0; border: 0; }
.pgf-rs__actions form { margin: 0; }
.pgf-rs__note p { margin: 0; }
.pgf-rs__facts .pgf-code { white-space: nowrap; }
