/* Adaptation WordPress : ce que le balisage des blocs change par rapport à la maquette (assets/css/echolia.css). */

/* Les blocs Groupe/Boutons ne doivent rien ajouter aux marges et espacements de la maquette. */
.wp-site-blocks, .wp-block-post-content { margin: 0; padding: 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem; }
.wp-block-buttons > .wp-block-button { margin: 0; display: flex; }
.wp-block-details summary { cursor: pointer; }
.wp-block-group.ask-dialog:not(dialog) { display: none; }

/* Ce qui était un <span> dans la maquette est un paragraphe ici : il ne doit pas prendre le style
   des paragraphes de son conteneur (.section-head p, .step-copy p, .rsc p…). */
p.eyebrow { color: var(--green); font-size: .85rem; }
.universe .section-head p.eyebrow { color: #f7b78d; }
p.step-num { color: var(--white); font-size: 1.9rem; }
p.dev-pill { color: #a5481a; font-size: .85rem; }
p.rsc-tag { color: var(--green-600); font-size: .75rem; }

/* Le gras de l'éditeur est un <strong>, la maquette utilisait <b>. */
.chip strong { color: var(--fox); }
.why-who-title { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }

/* Le bouton « Posez-nous votre question » était un <button> (interligne normal) dans la maquette. */
.ask .btn { line-height: normal; }

/* Styles en ligne de la maquette, passés dans la feuille de style. */
.trust-hn .hn-line { margin-top: .6rem; margin-bottom: 1.2rem; }

/* Formulaires HubSpot (styles HubSpot désactivés, repris de ceux de la maquette). */
.hs-embed { width: 100%; }
.hs-form { display: grid; gap: .75rem; }
.hs-form fieldset { max-width: none !important; border: 0; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 560px) { .hs-form fieldset.form-columns-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hs-form fieldset .hs-form-field { width: auto !important; float: none !important; }
.hs-form fieldset .input { margin: 0 !important; }
.hs-form label:not(.hs-form-booleancheckbox-display):not(.hs-form-radio-display) { display: block; font-weight: 800; font-size: .85rem; color: var(--forest); margin-bottom: .3rem; }
.hs-form .hs-form-required { color: var(--fox); margin-left: .15em; }
.hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) { width: 100% !important; font: inherit; padding: .7em 1em; border-radius: 14px; border: 2px solid var(--cream-line); background: var(--white); color: var(--ink); }
.hs-form textarea.hs-input { min-height: 7em; resize: vertical; }
/* Téléphone international : le conteneur porte aussi la classe hs-input, il ne doit pas avoir de cadre. */
.hs-form div.hs-input.hs-fieldtype-intl-phone:not([type]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .5rem; padding: 0; border: 0; background: none; border-radius: 0; }
.hs-form .hs-fieldtype-intl-phone input[type="hidden"] { display: none; }
.hs-form select.hs-input { appearance: auto; }
.hs-form .hs-input:hover { border-color: #ddcfb8; }
.hs-form .hs-input:focus-visible { outline: 3px solid var(--green-100); border-color: var(--green); }
.hs-form .hs-input.invalid.error { border-color: #c2513a; }
.hs-form .inputs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.hs-form .hs-form-booleancheckbox-display, .hs-form .hs-form-radio-display { display: inline-flex; gap: .5em; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.hs-form input[type="checkbox"], .hs-form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--green); margin-top: .15em; flex: none; }
.hs-form .hs-error-msgs { list-style: none; margin: .3rem 0 0; padding: 0; }
.hs-form .hs-error-msg, .hs-form .hs-main-font-element { color: #b23b26; font-weight: 700; font-size: .85rem; }
.hs-form .hs-richtext, .hs-form .legal-consent-container { font-size: .85rem; line-height: 1.45; color: var(--ink-soft); }
.hs-form .hs-richtext p + p { margin-top: .4rem; }
.hs-form .hs-richtext a { color: var(--green-600); }
.hs-form .hs_submit .actions { margin-top: .2rem; }
.hs-form .hs-button { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 800; font-size: var(--step-0); border-radius: 999px; padding: .85em 1.5em; border: 2px solid transparent; cursor: pointer; background: var(--green); color: var(--white); box-shadow: 0 6px 16px -6px rgb(49 128 76 / .6); transition: background-color .15s ease; }
.hs-form .hs-button:hover { background: var(--green-600); }
/* reCAPTCHA invisible : le badge Google est masqué, la mention exigée par Google est affichée sous le formulaire
   (paragraphe .recaptcha-note). Le badge reste dans la page, sans place ni visibilité, pour que la vérification fonctionne. */
.hs-form .hs_recaptcha { height: 0; overflow: hidden; margin: 0; }
.hs-form .hs_recaptcha .grecaptcha-badge { visibility: hidden; }
.recaptcha-note { margin-top: .9rem; font-size: .8rem; line-height: 1.45; color: var(--ink-soft); }
.recaptcha-note a { color: var(--green-600); }
.submitted-message { background: var(--green-50); border-radius: 16px; padding: .9rem 1.1rem; font-weight: 700; color: var(--green-600); }

/* Newsletter : le formulaire HubSpot prend la place du champ e-mail de la maquette. */
/* Champ e-mail et bouton sur une ligne, comme .news-form dans la maquette. */
.news-hs .hs-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.news-hs .hs_email { flex: 1 1 200px; min-width: 0; }
.news-hs .hs_email > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.news-hs .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) { border-radius: 999px; padding: .8em 1.15em; }
.news-hs .hs_submit .actions { margin: 0; }
.news-hs .hs-error-msgs { padding-left: 1.15em; }
.news-hs .hs_error_rollup, .news-hs .legal-consent-container { flex-basis: 100%; }
.news-hs .hs-button { background: var(--forest); box-shadow: none; }
.news-hs .hs-button:hover { background: #24503b; }
@media (max-width: 520px) { .news-hs .hs_submit, .news-hs .hs-button { flex: 1 1 100%; width: 100%; } }

/* Kit : le formulaire HubSpot dans la carte blanche du formulaire de la maquette. */
.kit-title { margin-top: .6rem; }
.kit-hs { margin-top: 1.6rem; background: var(--white); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-soft); }
.kit-hs[hidden] { display: none; }

/* Kit : formulaire masqué pour l'instant (retirer la classe kit-hs-off du groupe pour l'afficher),
   le bouton de téléchargement direct le remplace. Quand le formulaire est affiché, le bouton se masque. */
.kit-hs-off { display: none; }
.kit-direct { margin-top: 1.6rem; }
.kit-hs:not(.kit-hs-off) ~ .kit-direct { display: none; }

/* Barre audience : Instagram, à droite. */
.audience-bar .wrap { position: relative; }
.audience-bar a.audience-social { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #e8f2ec; }
.audience-bar a.audience-social:hover { background: rgb(255 255 255 / .12); color: var(--white); }
.audience-bar a.audience-social .icon { width: 18px; height: 18px; }
.brand-home { display: block; flex: none; }

/* Formulaire Google dans une fenêtre. */
dialog.gform-dialog { width: min(760px, calc(100% - 32px)); height: min(88vh, 1100px); }
dialog.gform-dialog[open] { display: flex; flex-direction: column; }
dialog.gform-dialog iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: var(--white); }

/* Pages de texte (CGU, mentions légales…) : modèle templates/page.html. */
.page-top { display: contents; } /* l'en-tête reste collant sur toute la page */
.back-home { font-size: .95rem; white-space: nowrap; }
.legal-hero { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.legal-hero .wrap { display: grid; gap: .8rem; max-width: calc(48rem + 2 * var(--gutter)); }
.legal-hero h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
.legal-body { padding-block: clamp(36px, 5vw, 64px) clamp(64px, 9vw, 112px); }
.legal-body .wrap { max-width: calc(48rem + 2 * var(--gutter)); }
.legal-text { color: var(--ink); }
.legal-text > * + * { margin-top: 1rem; }
.legal-text h2 { font-size: var(--step-2); margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--cream-line); scroll-margin-top: 110px; }
.legal-text h2 + * { margin-top: 1.1rem; }
.legal-text > :first-child { margin-top: 0; }
.legal-text p.legal-date { display: inline-flex; font-weight: 800; font-size: .9rem; color: var(--green-600); background: var(--green-50); border-radius: 999px; padding: .3em .95em; }
.legal-text p.legal-editor { color: var(--ink-soft); font-size: .95rem; }
.legal-text strong { color: var(--forest); }
.legal-text ul { display: grid; gap: .45rem; padding-left: 0; }
.legal-text ul li { position: relative; padding-left: 1.4rem; }
.legal-text ul li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--green); }
.legal-text a { color: var(--green-600); font-weight: 700; text-underline-offset: 3px; }

/* Fenêtre « Posez-nous votre question » : le formulaire HubSpot défile si besoin. */
dialog.ask-dialog[open] { display: flex; flex-direction: column; }
dialog.ask-dialog .ask-body { padding: 1.2rem; overflow-y: auto; min-height: 0; }

/* Encart Instagram (section Ressources, sous « Ce que vous recevrez »). */
.insta-card { display: grid; gap: 1rem 1.4rem; align-items: center; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-card); padding: 18px 22px; }
@media (min-width: 760px) { .insta-card { grid-template-columns: auto minmax(0, 1fr) auto; } }
.insta-art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--forest); color: var(--white); box-shadow: 0 10px 22px -12px rgb(28 59 45 / .55); rotate: -4deg; }
.insta-art .icon { width: 32px; height: 32px; stroke-width: 1.8; }
.insta-copy h3 { font-size: 1.2rem; line-height: 1.2; }
.insta-copy p { margin-top: .3rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; max-width: 40rem; }
.insta-card .wp-block-buttons { justify-content: flex-start; }
@media (max-width: 520px) { .insta-card .btn { width: 100%; white-space: normal; text-align: center; } }

/* Pied de page : liens légaux. */
.footer-legal a { font-weight: 600; }

/* Pages légales : informations restant à compléter, bien visibles tant qu'elles ne sont pas remplies. */
.legal-text mark.todo { background: var(--note); color: var(--note-ink); padding: 0 .25em; border-radius: 4px; font-weight: 700; }

/* « Combien ça coûte pour les familles ? » : une bulle masquée (attribut hidden) ne prend pas de place,
   et les bulles restantes se partagent la largeur. */
.access-tiles li[hidden] { display: none; }
@media (min-width: 560px) { .access-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }

/* Consentement demandé à la place d'un service (reCAPTCHA, formulaire Google). */
.consent-gate { display: flex; gap: .9rem; align-items: flex-start; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 18px; padding: 1.1rem 1.2rem; }
.consent-gate .consent-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; }
.consent-gate .consent-ico .icon { width: 22px; height: 22px; }
.consent-gate p { font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
.consent-gate p strong { color: var(--forest); }
.consent-gate a { color: var(--green-600); font-weight: 700; }
.consent-gate .btn { margin-top: .8rem; }
.consent-gate .consent-alt { margin-top: .7rem; font-size: .85rem; }
.ask-body:has([data-consent-gate]) .recaptcha-note { display: none; }
dialog.gform-dialog .gform-gate { padding: 1.2rem; overflow-y: auto; }
dialog.gform-dialog .gform-gate[hidden], dialog.gform-dialog iframe[hidden] { display: none; }
dialog.gform-dialog:has(.gform-gate:not([hidden])) { height: fit-content; }

/* Page Confidentialité : réglages (accord Google, mesure d'audience). */
.privacy-settings { display: grid; gap: .6rem; margin-block: 1.4rem; }
.privacy-row { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; justify-content: space-between; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 18px; padding: 1rem 1.2rem; }
.privacy-row > div { display: grid; gap: .2rem; flex: 1 1 18rem; }
.privacy-row b { color: var(--forest); }
.privacy-row span { font-size: .9rem; color: var(--ink-soft); }
.privacy-row .btn:disabled { opacity: .5; cursor: default; transform: none; }
.privacy-switch { display: inline-flex; gap: .5em; align-items: center; font-weight: 700; color: var(--forest); cursor: pointer; }
.privacy-switch input { width: 20px; height: 20px; accent-color: var(--green); }
.privacy-switch[hidden] { display: none; }

/* Page « Liste d'attente » (modèle Page en sections) : le hero familles, deux phrases à gauche, le formulaire à droite. */
.waitlist .wrap { align-items: center; }
@media (min-width: 960px) { .waitlist .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.waitlist { padding-block: clamp(48px, 7vw, 96px); }
.waitlist-copy { display: grid; gap: 1.4rem; max-width: 34rem; }
.waitlist-copy h3 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.35rem); line-height: 1.2; color: var(--forest); }
.waitlist-copy h3 em { font-style: normal; color: var(--green); }
.waitlist-form { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-soft); }
.waitlist-insta { background: var(--cream); padding-block: 0 clamp(56px, 8vw, 96px); }

/* « Pour votre pratique » : le rapport de repérage dessiné en HTML (plus de capture), avec ses repères numérotés. */
.rpt { position: relative; display: grid; gap: 14px; background: #faf6ee; border: 1px solid var(--cream-line); border-radius: 20px; padding: 24px 22px 22px; box-shadow: var(--shadow-float); }
.rpt .rpt-pin { margin: -17px 0 0 -17px; }
.rpt-head { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: flex-end; padding-inline: 6px; }
.rpt-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--forest); line-height: 1.2; }
.rpt-meta { display: flex; gap: 1.3rem; margin: 0; }
.rpt-meta dt { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.rpt-meta dd { margin: 0; font-size: .8rem; color: var(--ink); }
.rpt-note { position: relative; display: flex; gap: .6rem; align-items: flex-start; background: #e2efe6; border-radius: 14px; padding: 12px 16px 12px 24px; }
.rpt-note .rpt-pin { left: 0; top: 50%; }
.rpt-note > .icon { flex: none; width: 16px; height: 16px; margin-top: .2em; color: var(--forest); }
.rpt-note b { display: block; font-size: .85rem; color: var(--forest); }
.rpt-note > div > span { display: block; font-size: .78rem; line-height: 1.45; color: var(--ink-soft); }
.rpt-card { --rpt-pad: 26px; background: var(--white); border: 1px solid var(--cream-line); border-radius: 16px; padding: 20px var(--rpt-pad) 14px; }
.rpt-summary { position: relative; }
.rpt-summary .rpt-pin, .rpt-skills .rpt-pin { left: calc(-1 * var(--rpt-pad)); top: 1.05rem; }
.rpt-lead { display: block; max-width: 22em; margin-bottom: .45rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--forest); }
.rpt-summary p { margin-top: .4rem; font-size: .78rem; line-height: 1.5; color: var(--ink-soft); }
.rpt-skills { margin-top: 14px; }
.rpt-skills li { position: relative; display: grid; grid-template-columns: 28px minmax(6.5rem, 7.5rem) minmax(0, 1fr); gap: .4rem .7rem; align-items: start; padding: 12px 0; border-top: 1px solid var(--cream-line); }
.rpt-skills .rpt-pin { top: 26px; }
.rpt-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.rpt-ico .icon { width: 15px; height: 15px; }
.rpt-read { background: #e3f3e8; color: #24774a; }
.rpt-write { background: #efe9fa; color: #6b45b5; }
.rpt-understand { background: #e4eefa; color: #1d63a8; }
.rpt-skill b { display: block; font-size: .82rem; color: var(--forest); line-height: 1.3; }
.rpt-skill small { font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.rpt-res { font-size: .75rem; line-height: 1.45; color: var(--ink); }
.rpt-lvl { display: block; width: fit-content; margin-bottom: .3rem; padding: .15em .65em; border-radius: 999px; font-size: .68rem; font-weight: 800; color: var(--ink-soft); }
.rpt-lvl i { font-style: normal; color: var(--star); letter-spacing: -.05em; }
.rpt-lvl i.off { color: #dccfb9; margin-right: .15em; }
.rpt-lvl-low { background: #f3ece0; }
.rpt-lvl-mid { background: #fbf0d9; color: #8a6412; }
.rpt-lvl-ok { background: var(--green-50); color: var(--green-600); }
.rpt-lvl-ok i:last-of-type { margin-right: .15em; }
.rpt-foot { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--cream-line); font-size: .68rem; color: var(--ink-soft); }
@media (max-width: 520px) {
  .rpt { padding: 18px 14px 14px; }
  .rpt-card { --rpt-pad: 22px; }
  .rpt-skills li { grid-template-columns: 28px minmax(0, 1fr); }
  .rpt-res { grid-column: 2; }
}
