/* Holistique Marketing — charte « Nuit & Champagne ».
   Sombre (défaut) : nuit sarcelle + champagne. Clair : ivoire + sarcelle profonde. */
:root {
  --night: #0B191B; --teal: #16393A; --teal-2: #1F4D4C; --teal-3: #2C6563;
  --champagne: #E6CF9F; --gold: #C9A465; --gold-2: #E2C690; --sage: #8FAE9A; --terra: #C77B5A; --ivory: #F6F1E8;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Manrope', 'Segoe UI', system-ui, Arial, sans-serif;
  --radius: 22px; --radius-sm: 14px; --tabbar: 66px; --ease: cubic-bezier(.22,.7,.2,1);
}
[data-theme="dark"], :root:not([data-theme]) {
  --bg: #0B191B;
  --glow-a: rgba(31,77,76,.55); --glow-b: rgba(201,164,101,.16); --glow-c: rgba(44,101,99,.32);
  --text: #F2ECE1; --muted: #A7B5B0; --heading: #EEDDB8; --gold-text: #E2C690; --link: #E2C690;
  --line: rgba(230,207,159,.12); --line2: rgba(230,207,159,.22);
  --glass: rgba(17,38,40,.62); --glass-strong: rgba(15,33,35,.88); --glass-brd: rgba(246,241,232,.08);
  --soft: rgba(230,207,159,.07); --soft-2: rgba(230,207,159,.14); --soft-text: #EEDDB8;
  --accent: #E2C690; --accent-2: #C9A465; --accent-ink: #13201F; --accent-glow: rgba(201,164,101,.45);
  --field-bg: rgba(6,16,17,.55); --field-solid: #0D1E20; --field-brd: rgba(230,207,159,.16);
  --ok: #8FCBA6; --err: #F2A58C; --ok-bg: rgba(143,174,154,.16); --err-bg: rgba(199,123,90,.16);
  --topbar-bg: rgba(9,22,24,.72); --ctl-bg: rgba(17,38,40,.7); --ctl-brd: rgba(230,207,159,.16);
  --hero-bg: radial-gradient(120% 140% at 0% 0%, rgba(201,164,101,.18) 0%, rgba(201,164,101,0) 45%), linear-gradient(135deg, #17393A 0%, #0F2426 55%, #10201F 100%);
  --tile-bg: rgba(14,32,34,.7); --code-bg: rgba(5,13,14,.6);
  --orb-op: .26; --grain-op: .06; --star-op: .32;
  --shadow: 0 26px 60px -26px rgba(0,0,0,.7); --shadow-sm: 0 12px 28px -16px rgba(0,0,0,.75); --shadow-lg: 0 40px 90px -30px rgba(0,0,0,.85);
  --focus: #E2C690;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F6F1E8;
  --glow-a: rgba(168,199,186,.55); --glow-b: rgba(234,214,172,.7); --glow-c: rgba(196,217,206,.6);
  --text: #1C2A2B; --muted: #5B6966; --heading: #16393A; --gold-text: #86601E; --link: #1F4D4C;
  --line: rgba(22,57,58,.12); --line2: rgba(22,57,58,.2);
  --glass: rgba(255,252,246,.72); --glass-strong: rgba(255,253,249,.9); --glass-brd: rgba(255,255,255,.85);
  --soft: rgba(22,57,58,.06); --soft-2: rgba(22,57,58,.11); --soft-text: #16393A;
  --accent: #1F4D4C; --accent-2: #16393A; --accent-ink: #FBF7F0; --accent-glow: rgba(22,57,58,.5);
  --field-bg: rgba(255,255,255,.9); --field-solid: #FFFDF9; --field-brd: rgba(22,57,58,.18);
  --ok: #2F6B4E; --err: #A2462A; --ok-bg: #E2EDE6; --err-bg: #F7E4DB;
  --topbar-bg: rgba(250,246,239,.76); --ctl-bg: rgba(255,253,248,.8); --ctl-brd: rgba(22,57,58,.14);
  --hero-bg: radial-gradient(120% 140% at 100% 0%, rgba(201,164,101,.22) 0%, rgba(201,164,101,0) 50%), linear-gradient(135deg, #FFFBF4 0%, #F3EADA 55%, #E4EEE8 100%);
  --tile-bg: rgba(255,253,248,.78); --code-bg: #FBF8F2;
  --orb-op: .4; --grain-op: .045; --star-op: .22;
  --shadow: 0 26px 60px -28px rgba(30,45,40,.32); --shadow-sm: 0 12px 28px -18px rgba(30,45,40,.38); --shadow-lg: 0 40px 80px -36px rgba(30,45,40,.45);
  --focus: #B08A4C;
  color-scheme: light;
}

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html, body { margin: 0; color: var(--text); font: 15.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background: transparent; font-variant-numeric: lining-nums; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .45em; color: var(--heading); letter-spacing: -.005em; }
h1 { font-size: 38px; } h2 { font-size: 31px; } h3 { font-size: 22px; }
p { margin: 0 0 .8em; }
a { color: var(--link); }
img { max-width: 100%; }
strong { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(201,164,101,.35); }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(0, -30px) scale(1.06); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.82) rotate(25deg); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Fond vivant : halos, orbes, constellation, grain */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1100px 720px at 88% -8%, var(--glow-a) 0%, transparent 62%), radial-gradient(1000px 700px at -5% 14%, var(--glow-b) 0%, transparent 58%), radial-gradient(900px 700px at 60% 108%, var(--glow-c) 0%, transparent 58%), var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--orb-op); animation: float 24s ease-in-out infinite; }
.orb.o1 { width: 440px; height: 440px; top: -140px; right: -110px; background: radial-gradient(circle at 30% 30%, #5E9A92, #16393A 70%); }
.orb.o2 { width: 380px; height: 380px; top: 42%; left: -160px; background: radial-gradient(circle at 30% 30%, #F0DDB3, #C9A465 70%); animation-delay: -8s; }
.orb.o3 { width: 340px; height: 340px; bottom: -160px; right: 18%; background: radial-gradient(circle at 30% 30%, #E0A887, #C77B5A 70%); opacity: calc(var(--orb-op) * .6); animation-delay: -14s; }
.constel { position: absolute; top: 70px; right: 2%; width: min(46vw, 460px); color: var(--gold); opacity: var(--star-op); }
.grain { position: absolute; inset: 0; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Cartes en verre */
.card { position: relative; background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); }
.card > h3:first-child, .card > h2:first-child { margin-top: 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 26px; font: 700 15px/1.2 var(--sans); letter-spacing: .01em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); cursor: pointer; text-decoration: none; box-shadow: 0 16px 32px -16px var(--accent-glow);
  transition: transform .2s var(--ease), box-shadow .25s, filter .2s, background .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 20px 38px -14px var(--accent-glow); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.btn.ghost { background: var(--soft); color: var(--soft-text); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { background: var(--soft-2); }
.btn.small { padding: 9px 16px; font-size: 13.5px; }
.btn.danger { background: linear-gradient(135deg, #D98D6D, var(--terra)); color: #1E0F08 !important; box-shadow: 0 16px 32px -16px rgba(199,123,90,.7); }
.link { background: none; border: 0; color: var(--link); cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: inherit; padding: 6px 0; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.link:hover { border-bottom-color: currentColor; }
.danger { color: var(--err) !important; }

/* Champs */
.form { display: grid; gap: 16px; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.form label > input, .form label > select, .form label > textarea, .form label > .ac { display: block; margin-top: 7px; }
input, select, textarea { width: 100%; background: var(--field-bg); color: var(--text); border: 1.5px solid var(--field-brd); border-radius: var(--radius-sm); padding: 12px 14px;
  font: 500 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s, background .2s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A465' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
select option { background: var(--field-solid); color: var(--text); }
textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,101,.18); }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--field-solid) inset; caret-color: var(--text); }
input[type="color"] { padding: 3px; border-radius: 10px; }
.form-msg { min-height: 1.2em; margin: 0; font-size: 14px; font-weight: 600; color: var(--err); }
.form-msg.ok { color: var(--ok); }

/* Mise en page utilitaire */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.center { text-align: center; }
.lbl { font-size: 14px; font-weight: 700; margin-bottom: 9px; color: var(--text); }

/* Puces / choix */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chip-radio span, .chip-check span { display: inline-block; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 15px; font: 600 13.5px/1.35 var(--sans);
  background: var(--soft); color: var(--text); cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.chip:hover, .chip-radio span:hover, .chip-check span:hover { border-color: var(--gold); }
.chip-radio span strong, .chip-check span strong { font-weight: 800; }
.chip.on, .chip-radio input:checked + span, .chip-check input:checked + span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 18px -10px var(--accent-glow); }
.chip-radio, .chip-check { position: relative; cursor: pointer; font-weight: 400 !important; }
.chip-radio input, .chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio input:focus-visible + span, .chip-check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.badge { display: inline-block; border: 1px solid rgba(201,164,101,.45); background: linear-gradient(135deg, rgba(201,164,101,.18), rgba(201,164,101,.06)); color: var(--gold-text);
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.ctl { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; padding: 0; cursor: pointer; color: var(--soft-text);
  background: var(--ctl-bg); border: 1px solid var(--ctl-brd); transition: transform .25s var(--ease), box-shadow .25s, background .2s; }
.ctl:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ctl svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] #theme-toggle .i-sun, [data-theme="dark"] #theme-toggle .i-moon, :root:not([data-theme]) #theme-toggle .i-moon { display: none; }
#theme-toggle svg { animation: spinIn .5s var(--ease); }
[data-theme="dark"] #theme-toggle { color: var(--gold-2); }
@keyframes spinIn { from { transform: rotate(-80deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Chargement, progression */
.boot { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.spinner { width: 40px; height: 40px; border: 2.5px solid var(--soft-2); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
.progress { height: 8px; background: var(--soft-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sage), var(--gold), var(--gold-2)); transition: width .6s var(--ease); }
.progress.thin { height: 6px; margin: 6px 0 12px; }
.center .progress { max-width: 460px; margin: 18px auto 0; }

/* Connexion */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; margin: 16px 0 16px 16px; border-radius: 34px; min-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); isolation: isolate;
  background: radial-gradient(90% 70% at 80% 10%, rgba(226,198,144,.32), transparent 60%), radial-gradient(80% 60% at 0% 100%, rgba(199,123,90,.28), transparent 60%), linear-gradient(160deg, #1F4D4C 0%, #12302F 48%, #0A1719 100%); }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.art-orbit { position: absolute; z-index: 1; top: 12%; left: 50%; width: min(70%, 440px); aspect-ratio: 1; transform: translateX(-50%); }
.art-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(230,207,159,.22); animation: spin 60s linear infinite; }
.art-orbit i:nth-child(2) { inset: 14%; border-color: rgba(230,207,159,.32); animation-duration: 42s; animation-direction: reverse; }
.art-orbit i:nth-child(3) { inset: 32%; border: 0; background: radial-gradient(circle at 35% 30%, #F3E3BE, #C9A465 55%, #8A6A35 100%); box-shadow: 0 0 80px 10px rgba(226,198,144,.35); animation: float 14s ease-in-out infinite; }
.art-orbit i:nth-child(1)::before, .art-orbit i:nth-child(2)::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #E6CF9F; box-shadow: 0 0 14px #E6CF9F; }
.art-orbit i:nth-child(2)::before { top: auto; bottom: -3px; width: 6px; height: 6px; background: #8FAE9A; box-shadow: 0 0 12px #8FAE9A; }
.art-constel { position: absolute; left: 6%; bottom: 30%; width: 70%; color: #E6CF9F; opacity: .45; }
.auth-quote { position: absolute; left: 48px; right: 48px; bottom: 52px; color: #F6F1E8; animation: rise 1s .2s var(--ease) both; }
.q-mark { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; color: var(--gold-2); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.q-mark svg { width: 24px; height: 24px; animation: twinkle 3.4s ease-in-out infinite; }
.auth-quote p { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.12; max-width: 14em; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.auth-quote em { color: var(--gold-2); }
.auth-quote small { display: block; margin-top: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.auth-side { display: grid; place-items: center; padding: 48px 32px; }
.auth-wrap { width: 100%; max-width: 450px; }
.auth-card { padding: 34px 32px 26px; border-radius: 30px; background: var(--glass-strong); box-shadow: var(--shadow-lg); animation: rise .6s var(--ease) both; }
.auth-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(160deg, rgba(201,164,101,.6), rgba(201,164,101,0) 40%, rgba(143,174,154,0) 60%, rgba(143,174,154,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.brand-big { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 22px; }
.brand-big h1 { margin: 0; font-size: 30px; }
.brand-big p { margin: 0; color: var(--muted); font-size: 13.5px; }
.auth-card h2 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.auth-card #auth-login > p.muted { text-align: center; font-size: 14px; margin-bottom: 20px; }
.auth-card .form .btn { width: 100%; margin-top: 4px; }
.auth-card > div > .link { display: block; margin: 12px auto 0; }
.auth-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.mark { display: grid; place-items: center; flex: none; border-radius: 30%; box-shadow: 0 14px 28px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(230,207,159,.2); overflow: hidden; }
.mark img { display: block; }

@media (max-width: 980px) {
  .auth { display: block; }
  .auth-art { margin: 0; border-radius: 0 0 38px 38px; min-height: 0; height: min(46vh, 400px); box-shadow: none; }
  .art-orbit { top: 9%; width: min(56%, 260px); left: 62%; }
  .art-constel { bottom: 40%; width: 80%; }
  .auth-quote { left: 24px; right: 24px; bottom: 96px; }
  .auth-quote p { font-size: 1.75rem; }
  .auth-quote small { font-size: 11px; margin-top: 8px; }
  .q-mark { width: 40px; height: 40px; margin-bottom: 10px; }
  .q-mark svg { width: 20px; height: 20px; }
  .auth-side { position: relative; z-index: 2; margin-top: -72px; padding: 0 14px 40px; }
  .auth-card { padding: 28px 20px 22px; }
  .brand-big { flex-direction: row; text-align: left; gap: 12px; }
  .brand-big .mark img { width: 44px; height: 44px; }
  .brand-big h1 { font-size: 25px; }
}

/* Accueil (première connexion) */
.onboard-wrap { max-width: 760px; margin: 0 auto; padding: 28px 18px 60px; animation: rise .6s var(--ease) both; }
.ob-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; font: 600 21px var(--serif); color: var(--heading); }
.steps { display: flex; gap: 0; margin-bottom: 18px; counter-reset: s; }
.steps span { position: relative; flex: 1; display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); padding-right: 10px; }
.steps span::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--soft-2); margin-left: 4px; }
.steps span:last-child::after { display: none; }
.steps b { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 13px; background: var(--soft); border: 1px solid var(--line2); color: var(--muted); transition: all .3s var(--ease); }
.steps em { font-style: normal; white-space: nowrap; }
.steps span.on { color: var(--heading); }
.steps span.on b { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 0 0 5px rgba(201,164,101,.16); }
.steps span.done { color: var(--ok); }
.steps span.done b { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.steps span.done::after { background: linear-gradient(90deg, var(--ok), var(--gold)); }
#onboard-body { padding: 30px 28px; }
#onboard-body > h2 { font-size: 32px; }
@media (max-width: 560px) { .steps em { display: none; } .steps span.on em { display: inline; } .steps span.on { flex: 1.8; } #onboard-body { padding: 24px 18px; } #onboard-body > h2 { font-size: 28px; } }

/* Application : barre du haut */
.topbar { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); }
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--topbar-bg); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); }
.topbar-in { max-width: 1180px; margin: 0 auto; height: 70px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand .mark img { width: 38px; height: 38px; }
.brand-txt { font: 600 20px/1.05 var(--serif); color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-txt small { display: block; margin-top: 3px; font: 600 11px var(--sans); letter-spacing: .04em; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar .badge { cursor: pointer; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform .2s var(--ease); }
.topbar .badge:hover { transform: translateY(-1px); }

/* Onglets : pilule sur ordinateur */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.tabs button { display: flex; align-items: center; gap: 7px; white-space: nowrap; background: transparent; color: var(--muted); border: 0; border-radius: 999px; padding: 8px 15px;
  font: 600 14px var(--sans); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 8px 18px -10px var(--accent-glow); }
.tabs .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.tabs .t-short { display: none; }
@media (max-width: 1180px) { .brand-txt small { display: none; } .tabs .t-full { display: none; } .tabs .t-short { display: inline; } }
@media (max-width: 960px) and (min-width: 761px) { .brand-txt { display: none; } }

.main { max-width: 1100px; margin: 0 auto; padding: 30px 22px 70px; }
.panel { animation: rise .55s var(--ease) both; }
.panel > .card.center { max-width: 680px; margin: 26px auto; padding: 40px 30px; }

/* Onglets : barre flottante en bas sur mobile */
@media (max-width: 760px) {
  .topbar-in { height: 60px; padding: 0 14px; }
  .brand .mark img { width: 34px; height: 34px; }
  .brand-txt { font-size: 19px; }
  .topbar .badge { max-width: 118px; font-size: 11.5px; padding: 4px 10px; }
  .ctl { width: 36px; height: 36px; }
  .tabs { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: var(--tabbar); padding: 6px; gap: 2px;
    border-radius: 24px; background: var(--glass-strong); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-lg);
    backdrop-filter: saturate(1.4) blur(20px); -webkit-backdrop-filter: saturate(1.4) blur(20px); }
  .tabs button { flex: 1; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 18px; font-size: 11px; font-weight: 700; }
  .tabs .ic { width: 22px; height: 22px; }
  .tabs button.on { background: var(--soft-2); color: var(--heading); box-shadow: none; }
  .tabs button.on .ic { color: var(--gold-text); transform: translateY(-1px) scale(1.08); }
  .main { padding: 20px 14px calc(var(--tabbar) + 40px + env(safe-area-inset-bottom)); }
  .panel > .card.center { margin: 8px auto; padding: 30px 20px; }
}

/* Saisie de ville */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--glass-strong); border: 1px solid var(--line2); border-radius: var(--radius-sm); margin-top: 6px; overflow: hidden;
  box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.ac-list button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 11px 14px; cursor: pointer; font: 14px var(--sans); }
.ac-list button:hover { background: var(--soft-2); }
.ac-list small { color: var(--muted); }

/* Fenêtre et notifications */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(4,12,13,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 18px; animation: fadeIn .25s ease; }
.modal-card { width: 100%; max-width: 860px; max-height: 90vh; overflow: auto; background: var(--glass-strong); border-radius: 28px; padding: 30px; box-shadow: var(--shadow-lg); animation: rise .4s var(--ease) both; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--text); background: var(--soft-2); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; background: var(--glass-strong); color: var(--text); border: 1px solid var(--line2); border-radius: 16px; padding: 13px 20px;
  font-size: 14.5px; font-weight: 600; max-width: 90vw; box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: rise .35s var(--ease); }
.toast.ok { border-color: rgba(143,174,154,.6); }
.toast.err { border-color: rgba(199,123,90,.7); }
@media (max-width: 760px) { .toast { bottom: calc(var(--tabbar) + 24px + env(safe-area-inset-bottom)); } .modal-card { padding: 24px 18px; border-radius: 24px; } }

/* En-têtes de section */
.ms-head, .co-head, .pg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ms-head h2, .co-head h2, .pg-head h2 { margin: 0 0 4px; font-size: 34px; }
.ms-head p, .co-head p, .pg-head p { margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; color: var(--gold-text); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(201,164,101,.12); border: 1px solid rgba(201,164,101,.3); margin-bottom: 16px; }
.kicker svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; animation: twinkle 3s ease-in-out infinite; }

/* Manuscrit : état vide « héros » */
.ms-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 48px 34px 40px; border-radius: 34px; background: var(--hero-bg); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-lg); }
.ms-hero::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; top: -380px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(201,164,101,.3), transparent 68%); }
.ms-hero::after { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; bottom: -220px; left: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(143,174,154,.28), transparent 70%); }
.ms-hero h2 { font-size: clamp(32px, 4.4vw, 46px); max-width: 15em; margin: 0 auto 10px; }
.ms-hero > p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 16px; }
.ms-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 32px 0 30px; }
.ms-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 12px 18px; border-radius: 22px; background: var(--tile-bg); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s; animation: rise .7s var(--ease) both; }
.ms-tile:nth-child(2) { animation-delay: .08s; } .ms-tile:nth-child(3) { animation-delay: .16s; } .ms-tile:nth-child(4) { animation-delay: .24s; }
.ms-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ms-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #FBF7F0; margin-bottom: 8px; background: linear-gradient(140deg, #3C7A76, #16393A); box-shadow: 0 14px 26px -14px rgba(22,57,58,.9); }
.ms-tile:nth-child(2) .ms-ic { background: linear-gradient(140deg, #E8D3A4, #B08A4C); box-shadow: 0 14px 26px -14px rgba(176,138,76,.9); }
.ms-tile:nth-child(3) .ms-ic { background: linear-gradient(140deg, #A9C4B2, #5E7F6B); }
.ms-tile:nth-child(4) .ms-ic { background: linear-gradient(140deg, #E2A98B, #A85F40); box-shadow: 0 14px 26px -14px rgba(168,95,64,.9); }
.ms-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ms-tile b { font: 600 19px/1.2 var(--serif); color: var(--text); }
.ms-tile small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ms-hero .btn { padding: 15px 32px; font-size: 16px; }
.ms-hero .ms-note { margin: 14px auto 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .ms-hero { padding: 34px 18px 28px; border-radius: 28px; } .ms-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0; } .ms-tile { padding: 18px 10px 14px; } }

/* Manuscrit : écriture en cours (orbite) */
.ms-orbit { position: relative; width: 120px; height: 120px; margin: 4px auto 22px; }
.ms-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line2); animation: spin 8s linear infinite; }
.ms-orbit i:nth-child(2) { inset: 18px; animation-duration: 5s; animation-direction: reverse; }
.ms-orbit i::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 12px var(--gold-2); }
.ms-orbit i:nth-child(2)::before { background: var(--sage); box-shadow: 0 0 12px var(--sage); }
.ms-orbit b { position: absolute; inset: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F3E3BE, #C9A465 60%, #8A6A35); box-shadow: 0 0 40px rgba(226,198,144,.45); animation: float 6s ease-in-out infinite; }
.ms-frame { width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--glass-brd); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); }

/* Profil / formules */
.quota { margin-bottom: 4px; font-size: 14.5px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.plan-card { position: relative; border: 1px solid var(--glass-brd); border-radius: var(--radius); padding: 22px; background: var(--tile-bg); display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.plan-card:hover { transform: translateY(-3px); }
.plan-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.plan-card h3 { margin: 0; }
.plan-card .badge { align-self: flex-start; }
.plan-card .price { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; color: var(--gold-text); }
.plan-card .price small { font-size: 14px; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.plan-card ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); flex: 1; }
.plan-card li::marker { color: var(--gold); }
#tab-profil > .card h3 { display: flex; align-items: center; gap: 10px; }
#tab-profil > .card h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,101,.18); }
#tab-profil { max-width: 860px; margin: 0 auto; }

/* Coach IA */
.coach { max-width: 820px; margin: 0 auto; }
.co-note { border: 1px dashed var(--line2); border-radius: var(--radius-sm); padding: 11px 15px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; background: var(--soft); }
.co-note .link { font-size: 13.5px; padding: 0; }
.co-threads { margin-bottom: 14px; padding: 18px; }
.co-threads h3 { font-size: 19px; }
.co-thread { display: flex; align-items: stretch; gap: 6px; border-top: 1px solid var(--line); }
.co-thread:first-of-type { border-top: 0; }
.co-thread.on .co-thread-open span { color: var(--gold-text); }
.co-thread-open { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; color: var(--text); padding: 11px 2px; cursor: pointer; font: 600 14.5px var(--sans); }
.co-thread-del { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 0 8px; }
.co-thread-del:hover { color: var(--err); }
.co-log { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.co-welcome { overflow: hidden; isolation: isolate; background: var(--hero-bg); padding: 28px 26px; }
.co-welcome::after { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; top: -170px; right: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(201,164,101,.3), transparent 70%); }
.co-welcome h3 { font-size: 28px; margin-bottom: 8px; }
.co-msg { display: flex; animation: rise .4s var(--ease) both; }
.co-msg.me { justify-content: flex-end; }
.co-bubble { max-width: 90%; border-radius: 20px; padding: 13px 17px; line-height: 1.65; overflow-wrap: anywhere; }
.co-msg.me .co-bubble { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-bottom-right-radius: 6px; box-shadow: 0 12px 26px -16px var(--accent-glow); }
.co-msg.me .co-sub { color: inherit; opacity: .8; }
.co-msg.bot .co-bubble { width: 100%; background: var(--glass); border: 1px solid var(--glass-brd); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.co-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.co-md p { margin: 0 0 .7em; }
.co-md p:last-child { margin-bottom: 0; }
.co-md ul, .co-md ol { margin: 0 0 .8em; padding-left: 20px; }
.co-md li { margin: 0 0 .35em; }
.co-md li::marker { color: var(--gold); }
.co-md h4 { font: 600 20px var(--serif); color: var(--heading); margin: .9em 0 .35em; }
.co-md h4:first-child { margin-top: 0; }
.co-md strong { color: var(--heading); }
.co-md blockquote { margin: 0 0 .8em; padding: 8px 14px; border-left: 3px solid var(--gold); color: var(--text); background: rgba(201,164,101,.08); border-radius: 0 12px 12px 0; }
.co-md code { background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: 13.5px; }
.co-md hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.co-tools { display: flex; justify-content: flex-end; margin-top: 4px; }
.co-tools .link { padding: 2px 0; font-size: 13px; }
.co-err { border-color: rgba(199,123,90,.7) !important; color: var(--err); }
.co-typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.co-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .35; animation: coDot 1.2s infinite ease-in-out; }
.co-typing i:nth-child(2) { animation-delay: .2s; } .co-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes coDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.co-caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; background: var(--gold); vertical-align: -2px; animation: coBlink 1s steps(2) infinite; }
@keyframes coBlink { 50% { opacity: 0; } }
.co-upsell { margin-top: 12px; border-color: var(--gold); }
.co-form { position: sticky; bottom: 0; z-index: 10; margin-top: 14px; padding: 12px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg) 26%); }
.co-quick { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 10px; scrollbar-width: none; }
.co-quick::-webkit-scrollbar { display: none; }
.co-quick .chip { white-space: nowrap; flex: 0 0 auto; background: var(--glass-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.co-quick .chip:disabled { opacity: .5; cursor: wait; }
.co-input { display: flex; gap: 8px; align-items: flex-end; padding: 6px; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--glass-brd); box-shadow: var(--shadow); }
.co-input textarea { min-height: 48px; max-height: 180px; resize: none; border: 0; background: transparent; box-shadow: none; border-radius: 16px; }
.co-input textarea:focus { box-shadow: none; }
.co-input .btn { flex: 0 0 auto; height: 48px; }
.co-quota { margin: 6px 4px 0; }
.co-quota .link { padding: 0; font-size: 13px; }
@media (max-width: 760px) { .co-form { bottom: calc(var(--tabbar) + 10px + env(safe-area-inset-bottom)); padding-bottom: 6px; } .co-head h2, .ms-head h2, .pg-head h2 { font-size: 30px; } }

.co-input:focus-within { border-color: rgba(201,164,101,.6); box-shadow: 0 0 0 4px rgba(201,164,101,.14), var(--shadow); }

/* Fichiers joints au coach (Coach IA et barre IA) */
.cf-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.cf-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 4px 6px 4px 4px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--glass-brd); box-shadow: var(--shadow); font-size: 13px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cf-chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 9px; flex: 0 0 auto; }
.cf-pdf { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 9px; background: #b8463a; color: #fff; font: 700 11px/36px var(--sans); text-align: center; letter-spacing: .04em; }
.cf-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cf-chip small { flex: 0 0 auto; }
.cf-x { flex: 0 0 auto; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--text); font-size: 17px; line-height: 1; cursor: pointer; opacity: .65; }
.cf-x:hover, .cf-x:focus-visible { opacity: 1; background: var(--soft); }
.cf-clip { flex: 0 0 auto; width: 40px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; background: transparent; color: var(--gold-text); cursor: pointer; }
.cf-clip:hover, .cf-clip:focus-visible { background: rgba(201,164,101,.14); }
.cf-clip:disabled { opacity: .45; cursor: wait; }
.aib-clip { height: 44px; width: 36px; }
.cf-drop .co-input, .cf-drop .aib-form { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,101,.22), var(--shadow); border-style: dashed; }
.cf-sent { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cf-tag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.07); font-size: 12.5px; font-style: normal; }

/* Emails */
.em-help { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 15px; margin: 8px 0 14px; }
.em-help summary { cursor: pointer; color: var(--gold-text); font-weight: 700; font-size: 14px; }
.em-help ol { margin: 10px 0 2px; padding-left: 20px; color: var(--muted); }
.em-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.em-type { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--tile-bg); color: var(--text); border: 1px solid var(--glass-brd); border-radius: 18px; padding: 15px 16px;
  cursor: pointer; font: inherit; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.em-type strong { font: 600 19px/1.2 var(--serif); color: var(--heading); }
.em-type:hover { transform: translateY(-2px); border-color: var(--line2); }
.em-type.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); background: linear-gradient(160deg, rgba(201,164,101,.14), var(--tile-bg) 60%); }
.em-count { color: var(--gold-text); font-weight: 700; }
.em-list { display: grid; gap: 8px; }
.em-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.em-row:first-child { border-top: 0; }
.em-mail { margin-bottom: 14px; scroll-margin-top: 90px; }
.em-k { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 3px; }
.em-rw { margin-top: 12px; display: grid; gap: 8px; }
/* Écran d'une séquence : en-tête, menu « ⋯ », envoi automatique, aperçu des emails */
.em-seq-head { margin-bottom: 16px; }
.em-seq-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.em-seq-title h2 { margin: 6px 0 4px; }
.em-sub-strat { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; max-width: 720px; }
.em-menu { position: relative; flex: none; }
.em-menu > summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); background: var(--soft); color: var(--text); font-size: 20px; line-height: 1; user-select: none; }
.em-menu > summary::-webkit-details-marker { display: none; }
.em-menu[open] > summary, .em-menu > summary:hover { background: var(--soft-2); }
.em-menu-list { position: absolute; right: 0; top: 46px; z-index: 30; min-width: 210px; display: grid; padding: 6px; background: var(--field-solid); border: 1px solid var(--field-brd); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.em-menu-list button { background: none; border: 0; text-align: left; padding: 10px 12px; border-radius: 10px; font: 600 14px/1.3 var(--sans); color: var(--text); cursor: pointer; }
.em-menu-list button:hover { background: var(--soft-2); }
.em-auto-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.em-auto-top h3 { margin: 0 0 4px; }
.em-auto-status { margin: 0; font-size: 15px; color: var(--muted); }
.em-auto.on { border-color: var(--line2); }
.em-design h3 { margin: 0 0 4px; }
.em-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.em-theme { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; border: 1px solid var(--line2); border-radius: 14px; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.em-theme:hover { border-color: var(--accent); }
.em-theme.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.em-theme strong { font-size: 14px; margin-top: 6px; }
.em-theme-sw { display: block; height: 92px; border-radius: 10px; padding: 12px 16px; }
.em-theme-sw > span { display: block; height: 100%; border-radius: 8px; padding: 10px 12px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.45); }
.em-theme-sw i { display: block; width: 26px; height: 3px; border-radius: 3px; margin-bottom: 9px; }
.em-theme-sw b { display: block; height: 5px; border-radius: 3px; opacity: .55; margin-bottom: 6px; width: 86%; }
.em-theme-sw b + b { width: 62%; }
.em-theme-sw em { display: block; width: 46%; height: 12px; border-radius: 99px; margin: 8px auto 0; }
.em-prev { display: block; width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #fff; }
@media (max-width: 640px) { .em-themes { grid-template-columns: 1fr; } }
.em-auto.on .em-auto-status { color: var(--text); font-weight: 600; }
.em-switch { position: relative; flex: none; width: 60px; height: 34px; cursor: pointer; }
.em-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.em-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--soft-2); border: 1px solid var(--line2); transition: background .2s; }
.em-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.em-switch input:checked + span { background: var(--accent); border-color: transparent; }
.em-switch input:checked + span::after { transform: translateX(26px); background: var(--accent-ink); }
.em-switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.em-switch input:disabled + span { opacity: .6; }
.em-trig { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.em-trig ul { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 2px; }
.em-trig li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; color: var(--heading); }
.em-trig-empty { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--heading); }
.em-trig-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--text); font-weight: 600; }
.em-trig-f select { width: auto; min-width: 170px; padding: 9px 38px 9px 12px; font-size: 14.5px; }
.em-auto-stats { margin: 12px 0 0; color: var(--text); }
.em-auto-q { margin: 10px 0 0; }
.em-set { padding: 16px 22px; }
.em-set > summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.em-mail-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.em-when { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--gold-text); }
.em-when select { width: auto; padding: 7px 36px 7px 14px; font-size: 14px; border-radius: 999px; }
.em-prev { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.em-prev-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.em-prev-h .em-k { display: inline-block; min-width: 54px; margin: 0 8px 0 0; }
.em-from { font-size: 14px; color: var(--muted); }
.em-subj strong { font-size: 16.5px; color: var(--heading); }
.em-pre { color: var(--muted); font-size: 14px; }
.em-alt summary { cursor: pointer; font-size: 13px; color: var(--link); font-weight: 600; }
.em-alt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--text); padding: 4px 0; border-top: 1px solid var(--line); }
.em-prev-b { padding: 18px; font-size: 15px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.em-prev-b p { margin: 0 0 14px; }
.em-prev-b p:last-child { margin-bottom: 0; }
.em-prev-f { margin: 0; padding: 12px 18px; border-top: 1px dashed var(--line2); font-size: 12.5px; color: var(--muted); text-align: center; }
.em-ph { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--soft-2); color: var(--gold-text); font-size: .86em; font-weight: 700; line-height: 1.6; }
.em-ph.warn { background: var(--err-bg); color: var(--err); }
.em-url { color: var(--link); text-decoration: underline; word-break: break-all; }
.em-acts { margin-top: 12px; }
@media (max-width: 560px) { .em-trig-f select { width: 100%; } .em-when select { max-width: 230px; } }

/* Pages de vente */
.pg-more { border: 1px dashed var(--line2); border-radius: var(--radius-sm); padding: 11px 15px; background: var(--soft); }
.pg-more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--gold-text); }
.pg-color { display: inline-flex !important; align-items: center; gap: 10px; }
.pg-color input[type="color"] { width: 46px; height: 34px; margin: 0 !important; display: inline-block !important; cursor: pointer; }
.pg-ok { color: var(--ok); font-weight: 700; }
.pg-bar { background: var(--hero-bg); }
.pg-prev-head { align-items: center; }
.pg-stage { background: var(--soft); border: 1px solid var(--line); border-radius: 26px; padding: 14px; margin-top: 8px; box-shadow: inset 0 1px 0 var(--glass-brd); }
.pg-frame { display: block; width: 100%; height: 76vh; min-height: 520px; border: 0; border-radius: 16px; background: #fff; margin: 0 auto; box-shadow: var(--shadow); transition: width .3s var(--ease); }
.pg-frame.mobile { width: 390px; max-width: 100%; }
.pg-list { display: grid; gap: 2px; }
.pg-item { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pg-item:first-child { border-top: 0; }
.pg-item.on .pg-open strong { color: var(--gold-text); }
.pg-open { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; color: var(--text); padding: 12px 2px; cursor: pointer; font: 14.5px var(--sans); }
.pg-acts { display: flex; gap: 14px; }
.pg-acts .link { font-size: 13px; }
#pg-form .chip-radio span { padding: 10px 16px; }
#pg-form > div > .lbl, #pg-form > label { font: 600 21px/1.3 var(--serif); color: var(--heading); font-variant-numeric: lining-nums; }
#pg-form > label > textarea { font: 500 16px/1.55 var(--sans); }

@media (max-width: 720px) {
  h2 { font-size: 28px; }
  .grid2, .plans { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; border-radius: 20px; }
  .ms-frame { height: 72vh; }
  .em-prev-b { padding: 14px; }
  .pg-frame { height: 70vh; }
  .pg-stage { padding: 6px; border-radius: 20px; }
}
@media (max-width: 480px) { .brand-txt .bt-2 { display: none; } }
.ms-tile b, .em-type strong, .brand-txt, .ob-brand, .co-md h4, .plan-card .price, .auth-quote p { font-variant-numeric: lining-nums; }

/* Publication (sites.holistique-guidance.fr) */
.pub .badge, .pg-open .badge { font-size: 11px; padding: 2px 8px; vertical-align: middle; }
.badge.pub-live { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.badge.pub-offb { color: var(--err); border-color: var(--err); background: var(--err-bg); }
.pub-url { color: var(--link); word-break: break-all; font-weight: 600; }
.pub-warn { color: var(--err); background: var(--err-bg); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 10px 0; }
.pub-off { color: var(--err); margin: 10px 0 0; }
.pub details summary { cursor: pointer; }

/* Illustrations IA (onglet Pages) */
.ill-q { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ill-opt { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--radius-sm); cursor: pointer; background: var(--soft); }
.ill-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ill-opt.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: var(--soft-2); }
.ill-opt.off { opacity: .5; cursor: not-allowed; }
.ill-opt:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ill-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.ill-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft-2); }
.ill-meta { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px 0; }
.ill-item .row { padding: 4px 10px 10px; gap: 12px; }
.ill-run { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--soft); }
.ill-run .spinner { flex: none; }
.ill-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ill-slot { display: flex; flex-direction: column; gap: 8px; }
.ill-empty { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 10px; text-align: center; background: var(--soft-2); }
.ill-vers { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ill-ver { position: relative; flex: none; width: 78px; padding: 0; border: 2px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--soft); cursor: pointer; }
.ill-ver img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ill-ver.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.ill-ver:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ill-ver .ill-date { display: block; padding: 2px 4px 3px; font-size: 10px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.ill-badge { position: absolute; top: 4px; left: 4px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 600; background: rgba(0, 0, 0, .62); color: #fff; }
.pg-sub { margin: 0 0 4px; }
.md-use .md-bar { height: 8px; margin-top: 8px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.md-use .md-bar span { display: block; height: 100%; background: var(--gold); }
.md-use .md-bar.full span { background: #c0563f; }
.md-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.md-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.md-item { position: relative; display: flex; flex-direction: column; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); cursor: pointer; color: inherit; font: inherit; }
.md-item:hover, .md-item:focus-visible { border-color: var(--gold); }
.md-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft-2); }
.md-used { position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 600; background: var(--gold); color: #1b1530; }
.md-used.pub { background: #3f9b6b; color: #fff; }
.md-cap { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.md-modal .md-big { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: var(--radius-sm); background: var(--soft-2); }
.md-info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 13px; }
.md-info dt { color: var(--muted); }
.md-info dd { margin: 0; }
.md-prompt { max-height: 90px; overflow: auto; font-size: 12px; }

/* Pied de page légal (connexion + app) */
.legal-foot { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 2; margin: 14px 0 0; }
.legal-foot a { color: var(--muted); text-decoration: none; }
.legal-foot a:hover, .legal-foot a:focus-visible { color: var(--gold-text); text-decoration: underline; }
.app-foot { max-width: 1100px; margin: -44px auto 0; padding: 0 22px 26px; }
@media (max-width: 760px) { .app-foot { margin-top: calc(-1 * (var(--tabbar) + 22px)); padding: 0 14px calc(var(--tabbar) + 26px + env(safe-area-inset-bottom)); } }

/* Barre IA (bas de chaque écran, sauf Coach IA) */
.aib { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding: 0 16px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
body[data-tab="coach"] .aib { display: none; }
.aib-in { max-width: 820px; margin: 0 auto; pointer-events: auto; }
.aib-form { display: flex; gap: 8px; align-items: flex-end; padding: 6px; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-lg); backdrop-filter: saturate(1.4) blur(20px); -webkit-backdrop-filter: saturate(1.4) blur(20px); }
.aib-form:focus-within { border-color: rgba(201,164,101,.6); box-shadow: 0 0 0 4px rgba(201,164,101,.14), var(--shadow-lg); }
.aib-ta { flex: 1; min-height: 44px; max-height: 160px; resize: none; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 16px; padding: 11px 12px; font: 500 15px/1.4 var(--sans); }
.aib-send { flex: 0 0 auto; height: 44px; }
.aib-peek { flex: 0 0 auto; width: 36px; height: 44px; border: 0; background: transparent; color: var(--gold-text); font-size: 16px; cursor: pointer; }
.aib-drawer { margin-bottom: 8px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--line2); box-shadow: var(--shadow-lg); backdrop-filter: saturate(1.4) blur(20px); -webkit-backdrop-filter: saturate(1.4) blur(20px); overflow: hidden; animation: rise .3s var(--ease) both; }
.aib-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.aib-title { font: 600 18px var(--serif); color: var(--heading); }
.aib-head .link { margin-left: auto; font-size: 13px; }
.aib-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.aib-head .aib-x:first-of-type:last-child { margin-left: auto; }
.aib-body { max-height: min(46vh, 420px); overflow-y: auto; padding: 12px 16px 14px; font-size: 14.5px; }
.aib-q { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; font-style: italic; }
.aib-steps { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.aib-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: var(--soft); font-size: 13.5px; }
.aib-st { flex: 0 0 auto; min-width: 22px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-align: center; border: 1px solid var(--line2); color: var(--muted); }
.aib-step.ok .aib-st { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.aib-step.err .aib-st { color: var(--err); border-color: var(--err); background: var(--err-bg); }
.aib-step.wait { background: var(--soft-2); box-shadow: inset 0 0 0 1px var(--gold); }
.aib-step.wait .aib-st { color: var(--gold-text); border-color: var(--gold); }
.aib-sx { flex: 1 1 200px; }
.aib-acts { display: flex; gap: 10px; align-items: center; }
.aib-spin { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--gold); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
.aib-err { color: var(--err); margin: 0; }
#screen-app .main { padding-bottom: 150px; }
body[data-tab="coach"] #screen-app .main { padding-bottom: 70px; }
body:not([data-tab="coach"]) #screen-app:not([hidden]) ~ #toast { bottom: 96px; }
@media (max-width: 760px) {
  .aib { padding: 0 10px; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); }
  .aib-ta { font-size: 16px; }
  .aib-body { max-height: 40vh; }
  #screen-app .main { padding-bottom: calc(var(--tabbar) + 120px + env(safe-area-inset-bottom)); }
  body[data-tab="coach"] #screen-app .main { padding-bottom: calc(var(--tabbar) + 40px + env(safe-area-inset-bottom)); }
  body:not([data-tab="coach"]) #screen-app:not([hidden]) ~ #toast { bottom: calc(var(--tabbar) + 90px + env(safe-area-inset-bottom)); }
}

/* Modifier par prompt : fil de la conversation, façon Cursor (demande encadrée, réponse en texte simple) */
.pe-hist { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 14px; border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--code-bg); color: var(--text); font-family: var(--sans); }
.pe-hist > .muted { color: var(--muted); }
.pe-msg { font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.pe-msg small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.pe-msg.me { align-self: stretch; padding: 10px 13px; border-radius: 10px; background: var(--field-solid); border: 1px solid var(--field-brd); }
.pe-msg.ai { padding: 0 2px 2px 22px; position: relative; }
.pe-msg.ai::before { content: "✦"; position: absolute; left: 2px; top: 0; color: var(--gold-text); font-size: 13px; }
.pe-msg.ai.nochange small { margin: 6px 0 0; color: var(--gold-text); }
.pe-msg.wait { color: var(--muted); }
.pe-msg.wait::after { content: " L’IA réfléchit…"; }

/* Automatisations : schéma déclencheur → actions (façon Systeme.io) */
.au-card { padding: 18px; }
.au-flow { display: grid; grid-template-columns: minmax(200px, 1fr) 56px minmax(220px, 1.4fr); align-items: center; gap: 0; }
.au-flow.off { opacity: .55; filter: saturate(.6); }
.au-node { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line2); background: var(--field-solid); color: var(--text); }
.au-node strong { display: block; color: var(--heading); font-size: 15px; line-height: 1.3; }
.au-ico { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--soft-2); }
.au-kicker { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.au-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.au-trig { border-color: var(--accent-2); box-shadow: 0 10px 26px -18px var(--accent-glow); }
.au-trig .au-ico { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.au-acts { display: flex; flex-direction: column; gap: 10px; position: relative; }
.au-act-n .ct-tag { display: inline-block; margin-top: 6px; }
.au-act-n.minus .au-ico { background: var(--err-bg); }
.au-warn { display: inline-block; margin-top: 6px; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; color: var(--gold-text); border: 1px dashed var(--gold-text); }
.au-arrow { position: relative; height: 2px; margin: 0 6px; background: var(--accent-2); }
.au-arrow span { position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--accent-2); border-right: 0; }
.au-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.au-runs { flex: 1; min-width: 160px; }
.au-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.au-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.au-track { width: 38px; height: 22px; border-radius: 999px; background: var(--soft-2); border: 1px solid var(--line2); position: relative; transition: background .2s; }
.au-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.au-switch input:checked + .au-track { background: var(--accent-2); border-color: var(--accent-2); }
.au-switch input:checked + .au-track::after { transform: translateX(16px); background: var(--accent-ink); }
.au-switch input:focus-visible + .au-track { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) {
  .au-flow { grid-template-columns: 1fr; }
  .au-arrow { width: 2px; height: 26px; margin: 4px auto; }
  .au-arrow span { right: auto; left: -5px; top: auto; bottom: -4px; border: 6px solid transparent; border-top: 8px solid var(--accent-2); border-bottom: 0; }
}

/* Blocs repliés (formulaires de création) : titre cliquable, contenu caché par défaut */
details.acc { border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--soft); margin: 0; }
details.acc + details.acc, details.acc + .row, form > details.acc { margin-top: 10px; }
details.acc > summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; font-weight: 600; color: var(--heading); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "▸"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); transition: transform .2s; }
details.acc[open] > summary::after { transform: translateY(-50%) rotate(90deg); }
details.acc > summary .acc-val { font-weight: 400; font-size: 13px; color: var(--muted); }
details.acc[open] > summary .acc-val:empty { display: none; }
details.acc > .acc-in { padding: 0 16px 16px; }
details.acc.acc-card { padding: 0; }
details.acc.acc-card > summary { font-size: 17px; padding: 18px 48px 18px 20px; }
details.acc.acc-card > .acc-in { padding: 0 20px 20px; }

/* Mon profil : titres à gauche, une section à droite */
.st-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.st-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; }
.st-tab { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.st-tab:hover { background: var(--soft); }
.st-tab.on { background: var(--soft-2); border-color: var(--line2); color: var(--heading); font-weight: 600; }
.st-tab .muted { display: none; }
.st-body > section { margin: 0; }
@media (max-width: 760px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .st-tab { white-space: nowrap; border-color: var(--line2); }
}

/* Erreur bien visible au centre de l'écran */
.err-pop { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.45); animation: rise .2s var(--ease) both; }
.err-pop-card { max-width: 440px; width: 100%; text-align: center; padding: 24px 22px 20px; border-radius: var(--radius-sm); background: var(--glass-strong); border: 1px solid var(--err); box-shadow: var(--shadow-lg); color: var(--text); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.err-pop-ico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; background: var(--err); }
.err-pop-card p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
#form-univers .ob-acts .chip-radio span, .ob-acts .chip-radio span { border-radius: 14px; text-align: left; }
