/* Hayati — feuille de style (Miel rosé · Cocon · Crépuscule) */
:root, [data-theme="miel"] {
  --bg: #F8E6E0; --band: #F3DAD3; --surface: #FFF8F4; --surface2: #F1D2CA; --field: #F8E6E0;
  --text: #4B2A2C; --muted: #7A4E50; --accent: #A64B50; --accent-hover: #7C3438; --on-accent: #FFF8F4;
  --border: #EDCFC7; --photo: #EDC3B8; --photo2: #F1D2CA; --chip: #F8E6E0; --ok: #2F6B4F; --warn: #9A5B12; --danger: #A2363B;
  --chat-bg: #EDE3EC; --chat-me: #6E4C72; --chat-other: #FBF6FA; --chat-text: #3A2A3D; --chat-muted: #6A566C; --chat-border: #DCCCDB; --chat-avatar: #CDB6CF;
  --shadow: 0 1px 2px rgba(75,42,44,.05), 0 8px 24px rgba(75,42,44,.06);
}
[data-theme="cocon"] {
  --bg: #3B2A35; --band: #432F3C; --surface: #4A3542; --surface2: #6B4A52; --field: #3B2A35;
  --text: #F6E9DD; --muted: #D9C3B6; --accent: #E9B77E; --accent-hover: #F4D3A8; --on-accent: #3B2A35;
  --border: #4F3A48; --photo: #6B4A52; --photo2: #5E4458; --chip: #5A4150; --ok: #9BD3B4; --warn: #F2C27A; --danger: #F1A1A4;
  --chat-bg: #33232E; --chat-me: #E9B77E; --chat-other: #4A3542; --chat-text: #F6E9DD; --chat-muted: #D9C3B6; --chat-border: #4F3A48; --chat-avatar: #6B4A52;
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.18);
}
[data-theme="cocon"] .chat .bubble.me { color: #3B2A35; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Nunito, system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button { font-family: Tajawal, Nunito, system-ui, sans-serif; }
h1, h2, h3, .serif { font-family: Fraunces, Georgia, serif; font-weight: 400; margin: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .serif { font-family: Amiri, Fraunces, serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
.ar-logo { font-family: Amiri, serif; color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Mise en page ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.mt { margin-top: 24px; } .mt2 { margin-top: 48px; }
.section { padding: 64px 0; }
.band { background: var(--band); }

/* ---------- En-tête ---------- */
.topbar { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--text); font-family: Fraunces, serif; font-weight: 600; font-size: 22px; }
.brand .ar-logo { font-size: 24px; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); font-weight: 700; }
.iconlink { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--text); }
.dot { position: absolute; top: 6px; inset-inline-end: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ---------- Boutons & champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; background: var(--accent); color: var(--on-accent); font: 700 15px/1 Nunito, sans-serif; text-decoration: none; cursor: pointer; }
[dir="rtl"] .btn { font-family: Tajawal, Nunito, sans-serif; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.soft { background: var(--surface2); color: var(--text); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.round { width: 56px; height: 56px; padding: 0; border-radius: 50%; background: transparent; border-color: var(--border); color: var(--muted); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--field); color: var(--text); font: 15px Nunito, sans-serif; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 14px; background: var(--field); border: 1.5px solid var(--border); cursor: pointer; font-size: 15px; color: var(--text); }
.seg input { accent-color: var(--accent); }
.seg label:has(input:checked) { background: var(--surface2); border-color: var(--accent); font-weight: 700; }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-input label { cursor: pointer; }
.chips-input input { position: absolute; opacity: 0; }
.chips-input span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--chip); border: 1.5px solid var(--border); font-size: 14px; color: var(--text); }
.chips-input input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chips-input input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; color: var(--text); }
.chip.accent { background: var(--accent); color: var(--on-accent); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--text); }
.badge svg { color: var(--accent); }
.pill { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--surface2); font-size: 12px; font-weight: 700; }
.alert { padding: 14px 18px; border-radius: 16px; background: var(--surface2); font-size: 14px; }
.alert.ok { border-inline-start: 4px solid var(--ok); }
.alert.err { border-inline-start: 4px solid var(--danger); }
.flash { margin: 16px auto 0; }
.step-num { width: 36px; height: 36px; border-radius: 18px; background: var(--surface2); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: Fraunces, serif; font-size: 17px; }
.icon-circle { width: 52px; height: 52px; border-radius: 26px; background: var(--surface2); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }

/* ---------- Accueil public ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 56px 0 64px; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; } }
.hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; margin: 16px 0; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 460px; }
.dots { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.dots span + span::before { content: "•"; margin-inline-end: 14px; opacity: .6; }
.trust { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; font-size: 14px; }
.trust div { display: flex; align-items: center; gap: 10px; }
.trust svg { color: var(--accent); }
.locked-photo { aspect-ratio: 1.15; border-radius: 18px; background: var(--photo); display: flex; align-items: center; justify-content: center; color: var(--text); }
.locked-photo.alt { background: var(--photo2); }
.price-card { display: flex; flex-direction: column; gap: 12px; }
.price-card .kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.price-card .price { font-family: Fraunces, serif; font-size: 34px; }
.price-card.featured { border: 1.5px solid var(--accent); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.price-card li::before { content: "✓"; color: var(--accent); margin-inline-end: 8px; font-weight: 700; }
details.faq { background: var(--surface); border-radius: 16px; padding: 16px 20px; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.footer { border-top: 1px solid var(--border); padding: 28px 0 100px; font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; margin-inline-end: 16px; }

/* Écran d'accueil mobile « Aube » */
.aube { background: #FAEEE4; color: #4B2A2C; min-height: 100vh; }
.rings { position: relative; width: 300px; height: 300px; margin: 24px auto; }
.rings span { position: absolute; border-radius: 50%; inset: 0; margin: auto; }
.rings span:nth-child(1) { width: 300px; height: 300px; background: #F5DCC8; animation: breathe 6s ease-in-out infinite; }
.rings span:nth-child(2) { width: 212px; height: 212px; background: #F1C5A3; animation: breathe 6s ease-in-out .6s infinite; }
.rings span:nth-child(3) { width: 126px; height: 126px; background: #E8A97E; display: flex; align-items: center; justify-content: center; color: #FFF8F4; }
@keyframes breathe { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .rings span { animation: none; } }

/* ---------- Application membre ---------- */
.app-main { padding: 28px 0 110px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 30px; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--border); display: none; justify-content: space-around; padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); z-index: 30; }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; min-width: 64px; min-height: 48px; justify-content: center; position: relative; }
.bottomnav a.active { color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .bottomnav { display: flex; } .nav .hide-m { display: none; } }

/* Carte profil (découvertes) */
.disc { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .disc { grid-template-columns: minmax(0, 1fr); } }
.pcard { background: var(--surface); border-radius: 28px; padding: 14px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.pphoto { position: relative; aspect-ratio: 4/4.6; border-radius: 20px; background: var(--photo); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pphoto img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pphoto .wm { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; transform: rotate(-24deg) scale(1.4); opacity: .16; color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; text-shadow: 0 0 2px #000; }
.pphoto .shield { position: absolute; inset: 0; }
.pphoto .tl { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pphoto .bl { position: absolute; bottom: 14px; inset-inline-start: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.pphoto .lock { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; color: var(--text); font-size: 14px; }
.thumbs { display: flex; gap: 6px; padding: 0 4px; }
.thumbs button { flex: 1; height: 4px; border: none; border-radius: 2px; background: var(--border); padding: 0; cursor: pointer; }
.thumbs button.on { background: var(--accent); }
.pinfo { padding: 0 6px; display: flex; flex-direction: column; gap: 6px; }
.pinfo h2 { font-size: 26px; }
.score { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); font-size: 14px; }
.answers { display: flex; flex-direction: column; gap: 10px; }
.answer { background: var(--bg); border-radius: 18px; padding: 14px 16px; }
.answer .q { font-size: 12px; color: var(--muted); }
.answer .a { font-family: Fraunces, serif; font-size: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.actions { display: flex; gap: 10px; align-items: center; }
.actions .grow { flex: 1; }

/* Listes */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--surface); text-decoration: none; color: var(--text); }
.item:hover { color: var(--text); outline: 1.5px solid var(--border); }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 700; }
.item .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--photo); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: Fraunces, serif; font-size: 20px; overflow: hidden; color: var(--text); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.unread { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }

/* Messagerie (Crépuscule) */
.chat { background: var(--chat-bg); color: var(--chat-text); border-radius: 28px; display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 520px; overflow: hidden; }
@media (max-width: 760px) { .chat { border-radius: 0; margin: -28px -20px 0; height: calc(100vh - 140px); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--chat-border); }
.chat-head .avatar { width: 44px; height: 44px; background: var(--chat-avatar); color: var(--chat-text); }
.chat-head a { color: var(--chat-text); }
.chat-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 20px 20px 20px 6px; background: var(--chat-other); font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--chat-me); color: #FBF6FA; }
[dir="rtl"] .bubble { border-radius: 20px 20px 6px 20px; }
[dir="rtl"] .bubble.me { border-radius: 20px 20px 20px 6px; }
.bubble .meta { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.bubble audio { max-width: 240px; height: 40px; }
.day { align-self: center; font-size: 12px; color: var(--chat-muted); }
.sysmsg { align-self: center; font-size: 12px; color: var(--chat-muted); background: var(--chat-other); padding: 6px 12px; border-radius: 999px; text-align: center; }
.ideas { padding: 0 18px 8px; display: flex; flex-direction: column; gap: 8px; }
.ideas .row button { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--chat-avatar); background: transparent; color: var(--chat-text); font: 13px Nunito, sans-serif; cursor: pointer; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 14px 16px; }
.composer input { flex: 1; min-height: 52px; border-radius: 26px; border: none; background: var(--chat-other); color: var(--chat-text); padding: 0 20px; }
.composer .send, .composer .mic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 26px; border: none; background: var(--chat-me); color: #FBF6FA; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.composer .mic { background: var(--chat-other); color: var(--chat-text); }
.composer .mic.rec { background: var(--danger); color: #fff; animation: breathe 1s infinite; }
[data-theme="cocon"] .composer .send { color: #3B2A35; }

/* Espaces (Cocon) */
.space { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; background: var(--surface); text-decoration: none; color: var(--text); }
.space:hover { color: var(--text); outline: 1.5px solid var(--accent); }
.space h3 { font-size: 19px; }
.space .online { font-size: 12px; color: var(--accent); white-space: nowrap; }

/* Tableaux (admin) */
.table-box { overflow-x: auto; background: var(--surface); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat { background: var(--surface); border-radius: 20px; padding: 18px; }
.stat .n { font-family: Fraunces, serif; font-size: 34px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 8px 16px; border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--text); font-size: 14px; }
.tabs a.on { background: var(--accent); color: var(--on-accent); }
.verif-img { max-width: 220px; border-radius: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photo-grid .ph { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--photo); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph form { position: absolute; top: 6px; inset-inline-end: 6px; }
.photo-grid .ph button { width: 34px; height: 34px; border-radius: 17px; border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.code-box { font-family: Fraunces, serif; font-size: 40px; letter-spacing: .12em; text-align: center; padding: 16px; border-radius: 18px; background: var(--surface2); }
.toggle-theme { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--accent); border: none; cursor: pointer; font-family: inherit; min-height: 36px; }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); text-decoration: none; color: var(--text); }
.notif.new { outline: 1.5px solid var(--accent); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { color: var(--accent); margin: 0 auto 12px; }
.loader { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 100; animation: fadeout .3s 1.4s forwards; pointer-events: none; }
.loader .c { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--accent); position: absolute; }
.loader .c1 { animation: l1 1.2s ease-out forwards; } .loader .c2 { animation: l2 1.2s ease-out forwards; }
.loader .h { opacity: 0; color: var(--accent); animation: hin .3s 1.1s forwards; }
@keyframes l1 { from { transform: translateX(-60px); } to { transform: translateX(-14px); } }
@keyframes l2 { from { transform: translateX(60px); } to { transform: translateX(14px); } }
@keyframes hin { to { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* ---------- Publicités ---------- */
.ad { position: relative; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); background: var(--surface); border-radius: 18px; padding: 12px 14px; border: 1px dashed var(--border); }
.ad:hover { color: var(--text); border-color: var(--accent); }
.ad img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.ad-text { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.ad-text strong { font-size: 14px; }
.ad-label { position: absolute; top: 6px; inset-inline-end: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ad-card { flex-direction: column; align-items: stretch; padding: 10px; }
.ad-card img { width: 100%; height: auto; aspect-ratio: 1.15; }
.ad-chat { margin: 0 14px 10px; padding: 8px 12px; border-radius: 14px; background: var(--chat-other); color: var(--chat-text); }
.ad-chat img { width: 40px; height: 40px; }
.ad-slot { margin: 16px 0; }

/* ---------- Avatar dessiné ---------- */
.pphoto .avatar-big { width: 72%; max-width: 280px; }
.pphoto .avatar-big svg { width: 100%; height: auto; }
.avatar svg { width: 100%; height: 100%; }
.quick-exit { color: var(--muted); }
.quick-exit:hover { color: var(--danger); }
.opening { background: var(--chat-other); border-radius: 18px; padding: 14px 16px; margin: 0 14px 10px; }
.callbox { background: #1d1418; border-radius: 24px; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; }
.callbox iframe { flex: 1; width: 100%; min-height: 480px; border: 0; }
.presence { display: flex; gap: 10px; flex-wrap: wrap; }
.presence span { padding: 6px 12px; border-radius: 999px; background: var(--surface2); font-size: 13px; }
.presence span.on { background: var(--ok); color: #fff; }
.story { background: var(--surface); border-radius: 24px; padding: 24px; }
.story h2 { font-size: 24px; margin-bottom: 8px; }
.story .kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }

/* ---------- Ajustements d'affichage ---------- */
@media (min-width: 761px) { .topbar .wrap { flex-wrap: nowrap; } .nav { flex-wrap: nowrap; gap: 14px; } .nav a { white-space: nowrap; } }
@media (min-width: 761px) and (max-width: 1180px) { .nav .hide-l { display: none; } }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who a, .chat-head .who .tiny { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .chat-head .call-label { display: none; } .chat-head { padding: 10px 12px; gap: 8px; } }
@media (max-width: 760px) { .topbar .tt-label { display: none; } .topbar .wrap { min-height: 56px; flex-wrap: nowrap; } .nav { gap: 4px; flex-wrap: nowrap; } .brand { font-size: 20px; } }

/* ===== Logo animé dans l'en-tête (11/11/2026) ===== */
.brand { align-items: center; }
.brand .brand-txt { display: flex; align-items: baseline; gap: 8px; }
.logo-mark { flex-shrink: 0; overflow: visible; }
.logo-mark .lm-c1 { animation: lm-left 4.5s ease-in-out infinite; }
.logo-mark .lm-c2 { animation: lm-right 4.5s ease-in-out infinite; }
.logo-mark .lm-h { transform-box: fill-box; transform-origin: center; animation: lm-heart 4.5s ease-in-out infinite; }
@keyframes lm-left  { 0%, 100% { transform: translateX(-12px); } 35%, 80% { transform: translateX(0); } }
@keyframes lm-right { 0%, 100% { transform: translateX(12px); }  35%, 80% { transform: translateX(0); } }
@keyframes lm-heart { 0%, 34% { transform: scale(0); opacity: 0; } 42% { transform: scale(1.25); opacity: 1; } 50%, 78% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo-mark .lm-c1, .logo-mark .lm-c2, .logo-mark .lm-h { animation: none; } }
@media (max-width: 760px) { .logo-mark { width: 38px; height: 30px; } }

/* ===== Passage unslop (11/11/2026) : moins de cartes, plus de lignes simples ===== */
/* Petits titres : en minuscules normales, sans lettres espacées */
.price-card .kicker, .story .kind { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.ad-label { text-transform: none; letter-spacing: 0; font-size: 11px; }
/* Accueil */
.lead.tagline { color: var(--accent); font-weight: 600; margin-top: -6px; }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 32px auto 0; max-width: 760px; display: grid; gap: 0; }
.steps li { counter-increment: st; position: relative; padding: 18px 0 18px 64px; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
[dir="rtl"] .steps li { padding: 18px 64px 18px 0; }
.steps li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 14px; font-family: Fraunces, Amiri, serif; font-size: 40px; line-height: 1; color: var(--accent); }
.steps li h3 { font-size: 21px; margin-bottom: 4px; }
.steps li p { margin: 0; }
.plain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; max-width: 920px; margin-inline: auto; }
.plain-grid.tight { column-gap: 24px; max-width: none; }
.plain-item { padding: 16px 0; border-top: 1px solid var(--border); }
.plain-item h3 { font-size: 20px; margin-bottom: 4px; }
@media (max-width: 700px) { .plain-grid { grid-template-columns: minmax(0, 1fr); } }
/* Icône seule, sans rond coloré derrière */
.icon-circle { width: auto; height: auto; background: none; border-radius: 0; }
/* Espace membre : listes en une seule surface, lignes séparées par un trait */
.list:has(> .space) { gap: 0; background: var(--surface); border-radius: 20px; overflow: hidden; }
.list .space { border-radius: 0; background: transparent; padding: 16px 20px; }
.list .space + .space { border-top: 1px solid var(--border); }
.list .space:hover { outline: none; background: var(--surface2); }
.menu-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.menu-row:hover { color: var(--accent); }
.menu-row .mr-ico { color: var(--accent); display: inline-flex; }
.menu-row .grow { flex: 1; min-width: 0; }
/* En-tête : lumière en icône, « Quitter vite » écrit en clair */
.toggle-theme.icon-only { width: 40px; height: 40px; padding: 0; justify-content: center; background: transparent; color: var(--text); }
.toggle-theme.icon-only:hover { color: var(--accent); }
a.quick-exit { font-size: 13px; font-weight: 700; padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 999px; text-decoration: none; white-space: nowrap; }
a.quick-exit:hover { border-color: var(--danger); }
/* Écran de bienvenue mobile : le logo à la place des cercles décoratifs */
.welcome-mark { display: flex; justify-content: center; margin: 40px auto 24px; }
.welcome-mark .logo-mark { width: 200px; height: 160px; }
