/* ého — composants HTML/CSS. Charger après tokens.css et les polices Google (Barlow, Baloo 2). Textes en Barlow (--font-text), marque en Baloo 2 (--font-brand). */
.eho-page { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--surface-0) 0%, var(--surface-0) 25%, var(--surface-tint) 100%); color: var(--ink); font-family: var(--font-text); }
.eho-page::after { content: ""; position: absolute; right: -20%; bottom: -40%; width: 80%; height: 120%; background: radial-gradient(closest-side, rgba(255, 179, 167, 0.12), rgba(255, 179, 167, 0)); pointer-events: none; }
.eho-page > * { position: relative; z-index: 1; }

.eho-logo { font-family: var(--font-brand); font-weight: 800; line-height: 0.85; color: var(--brand); margin: 0; }
.eho-subtitle { font-family: var(--font-brand); font-weight: 600; font-size: 28px; line-height: 1.15; color: var(--ink-2); margin: 0; }
.eho-slogan { font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1.15; color: var(--ink); margin: 0; }
.eho-slogan em, .eho-hl { font-style: normal; color: var(--accent); }

.eho-kicker { font-family: var(--font-brand); font-weight: 700; font-size: 14px; line-height: 1.2; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--space-4); }
.eho-h1 { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: -0.5px; color: var(--ink); margin: 0 0 var(--space-6); }
.eho-h2 { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.1; color: var(--ink); margin: 0 0 var(--space-8); }
.eho-h3 { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--ink); margin: 0 0 var(--space-3); }
.eho-pastille { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.1em; height: 2.1em; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; font-size: 0.7em; line-height: 1; }
.eho-body { font-family: var(--font-text); font-weight: 400; font-size: 18px; line-height: 1.5; color: var(--ink); margin: 0; }
.eho-note { font-family: var(--font-text); font-weight: 400; font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0; }

.eho-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); font-family: var(--font-text); font-size: 18px; line-height: 1.5; color: var(--ink); }
.eho-checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.eho-checklist li::before { content: "✓"; flex: none; width: 1.1em; color: var(--accent); font-family: var(--font-display); font-weight: 700; }

.eho-figure { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; color: var(--accent); margin: 0 0 var(--space-1); }

.eho-quote { position: relative; margin: 0; padding-top: 0.9em; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--ink); }
.eho-quote::before { content: "\201C"; position: absolute; left: -0.08em; top: -0.35em; font-family: Georgia, serif; font-size: 3em; line-height: 1; color: var(--accent); }

.eho-card { background: var(--surface-card); border: var(--stroke-hairline) solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-6); }

.eho-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-brand); font-weight: 600; font-size: 14px; line-height: 1; padding: 7px 12px; border: 0; border-radius: var(--radius-sm); color: var(--ink-2); background: var(--tag-bg); }
.eho-tag::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--brand); flex: none; }
.eho-tag--accent::before { background: var(--accent); }

.eho-rule { border-left: var(--stroke-rule) solid var(--brand); padding: 2px 0 2px var(--space-4); margin: 0; font-family: var(--font-text); font-size: 18px; line-height: 1.4; color: var(--ink); }
.eho-rule b { color: var(--brand); font-weight: 700; }

.eho-footer { display: flex; justify-content: space-between; align-items: center; border-top: var(--stroke-hairline) solid var(--line); padding-top: var(--space-3); font-family: var(--font-text); font-weight: 600; font-size: 15px; color: var(--ink-2); }
.eho-footer .eho-logo { font-size: 22px; }

/* ——— Interaction : repris d'Emagma DS, adapté à ého ——— */
.eho-btn, .eho-link, .eho-link-arrow, .eho-field__input { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.eho-btn:focus-visible, .eho-link:focus-visible, .eho-link-arrow:focus-visible, .eho-text a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Boutons : pilule, bordure 2px, Barlow gras, flèche en fin ; au survol les couleurs s'inversent */
.eho-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 40px; padding: 0.3em 1.15em; border: var(--stroke-hairline) solid transparent; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; }
.eho-btn:focus-visible { border-radius: var(--radius-pill); }
.eho-btn svg { width: 0.95em; height: 0.95em; flex: none; }
.eho-btn--sm { min-height: 32px; font-size: 15px; padding: 0.25em 0.95em; }
.eho-btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.eho-btn--primary:hover { background: var(--surface-card); color: var(--brand-strong); border-color: var(--brand); }
.eho-btn--secondary { background: var(--ink); border-color: var(--ink); color: var(--surface-0); }
.eho-btn--secondary:hover { background: var(--surface-card); color: var(--ink); }
.eho-btn--primary-outline { background: transparent; border-color: var(--brand); color: var(--brand-strong); }
.eho-btn--primary-outline:hover { background: var(--brand); color: var(--on-brand); }
.eho-btn--secondary-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.eho-btn--secondary-outline:hover { background: var(--ink); color: var(--surface-0); }
.eho-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.eho-btn--accent:hover { background: var(--surface-card); color: var(--accent-strong); }
.eho-btn--danger { background: var(--danger-strong); border-color: var(--danger-strong); color: var(--on-status); }
.eho-btn--danger:hover { background: var(--surface-card); color: var(--danger-strong); border-color: var(--danger); }
.eho-btn--link { background: transparent; border-color: transparent; color: var(--brand-strong); padding-left: 0.2em; padding-right: 0.2em; }
.eho-btn--link:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.eho-btn--inverse { background: #ffffff; border-color: #ffffff; color: var(--surface-brand); }
.eho-btn--cta { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.eho-btn--cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--on-cta); }
.eho-premium .eho-btn--cta { border-color: var(--cta); }
.eho-btn--premium { background: var(--premium); border-color: var(--premium); color: var(--on-premium); }
.eho-btn--premium:hover { background: var(--surface-card); color: var(--premium); }
.eho-btn--inverse:hover { background: transparent; color: #ffffff; }
.eho-btn--inverse-outline { background: transparent; border-color: #ffffff; color: #ffffff; }
.eho-btn--inverse-outline:hover { background: #ffffff; color: var(--surface-brand); }
.eho-btn:disabled, .eho-btn[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: not-allowed; pointer-events: none; }

/* Liens */
.eho-text a, .eho-link { color: var(--brand-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }
.eho-text a:hover, .eho-link:hover { color: var(--ink); text-decoration-thickness: 2px; }
.eho-link--external::after { content: " ↗"; text-decoration: none; display: inline-block; margin-left: 0.1em; }
.eho-link--inverse, .eho-link--inverse:hover { color: #ffffff; }
.eho-link-arrow { display: inline-flex; align-items: center; gap: 0.35em; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--brand-strong); text-decoration: none; }
.eho-link-arrow::after { content: "→"; transition: transform 200ms ease; }
.eho-link-arrow:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.eho-link-arrow:hover::after { transform: translateX(3px); }
.eho-link[aria-disabled="true"] { opacity: var(--opacity-disabled); pointer-events: none; text-decoration: none; }

/* Messages : info, attention, erreur, succès, astuce */
.eho-alert { --a: var(--info); --a-soft: var(--info-soft); --a-title: var(--info-strong); --a-on: var(--on-status); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 22px; border-radius: var(--radius-lg); background: var(--surface-card); border: var(--stroke-hairline) solid var(--line); box-shadow: 0 8px 24px rgba(31, 43, 86, 0.06); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 1.5; }
.eho-alert--warning { --a: var(--warning); --a-soft: var(--warning-soft); --a-title: var(--warning-strong); --a-on: var(--on-warning); }
.eho-alert--danger { --a: var(--danger); --a-soft: var(--danger-soft); --a-title: var(--danger-strong); }
.eho-alert--success { --a: var(--success); --a-soft: var(--success-soft); --a-title: var(--success-strong); }
.eho-alert--tip { --a: var(--accent); --a-soft: var(--accent-soft); --a-title: var(--accent-strong); --a-on: var(--on-accent); }
.eho-alert__icon { width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--a); color: var(--a-on, var(--on-status)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1; }
.eho-alert__title { margin: 2px 0 2px; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--a-title); }
.eho-alert__body { margin: 0; }
.eho-alert__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.eho-alert--solid { background: var(--a); border-color: var(--a); box-shadow: none; color: var(--on-solid); }
.eho-alert--tinted { background: var(--a-soft); border-color: transparent; box-shadow: none; }
.eho-alert--solid .eho-alert__title { color: var(--on-solid); }
.eho-alert--solid .eho-alert__icon { background: var(--on-solid); color: var(--a); }
.eho-alert--tip.eho-alert--solid, .eho-alert--tip.eho-alert--solid .eho-alert__title { color: var(--on-accent); }
.eho-alert--tip.eho-alert--solid .eho-alert__icon { background: var(--on-accent); }

/* Confirmation : demander l'accord avant une action */
.eho-confirm { max-width: 520px; background: var(--surface-card); border: var(--stroke-hairline) solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 26px 28px; font-family: var(--font-text); color: var(--ink); }
.eho-confirm__head { display: flex; gap: 14px; align-items: center; margin: 0 0 10px; }
.eho-confirm__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--ink); }
.eho-confirm__body { margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
.eho-confirm__detail { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--brand-soft); font-size: 15px; line-height: 1.5; color: var(--ink); }
.eho-confirm__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Champ de formulaire et messages de validation */
.eho-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-text); }
.eho-field__label { font-weight: 600; font-size: 15px; color: var(--ink); }
.eho-field__input { min-height: 44px; padding: 8px 14px; border: var(--stroke-hairline) solid var(--field-border); border-radius: var(--radius-md); background: var(--surface-card); color: var(--ink); font-family: var(--font-text); font-size: 16px; }
.eho-field__input:hover { border-color: var(--ink); }
.eho-field__input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--brand); }
.eho-field__help { font-size: 14px; color: var(--muted); }
.eho-field__msg { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.eho-field__msg::before { flex: none; width: 18px; height: 18px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--on-status); }
.eho-field--error .eho-field__input { border-color: var(--danger); }
.eho-field--error .eho-field__msg { color: var(--danger-strong); }
.eho-field--error .eho-field__msg::before { content: "!"; background: var(--danger); }
.eho-field--success .eho-field__input { border-color: var(--success); }
.eho-field--success .eho-field__msg { color: var(--success-strong); }
.eho-field--success .eho-field__msg::before { content: "✓"; background: var(--success); }
.eho-field__input:disabled { opacity: var(--opacity-disabled); cursor: not-allowed; }

/* Bandeau premium : conclusion, appel final */
.eho-premium { background: linear-gradient(135deg, var(--surface-brand) 0%, var(--premium) 55%, var(--premium-deep) 100%); color: var(--on-premium); }
.eho-premium .eho-slogan, .eho-premium .eho-h2, .eho-premium .eho-body { color: var(--on-premium); }
.eho-premium .eho-slogan em, .eho-premium .eho-hl { color: var(--premium-accent); }
.eho-premium .eho-btn--inverse { color: var(--premium); }
.eho-premium .eho-btn--inverse-outline:hover { color: var(--premium); }
