/* Gabarit article PilotMoney */

/* Intégration GeneratePress : pleine largeur */
body.pma-article .site.grid-container, body.pma-article .site-content { max-width: none; padding: 0; display: block; }
html:has(body.pma-article) { scroll-behavior: smooth; scroll-padding-top: 90px; }

.pma {
	--violet: #2a039e; --violet-700: #1f0277; --violet-50: #f1edff;
	--menthe: #69fcb2; --menthe-50: #e9fff4;
	--encre: #28333e; --texte: #3d4852; --doux: #6b7680;
	--fond: #fbfbfb; --gris: #f2f2f2; --ligne: #e6e8ea;
	--alerte: #fff4e5; --alerte-bord: #f0a03c;
	--rayon: 16px;
	--ombre: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
	color: var(--texte); background: #fff; font-size: 16px; line-height: 1.6; overflow-x: clip;
}
.pma *, .pma *::before, .pma *::after { box-sizing: border-box; }
.pma a { color: inherit; text-decoration: none; }
.pma img { max-width: 100%; height: auto; }
.pma h1, .pma h2, .pma h3, .pma h4 { color: var(--encre); line-height: 1.2; margin: 0; font-family: inherit; }
.pma p { margin: 0; }
.pma .wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.pma .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; font-family: inherit; line-height: 1.3; transition: transform .15s, background .15s; }
.pma .btn:hover { transform: translateY(-1px); }
.pma .btn-violet { background: var(--violet); color: #fff; }
.pma .btn-violet:hover { background: var(--violet-700); color: #fff; }
.pma .btn-menthe { background: var(--menthe); color: var(--violet); }
.pma .btn-menthe:hover { color: var(--violet); }
.pma-progression { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--violet); z-index: 100000; }
body.admin-bar .pma-progression { top: 32px; }

/* 1. Tête d'article */
.pma .tete { background: linear-gradient(180deg, var(--menthe-50), #fff); padding: 28px 0 40px; }
.pma .tete-in { max-width: 820px; }
.pma .ariane { font-size: .82rem; color: var(--doux); margin-bottom: 18px; }
.pma .ariane a:hover { color: var(--violet); text-decoration: underline; }
.pma .ariane span { margin: 0 6px; }
.pma .rubrique { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); background: var(--violet-50); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.pma .tete h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; }
.pma .chapo { margin-top: 16px; font-size: 1.12rem; max-width: 700px; }
.pma .signature { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.pma .signature img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid #fff; box-shadow: var(--ombre); }
.pma .signature .qui { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.45; }
.pma .signature .qui a { color: var(--violet); font-weight: 600; }
.pma .signature .qui a:hover { text-decoration: underline; }
.pma .signature .date { color: var(--doux); font-size: .85rem; }

/* 2. Grille contenu + colonne */
.pma .corps { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 56px; justify-content: space-between; padding: 40px 20px 72px; }
.pma .colonne { position: relative; }
.pma .colonne-collante { position: sticky; top: 96px; display: grid; gap: 20px; }
body.admin-bar .pma .colonne-collante { top: 128px; }

.pma .sommaire { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 18px 14px; background: #fff; }
.pma .sommaire-titre { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); margin-bottom: 8px; }
.pma .sommaire ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: calc(100vh - 380px); overflow-y: auto; }
.pma .sommaire li { margin: 0; }
.pma .sommaire li a { display: block; font-size: .88rem; line-height: 1.4; padding: 6px 10px; border-left: 2px solid transparent; color: var(--texte); border-radius: 0 6px 6px 0; }
.pma .sommaire li a:hover { color: var(--violet); background: var(--violet-50); }
.pma .sommaire li a.actif { border-left-color: var(--violet); color: var(--violet); font-weight: 600; background: var(--violet-50); }
.pma .sommaire-mobile { display: none; }
.pma.sans-sommaire .sommaire { display: none !important; }

.pma .encart-col { background: var(--violet); color: #dcd3ff; border-radius: var(--rayon); padding: 22px; }
.pma .encart-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.pma .encart-col p { font-size: .88rem; margin-bottom: 16px; }
.pma .encart-col .btn { width: 100%; }

/* 3. Typographie de l'article */
.pma .article { font-size: 1.06rem; line-height: 1.75; min-width: 0; }
.pma .une { margin: 0 0 32px; }
.pma .une img { display: block; width: 100%; height: auto; border-radius: var(--rayon); }
.pma .article > * + * { margin-top: 1.1em; }
.pma .pma-contenu { margin: 0; }
.pma .pma-contenu > * { margin-bottom: 0; }
.pma .pma-contenu > * + * { margin-top: 1.1em; }
.pma .pma-contenu > h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -.015em; margin-top: 2.2em; }
.pma .pma-contenu > h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; }
.pma .pma-contenu > h4 { font-size: 1.05rem; font-weight: 700; margin-top: 1.4em; }
.pma .pma-contenu p a:not([class]), .pma .pma-contenu li a:not([class]), .pma .pma-contenu td a:not([class]) { color: var(--violet); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pma .pma-contenu > ul, .pma .pma-contenu > ol { margin-left: 0; margin-right: 0; padding-left: 1.3em; }
.pma .pma-contenu li + li { margin-top: .4em; }
.pma .pma-contenu figure { margin-left: 0; margin-right: 0; }
.pma .pma-contenu figure img { border-radius: 14px; }
.pma .pma-contenu figcaption { font-size: .82rem; color: var(--doux); margin-top: 8px; text-align: center; }
.pma .pma-contenu .wp-block-table { overflow-x: auto; }
.pma .pma-contenu .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.pma .pma-contenu .wp-block-table th { background: var(--gris); color: var(--encre); text-align: left; font-weight: 700; }
.pma .pma-contenu .wp-block-table th, .pma .pma-contenu .wp-block-table td { padding: 10px 12px; border: 1px solid var(--ligne); vertical-align: top; }

/* Composants réutilisables dans les articles réécrits */
.pma .essentiel { background: var(--menthe-50); border: 1px solid #bff3d8; border-radius: var(--rayon); padding: 22px 24px; }
.pma .titre-encart { font-weight: 800; color: var(--encre); font-size: 1.02rem; margin-bottom: 10px; }
.pma .essentiel ul { margin: 0; padding-left: 1.2em; font-size: .98rem; }
.pma .avis { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--violet-50); border-radius: var(--rayon); padding: 22px 24px; }
.pma .avis img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.pma .avis .titre-encart { color: var(--violet); font-size: .95rem; margin-bottom: 6px; }
.pma .attention { background: var(--alerte); border-left: 4px solid var(--alerte-bord); border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: .98rem; }
.pma .attention strong { color: #8a4b00; }
.pma .aimant { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; border: 2px solid var(--violet); border-radius: var(--rayon); padding: 22px; margin: 2em 0 !important; }
.pma .aimant img { border-radius: 10px; box-shadow: var(--ombre); }
.pma .comparatif { width: 100%; border-collapse: collapse; font-size: .93rem; border: 1px solid var(--ligne); }
.pma .comparatif th { background: var(--gris); color: var(--encre); text-align: left; padding: 12px 14px; font-weight: 700; }
.pma .comparatif td { padding: 12px 14px; border-top: 1px solid var(--ligne); vertical-align: top; }
.pma .comparatif .reco { background: var(--menthe-50); }
.pma .tableau-defile { overflow-x: auto; }
.pma .outil { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--encre); color: #c9d2da; border-radius: var(--rayon); padding: 22px 24px; flex-wrap: wrap; }
.pma .outil .titre-encart { color: #fff; }
.pma .faq details { border: 1px solid var(--ligne); border-radius: 12px; padding: 0 18px; background: #fff; }
.pma .faq details + details { margin-top: 10px; }
.pma .faq summary { cursor: pointer; font-weight: 700; color: var(--encre); padding: 16px 28px 16px 0; list-style: none; position: relative; }
.pma .faq summary::-webkit-details-marker { display: none; }
.pma .faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.3rem; color: var(--violet); }
.pma .faq details[open] summary::after { content: "−"; }
.pma .faq details p { padding-bottom: 16px; }

/* 4. Fin d'article : confiance */
.pma .transparence-aff { font-size: .85rem; line-height: 1.6; color: var(--doux); background: var(--fond); border: 1px solid var(--ligne); border-radius: 10px; padding: 12px 16px; margin-top: 2.5em !important; }
.pma .transparence-aff a { color: var(--violet); font-weight: 600; }
.pma .utile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); padding: 16px 0; margin-top: 2.5em !important; font-size: .93rem; }
.pma .transparence-aff + .utile { margin-top: 1.5em !important; }
.pma .utile button { font: inherit; font-size: .88rem; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ligne); background: #fff; color: var(--texte); cursor: pointer; line-height: 1.4; }
.pma .utile button:hover { border-color: var(--violet); color: var(--violet); background: #fff; }
.pma .utile .merci { color: #0b7a47; font-weight: 600; }

.pma .methode { background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px 24px; font-size: .92rem; line-height: 1.6; }
.pma .methode .titre-encart { margin-bottom: 12px; font-size: 1rem; }
.pma .methode h4 { margin: 14px 0 4px; font-size: .9rem; }
.pma .methode a { color: var(--violet); font-weight: 600; }
.pma .methode ul { margin: 0; padding: 0; list-style: none; }
.pma .methode .histo time { font-weight: 600; color: var(--encre); margin-right: 6px; }

.pma .auteur { display: grid; grid-template-columns: 120px 1fr; gap: 24px; border-radius: var(--rayon); background: var(--violet-50); padding: 28px; line-height: 1.6; }
.pma .auteur img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 4px solid #fff; }
.pma .auteur .surtitre { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.pma .auteur h3 { font-size: 1.3rem; margin: 4px 0 2px; }
.pma .auteur .role { font-size: .88rem; color: var(--doux); margin-bottom: 12px; }
.pma .auteur p { font-size: .95rem; }
.pma .preuves { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pma .preuves span { font-size: .78rem; font-weight: 600; background: #fff; color: var(--encre); padding: 5px 10px; border-radius: 999px; border: 1px solid #ddd5ff; }
.pma .auteur-liens { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; font-weight: 600; color: var(--violet); }
.pma .auteur-liens a:hover { text-decoration: underline; }

/* 5. Après l'article */
.pma .suite { background: var(--fond); border-top: 1px solid var(--ligne); padding: 64px 0; }
.pma .suite h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; margin-bottom: 8px; }
.pma .suite .sous { color: var(--doux); margin-bottom: 28px; }
.pma .prochaine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.pma .carte { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, transform .15s; }
.pma .carte:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.pma .carte .num { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.pma .carte h3 { font-size: 1.02rem; }
.pma .carte p { font-size: .88rem; color: var(--doux); flex: 1; }
.pma .carte .lire { font-size: .88rem; font-weight: 600; color: var(--violet); }

.pma .lettre { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--violet); color: #dcd3ff; border-radius: 24px; padding: 40px; }
.pma .lettre h2 { color: #fff; }
.pma .lettre ul { margin: 14px 0 0; padding-left: 1.2em; font-size: .93rem; }
.pma .lettre small { font-size: .75rem; color: #b9adf0; }
.pma .form-lettre { display: flex; flex-direction: column; gap: 12px; }
.pma .form-lettre p { margin: 0 0 10px; }
.pma .form-lettre form, .pma .form-lettre .newsletter__row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
.pma .form-lettre .wpcf7-form-control-wrap { display: block; width: 100%; }
.pma .form-lettre input[type=email], .pma .form-lettre input[type=text] { width: 100%; font: inherit; padding: 15px 16px; border-radius: 10px; border: 0; }
.pma .form-lettre input[type=submit] { width: 100%; font: inherit; font-weight: 600; padding: 14px 22px; border-radius: 10px; border: 0; background: var(--menthe); color: var(--violet); cursor: pointer; }
.pma .form-lettre p.newsletter__row { background: none; border-radius: 0; padding: 0; margin: 0; }
.pma .form-lettre .newsletter__row input.newsletter__input { border-radius: 10px; padding: 15px 16px; height: auto; }
.pma .form-lettre label { color: #fff; }
.pma .form-lettre .wpcf7-response-output { color: #fff; border-color: var(--menthe); }

.pma .commentaires { padding: 56px 0; }
.pma .commentaires .wrap { max-width: 800px; }
.pma .commentaires h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.pma .commentaires > .wrap > p { color: var(--doux); font-size: .95rem; margin-bottom: 24px; }
.pma .commentaires .comment-reply-title, .pma .commentaires .comments-title { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.pma .commentaires p { margin: 0 0 12px; font-size: .92rem; }
.pma .commentaires textarea, .pma .commentaires input[type=text], .pma .commentaires input[type=email], .pma .commentaires input[type=url] { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--ligne); border-radius: 10px; background: #fff; }
.pma .commentaires textarea:focus, .pma .commentaires input:focus { border-color: var(--violet); outline: none; }
.pma .commentaires input[type=submit] { font: inherit; font-weight: 600; padding: 13px 22px; border: 0; border-radius: 10px; background: var(--violet); color: #fff; cursor: pointer; }
.pma .commentaires input[type=submit]:hover { background: var(--violet-700); }
.pma .comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.pma .comment-list .comment-body { border: 1px solid var(--ligne); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: #fff; }

.pma .barre-mobile { display: none; }

/* Responsive */
@media (max-width: 1000px) {
	.pma .corps { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; margin: 0 auto; }
	.pma .colonne { display: none; }
	.pma .sommaire-mobile { display: block; margin-bottom: 1.6em; }
	.pma .sommaire-mobile summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--encre); display: flex; justify-content: space-between; }
	.pma .sommaire-mobile summary::-webkit-details-marker { display: none; }
	.pma .sommaire-mobile summary::after { content: "▾"; color: var(--violet); }
	.pma .sommaire-mobile[open] summary::after { content: "▴"; }
	.pma .sommaire-mobile ol { margin-top: 10px; max-height: none; }
	.pma .prochaine { grid-template-columns: 1fr; }
}
@media (max-width: 782px) { body.admin-bar .pma-progression { top: 46px; } }
@media (max-width: 760px) {
	.pma .wrap { padding: 0 16px; }
	.pma .corps { padding: 28px 16px 56px; }
	.pma .tete { padding: 20px 0 28px; }
	.pma .chapo { font-size: 1.02rem; }
	.pma .article { font-size: 1.02rem; }
	.pma .aimant, .pma .auteur, .pma .lettre, .pma .avis { grid-template-columns: 1fr; }
	.pma .aimant img { max-width: 180px; }
	.pma .auteur { padding: 22px; }
	.pma .auteur img { width: 96px; height: 96px; }
	.pma .lettre { padding: 28px 20px; border-radius: 20px; }
	.pma .barre-mobile { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; align-items: center; justify-content: space-between; gap: 10px; background: var(--encre); color: #fff; border-radius: 14px; padding: 10px 10px 10px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .85rem; transform: translateY(140%); transition: transform .25s; }
	.pma .barre-mobile.visible { transform: none; }
	.pma .barre-mobile .btn { padding: 10px 14px; font-size: .85rem; }
	.pma .barre-mobile .fermer { background: none; border: 0; color: #93a0ab; font-size: 1.2rem; cursor: pointer; padding: 0 4px; }
}
