/* Alchimie — Rendez-vous : « Mon espace » du client. Couleurs et typographie du thème (variables de style.css). */
.aea-espace { max-width: 920px; margin: 0 auto; }
#page-mon-espace .aea-espace .aea-es-loading, .aea-es-loading { text-align: center; color: var(--muted); }
.aea-es-card {
  margin-bottom: 24px; padding: clamp(24px, 4vw, 44px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.aea-es-card h2 { margin: 0 0 22px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
#page-mon-espace .aea-espace :is(p, li, blockquote):not(.aea-es-loading) { text-align: left; } /* le thème justifie les paragraphes */
.aea-es-muted { color: var(--muted); }
.aea-es-small { font-size: .86rem; }

/* Connexion */
.aea-es-login-wrap { max-width: 560px; margin: 0 auto; }
.aea-es-login .aea-es-login-intro { margin-bottom: 28px; }
.aea-es-login-why { margin: 0 0 22px; }
.aea-es-benefits { margin: 0 0 18px; padding-left: 1.2em; }
.aea-es-benefits li { margin-bottom: 6px; }
.aea-es-form .btn { margin-top: 4px; }
.aea-es-form input:disabled { opacity: .65; }
.aea-es-code { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.aea-es-step-note { margin-bottom: 18px; }
.aea-es-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.aea-es-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--gold-deep); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px;
}
.aea-es-link:disabled { opacity: .5; cursor: default; }
.form-alert.info { background: var(--mauve-mist); color: var(--mauve-deep); }
.aea-es-staff { max-width: 640px; margin: 0 auto; text-align: center; }
/* Onglet « Prendre rendez-vous » : la section de réservation reprise de la page de rendez-vous. */
.aea-es-booking .booking-section { padding: 0; background: none; }
.aea-es-booking .booking-section::before, .aea-es-booking .booking-heading { display: none; }
.aea-es-booking .container { padding: 0; max-width: none; }

/* Tableau de bord */
.aea-es-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.aea-es-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.aea-es-head .eyebrow { margin-bottom: 6px; }
.aea-es-head-side { display: flex; align-items: center; gap: 18px; }
.aea-es-tabs { display: flex; gap: 6px; margin-bottom: -1px; padding: 0 clamp(10px, 3vw, 24px); overflow-x: auto; scrollbar-width: none; position: relative; z-index: 1; }
.aea-es-tabs button {
  flex: 0 0 auto; padding: 13px 22px 12px; cursor: pointer;
  border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 16px 16px 0 0;
  background: var(--white); color: var(--muted);
  font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.aea-es-tabs button[aria-selected="true"] { background: var(--mauve-mist); color: var(--ink); }
.aea-es-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.aea-es-panel { padding: clamp(18px, 3.5vw, 36px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--mauve-mist); }
.aea-es-panel .aea-es-card:last-child { margin-bottom: 0; }

.aea-es-list { display: grid; gap: 14px; }
.aea-es-rdv {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
}
.aea-es-rdv .eyebrow { margin-bottom: 6px; }
.aea-es-rdv h3 { margin: 0 0 4px; font-size: 1.3rem; }
.aea-es-rdv-meta, .aea-es-rdv-place { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.aea-es-rdv-place { white-space: pre-line; margin-top: 6px; }
.aea-es-rdv.is-annulee, .aea-es-rdv.is-refusee { opacity: .62; }
.aea-es-badge {
  flex: none; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  background: var(--mauve-pale); color: var(--mauve-deep);
}
.aea-espace .aea-es-badge.is-confirmee { background: color-mix(in srgb, var(--palette-green, var(--green)) 22%, #fff); color: #52694D; }
.aea-espace .aea-es-badge.is-attente-depot { background: var(--gold-pale); color: var(--gold-deep); }
.aea-espace .aea-es-badge.is-annulee, .aea-espace .aea-es-badge.is-refusee { background: var(--line); color: var(--muted); }
.aea-es-empty { padding: 8px 0; }
.aea-es-empty p { color: var(--muted); }
.aea-es-card-foot { margin: 20px 0 0; }
.aea-es-check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 14px; line-height: 1.5; }
.aea-es-check input { margin-top: 4px; flex: none; }
.aea-es-check a { color: var(--gold-deep); }
.aea-es-form-foot { display: grid; gap: 12px; justify-items: start; }

/* Premier accueil (tant que onboarding_completed est faux) */
.aea-es-onboarding { max-width: 720px; margin: 0 auto; }
.aea-es-onboarding h2 { margin-bottom: 12px; }
.aea-espace .aea-es-onboarding p { text-align: left; }
.aea-es-ob-lead { margin-bottom: 24px; color: var(--ink-soft); }
.aea-es-ob-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 22px; }
.aea-es-ob-progress span { height: 4px; border-radius: 4px; background: var(--line); }
.aea-es-ob-progress span.is-done { background: var(--gold); }
.aea-es-ob-choices { margin: 0 0 18px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.aea-es-ob-choices legend { margin-bottom: 10px; font-weight: 500; }
.aea-es-ob-choices .aea-es-check { margin: 4px 0 8px; }
.aea-es-onboarding textarea { width: 100%; }
.aea-es-ob-foot { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.aea-es-onboarding .form-alert { margin-top: 16px; }
.aea-es-welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.aea-es-welcome p { margin: 0; }

/* Tableau de bord plein écran (client connecté, body.aea-app) : sans la bannière de la page ;
   menu vertical collé à gauche sur toute la hauteur, contenu à droite (menu en haut sur téléphone). */
.aea-app #page-mon-espace .inner-hero { display: none; }
.aea-app .footer { display: none; }
.aea-app #page-mon-espace .section { padding: 0; }
.aea-app #page-mon-espace .section::before { display: none; }
.aea-app #page-mon-espace .section > .container { max-width: none; padding: 0; }
.aea-app .aea-espace { max-width: none; }
.aea-app .aea-es-loading { margin: 0; padding: 80px 16px; min-height: calc(100vh - 89px); }
.aea-app .aea-es-dash { box-sizing: border-box; max-width: 1040px; min-height: calc(100vh - 89px); margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px); } /* premier accueil */
.aea-es-app { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; min-height: calc(100vh - 89px); }
.aea-es-side {
  position: sticky; top: 89px; display: flex; flex-direction: column; gap: 26px; height: calc(100vh - 89px); overflow-y: auto;
  padding: 34px 20px 24px; border-right: 1px solid var(--line-strong); background: var(--white);
}
.aea-es-side-who { padding: 0 12px; }
.aea-es-side-who .eyebrow { margin-bottom: 8px; }
.aea-espace .aea-es-side-name { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.aea-espace .aea-es-side-email { margin: 4px 0 0; overflow-wrap: anywhere; }
.aea-es-menu { display: grid; gap: 4px; }
.aea-es-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; cursor: pointer; text-align: left;
  border: 0; border-left: 3px solid transparent; border-radius: 10px; background: none; color: var(--ink-soft);
  font-family: var(--sans); font-size: .95rem;
}
.aea-es-menu button:hover { background: var(--paper); color: var(--ink); }
.aea-es-menu button[aria-selected="true"] { background: var(--mauve-mist); border-left-color: var(--gold); color: var(--ink); font-weight: 500; }
.aea-es-menu button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.aea-es-menu-icon { display: inline-flex; flex: none; color: var(--mauve-deep); }
.aea-es-side-foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--line); }
.aea-es-main { padding: clamp(24px, 4vw, 48px); }
.aea-es-main > * { max-width: 1040px; }
.aea-es-app .aea-es-panel { padding: 0; border: 0; border-radius: 0; background: none; }

/* Mon suivi : comptes rendus et parcours */
.aea-es-rdv-suivi { display: inline-block; margin-top: 10px; }

/* Annuler ou déplacer un rendez-vous à venir */
.aea-es-rdv-main { flex: 1; min-width: 0; }
.aea-es-rdv-change { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.aea-es-rdv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.aea-espace .aea-es-rdv-note { margin: 10px 0 0; }
.aea-es-rdv-form { display: grid; gap: 14px; }
.aea-espace .aea-es-rdv-q { margin: 0; font-weight: 500; color: var(--ink); }
.aea-espace .aea-es-rdv-form p { margin: 0; }
.aea-es-field-label { display: block; margin-bottom: 8px; font-size: .92rem; color: var(--ink-soft); }
.aea-es-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.aea-es-time {
  min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--white); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer;
}
.aea-es-time:hover { border-color: var(--gold); }
.aea-es-time[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--white); }
.aea-es-time:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.aea-es-cancelled { margin-top: 18px; }
.aea-es-cancelled summary { cursor: pointer; font-size: .92rem; color: var(--ink-soft); margin-bottom: 12px; }
/* Barre d'administration WordPress (Éric connecté) : le menu collant passe dessous. */
@media (min-width: 861px) { body.admin-bar .aea-es-side { top: calc(89px + 32px); height: calc(100vh - 89px - 32px); } }
.aea-espace .aea-es-natal-chosen { display: block; margin: 0 0 18px; background: var(--gold-pale); color: var(--ink); border-color: var(--gold); }
.aea-espace .aea-es-rdv-join { margin: 14px 0 0; }
.aea-espace .aea-es-rdv-actions .btn-outline { background: transparent; color: var(--gold-deep); border: 1px solid var(--gold); }
.aea-espace .aea-es-rdv-actions .btn-outline:hover { background: var(--gold-pale); }
.aea-es-danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.aea-es-danger-zone summary { cursor: pointer; color: #8E3B3B; font-size: .92rem; }
.aea-es-danger-zone .aea-es-rdv-form { margin-top: 14px; }
.aea-es-rdv-form .btn:disabled { opacity: .45; cursor: not-allowed; }
.aea-es-btn-danger { background: #8E3B3B; border-color: #8E3B3B; color: #fff; }
.aea-es-btn-danger:hover { background: #7A3030; border-color: #7A3030; color: #fff; }
.aea-es-reports { display: grid; gap: 12px; }
.aea-es-report {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: inherit; text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.aea-es-report:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: 0 10px 28px -18px rgba(40, 30, 50, .35); }
a.aea-es-report:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.aea-es-report.is-pending { opacity: .7; }
.aea-es-report-glyph {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--mauve-mist); border: 1px solid var(--line-strong); color: var(--page-accent, var(--mauve-deep)); font-size: 1.5rem; font-family: var(--serif);
}
.aea-es-report-body { display: grid; gap: 3px; }
.aea-es-report-body .eyebrow { margin: 0; }
.aea-es-report-title { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.aea-es-report-excerpt { color: var(--ink-soft); font-size: .93rem; line-height: 1.55; }
.aea-es-report-meta { color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.aea-es-report-go { font-size: 1.3rem; color: var(--page-accent, var(--gold-deep)); }

.aea-es-journey { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.aea-es-step { position: relative; display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.aea-es-step-dot { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); background: var(--white); }
.aea-es-step-dot svg { width: 17px; height: 17px; }
.aea-es-step.is-fait .aea-es-step-dot { background: var(--page-accent, var(--mauve-deep)); border-color: transparent; color: #fff; }
.aea-es-step.is-prevu .aea-es-step-dot, .aea-es-step.is-disponible .aea-es-step-dot { border-color: var(--page-accent, var(--mauve-deep)); color: var(--page-accent, var(--mauve-deep)); }
.aea-es-step.is-verrouille, .aea-es-step.is-a-venir { background: var(--paper); }
.aea-es-step.is-verrouille .aea-es-step-label, .aea-es-step.is-a-venir .aea-es-step-label { color: var(--muted); }
.aea-es-step:first-child { border-color: var(--line-strong); }
.aea-espace .aea-es-step-label { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; color: var(--ink); }
.aea-espace .aea-es-step-state { margin: 2px 0 4px; font-size: .78rem; color: var(--muted); }
.aea-es-step .text-link { font-size: .7rem; }

/* Un compte rendu */
.aea-es-back { display: inline-block; margin-bottom: 18px; color: var(--page-accent, var(--gold-deep)); font-size: .9rem; text-decoration: none; }
.aea-es-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.aea-es-result > .aea-es-back:last-child { margin: 8px 0 0; }
.aea-es-result-head {
  margin-bottom: 24px; padding: clamp(28px, 5vw, 52px) clamp(24px, 4vw, 44px); border-radius: var(--radius);
  background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--page-essence, var(--mauve)) 35%, transparent), transparent 55%), var(--white);
  border: 1px solid var(--line-strong);
}
.aea-es-result-head h2 { margin: 6px 0 6px; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--page-accent, var(--ink)); }
.aea-espace .aea-es-result-head p { margin: 0; }
.aea-es-letter { margin: 0 0 24px; padding: clamp(24px, 4vw, 40px); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--white); }
.aea-es-letter blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.65; color: var(--ink); }
.aea-espace .aea-es-letter blockquote p { margin: 0 0 .8em; }
.aea-es-letter .eyebrow { margin-bottom: 14px; }
.aea-es-intention { margin: 10px 0 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--line-strong); font-family: var(--serif); font-size: 1.15rem; font-style: italic; line-height: 1.6; color: var(--ink-soft); white-space: pre-line; }
.aea-es-places + .aea-es-places, .aea-es-images + .aea-es-places { margin-top: 18px; }
.aea-es-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.aea-es-next-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.1rem; }
.aea-es-next-item:hover { border-color: var(--line-strong); }
.aea-es-next-item span:last-child { color: var(--page-accent, var(--gold-deep)); }
.aea-es-letter figcaption { font-family: var(--serif); font-style: italic; color: var(--page-accent, var(--mauve-deep)); }
.aea-es-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 12px; }
.aea-es-place { display: grid; justify-items: center; gap: 2px; padding: 20px 12px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: var(--mauve-mist); }
.aea-es-place-planet { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; background: var(--white); border: 1px solid var(--line-strong); font-family: var(--serif); font-size: 1.25rem; color: var(--page-accent, var(--mauve-deep)); }
.aea-es-place-name { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.aea-es-place-sign { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.aea-es-place-hint { font-size: .8rem; color: var(--muted); font-style: italic; }
.aea-es-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.aea-es-theme { position: relative; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.aea-es-theme-num { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--gold); }
.aea-es-theme h3 { margin: 0 0 8px; font-size: 1.2rem; }
.aea-espace .aea-es-theme p { margin: 0; color: var(--ink-soft); line-height: 1.65; white-space: pre-line; }
.aea-es-qa { display: grid; gap: 16px; }
.aea-es-qa-item { padding: 18px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.aea-espace .aea-es-qa-q { margin: 0 0 8px; font-family: var(--serif); font-size: 1.2rem; color: var(--page-accent, var(--ink)); }
.aea-espace .aea-es-qa-a { margin: 0; color: var(--ink-soft); white-space: pre-line; }
.aea-es-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line-strong); display: grid; gap: 20px; }
.aea-es-timeline li { position: relative; }
.aea-es-timeline li::before { content: ""; position: absolute; left: -29px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--white); }
.aea-espace .aea-es-timeline p { margin: 0; color: var(--ink-soft); white-space: pre-line; }
.aea-espace .aea-es-timeline .aea-es-timeline-when { margin-bottom: 4px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--page-accent, var(--gold-deep)); }
.aea-es-pistes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aea-es-pistes li { position: relative; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--mauve-mist); color: var(--ink); }
.aea-es-pistes li::before { content: "✦"; position: absolute; left: 15px; top: 11px; color: var(--gold); }
.aea-es-audio { display: grid; gap: 8px; justify-items: start; }
.aea-es-audio + .aea-es-audio { margin-top: 18px; }
.aea-espace .aea-es-audio-title { margin: 0; font-weight: 500; }
.aea-es-audio audio { width: 100%; }
.aea-es-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.aea-es-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aea-es-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.aea-es-images img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.aea-es-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aea-es-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.aea-es-doc-kind { padding: 3px 8px; border-radius: 6px; background: var(--mauve-mist); font-size: .7rem; letter-spacing: .1em; color: var(--page-accent, var(--mauve-deep)); }
.aea-es-doc-name { flex: 1; min-width: 140px; color: var(--ink); }

/* Accueil du tableau de bord */
.aea-es-home-head { margin: 4px 0 24px; }
.aea-es-home-head .eyebrow { margin-bottom: 6px; }
.aea-es-home-head h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.7rem); color: var(--page-accent, var(--ink)); }
.aea-es-home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.aea-es-home-grid > * , .aea-es-home-main > * { margin-bottom: 0; }
.aea-es-home-main { display: grid; gap: 24px; }
.aea-es-home > .aea-es-card { margin-top: 24px; }
.aea-es-home > .aea-es-news { margin-bottom: 24px; }
.aea-es-next-rdv h2 { margin: 4px 0 6px; }
.aea-espace .aea-es-next-when { margin: 0 0 4px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.aea-espace .aea-es-countdown { display: inline-block; margin: 14px 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--mauve-mist); color: var(--page-accent, var(--mauve-deep)); font-size: .85rem; font-weight: 500; }
.aea-es-next-rdv .btn { margin-top: 8px; }
.aea-es-sky { background: linear-gradient(160deg, var(--white), var(--mauve-mist)); }
.aea-es-sky-moon { display: flex; align-items: center; gap: 16px; margin: 10px 0 18px; }
.aea-es-sky-glyph { font-size: 3rem; line-height: 1; filter: saturate(.6); }
.aea-espace .aea-es-sky-name { margin: 0; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.aea-es-sky-list { margin: 0; display: grid; gap: 0; }
.aea-es-sky-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.aea-es-sky-list dt { color: var(--muted); }
.aea-es-sky-list dd { margin: 0; text-align: right; color: var(--ink); }
.aea-es-news-list { display: grid; gap: 14px; }
.aea-es-news { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.aea-es-news.is-important { border-color: var(--gold); background: var(--gold-pale, var(--mauve-mist)); }
.aea-es-news .eyebrow { margin-bottom: 6px; }
.aea-es-news h3 { margin: 0 0 6px; font-size: 1.25rem; }
.aea-espace .aea-es-news-body p { margin: 0 0 .6em; color: var(--ink-soft); }
.aea-es-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.aea-es-link-grid a { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; background: var(--paper); }
.aea-es-link-grid a:hover { border-color: var(--line-strong); }
.aea-es-link-grid strong { font-weight: 500; color: var(--ink); }
.aea-es-link-grid span { font-size: .85rem; color: var(--muted); }

/* Avant la première réservation : le thème natal d'abord */
.aea-es-natal-intro { max-width: 760px; }
.aea-espace .aea-es-lead { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); }
.aea-es-natal-steps { margin: 22px 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; }
.aea-es-natal-steps li { counter-increment: n; position: relative; padding: 14px 16px 14px 58px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); line-height: 1.55; }
.aea-es-natal-steps li::before { content: counter(n); position: absolute; left: 16px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--page-accent, var(--mauve-deep)); color: #fff; font-family: var(--serif); }
.aea-es-natal-steps strong { color: var(--ink); font-weight: 500; }
.aea-espace .aea-es-natal-ready { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--mauve-mist); color: var(--ink); font-size: .92rem; }
.aea-es-natal-ready span { flex: none; color: var(--page-accent, var(--mauve-deep)); }
.aea-es-natal-unlock { margin: 18px 0 4px; }
.aea-es-natal-unlock ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.aea-es-natal-unlock li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .85rem; color: var(--ink-soft); }
.aea-es-natal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }

/* Palettes foncées du thème (palettes.css) : la section de la page devient une bande foncée.
   L'espace garde un texte foncé sur fond clair ; dans le tableau de bord, la bande foncée devient le menu de gauche. */
html[data-palette$="-fonce"] #page-mon-espace .aea-espace {
  color: #505155;
  --ink: var(--palette-ink); --ink-soft: #505155; --muted: #66676A;
  --page-accent: var(--fonce-carte-accent, #5A4268); --page-deep: var(--page-accent);
  --gold: var(--page-accent); --gold-deep: var(--page-accent); --mauve: var(--page-accent); --mauve-deep: var(--page-accent);
  --green: var(--page-accent); --green-deep: var(--page-accent);
  --gold-soft: var(--page-essence); --mauve-soft: var(--page-essence); --green-soft: var(--page-essence);
  --line: #E6E0E2; --line-strong: #D3CBCF; --page-line: #DCD4D8;
  --detail-ink: var(--fonce-carte-accent, #5A4268);
}
html[data-palette$="-fonce"] body.aea-app #page-mon-espace section.section { background: var(--page-wash); color: #505155; }
html[data-palette$="-fonce"] #page-mon-espace .aea-es-side {
  background: var(--band); border-right-color: transparent; color: #EDE4DC;
  --ink: #FBF7F2; --ink-soft: #EDE4DC; --muted: #D7CCC2;
  --page-accent: var(--band-accent); --gold: var(--band-accent); --gold-deep: var(--band-accent); --mauve-deep: var(--band-accent);
  --line: rgba(255, 255, 255, .18); --line-strong: rgba(255, 255, 255, .32); --page-line: rgba(255, 255, 255, .25);
  --paper: rgba(255, 255, 255, .07); --mauve-mist: rgba(255, 255, 255, .13);
}
html[data-palette$="-fonce"] #page-mon-espace .aea-es-side .aea-es-link { text-decoration-color: rgba(255, 255, 255, .4); }

@media (max-width: 860px) {
  .aea-es-app { grid-template-columns: 1fr; min-height: 0; }
  .aea-es-side { position: static; height: auto; padding: 18px 14px 14px; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .aea-es-main { padding: 20px 14px 40px; }
  .aea-es-side-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .aea-es-side-who .eyebrow { width: 100%; margin-bottom: 0; }
  .aea-espace .aea-es-side-email { margin: 0; }
  .aea-es-menu { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .aea-es-menu button { flex-direction: column; justify-content: flex-start; gap: 5px; padding: 10px 4px 8px; text-align: center; line-height: 1.25;
    border-left: 0; border-bottom: 3px solid transparent; border-radius: 10px 10px 4px 4px; font-size: .78rem; }
  .aea-es-menu button[aria-selected="true"] { border-bottom-color: var(--gold); }
  .aea-es-side-foot { margin-top: 0; padding-top: 10px; }
}

/* Téléphone : le menu devient une barre d'onglets fixe en bas de l'écran, comme une application. */
.aea-es-mobile-only, .aea-es-menu-short { display: none; }
@media (max-width: 720px) {
  .aea-es-side { position: fixed; inset: auto 0 0 0; z-index: 50; height: auto; padding: 0 4px calc(4px + env(safe-area-inset-bottom)); gap: 0;
    border: 0; border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 18px rgba(40, 30, 35, .08); overflow: visible; }
  .aea-es-side-who, .aea-es-side-foot { display: none; }
  .aea-es-menu { gap: 0; }
  .aea-es-menu button { gap: 3px; padding: 8px 2px 6px; border-bottom: 0; border-top: 3px solid transparent; border-radius: 0; font-size: .68rem; min-height: 56px; }
  .aea-es-menu button[aria-selected="true"] { border-top-color: var(--gold); }
  .aea-es-menu .aea-es-menu-label { display: none; }
  .aea-es-menu .aea-es-menu-short { display: block; white-space: nowrap; }
  .aea-es-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .aea-es-mobile-only { display: block; }
  .aea-espace .aea-es-logout { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 640px) {
  .aea-es-ob-choices { grid-template-columns: 1fr; }
  .aea-es-home-grid { grid-template-columns: 1fr; }
  .aea-es-report { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; }
  .aea-es-report-go { display: none; }
  .aea-es-report-glyph { width: 42px; height: 42px; font-size: 1.2rem; }
  .aea-es-rdv { flex-direction: column; }
  .aea-es-head-side { width: 100%; justify-content: space-between; }
  .aea-es-tabs { padding: 0 8px; }
  .aea-es-tabs button { padding: 11px 15px 10px; font-size: .68rem; letter-spacing: .1em; }
  .aea-es-form .btn { width: 100%; }
}
