/* Qalbayin — appli membres */
:root {
  --fond: #F7F3EB;
  --carte: #FFFDFC;
  --texte: #382C27;
  --texte-doux: #6E5E55;
  --marron: #7A5442;
  --marron-fonce: #5F4032;
  --or: #C9A95E;
  --or-clair: #E8DDBF;
  --bord: #E6DCCB;
  --bord-doux: #F1EAE0;
  --puce: #F4EEE5;
  --vert: #2F6B41;
  --vert-point: #3F8F55;
  --vert-fond: #EAF3EC;
  --rouge: #B5452F;
  --rouge-fond: #FBEDEA;
  --ambre-fond: #FFF8E8;
  --ambre-bord: #EEDDB0;
  --ambre-texte: #6B5214;
  --ombre: 0 1px 2px rgba(56,44,39,.05), 0 8px 24px rgba(56,44,39,.06);
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --haut-sur: env(safe-area-inset-top, 0px);
  --bas-sur: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fond); color: var(--texte); font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--marron); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(201,169,94,.6); outline-offset: 2px; }

.app { height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; position: relative; }
.vue { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.vue-echange { display: flex; flex-direction: column; overflow: hidden; }

/* ---------- Chargement ---------- */
.ecran-centre { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px; text-align: center; }
.chargeur { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--or-clair); border-top-color: var(--marron); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.squelette { background: linear-gradient(90deg, #EFE7DB 0%, #F7F1E8 50%, #EFE7DB 100%); background-size: 200% 100%; animation: brille 1.2s ease-in-out infinite; border-radius: 22px; height: 150px; }
@keyframes brille { to { background-position: -200% 0; } }

/* ---------- En-têtes ---------- */
.entete { padding: calc(20px + var(--haut-sur)) 20px 12px; display: flex; flex-direction: column; gap: 14px; }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.salut { font-size: 13px; color: var(--texte-doux); }
.titre { font-family: var(--serif); font-weight: 600; font-size: 28px; }
.compteur { font-size: 12px; color: var(--texte-doux); }

.btn-rond { width: 44px; height: 44px; border-radius: 22px; background: var(--carte); border: 1px solid var(--bord); display: flex; align-items: center; justify-content: center; flex: none; color: var(--marron); text-decoration: none; position: relative; }
.btn-rond .point { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 5px; background: var(--marron); border: 2px solid var(--carte); }

/* ---------- Puces ---------- */
.puces { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.puces::-webkit-scrollbar { display: none; }
.puce-filtre { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--carte); border: 1px solid var(--bord); font-size: 13px; color: var(--marron-fonce); display: inline-flex; align-items: center; gap: 6px; }
.puce-filtre.actif { background: var(--marron); border-color: var(--marron); color: var(--carte); font-weight: 500; }
.puce { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--fond); color: var(--marron-fonce); display: inline-flex; align-items: center; gap: 6px; }
.puce-vert { background: var(--vert-fond); color: var(--vert); }
.puce-vert::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--vert-point); }
.puce-gris { background: #F1ECE2; color: var(--texte-doux); }
.puces-info { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Cartes profils ---------- */
.liste { padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.carte { text-decoration: none; color: inherit; background: var(--carte); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--ombre); transition: transform .15s ease; }
.carte:active { transform: scale(.985); }
.carte.vue-deja { opacity: .82; }
.carte-haut { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid var(--or-clair); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--marron-fonce); }
.avatar.petit { width: 40px; height: 40px; font-size: 17px; }
.avatar.grand { width: 88px; height: 88px; font-size: 38px; border: 3px solid var(--or); background: var(--carte); color: var(--marron); }
.carte-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.carte-nom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.carte-nom span:first-child { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.carte-sous { font-size: 13px; color: var(--texte-doux); }
.carte-citation { font-size: 14px; line-height: 1.5; color: #4A3D36; }
.chevron { color: #B49A86; flex: none; }
.plus { display: flex; justify-content: center; padding: 0 16px 24px; }
.vide { padding: 48px 28px; text-align: center; color: var(--texte-doux); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vide strong { color: var(--texte); font-family: var(--serif); font-size: 19px; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn { min-height: 52px; border-radius: 16px; border: 0; background: var(--marron); color: var(--carte); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; text-decoration: none; width: 100%; }
.btn:disabled { background: #CBBBAE; cursor: not-allowed; }
.btn-secondaire { min-height: 46px; border-radius: 14px; border: 1px solid var(--bord); background: var(--carte); color: var(--marron-fonce); font-weight: 600; font-size: 15px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-danger { background: var(--rouge); }
.btn-lien { border: 0; background: none; color: var(--marron); font-weight: 600; font-size: 14px; min-height: 44px; padding: 0 4px; }
.rangee-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rangee-btns > * { flex: 1 1 120px; }

/* ---------- Navigation ---------- */
.nav { flex: none; background: var(--carte); border-top: 1px solid var(--bord-doux); display: flex; justify-content: space-around; padding: 6px 4px calc(6px + var(--bas-sur)); }
.nav a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; min-height: 48px; justify-content: center; color: var(--texte-doux); font-size: 11px; position: relative; }
.nav a.actif { color: var(--marron); font-weight: 600; }
.nav .badge { position: absolute; top: 2px; right: 16px; width: 9px; height: 9px; border-radius: 5px; background: var(--rouge); border: 2px solid var(--carte); }
.app.sans-nav .nav { display: none; }

/* ---------- Fiche profil ---------- */
.fiche-haut { background: #EFE4D3; padding: calc(16px + var(--haut-sur)) 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.fiche-haut .retour { position: absolute; left: 16px; top: calc(12px + var(--haut-sur)); background: rgba(255,253,252,.85); border: 0; }
.fiche-haut .favori { position: absolute; right: 16px; top: calc(12px + var(--haut-sur)); background: rgba(255,253,252,.85); border: 0; color: #B5452F; }
.coeur-carte { color: #B5452F; flex: none; }
.fiche-nom { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 4px; }
.fiche-sous { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #5F4C42; flex-wrap: wrap; justify-content: center; }
.fiche-corps { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.bloc { background: var(--carte); border-radius: 20px; padding: 6px 16px; }
.bloc h2 { font-size: 12px; font-weight: 600; color: var(--marron); text-transform: uppercase; letter-spacing: .07em; padding: 12px 0 4px; }
.ligne { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--bord-doux); font-size: 14px; }
.ligne:last-child { border-bottom: 0; }
.ligne .lib { color: #5F4C42; }
.ligne .val { font-weight: 600; text-align: right; }
.ligne.longue { flex-direction: column; gap: 4px; }
.ligne.longue .val { font-weight: 400; text-align: left; line-height: 1.55; color: #4A3D36; font-size: 15px; white-space: pre-line; }
.fiche-cta { position: sticky; bottom: 0; padding: 12px 16px calc(16px + var(--bas-sur)); background: linear-gradient(180deg, rgba(247,243,235,0) 0%, var(--fond) 24%); display: flex; flex-direction: column; gap: 8px; }
.note { font-size: 12px; color: var(--texte-doux); text-align: center; line-height: 1.45; }

/* ---------- Encadrés ---------- */
.info { padding: 10px 12px; border-radius: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.info svg { flex: none; margin-top: 1px; }
.info-ambre { background: var(--ambre-fond); border: 1px solid var(--ambre-bord); color: var(--ambre-texte); }
.info-rouge { background: var(--rouge-fond); border: 1px solid #F0CFC7; color: #7A2E1F; }
.info-vert { background: var(--vert-fond); border: 1px solid #CFE3D4; color: var(--vert); }
.info-or { background: #FBF3DF; border: 1px solid #E2C985; color: #5C4410; }
.statut-or { background: #FBF3DF; color: #6B4F0E; border: 1px solid #E9D7A6; }
.messages.avec-mouqabala { box-shadow: inset 0 0 0 3px #E2C985; }
.stat-mouqabala { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 14px; border-radius: 16px; border: 1px solid #E9D7A6; background: #FBF3DF; color: #5C4410; font-size: 15px; text-align: left; }
.stat-mouqabala span { flex: 1; }
.stat-mouqabala.actif { border-color: var(--marron); box-shadow: 0 0 0 2px rgba(122,84,66,.25); }
.citation { background: var(--fond); border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.5; color: #4A3D36; white-space: pre-line; }

/* ---------- Onglets ---------- */
.onglets { display: flex; background: var(--puce); border-radius: 999px; padding: 4px; }
.onglets button { flex: 1; min-width: 0; min-height: 40px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; border-radius: 999px; background: transparent; color: var(--texte-doux); font-size: 14px; font-weight: 500; position: relative; }
.onglets button.actif { background: var(--carte); color: var(--marron-fonce); font-weight: 600; box-shadow: 0 1px 3px rgba(56,44,39,.15); }

/* ---------- Demandes ---------- */
.demande { background: var(--carte); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--ombre); }
.demande-date { font-size: 12px; color: var(--texte-doux); }
.statut { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.statut-attente { background: var(--ambre-fond); color: var(--ambre-texte); }
.statut-ok { background: var(--vert-fond); color: var(--vert); }
.statut-refus { background: var(--rouge-fond); color: #7A2E1F; }

/* ---------- Échange ---------- */
.chat-entete { flex: none; padding: calc(10px + var(--haut-sur)) 12px 10px; background: var(--carte); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--bord); }
.chat-entete .qui { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.chat-entete .qui strong { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.chat-entete .qui span { font-size: 12px; }
.ouvert { color: var(--vert); }
.ferme { color: var(--rouge); }
.btn-icone { width: 44px; height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; color: var(--marron-fonce); border-radius: 22px; flex: none; }
.chat-regles { flex: none; margin: 10px 12px 0; }
.messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #F4EEE4; }
.jour { align-self: center; font-size: 11px; color: var(--texte-doux); background: #EBE2D5; padding: 4px 10px; border-radius: 999px; }
.bulle { max-width: 80%; padding: 10px 14px; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.bulle .meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; white-space: normal; }
.bulle-autre { align-self: flex-start; background: var(--carte); border-radius: 18px 18px 18px 6px; box-shadow: 0 1px 2px rgba(56,44,39,.06); }
.bulle-autre .meta { color: var(--texte-doux); }
.bulle-moi { align-self: flex-end; background: var(--marron); color: var(--carte); border-radius: 18px 18px 6px 18px; }
.bulle-moi .meta { color: #EADBCB; }
.bulle-attente { background: #EADFD3; color: #4A3D36; border: 1px dashed #B79C87; }
.bulle-attente .meta { color: #6E5047; }
.bulle-refus { background: var(--rouge-fond); color: #5C2418; border: 1px solid #F0CFC7; }
.bulle-refus .meta { color: #7A2E1F; flex-direction: column; align-items: flex-end; }
.bulle-admin { align-self: center; max-width: 88%; background: #FBF3DF; border: 1px solid #E9D7A6; border-radius: 14px; text-align: center; color: #4A3D36; font-size: 14px; }
.bulle-admin .titre-admin { display: block; font-size: 11px; font-weight: 600; color: #7A5A12; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.bulle-admin .meta { justify-content: center; color: #7A5A12; }
.composeur { flex: none; padding: 10px 12px; background: var(--carte); border-top: 1px solid var(--bord); display: flex; align-items: flex-end; gap: 8px; }
.composeur textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; border-radius: 23px; border: 1px solid var(--bord); background: var(--fond); padding: 12px 16px; font-size: 16px; line-height: 1.35; }
.composeur .envoyer { width: 46px; height: 46px; flex: none; border-radius: 23px; border: 0; background: var(--marron); color: var(--carte); display: flex; align-items: center; justify-content: center; }
.composeur .envoyer:disabled { background: #CBBBAE; }
.composeur-ferme { flex: none; padding: 14px 16px; background: var(--carte); border-top: 1px solid var(--bord); text-align: center; font-size: 14px; color: var(--rouge); font-weight: 600; }
.doua { margin: 6px auto 0; max-width: 92%; text-align: center; font-size: 13px; color: var(--texte-doux); font-style: italic; line-height: 1.5; }

/* ---------- Mon profil ---------- */
.moi-carte { margin: 0 16px; background: var(--carte); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--ombre); text-align: center; }
.menu-liste { margin: 16px; background: var(--carte); border-radius: 20px; overflow: hidden; }
.menu-liste a, .menu-liste button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border: 0; background: none; border-bottom: 1px solid var(--bord-doux); text-decoration: none; color: var(--texte); font-size: 15px; text-align: left; }
.menu-liste > :last-child { border-bottom: 0; }
.menu-liste svg { color: var(--marron); flex: none; }
.menu-liste .fin { margin-left: auto; color: #B49A86; }

/* ---------- Panneau du bas (sheet) ---------- */
.voile { position: fixed; inset: 0; background: rgba(56,44,39,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: apparait .2s ease; }
@keyframes apparait { from { opacity: 0; } }
.panneau { width: 100%; max-width: 560px; max-height: 92dvh; background: var(--carte); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; animation: monte .25s cubic-bezier(.2,.8,.2,1); }
@keyframes monte { from { transform: translateY(40px); opacity: .6; } }
.panneau-poignee { display: flex; justify-content: center; padding-top: 10px; }
.panneau-poignee span { width: 40px; height: 5px; border-radius: 3px; background: #DCCFBF; }
.panneau-entete { padding: 10px 20px 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panneau-entete h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.panneau-corps { padding: 6px 20px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.panneau-pied { padding: 12px 20px calc(16px + var(--bas-sur)); border-top: 1px solid var(--bord-doux); display: flex; flex-direction: column; gap: 8px; }

.champ { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea { min-height: 46px; border-radius: 14px; border: 1px solid var(--bord); background: var(--fond); padding: 0 12px; font-size: 16px; color: var(--texte); width: 100%; }
.champ textarea { padding: 12px; min-height: 140px; line-height: 1.5; resize: vertical; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.section-titre { font-size: 14px; font-weight: 600; color: var(--texte); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bord); background: var(--carte); color: var(--marron-fonce); font-size: 14px; }
.choix button[aria-pressed="true"] { background: var(--marron); border-color: var(--marron); color: var(--carte); }
.question { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bord-doux); }
.question span { font-size: 14px; }
.segment { display: flex; background: var(--puce); border-radius: 999px; padding: 3px; flex: none; }
.segment button { border: 0; min-height: 34px; padding: 0 11px; border-radius: 999px; background: transparent; color: var(--texte-doux); font-size: 13px; }
.segment button[aria-pressed="true"] { background: var(--carte); color: var(--marron-fonce); font-weight: 600; box-shadow: 0 1px 3px rgba(56,44,39,.15); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; top: calc(12px + var(--haut-sur)); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 520px; background: var(--texte); color: var(--carte); padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: apparait .2s ease; }
.toast.erreur { background: #7A2E1F; }
.toast.succes { background: var(--vert); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Admin : messages groupés par conversation ---------- */
.groupe-conv { gap: 10px; }
.msg-a-valider { border-top: 1px solid var(--bord-doux); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; transition: opacity .2s; }
.msg-tete { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texte-doux); }
.msg-tete strong { color: var(--texte); }
.msg-tete span { flex: 1; }
.croix { width: 36px; height: 36px; flex: none; border: 0; border-radius: 18px; background: var(--rouge-fond); color: #7A2E1F; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.avec-croix { position: relative; padding-right: 44px; }
.croix-bulle { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; font-size: 18px; }

/* ---------- Assistant de profil ---------- */
.vue-editeur { background: var(--fond); }
.editeur { min-height: 100%; display: flex; flex-direction: column; }
.editeur-haut { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--haut-sur)) 12px 6px; }
.progression { flex: 1; height: 8px; border-radius: 4px; background: #EADFD0; overflow: hidden; }
.progression span { display: block; height: 100%; background: linear-gradient(90deg, var(--or), var(--marron)); border-radius: 4px; transition: width .35s ease; }
.progression-txt { font-size: 12px; color: var(--texte-doux); min-width: 40px; text-align: right; }
.editeur-corps { flex: 1; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 14px; animation: glisse .25s ease; }
@keyframes glisse { from { opacity: 0; transform: translateX(14px); } }
.encouragement { align-self: flex-start; font-size: 13px; font-weight: 600; color: #6B4F0E; background: #FBF3DF; border: 1px solid #E9D7A6; padding: 6px 12px; border-radius: 999px; }
.question-titre { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.3; }
.question-titre .facultatif { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--texte-doux); }
.question-aide { font-size: 14px; line-height: 1.5; color: #5F4C42; }
.question-prive { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texte-doux); }
.question-prive svg { width: 15px; height: 15px; }
.grands-choix { display: flex; flex-direction: column; gap: 10px; }
.grands-choix button { min-height: 56px; border-radius: 16px; border: 1.5px solid var(--bord); background: var(--carte); text-align: left; padding: 0 18px; font-size: 16px; color: var(--texte); transition: border-color .15s, background .15s; }
.grands-choix button[aria-checked="true"] { border-color: var(--marron); background: #F6EEE6; font-weight: 600; box-shadow: 0 0 0 3px rgba(122,84,66,.12); }
.editeur-pied { position: sticky; bottom: 0; padding: 12px 20px calc(16px + var(--bas-sur)); background: linear-gradient(180deg, rgba(247,243,235,0) 0%, var(--fond) 22%); display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.regles-profil { list-style: none; margin: 0; padding: 0; max-width: 360px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.regles-profil li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #4A3D36; }
.regles-profil svg { color: var(--vert-point); flex: none; margin-top: 3px; }
.ligne-recap { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--bord-doux); background: none; padding: 12px 0; }
.ligne-recap:last-child { border-bottom: 0; }
.ligne-recap .lib { font-size: 13px; color: var(--texte-doux); display: flex; align-items: center; gap: 4px; }
.ligne-recap .lib svg { width: 13px; height: 13px; }
.ligne-recap .val { font-size: 15px; color: var(--texte); white-space: pre-line; }
.ligne-recap .val.manquante { color: #7A2E1F; font-weight: 600; }
.illus-merci, .illus-attente { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.illus-merci { background: var(--vert-fond); color: var(--vert); animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
.illus-attente { background: #FBF3DF; color: #6B4F0E; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- Questions à poser ---------- */
.theme { background: var(--carte); border-radius: 18px; box-shadow: var(--ombre); overflow: hidden; }
.theme summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; font-weight: 600; font-size: 15px; cursor: pointer; }
.theme summary::-webkit-details-marker { display: none; }
.theme summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #B49A86; border-bottom: 2px solid #B49A86; transform: rotate(45deg); margin-left: 4px; transition: transform .2s; flex: none; }
.theme[open] summary::after { transform: rotate(-135deg); }
.theme summary span:first-child { flex: 1; }
.theme-nb { font-size: 12px; font-weight: 600; color: var(--marron); background: var(--puce); border-radius: 999px; padding: 3px 9px; }
.liste-questions { list-style: none; margin: 0; padding: 0 16px 10px; }
.liste-questions li { border-top: 1px solid var(--bord-doux); padding: 12px 0; font-size: 15px; line-height: 1.5; color: #4A3D36; }
.liste-questions li button { border: 0; background: none; padding: 0; text-align: left; font-size: 15px; line-height: 1.5; color: #4A3D36; width: 100%; }
.questions-panneau { display: flex; flex-direction: column; gap: 10px; }
.questions-panneau .theme { box-shadow: none; border: 1px solid var(--bord-doux); }
.composeur .idees { background: var(--puce); color: var(--marron); }

.q-copier { display: flex !important; align-items: flex-start; gap: 10px; }
.q-copier span { flex: 1; }
.icone-copier { flex: none; color: #B49A86; margin-top: 3px; transition: color .2s; }
.q-copier.copiee .icone-copier { color: var(--vert-point); }
.q-copier.copiee span { color: var(--vert); }

/* ---------- Notifications ---------- */
.carte-push { background: var(--carte); border: 1px solid #E9D7A6; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--ombre); }
.carte-push.ok { border-color: #CFE3D4; }
.carte-push-tete { display: flex; align-items: center; gap: 10px; color: var(--marron); }
.carte-push-tete strong { flex: 1; color: var(--texte); font-size: 15px; }
.carte-push.ok .carte-push-tete { color: var(--vert-point); }
.carte-push p { font-size: 14px; line-height: 1.5; color: #5F4C42; }
.carte-push .btn { min-height: 46px; font-size: 15px; }
.carte-push .btn-icone { width: 36px; height: 36px; font-size: 20px; color: var(--texte-doux); }
.etapes-ios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.etapes-ios li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: #4A3D36; }
.etapes-ios li svg { vertical-align: -3px; color: #2F6FD0; }
.etapes-ios .num { width: 28px; height: 28px; flex: none; border-radius: 14px; background: var(--marron); color: var(--carte); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }

/* Recherche de membres (admin → Profils) */
.recherche-admin { padding: 4px 0 0; }
.recherche-admin > .champ { padding: 0 16px 8px; }
.recherche-admin .champ input { background: #fff; }

/* Connexion */
.connexion { flex: 1; min-height: 100vh; min-height: 100dvh; width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.connexion-haut { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 0 8px; }
.connexion-logo { width: 116px; height: 116px; object-fit: contain; margin-bottom: 4px; }
.connexion-marque { font-size: 12px; letter-spacing: 4px; color: #9A7A36; font-weight: 600; }
.connexion-haut h1 { margin: 4px 0 0; font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 32px; line-height: 1.15; color: var(--marron); }
.connexion-haut p { margin: 0; color: #6B5A50; font-size: 16px; }
.connexion-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.connexion-form .champ { font-size: 14px; font-weight: 500; color: var(--texte); }
.connexion-form .champ input { min-height: 54px; background: #fff; font-size: 16px; }
.champ-mdp { position: relative; display: block; }
.champ-mdp input { padding-right: 52px !important; }
.champ-mdp .btn-icone { position: absolute; right: 4px; top: 5px; color: #6B5A50; }
.connexion-form .btn { min-height: 54px; margin-top: 4px; }
.connexion-erreur { margin: 0; background: #FBEDEA; border: 1px solid #E9B9AF; color: #7A2E1F; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; }
.connexion-lien { align-self: center; color: var(--marron); font-weight: 600; font-size: 14.5px; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.connexion-bas { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #6B5A50; font-size: 14.5px; }
.connexion-bas .btn-secondaire { width: 100%; min-height: 50px; }

/* Message de bienvenue (une seule fois) */
.bienvenue-intro { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; color: #4A3D36; }
.bienvenue-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bienvenue-liste li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #382C27; }
.bienvenue-ic { flex: none; width: 34px; height: 34px; border-radius: 17px; background: #F3EAD7; color: #7A5442; display: flex; align-items: center; justify-content: center; }
.bienvenue-fin { margin: 16px 0 0; font-family: Fraunces, Georgia, serif; font-size: 17px; color: #7A5442; }

/* Perfect match */
.onglets-profils { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #EFE6D6; border-radius: 14px; padding: 4px; margin-top: 12px; }
.onglets-profils button { min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--marron-fonce); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.onglets-profils button.actif { background: var(--carte); color: var(--marron); box-shadow: 0 1px 3px rgba(56,44,39,.12); }
.onglets-profils button svg { color: #B8923F; }
.carte-commun { margin: 10px 0 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #6B4E1E; background: #F7EEDA; border-radius: 10px; padding: 8px 10px; }
.carte-commun svg { flex: none; margin-top: 1px; color: #B8923F; }
.note-pm { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; color: #6B5A50; }

/* Admin : intertitres de l'onglet Profils */
.titre-section { margin: 6px 4px 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--texte-doux); }
