/* Bien-être Mental 2.0.0 — styles propres à WordPress et au contenu des articles, au-dessus du design V2.2
   (tokens.css, bundle.css, layout.css, complements.css). Uniquement les variables de tokens.css. */

/* ---------- Accessibilité, WordPress ---------- */
.bem-skip { position: absolute; left: 12px; top: -200px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--sage-strong); color: var(--on-sage); font-weight: 700; text-decoration: none; }
.bem-skip:focus { top: 12px; }
main:focus { outline: none; }
.admin-bar .rubnav { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .rubnav { top: 0; } }
.tags__label { color: var(--ink-muted); }
.article-figure figcaption { margin-top: var(--space-2); color: var(--ink-muted); font-size: 14px; line-height: 20px; }

/* ---------- Anciennes variables du thème 1.x ----------
   Les widgets sur mesure du contenu (test d'hypersensibilité, textes de méditation) portent leur propre style, qui
   vise .bem-prose et les variables de l'ancien design system. Elles pointent ici vers les couleurs de la V2.2. */
.bem-prose {
  --color-bg: var(--surface-raised); --color-surface: var(--surface-sunken); --color-text: var(--ink); --color-divider: var(--line);
  --color-accent: var(--sage); --color-accent-2: var(--info);
  --color-neutral-100: var(--surface); --color-neutral-200: var(--line); --color-neutral-300: var(--line); --color-neutral-400: var(--line-strong);
  --color-neutral-500: var(--line-strong); --color-neutral-600: var(--ink-muted); --color-neutral-700: var(--ink-muted); --color-neutral-800: var(--ink-muted); --color-neutral-900: var(--ink);
  --color-accent-100: var(--sage-soft); --color-accent-200: var(--sage-soft); --color-accent-300: var(--sage-soft); --color-accent-400: var(--sage);
  --color-accent-500: var(--sage); --color-accent-600: var(--sage); --color-accent-700: var(--sage-strong); --color-accent-800: var(--sage-strong); --color-accent-900: var(--sage-strong);
  --font-heading: var(--font-serif); --font-heading-weight: 600; --font-body: var(--font-sans); --focus: var(--focus-ring);
}

/* ---------- Texte des articles : éléments ajoutés par le thème ---------- */
/* Encadrés du design placés dans le texte (« Quand consulter ? », 3114). */
.bm-prose .bm-callout, .bm-prose .bm-urgency { margin: var(--space-6) 0; }
.bm-prose .bm-callout p { margin: 0 0 var(--space-2); }
.bm-prose .bm-callout__content > :last-child { margin-bottom: 0; }
.bm-prose .bm-urgency__numbers { padding-left: 0; }
.bm-prose .bm-urgency__numbers li + li { margin-top: 0; }
.bm-prose .bm-urgency__number { text-decoration: none; }

/* FAQ (accordéon details/summary ; les questions restent des H3). */
.bm-prose .bm-faq { margin: var(--space-4) 0 var(--space-6); }
.bm-prose .bm-faq__item summary { color: var(--ink); }
.bm-prose .bm-faq__q { margin: 0; font: inherit; color: inherit; }
.bm-prose .bm-faq__item .bm-icon { flex: none; color: var(--sage); transition: transform 160ms ease-out; }
.bm-prose .bm-faq__item[open] summary .bm-icon { transform: rotate(180deg); }
.bm-prose .bm-faq__answer p { margin: 0 0 var(--space-3); }
.bm-prose .bm-faq__answer > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .bm-prose .bm-faq__item .bm-icon { transition: none; } }

/* Sources (section du contenu, titre H2 d'origine). */
.bm-prose .bm-sources { margin: var(--space-6) 0 0; font-size: 16px; line-height: 24px; }
.bm-prose .bm-sources h2 { margin: 0 0 var(--space-3); font-size: 23px; line-height: 30px; }
.bm-prose .bm-sources p { margin: 0 0 var(--space-3); }
.bm-prose .bm-sources ul, .bm-prose .bm-sources ol { margin: 0; padding-left: var(--space-5); }
.bm-prose .bm-sources li { padding-block: 10px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.bm-prose .bm-sources li:first-child { border-top: 0; }
.bm-prose .bm-sources li + li { margin-top: 0; }
.bm-prose .bm-sources li { overflow-wrap: anywhere; }

/* « À lire aussi » du contenu (div.bem-lire-aussi rédigé, p.bem-related-reading transformé) : style .readalso. */
.bm-prose .bem-lire-aussi, .bm-prose .bem-related-reading { margin: var(--space-6) 0; padding-block: 20px; border-block: 1px solid var(--line-strong); }
.bm-prose .bem-lire-aussi p { margin: 0; }
.bm-prose .bem-lire-aussi p + p { margin-top: var(--space-2); }
.bm-prose .bem-lire-aussi__kicker, .bm-prose .bem-related-reading__kicker { display: block; margin: 0 0 var(--space-2); font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
/* Dans une phrase (div.bem-lire-aussi), le lien reste un lien du texte ; seule la carte de lien prend le style .readalso. */
.bm-prose .bem-lire-aussi a { font-weight: 600; }
.bm-prose .bem-related-reading__link { color: var(--ink); font-family: var(--font-serif); font-size: 19px; line-height: 26px; font-weight: 600; text-decoration: none; }
.bm-prose .bem-related-reading__link:hover { color: var(--sage-strong); text-decoration: underline; text-underline-offset: 4px; }
.bm-prose .bem-related-reading__link { display: inline-flex; align-items: center; gap: var(--space-2); }
.bm-prose .bem-related-reading__text { display: block; }
.bm-prose .bem-related-reading__title { display: block; }
.bm-prose .bem-related-reading__link .bem-icon { flex: none; color: var(--sage); }

/* Précision propre à un article (p#bem-disclaimer) : note discrète. */
.bm-prose p#bem-disclaimer { color: var(--ink-muted); font-size: 15px; line-height: 22px; }

/* Vidéo YouTube (façade : l'iframe n'est chargée qu'au clic). */
.bm-prose .bem-yt, .bem-yt { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: var(--space-5) 0; overflow: hidden; border-radius: var(--radius-md); background: var(--ink); }
.bem-yt__btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.bem-yt__btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.bem-yt__img { width: 100%; height: 100%; object-fit: cover; }
.bem-yt__play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; border-radius: 14px; background: rgba(31, 43, 37, 0.88); transform: translate(-50%, -50%); transition: background-color 150ms ease; }
.bem-yt__play::after { content: ""; position: absolute; top: 50%; left: 50%; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 17px solid #fff; transform: translate(-38%, -50%); }
.bem-yt__btn:hover .bem-yt__play { background: var(--sage); }
.bem-yt__label { position: absolute; right: 0; bottom: 0; left: 0; padding: 10px 14px; background: rgba(31, 43, 37, 0.82); font-size: 14px; font-weight: 600; line-height: 1.35; text-align: left; }
.bem-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Pagination interne d'un article (wp_link_pages). */
.bem-page-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 0; font-weight: 600; }

/* Listes de liens en deux colonnes (Sur le même thème…). */
.qlist.cols-2 { gap: 0 var(--space-7); }

/* ---------- Rubriques ---------- */
.rub-head__lead, .rub-head__meta { color: var(--ink-muted); }
.rub-head__lead p { margin: 0 0 var(--space-3); }
.rub-head__lead > :last-child { margin-bottom: 0; }
.rub-head__lead a { color: var(--sage); text-underline-offset: 3px; }
.rub-qc { margin-top: var(--space-6); }
.rub-qc .bm-callout__content p { margin: 0 0 var(--space-2); }
.rub-qc .bm-callout__content > :last-child { margin-bottom: 0; }
.rub-encart { display: flex; flex-direction: column; gap: var(--space-1); color: var(--ink); text-decoration: none; }
a.rub-encart:hover { box-shadow: var(--shadow-md); }
.rub-encart p { margin: 0; }

/* ---------- Widgets Wisewand : feuille de style intégrée au contenu ----------
   Le contenu des articles embarque la feuille des composants wwc, dont les pictogrammes sont chargés depuis un site
   externe (api.iconify.design). Comme en 1.x, on les retire : les encadrés ont leurs couleurs et titres. */
.bm-prose .wwc {
  --wwc-checkbox-icon: none; --wwc-icon-chevron: none; --wwc-icon-tip: none; --wwc-icon-info: none; --wwc-icon-calendar: none; --wwc-icon-clock: none; --wwc-icon-link: none; --wwc-icon-download: none; --wwc-icon-bookmark: none; --wwc-icon-quote: none; --wwc-icon-message: none; --wwc-icon-code: none; --wwc-icon-terminal: none; --wwc-icon-settings: none; --wwc-icon-list: none; --wwc-icon-file: none; --wwc-icon-image: none; --wwc-icon-check: none; --wwc-icon-star: none; --wwc-icon-zap: none; --wwc-icon-lock: none; --wwc-icon-shield: none; --wwc-icon-eye: none; --wwc-icon-user: none; --wwc-icon-users: none; --wwc-icon-heart: none; --wwc-icon-credit-card: none; --wwc-icon-gift: none; --wwc-icon-tag: none; --wwc-icon-book: none; --wwc-icon-graduation: none; --wwc-icon-map-pin: none; --wwc-icon-compass: none; --wwc-icon-globe: none; --wwc-icon-video: none; --wwc-icon-mic: none; --wwc-icon-camera: none; --wwc-icon-pro: none; --wwc-icon-con: none;
}
.bm-prose .wwc::before, .bm-prose .wwc::after { content: none; display: none; }

/* ---------- Accueil ---------- */
.start__hint { margin: 0; color: var(--ink-muted); }
.methode { scroll-margin-top: 70px; }
.methode__not { margin: var(--space-5) 0 0; color: var(--ink-muted); }
.methode__not strong { color: var(--ink); }
.home-urgency { padding-bottom: 72px; }
.tool-lead .kicker .bm-icon-sm { margin-right: 4px; vertical-align: -2px; }

.grid12 > .span-12 { grid-column: 1 / -1; }

/* ---------- Guides ---------- */
.guide-intro { max-width: none; }
.guide-besoin h2 { margin: 0 0 var(--space-2); padding-top: var(--space-3); border-top: 2px solid var(--ink); }
.guide-besoin .numlist a { font-size: 17px; line-height: 24px; }
.guide-reperes { padding-bottom: 72px; scroll-margin-top: 110px; }
.repere__src a { color: inherit; text-underline-offset: 3px; }
.guide-cols { gap: 0 var(--space-7); }
.textlinks__dek { display: block; color: var(--ink-muted); }
.guide-consulter { display: grid; gap: var(--space-5); align-content: start; }
.guide-consulter .bm-callout p { margin: 0 0 var(--space-2); }
.guide-consulter .bm-callout__content > :last-child, .guide-consulter > p { margin-bottom: 0; }
.guide-count { color: var(--ink-muted); }
#tous { scroll-margin-top: 100px; }
.guide-sources h2 { margin: 0 0 var(--space-3); font-family: var(--font-serif); font-size: 23px; line-height: 30px; font-weight: 600; }
.guide-sources ul { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
.guide-sources li { padding-block: 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.guide-sources li:first-child { border-top: 0; }
.guide-page .bm-faq__q { margin: 0; font: inherit; color: inherit; }

/* ---------- Page Aide ---------- */
.aide-hero__lead { color: var(--ink-muted); }
.aide-hero__lead p { margin: 0; }
.call3114__k { margin: 0; }
.call3114__text p { margin: 0 0 var(--space-3); }
.aide-numbers__text { margin-top: var(--space-4); color: var(--ink-muted); }
.aide-numbers__text p { margin: 0 0 var(--space-2); }
.aide-lines { padding-bottom: 72px; }
.lines__desc p { margin: 0; }
.aide-directory__after { margin-top: var(--space-4); color: var(--ink-muted); }
.aide-directory__after p { margin: 0; }
.aide-consult__text { font-size: 17px; line-height: 28px; }
.aide-sources { max-width: 960px; }
.aide-sources .bm-sources h2 { display: flex; align-items: center; gap: var(--space-2); }
.aide-sources .bm-sources ul { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
.aide-sources .bm-sources li { padding-block: 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.aide-sources .bm-sources li:first-child { border-top: 0; }

/* ---------- Contact Form 7 (page Contact) : style des champs .pg-field / .pg-form de la V2.2 ---------- */
.bm-prose .wpcf7 { max-width: 640px; }
.bm-prose .wpcf7 form { display: grid; gap: var(--space-5); margin: 0; }
.bm-prose .wpcf7 form > p { margin: 0; }
.bm-prose .wpcf7 label { display: grid; gap: var(--space-2); font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.bm-prose .wpcf7 .wpcf7-form-control-wrap { display: block; }
.bm-prose .wpcf7 input[type="text"], .bm-prose .wpcf7 input[type="email"], .bm-prose .wpcf7 input[type="tel"], .bm-prose .wpcf7 textarea { box-sizing: border-box; width: 100%; padding: 10px 14px; font-family: var(--font-sans); font-size: 17px; line-height: 26px; font-weight: 400; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.bm-prose .wpcf7 textarea { min-height: 180px; resize: vertical; }
.bm-prose .wpcf7 input:focus-visible, .bm-prose .wpcf7 textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--sage-strong); }
.bm-prose .wpcf7 .wpcf7-not-valid { border: 2px solid var(--urgent); padding: 9px 13px; }
.bm-prose .wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: var(--space-1); color: var(--urgent); font-size: 15px; line-height: 22px; font-weight: 600; }
.bm-prose .wpcf7 input[type="submit"], .bm-prose .wpcf7 .wpcf7-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-5); border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--sage); color: var(--on-sage); font-family: var(--font-sans); font-size: 16px; font-weight: 600; cursor: pointer; }
.bm-prose .wpcf7 input[type="submit"]:hover { background: var(--sage-strong); }
.bm-prose .wpcf7 .wpcf7-spinner { margin-left: var(--space-3); }
.bm-prose .bem-cf7-privacy { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.bm-prose .wpcf7 .wpcf7-response-output { margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--line-strong); font-size: 16px; line-height: 24px; }
.bm-prose .wpcf7 form.invalid .wpcf7-response-output, .bm-prose .wpcf7 form.failed .wpcf7-response-output, .bm-prose .wpcf7 form.spam .wpcf7-response-output { background: var(--urgent-soft); border-color: var(--urgent); color: var(--ink); }
.bm-prose .wpcf7 form.sent .wpcf7-response-output { background: var(--sage-soft); border-color: var(--sage); color: var(--ink); }

/* ---------- Pages V2.2 : charte, comité, index A–Z, recherche, 404 (styles en ligne des gabarits passés en classes) ---------- */
.pg-az-head .pg-az-lead { color: var(--ink-muted); }
.pg-az-head .pg-az-lead > :first-child { margin-top: 0; }
.pg-az-head .pg-az-lead > :last-child { margin-bottom: 0; }
.pg-az-count { color: var(--ink-muted); margin: 0; }
.pg-az-tools .ed-head h2 { margin: 0; }
.pg-err__lead { color: var(--ink-muted); }
.pg-err__guides { gap: 0 var(--space-6); }
.pg-err__help { margin-top: var(--space-6); }
.page-head__lead > :first-child { margin-top: 0; }
.page-head__lead > :last-child { margin-bottom: 0; }
/* Guide : « Choisir une lecture » repris du texte de la page (un élément peut mêler texte et lien : un seul bloc). */
.guide-besoin .numlist li > span { font-family: var(--font-sans); font-weight: 600; font-size: 18px; line-height: 26px; color: var(--ink); }
.guide-besoin .numlist li > span a { display: inline; }

/* Contact Form 7 : « Écrire un autre message » masqué tant que le message n’est pas parti (comme en 1.0.3, dont la
   règle était dans pages.css, que la 2.0 ne charge plus). Message envoyé : le formulaire laisse place à la confirmation
   (gabarit V2.2 contact-etats.html : encadré vert, phrase en gras, lien « Écrire un autre message »). */
.bm-prose .bem-cf7-again { display: none; margin: 0; }
.bm-prose .wpcf7 form.sent { gap: 0; }
.bm-prose .wpcf7 form.sent > :not(.wpcf7-response-output):not(.bem-cf7-again) { display: none; }
.bm-prose .wpcf7 form.sent .wpcf7-response-output { order: 1; padding-bottom: var(--space-2); border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; font-weight: 700; }
.bm-prose .wpcf7 form.sent .bem-cf7-again { display: block; order: 2; padding: 0 var(--space-5) var(--space-4); border: 1px solid var(--sage); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); background: var(--sage-soft); font-size: 15px; line-height: 22px; }
