/* Skineli · landing conversationnelle · une définition par composant, jetons en tête, media queries en fin. */
:root {
  --plum: #421c45;
  --plum-2: #5a2d5f;
  --accent: #8956a0;
  --logo-s: #c48ee0;   /* le lilas du S du logo d'Élise (mesuré #d7abe7 sur fond blanc, un ton plus dense sur le lavande du site) */
  --accent-2: #a2638b;
  --lavender: #e2d7f0;
  --bg: #eee8f5;
  --paper: #fffcff;
  --tint: #efe6f6;
  --tint-2: #f7f1fb;
  --muted: #725c77;
  --line: #e5d8eb;
  --line-2: #d4bbdf;
  --ok: #5f9a72;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --r-pill: 999px;
  --shadow: 0 18px 60px -24px rgba(66, 28, 69, .28);
  --shadow-sm: 0 6px 18px -10px rgba(66, 28, 69, .3);
  --transition: .18s ease;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--plum);
  background: var(--bg);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { overscroll-behavior: none; overflow-x: hidden; scrollbar-gutter: stable; }
body { margin: 0; overflow-x: clip; background: linear-gradient(180deg, #f4f0fa 0%, var(--bg) 45%, #e8e0f1 100%); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.br-mobile { display: none; }
.br-desktop { display: inline; }

/* ---- Page ---- */
.page { height: 100svh; min-height: 680px; max-width: 1500px; margin: auto; padding: 0 clamp(16px, 3vw, 44px); display: flex; flex-direction: column; }

/* ---- Topbar ---- */
.topbar { position: sticky; top: 0; z-index: 30; height: 96px; flex-shrink: 0; display: flex; align-items: center; gap: 20px; border-bottom: 2px solid #d8cce2; background: rgba(240, 235, 247, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.burger { display: none; }
/* logo : la typo du logo d'Élise (Anton, la plus proche de son visuel Instagram), capitales serrées, S en couleur (Julien, 18/09) */
.wordmark { font-family: Anton, Impact, 'Arial Narrow Bold', sans-serif; font-weight: 400; font-size: 52px; text-transform: uppercase; white-space: nowrap; letter-spacing: -.5px; text-decoration: none; color: #141018; line-height: 1; }
.wordmark { position: relative; top: 11px; }  /* le logo descend vers le trait (Julien, 18/09 : « un peu trop haut ») */
.wordmark span { color: var(--logo-s); }
.book { background: var(--plum); color: #fff; border: 0; padding: 14px 22px; border-radius: var(--r); font-size: 15px; font-weight: 600; box-shadow: var(--shadow-sm); transition: background var(--transition), transform var(--transition); }
.book:hover { background: var(--plum-2); }
.book:active { transform: translateY(1px); }
.top-book::before { content: '♡'; margin-right: 10px; font-size: 18px; }

/* ---- Main ---- */
main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 48px); flex: 1; min-height: 0; padding: 6px 0 22px; }

/* ---- Intro ---- */
.intro { position: relative; min-height: 0; }
.intro-copy { position: relative; z-index: 1; max-width: 58%; }
.eyebrow { font-size: 14px; letter-spacing: 2.2px; text-transform: uppercase; font-weight: 700; margin: 20px 0 12px 2.5px; color: var(--accent); }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 4.6vw, 74px); line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 18px; }
h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.lead { font-size: 18px; line-height: 1.5; margin: 0; color: var(--muted); }
.lead-2 { font-style: italic; }
.scene { position: absolute; top: 0; right: -24px; bottom: 0; left: 40%; margin: 0; }
.halo { position: absolute; left: 50%; bottom: 16px; width: 460px; height: 460px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #fff 0%, #f6f1fb 45%, transparent 72%); }
.perso { position: absolute; bottom: 6px; left: 50%; height: calc(100% - 46px); max-height: 760px; aspect-ratio: 986 / 1524; transform: translateX(-50%); animation: breathe 6s ease-in-out infinite; }
.perso.anime { aspect-ratio: 1248 / 1664; bottom: -14px; height: calc(100% - 20px); max-height: 820px; animation: none; }
.avatar { display: block; height: 100%; width: auto; filter: drop-shadow(0 18px 24px rgba(66, 28, 69, .18)); }
.avatar-anim, .avatar-video, .avatar-toile { display: none; }
.perso.anime .avatar-toile { display: block; }
/* iPhone/iPad : la vidéo tourne cachée (2 px, presque transparente, jamais display:none) et se dessine dans .avatar-toile */
.perso .avatar-video.cache, .perso.anime .avatar-video.cache { display: block; position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; filter: none; }
.avatar-video { object-fit: contain; background: transparent; filter: none; }  /* 🔴 pas de drop-shadow CSS sur la VIDÉO : sur iPhone, un filtre sur un <video> HEVC alpha fait réaplatir la couche en opaque = rectangle blanc (capture Julien, 18/09 21 h 28) */
.perso.anime .avatar-anim, .perso.anime .avatar-video { display: block; }
.perso.anime .avatar-image { display: none; }
.perso.anime .hello { left: 58%; top: 2%; }
.hello { position: absolute; left: 60%; top: -5%; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 22px; transform: rotate(4deg); background: var(--paper); padding: 12px 18px; border-radius: 22px 22px 22px 4px; box-shadow: var(--shadow-sm); }
.hello::after { content: ''; position: absolute; left: 6px; bottom: -11px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 10px solid transparent; border-top: 12px solid var(--paper); }
.hello span { color: var(--accent-2); }

/* ---- Chat ---- */
.chat { min-height: 0; width: 100%; max-width: 600px; height: calc(100% - 46px); margin-top: 36px; justify-self: end; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.chat-header { padding: 10px 18px 10px 16px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.mini-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--tint); }
.chat-title { min-width: 0; }
.chat-title h2 { font-size: 17px; margin: 0; font-weight: 600; }
.chat-title p { font-size: 12px; margin: 2px 0 0; color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--ok); border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.link-button { border: 0; background: none; padding: 8px 4px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: color var(--transition); }
.link-button:hover { color: var(--plum); }
.reset { position: relative; margin-left: auto; flex-shrink: 0; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; transition: background var(--transition), color var(--transition); }
.reset svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reset:hover { background: var(--tint); color: var(--plum); }
.reset::after { content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 6px); background: var(--plum); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: var(--r-sm); white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity var(--transition), transform var(--transition); z-index: 2; }
.reset:hover::after, .reset:focus-visible::after { opacity: 1; transform: none; }

.messages { flex: 1; min-height: 90px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c4aace transparent; padding: 18px 22px 6px; }
.msg { font-size: 16px; line-height: 1.5; max-width: 86%; margin: 0 0 12px; overflow-wrap: anywhere; animation: pop .22s ease both; }
/* la réponse respire : un blanc entre chaque idée, un retrait sous chaque point de liste */
.msg .ligne { margin: 0 0 .8em; }
.msg .ligne:last-child { margin-bottom: 0; }
.msg .puce, .msg .num { margin-bottom: .55em; padding-left: 1.05em; }
.msg .puce { position: relative; }
.msg .puce::before { content: '–'; position: absolute; left: 0; top: 0; color: var(--accent); }
.msg .num { text-indent: -1.05em; }
.msg.user .puce::before { color: var(--lavender); }
.msg.assistant { position: relative; margin-left: 38px; background: var(--tint); padding: 13px 17px; border-radius: 20px 20px 20px 6px; }
.msg.assistant::before { content: ''; position: absolute; left: -38px; bottom: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--tint) url('assets/elise-mini-2.webp') center / cover; }
.msg.user { width: fit-content; background: var(--plum); color: #fff; text-align: right; padding: 12px 16px; border-radius: 20px 20px 6px 20px; margin-left: auto; }  /* bulle ajustée au texte, texte à droite (Julien, 25/09) */
.msg.typing { display: flex; gap: 5px; align-items: center; min-height: 44px; padding: 0 18px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .18s; }
.msg.typing i:nth-child(3) { animation-delay: .36s; }
.msg.typing.outil { font-size: 13px; color: var(--muted); font-style: italic; }
.carte-rdv { margin: 2px 0 14px 38px; max-width: 86%; background: #fff; border: 1.5px solid var(--accent); border-radius: var(--r); padding: 14px 18px; font-size: 15px; line-height: 1.5; box-shadow: var(--shadow-sm); animation: pop .22s ease both; }
.carte-rdv b { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.carte-rdv small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

.chat-bottom { padding: 4px 22px 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; min-height: 0; }
.choice { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 10px 16px; font-size: 14px; font-weight: 500; min-height: 42px; text-align: left; transition: background var(--transition), border-color var(--transition); animation: pop .22s ease both; }
.choice:hover { background: var(--tint); border-color: var(--accent); }

/* le champ est un textarea qui grandit avec le texte (dictée comprise), jusqu'à 8 lignes : le texte
   passe à la ligne AVANT les boutons, jamais dessous ni coupé (Julien, 18/09). Boutons au milieu du cadre. */
.champ { display: flex; align-items: center; gap: 4px; border: 1px solid #d7c6e0; border-radius: var(--r); padding: 5px; background: #fff; transition: border-color var(--transition), box-shadow var(--transition); }
.champ:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(137, 86, 160, .15); }
#question { font: inherit; font-size: 16px; line-height: 1.5; border: 0; min-width: 0; flex: 1; background: transparent; padding: 10px 8px 10px 12px; color: var(--plum); resize: none; overflow-y: auto; height: 44px; max-height: 212px; scrollbar-width: none; }
#question::-webkit-scrollbar { display: none; width: 0; }
#question::placeholder { color: #8f7d95; }
#question:focus { outline: none; }
.voice-button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--tint); border-radius: 50%; width: 44px; height: 44px; padding: 0; transition: background var(--transition), width var(--transition); }
body.listening .voice-button { width: auto; min-width: 44px; padding: 0 12px; border-radius: var(--r-pill); }
.voice-button:hover { background: var(--lavender); }
.voice-button svg { width: 20px; height: 22px; stroke: var(--plum); fill: none; stroke-width: 1.7; stroke-linecap: round; }
.wave { display: none; height: 18px; align-items: center; gap: 3px; }
.wave i { width: 3px; height: 7px; background: var(--accent); border-radius: 3px; }
.wave i:nth-child(2), .wave i:nth-child(4) { height: 12px; }
.wave i:nth-child(3) { height: 17px; }
body.listening .voice-button { background: #d6b8e6; }
body.listening .wave { display: flex; }
body.listening .wave i { animation: wave .6s ease-in-out infinite alternate; }
body.listening .wave i:nth-child(2n) { animation-delay: .2s; }
#send { border: 0; background: var(--plum); color: #fff; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; transition: background var(--transition); }
#send svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
#send:hover { background: var(--plum-2); }
.voice-status { color: var(--muted); font-size: 12px; line-height: 1.35; margin: 6px 4px 0; min-height: 0; }
.voice-status:empty { display: none; }
.chat-mention { margin: 6px 4px 0; font-size: 11px; line-height: 1.4; color: var(--muted); text-align: center; }
.chat-mention a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
body.clavier .chat-mention { display: none; }   /* information RGPD + IA sous le chat (26/09/2026) ; masquée clavier ouvert */
.privacy { font-size: 11px; line-height: 1.4; color: var(--muted); margin: 8px 0 0; text-align: center; }

/* ---- Footer ---- */
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 2px solid #d8cce2; min-height: 64px; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--plum); flex-shrink: 0; }
.legal-nav { display: flex; gap: 18px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.legal-nav a { color: var(--muted); text-decoration: none; transition: color var(--transition); }
.legal-nav a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
footer i { font-style: normal; margin: 0 12px; color: var(--accent); }
footer .link-button { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--plum); }

/* ---- Modales (pattern JBC : croix fixe, scroll intérieur invisible) ---- */
dialog { border: 1px solid #e5dbea; border-radius: var(--r-lg); color: var(--plum); background: var(--paper); width: min(520px, calc(100vw - 28px)); max-height: 90svh; padding: 0; overflow: hidden; box-shadow: 0 30px 100px rgba(50, 16, 55, .2); text-align: center; }
dialog::backdrop { background: rgba(48, 29, 58, .45); backdrop-filter: blur(6px); }
.modal-scroll { max-height: 90svh; overflow-y: auto; padding: 34px 30px 30px; scrollbar-width: none; -ms-overflow-style: none; }
.modal-scroll::-webkit-scrollbar { display: none; width: 0; }
dialog .icon-button { position: absolute; right: 10px; top: 8px; z-index: 1; }
.icon-button { border: 0; background: none; min-width: 40px; min-height: 40px; font-size: 26px; color: var(--muted); border-radius: 50%; transition: background var(--transition); }
.icon-button:hover { background: var(--tint); }
dialog h2 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 12px 0 14px; letter-spacing: -.5px; }
dialog .eyebrow { margin: 0; }
.dialog-text { font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.address { background: var(--tint); padding: 16px; border-radius: var(--r-sm); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.dialog-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.primary { border: 0; background: var(--plum); color: #fff; padding: 15px; border-radius: var(--r-sm); width: 100%; font-size: 16px; font-weight: 600; transition: background var(--transition); }
.primary:hover { background: var(--plum-2); }
.planity-link { display: block; text-align: center; color: var(--plum); border: 1px solid var(--line-2); padding: 12px; border-radius: var(--r-sm); margin: 0 0 12px; text-decoration: none; font-size: 15px; transition: background var(--transition); }
.planity-link:hover { background: var(--tint); }

/* ---- Pages intérieures (À propos, Mes prestations) ---- */
.site-nav { display: flex; gap: 24px; margin-left: auto; position: relative; top: 10.5px; }  /* menu sur la ligne de base du texte du bouton « Parler à l'assistante » (Julien, 18/09), mesuré au marqueur */
.site-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 16px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--plum); border-color: var(--accent); }
.nav-home, .nav-legal { display: none; }
.lanceur { position: relative; top: 10px; margin-left: 26px; display: inline-flex; align-items: center; gap: 10px; background: var(--plum); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 18px 7px 8px; border-radius: var(--r-pill); box-shadow: var(--shadow); transition: background var(--transition), transform var(--transition); }
.lanceur img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.lanceur:hover { background: var(--plum-2); transform: translateY(-1px); }
.inner .page { height: auto; min-height: 100svh; }
/* pages ouvertes par-dessus l'accueil (le chat et l'animation continuent dessous) */
.panneau { position: fixed; left: 0; right: 0; top: 84px; bottom: 0; z-index: 25; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #f4f0fa 0%, var(--bg) 45%, #e8e0f1 100%); padding: 0 clamp(16px, 3vw, 44px); }
.panneau[hidden] { display: none; }
.panneau .inner-main { min-height: calc(100% - 66px); padding-top: 10px; }
body.page-ouverte .lanceur { background: var(--plum-2); }
.inner-main { display: block; flex: 1; padding: 10px 0 40px; max-width: 1100px; width: 100%; margin: 0 auto; }
.hero-page { padding: 36px 0 36px; text-align: center; }
.hero-page h1 { margin: 0 auto 18px; }
.hero-page .lead { max-width: 640px; margin: 0 auto; }
.section { padding: 34px 0; border-top: 1px solid #d8cce2; }
.section-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 48px; align-items: start; }
.section h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.5px; margin: 10px 0 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--lavender); color: var(--plum); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; padding: 8px 14px; border-radius: var(--r-pill); margin: 0; }
.pill .ico { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.pill .ico svg { width: 18px; height: 18px; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prose { font-size: 17px; line-height: 1.6; }
.prose.institut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.carte-map { display: flex; flex-direction: column; gap: 8px; }
.carte-map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); background: var(--tint); }
.carte-map a { font-size: 13px; color: var(--muted); text-align: right; }
.prose p { margin: 0 0 16px; }
.prose .note { font-size: 14px; color: var(--muted); }
.prose .address { display: inline-block; margin-bottom: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ghost { display: inline-flex; align-items: center; color: var(--plum); border: 1px solid var(--line-2); padding: 13px 20px; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 15px; transition: background var(--transition); }
.ghost:hover { background: var(--tint); }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; }
.cards-3.entree { margin: 0 0 12px; }
.card { background: var(--paper); border: 1px solid #fff; border-radius: var(--r-lg); padding: 20px 20px 18px; box-shadow: var(--shadow-sm); font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.card b { font-size: 16px; font-weight: 600; }
.card span { color: var(--muted); }
.card.accent { border: 1.5px solid var(--accent); }
.card .mini { margin-top: auto; align-self: flex-start; }
.mini { display: inline-block; background: var(--plum); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); transition: background var(--transition); white-space: nowrap; }
.mini:hover { background: var(--plum-2); }
.soon { display: inline-block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.famille { padding: 30px 0 6px; }
.famille-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.famille-head h2 { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.4px; margin: 0; }
.famille-head .ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lavender); flex-shrink: 0; }
.famille-head .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.famille-head p { margin: 0; font-size: 14px; color: var(--muted); max-width: 520px; }
.tarifs { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; font-size: 15px; }
.tarifs th { text-align: left; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 18px 10px; background: var(--tint-2); }
.tarifs td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.tarifs tr:hover td { background: var(--tint-2); }
.tarifs .nom { font-weight: 500; }
.tarifs .duree { color: var(--muted); white-space: nowrap; }
.tarifs .prix { font-weight: 700; white-space: nowrap; }
.tarifs .act { text-align: right; }
.tarifs th:last-child { text-align: right; }
.source { font-size: 13px; color: var(--muted); text-align: center; margin: 30px 0 0; }
.legal { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.6; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 34px 0 10px; letter-spacing: -.3px; }
.legal p, .legal li { margin: 0 0 12px; }
.legal .a-valider { background: var(--tint); border-radius: var(--r); padding: 12px 16px; font-size: 14px; color: var(--muted); }
.source a { color: var(--plum); }
.avis-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.avis { background: var(--paper); border: 1px solid #fff; border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg); padding: 22px 22px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.avis .etoiles { color: var(--accent); letter-spacing: 2px; font-size: 16px; }
.avis p { margin: 0; font-size: 16px; line-height: 1.55; font-family: var(--serif); font-style: italic; }
.avis small { color: var(--muted); font-size: 12px; margin-top: auto; }

@keyframes breathe { 50% { transform: translate(-50%, -4px); } }
@keyframes wave { to { transform: scaleY(.45); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

/* ================= Media queries, un bloc par palier ================= */
@media (min-width: 1181px) and (max-height: 800px) {
  .topbar { height: 84px; }
  .wordmark { font-size: 46px; top: 8px; }
  .site-nav { top: 7.5px; }
  .lanceur { top: 7px; }
  h1 { font-size: 52px; }
  .lead { font-size: 16px; }
  .chat-header { padding: 11px 20px; }
  .messages { padding: 12px 20px 4px; }
  .msg { font-size: 15px; }
  .chat-bottom { padding: 4px 20px 10px; }
  .choice { padding: 8px 13px; font-size: 13px; min-height: 40px; }
  .privacy { margin-top: 6px; }
}
/* 🔴 mobile ET tablette (Julien, 18/09 23 h 50 : « pour la tablette, vaut mieux très rapidement être comme sur la version mobile ») ; seuil monté à 1180 le 19/09 0 h 05 (« ça bug encore » à ~1 000-1 100 px) */
@media (max-width: 1180px) {
  .br-mobile { display: inline; }
  .burger { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; border-radius: 50%; }
  .burger svg { width: 26px; height: 26px; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; }
  body.menu-ouvert .burger { background: var(--tint); }
  .site-nav { display: none; position: absolute; left: -14px; right: -14px; top: 100%; flex-direction: column; gap: 0; margin: 0; background: var(--paper); border-bottom: 2px solid #d8cce2; box-shadow: var(--shadow); z-index: 60; }
  body.menu-ouvert .site-nav { display: flex; }
  .site-nav a { font-size: 17px; font-weight: 500; padding: 15px 20px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a[aria-current] { border-color: var(--line); background: var(--tint-2); }
  body.clavier .messages { padding-left: 16px; padding-right: 16px; }
  body.clavier .chat-bottom { padding-left: 16px; padding-right: 16px; }
  body.clavier .choices { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .topbar { border-bottom-width: 1.5px; }
  .legal { font-size: 15px; }
  .legal h2 { font-size: 22px; }
  .inner .site-nav .nav-home, body.page-ouverte .site-nav .nav-home { display: block; }
  /* les liens légaux vivent dans le menu en haut à droite : plus de pied sur l'accueil */
  /* liens légaux : italique et lilas, sans trait entre eux (Julien, 18/09 : « juste pour les différencier un peu ») */
  .site-nav .nav-legal { display: block; font-size: 14px; font-style: italic; font-weight: 400; color: var(--accent); padding: 10px 20px; border-bottom: 0; }
  .site-nav a:not(.nav-legal) + .nav-legal { padding-top: 16px; }
  .site-nav .nav-legal:last-child { padding-bottom: 16px; }
  .lanceur { top: 0; margin-left: auto; font-size: 12px; padding: 5px 12px 5px 5px; gap: 8px; }
  .lanceur img { width: 28px; height: 28px; }
  .lanceur:not(.lanceur-accueil) ~ .burger { margin-left: 0; }  /* sur l'accueil le lanceur est masqué : le burger reste à droite */
  .inner-main { padding: 0 0 28px; }
  .hero-page { padding: 12px 0 26px; }
  .inner h1 { font-size: 36px; }
  .section { padding: 24px 0; }
  .section-grid { grid-template-columns: 1fr; gap: 14px; }
  .prose { font-size: 16px; }
  .cards-3 { grid-template-columns: 1fr; }
  .famille-head h2 { font-size: 26px; }
  .tarifs { font-size: 14px; border-radius: var(--r); }
  .tarifs th, .tarifs td { padding: 11px 12px; }
  .tarifs th:nth-child(2), .tarifs td.duree { display: none; }
  .tarifs .act .mini { padding: 7px 11px; font-size: 12px; }
  .inner footer { padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 2px solid #d8cce2; }
  .panneau { top: 64px; padding: 0 14px; }
  .prose.institut { grid-template-columns: 1fr; }
  .br-desktop { display: none; }
  .page { height: 100svh; min-height: 0; padding: 0 14px; }
  .inner .page { height: auto; min-height: 100svh; }
  .topbar { height: 64px; gap: 12px; }
  .wordmark { font-size: 34px; top: 0; }  /* même centre que le burger (les capitales d'Anton sont centrées dans leur boîte) */
  .lanceur-accueil { display: none; }  /* sur l'accueil mobile, l'assistante est déjà là (Julien, 18/09 18 h) */
  .top-book { margin-left: auto; font-size: 13px; padding: 10px 14px; border-radius: 12px; }
  .top-book::before { display: none; }
  main { display: flex; flex-direction: column; gap: 10px; padding: 0; min-height: 0; flex: 1; }
  .intro { height: 164px; position: relative; flex-shrink: 0; }
  .intro-copy { position: relative; z-index: 2; max-width: 60%; padding-top: 12px; }
  .eyebrow { font-size: clamp(10px, 2.8vw, 11px); letter-spacing: .14em; white-space: nowrap; margin: 0 0 6px 1px; }  /* une seule ligne, même à 320 px */  /* « Ton institut à Challans » revient au-dessus du titre (Julien, 18/09 23 h) */
  body.clavier .eyebrow { display: none; }
  h1 { font-size: 34px; letter-spacing: -.8px; line-height: 1.03; margin: 0 0 10px; }
  .lead { font-size: 13px; line-height: 1.4; max-width: 210px; }
  .lead br, .lead-2 { display: none; }
  /* l'animation prend plus de place et se cale à droite : le perso est ancré sur le bord droit,
     décalé de sa propre marge transparente pour que la main s'arrête à 6 px du bord de l'écran */
  .scene { position: absolute; top: -6px; right: -14px; left: auto; bottom: auto; width: 300px; height: 420px; margin: 0; overflow: hidden; z-index: 0; }
  .perso { top: 0; bottom: auto; left: auto; right: -11px; transform: none; height: 420px; max-height: none; animation: none; }
  .perso.anime { top: -6px; right: -46px; height: 440px; }
  .avatar { filter: none; }
  .halo, .hello { display: none; }
  /* le chat prend tout le bloc du bas, bord à bord, sans cadre : « comme si c'était plein »,
     avec les deux coins du haut arrondis comme une feuille qui remonte (Julien, 18/09, 19 h 31) */
  .chat { position: relative; z-index: 1; margin: 0 -14px; width: auto; max-width: none; flex: 1; height: auto; min-height: 0; border: 0; border-top: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: none; }
  body:not(.inner) > .page > footer { display: none; }
  /* clavier ouvert : JAMAIS de plein écran (demande Julien 18/09, 18 h 36 : « j'aimerais toujours
     qu'il y ait la petite assistante en haut, comme quand on arrive sur l'accueil »).
     La page se contente de tenir dans le viewport visible : l'assistante et le titre restent
     en haut, réduits, et le champ reste juste au-dessus du clavier. */
  body.clavier { overflow: hidden; }
  body.clavier .page { height: var(--vvh, 100svh); min-height: 0; }
  body.clavier .intro { height: var(--intro-h, 84px); overflow: hidden; }
  body.clavier .intro-copy { padding-top: 6px; }
  body.clavier h1 { font-size: 24px; margin-bottom: 0; }
  body.clavier .lead { display: none; }
  body.clavier .scene { height: 210px; }
  body.clavier .perso { height: 210px; right: -3px; }
  body.clavier .perso.anime { height: 220px; right: -20px; }
  body.clavier .messages { min-height: 60px; }
  body.clavier .chat-bottom { padding-bottom: 8px; }
  body.clavier .privacy { display: none; }
  /* réponses suggérées : une rangée qui glisse, au lieu d'empiler */
  .choices { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -13px 10px; padding: 2px 13px; scroll-padding: 13px; }
  .choices::-webkit-scrollbar { display: none; }
  .choice { flex: 0 0 auto; white-space: nowrap; }
  .chat-header { padding: 8px 10px 8px 12px; gap: 9px; }
  .mini-avatar { width: 34px; height: 34px; }
  .chat-title h2 { font-size: 16px; white-space: nowrap; }
  .chat-title p { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .messages { padding: 12px 13px 4px; min-height: 128px; }
  .msg { font-size: 15px; line-height: 1.45; max-width: 90%; }
  .msg.assistant { padding: 11px 14px; margin-left: 34px; }
  .msg.assistant::before { left: -34px; width: 26px; height: 26px; }
  .carte-rdv { margin-left: 34px; max-width: 90%; font-size: 14px; }
    .chat-bottom { padding: 4px 13px calc(12px + env(safe-area-inset-bottom)); }
  .choice { font-size: 13px; min-height: 40px; padding: 8px 13px; }
  #question { padding: 9px 4px 9px 10px; }
  #send { padding: 11px 12px; font-size: 13px; }
  .privacy { font-size: 10px; margin-top: 7px; }
  footer { flex-direction: column; gap: 8px; min-height: 44px; border: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); font-size: 10px; letter-spacing: 1px; }
  .legal-nav { font-size: 11px; gap: 12px; }
}
/* tablette (701-1024) : la même mise en page que le téléphone, agrandie d'un quart. Les décalages
   du personnage suivent sa marge transparente (15,7 % de la largeur pour l'animation, 6,4 % pour
   l'image fixe) : la main s'arrête toujours à 6 px du bord. */
@media (min-width: 701px) and (max-width: 1180px) {
  .topbar { height: 76px; }
  .wordmark { font-size: 42px; }
  .intro { height: 210px; }
  .intro-copy { max-width: 62%; padding-top: 16px; }
  .eyebrow { font-size: 12px; margin-bottom: 8px; }
  h1 { font-size: 46px; margin-bottom: 12px; }
  .lead { font-size: 16px; max-width: 320px; }
  .scene { width: 380px; height: 540px; top: -8px; right: -18px; }
  .perso { height: 540px; right: -14px; }
  .perso.anime { height: 566px; right: -60px; }
  .site-nav a { font-size: 18px; }
  .messages { padding: 16px 18px 6px; }
  .msg { font-size: 16px; }
  .choice { font-size: 14px; min-height: 42px; }
  .privacy { font-size: 11px; }
}
@media (max-width: 1180px) and (max-height: 740px) {
  .intro { height: 132px; }
  .lead { display: none; }
  .scene { height: 340px; }
  .perso { height: 340px; right: -9px; }
  .perso.anime { height: 356px; right: -37px; }
  .topbar { height: 60px; }
  h1 { font-size: 31px; }
  body.clavier .intro { height: var(--intro-h, 72px); }
  body.clavier h1 { font-size: 22px; }
  body.clavier .scene { height: 170px; }
  body.clavier .perso { height: 170px; right: -1px; }
  body.clavier .perso.anime { height: 178px; right: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
