/* Kozé : nuit tropicale */

@font-face { font-family: "Fraunces"; src: url("/polices/fraunces/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/polices/inter/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #14101f;
  --fond-2: #1b1529;
  --surface: #221a33;
  --surface-2: #2c2240;
  --ligne: rgba(255, 255, 255, 0.08);
  --ligne-forte: rgba(255, 255, 255, 0.16);
  --texte: #f4eefb;
  --texte-2: #b9aecb;
  --texte-3: #8a7fa0;
  --corail: #ff7a59;
  --degrade: linear-gradient(135deg, #ffb36b, #ff5f6d);
  --or: #ffc46b;
  --turquoise: #5fd4c4;
  --rouge: #ff5f6d;
  --vert: #4cd98a;
  --sur-accent: #1a0f14;
  --ombre: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --rayon: 14px;
  --titre: "Fraunces", Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --fond: #fbf6f1;
    --fond-2: #f4ece4;
    --surface: #ffffff;
    --surface-2: #f6efe8;
    --ligne: rgba(40, 20, 50, 0.09);
    --ligne-forte: rgba(40, 20, 50, 0.18);
    --texte: #22172e;
    --texte-2: #5d4f6e;
    --texte-3: #85789a;
    --corail: #e8552f;
    --or: #b97a10;
    --turquoise: #1a9a8a;
    --rouge: #d93848;
    --vert: #1f9d5b;
    --ombre: 0 20px 50px -24px rgba(60, 30, 60, 0.35);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 15px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.01em; }
p { margin: 0 0 0.7em; }
a { color: var(--corail); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }
.discret { color: var(--texte-2); }
.petit { font-size: 12.5px; }
.centre { text-align: center; }
.noscript { padding: 40px; text-align: center; }

.icone { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Boutons et champs ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: 999px;
  background: var(--degrade); color: var(--sur-accent);
  font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 6px 20px -8px rgba(255, 95, 109, 0.7);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-fantome { background: transparent; color: var(--texte); border: 1px solid var(--ligne-forte); box-shadow: none; }
.btn-fantome:hover { background: var(--surface-2); }
.btn-petit { padding: 6px 12px; font-size: 13px; }
.btn-large { width: 100%; padding: 13px 20px; font-size: 16px; }
.btn-or { background: linear-gradient(135deg, #ffe09a, #ffb347); color: #2a1a00; box-shadow: 0 6px 20px -8px rgba(255, 196, 107, 0.7); }
.btn-danger { color: var(--rouge); }
.btn-danger-plein { background: var(--rouge); color: #fff; box-shadow: none; }
.btn-rond { width: 42px; height: 42px; padding: 0; flex: none; }
.btn-icone {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  border: 0; background: transparent; color: var(--texte-2);
}
.btn-icone:hover { background: var(--surface-2); color: var(--texte); }
.lien { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--corail); font-weight: 550; }
.lien:hover { text-decoration: underline; }
.texte-danger { color: var(--rouge) !important; }

input, select, textarea {
  width: 100%; padding: 10px 12px;
  background: var(--fond-2); border: 1px solid var(--ligne-forte); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--corail); box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.2); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; }
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--corail); }

.formulaire { display: flex; flex-direction: column; gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ-label { font-size: 13px; font-weight: 600; color: var(--texte-2); }
.aide, .hint { font-size: 12.5px; color: var(--texte-3); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--texte-2); cursor: pointer; }
.case.inactif { opacity: 0.6; }
.erreur { color: var(--rouge); font-size: 13.5px; margin: 0; min-height: 0; }
.erreur:empty { display: none; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0 6px; font-weight: 600; font-size: 13px; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.choix legend { grid-column: 1 / -1; }
.bloc-sensible { background: rgba(95, 212, 196, 0.05); border-color: rgba(95, 212, 196, 0.25); }
.sous-bloc { display: flex; flex-direction: column; gap: 10px; padding-left: 28px; }

.encart { background: var(--surface-2); border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 14px; }
.encart-test { border-color: rgba(255, 196, 107, 0.4); background: rgba(255, 196, 107, 0.08); font-size: 13.5px; margin-top: 12px; }
.rangee { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rangee-fin { justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ligne); }
.rangee-espace { justify-content: space-between; }
.etiquette { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--ligne); font-size: 13px; color: var(--texte-2); }
.etiquette.petit { font-size: 11px; padding: 1px 8px; }
.pastille { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--corail); color: var(--sur-accent); font-size: 11px; font-weight: 700; margin-left: auto; }
.badge-premium { color: var(--or); font-size: 0.85em; margin-left: 4px; }
.liste-coches { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.liste-coches li::before { content: "✓"; color: var(--turquoise); font-weight: 700; margin-right: 10px; }

/* ---------- Avatars (teinte posée par CSSOM : --h) ---------- */

.avatar {
  --h: 20;
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 85% 68%), hsl(calc(var(--h) + 40) 75% 52%));
  color: #1a0f14; font-weight: 700; font-family: var(--titre);
}
.avatar-s { width: 30px; height: 30px; font-size: 13px; }
.avatar-m { width: 38px; height: 38px; font-size: 16px; }
.avatar-l { width: 64px; height: 64px; font-size: 26px; }
.avatar-bouton { border: 0; background: none; padding: 0; border-radius: 50%; }

/* ---------- Toasts et modale ---------- */

#toasts { position: fixed; z-index: 100; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast {
  pointer-events: auto; padding: 11px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--ligne-forte);
  box-shadow: var(--ombre); font-size: 14px; animation: monte 0.25s ease-out; transition: opacity 0.4s, transform 0.4s;
}
.toast-succes { border-color: rgba(76, 217, 138, 0.5); }
.toast-erreur { border-color: rgba(255, 95, 109, 0.6); }
.toast.sortie { opacity: 0; transform: translateY(8px); }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

dialog#modale {
  width: min(94vw, 520px); max-height: 88vh; padding: 0; border: 1px solid var(--ligne-forte); border-radius: 20px;
  background: var(--surface); color: var(--texte); box-shadow: var(--ombre);
}
dialog#modale::backdrop { background: rgba(10, 6, 18, 0.65); backdrop-filter: blur(4px); }
dialog#modale[open] { animation: monte 0.2s ease-out; }
.modale-corps { padding: 20px 22px 24px; overflow-y: auto; max-height: 88vh; }
.modale-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modale-entete h2 { margin: 0; font-size: 22px; }
.profil-entete { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.profil-entete h3 { margin: 0 0 2px; font-size: 20px; }
.profil-entete p { margin: 0; }
.bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 14px; }
.details dt { color: var(--texte-3); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.zone-mp { margin-top: 8px; }
.menu-liste { display: flex; flex-direction: column; gap: 2px; }
.menu-liste > button, .menu-liste > a {
  text-align: left; background: none; border: 0; padding: 11px 12px; border-radius: 10px; color: var(--texte); text-decoration: none;
}
.menu-liste > button:hover, .menu-liste > a:hover { background: var(--surface-2); }
.sous-titre { font-size: 16px; margin: 18px 0 8px; }
.formules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.formule {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px; border-radius: 14px;
  background: var(--fond-2); border: 1.5px solid var(--ligne-forte);
}
.formule.actif { border-color: var(--or); background: rgba(255, 196, 107, 0.08); }
.formule-titre { font-weight: 600; }
.formule-prix { font-family: var(--titre); font-size: 22px; font-weight: 600; }

/* ---------- Accueil ---------- */

body.accueil {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 95, 109, 0.22), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(95, 212, 196, 0.12), transparent 60%),
    var(--fond);
}
.barre-accueil { max-width: 1160px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: var(--titre); font-weight: 700; font-size: 26px; text-decoration: none; letter-spacing: -0.02em;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero { max-width: 1160px; margin: 0 auto; padding: 30px 24px 70px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.surtitre { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 650; color: var(--turquoise); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 600; margin-bottom: 20px; }
.hero h1 em { font-style: italic; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.chapo { font-size: 17.5px; color: var(--texte-2); max-width: 36em; }
.puces { list-style: none; padding: 0; margin: 20px 0 32px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--texte-2); font-weight: 550; }
.puces li::before { content: "●"; color: var(--corail); font-size: 9px; vertical-align: 3px; margin-right: 8px; }

.apercu { max-width: 470px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 20px; padding: 6px 6px 10px; box-shadow: var(--ombre); transform: rotate(-1.2deg); }
.apercu-entete { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--ligne); margin-bottom: 4px; }
.apercu-compte { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--texte-3); }
.point-vert { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px rgba(76, 217, 138, 0.18); }
.apercu-message { opacity: 0; animation: monte 0.5s ease-out forwards; animation-delay: calc(var(--i) * 0.5s + 0.3s); }
.apercu-saisie { display: flex; align-items: center; justify-content: space-between; margin: 8px 8px 0; padding: 9px 9px 9px 14px; border-radius: 12px; background: var(--fond-2); color: var(--texte-3); font-size: 14px; }
.apercu-envoyer { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--degrade); color: var(--sur-accent); }
.apercu-envoyer .icone { width: 15px; height: 15px; }

.carte-auth { background: var(--surface); border: 1px solid var(--ligne); border-radius: 22px; padding: 22px; box-shadow: var(--ombre); position: sticky; top: 20px; }
.onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--fond-2); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.onglets button { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--texte-2); }
.onglets button.actif { background: var(--surface-2); color: var(--texte); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.3); }
.onglets-petits { display: inline-grid; grid-auto-flow: column; grid-template-columns: none; margin: 4px 0 14px; }
.onglets-petits button { padding: 7px 16px; }
.confirmation { text-align: center; padding: 16px 4px; }
.grand-emoji { font-size: 36px; line-height: 1; margin-bottom: 10px; }

main > section { max-width: 1160px; margin: 0 auto; padding: 50px 24px; }
main > section > h2 { font-size: clamp(28px, 4vw, 40px); text-align: center; }
.chapo.centre { margin: 0 auto 30px; }
.grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; }
.carte h3 { font-size: 19px; }
.carte p { color: var(--texte-2); font-size: 14.5px; margin: 0; }
.nuage { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 24px auto 0; }
.nuage .etiquette { font-size: 15px; padding: 8px 16px; }
.offre { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px !important; }
.carte-offre { padding: 30px; }
.carte-offre h2 { font-size: 32px; }
.carte-offre .liste-coches { margin: 18px 0 0; }
.carte-premium { border-color: rgba(255, 196, 107, 0.45); background: linear-gradient(160deg, rgba(255, 196, 107, 0.1), transparent 60%), var(--surface); }
.carte-premium .surtitre { color: var(--or); }

.pied { border-top: 1px solid var(--ligne); padding: 28px 24px 40px; text-align: center; color: var(--texte-3); font-size: 13px; }
.pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 12px; }
.pied a { color: var(--texte-2); text-decoration: none; }
.pied a:hover { color: var(--texte); text-decoration: underline; }

/* ---------- Application ---------- */

body.appli { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
#racine { display: contents; }
.barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--ligne); background: var(--fond); flex: none; }
.barre .logo { font-size: 23px; }
.barre-droite { display: flex; align-items: center; gap: 10px; }
.moi { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ligne); background: var(--surface); border-radius: 999px; padding: 3px 12px 3px 3px; }
.moi:hover { border-color: var(--ligne-forte); }
.moi-pseudo { font-weight: 600; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.appli-grille { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px 1fr 250px; }
.colonne { min-height: 0; overflow-y: auto; }
.colonne-gauche { background: var(--fond-2); border-right: 1px solid var(--ligne); padding: 10px 8px 20px; }
.colonne-droite { background: var(--fond-2); border-left: 1px solid var(--ligne); padding: 14px 12px; }
.colonne-centre { display: flex; flex-direction: column; overflow: hidden; background: var(--fond); }

.groupe { margin-bottom: 14px; }
.groupe-titre { display: flex; align-items: center; gap: 8px; font-family: var(--ui); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--texte-3); padding: 8px 10px 6px; margin: 0; }
.ligne-salon, .ligne-conv, .ligne-membre {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: none; padding: 7px 10px; border-radius: 10px; color: var(--texte-2);
}
.ligne-salon:hover, .ligne-conv:hover, .ligne-membre:hover { background: var(--surface); color: var(--texte); }
.ligne-salon.actif, .ligne-conv.actif { background: var(--surface-2); color: var(--texte); }
.ligne-salon .diese { color: var(--texte-3); width: 14px; text-align: center; }
.ligne-salon.actif .diese { color: var(--corail); }
.ligne-salon .nom { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.en-ligne { font-size: 11.5px; color: var(--texte-3); }
.en-ligne::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--vert); margin-right: 5px; vertical-align: 1px; }
.ligne-membre-texte { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ligne-membre-texte .nom { color: var(--texte); font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apercu-texte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-salons { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 10px 10px; font-size: 13px; }
.actions-salons .icone { width: 15px; height: 15px; }
.vide { padding: 4px 10px; }

.entete-centre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--ligne); flex: none; }
.entete-centre h1 { font-size: 21px; margin: 0; }
.entete-centre h1 .diese { color: var(--corail); }
.entete-centre p { margin: 2px 0 0; font-size: 13px; }
.compte { font-size: 13px; color: var(--texte-2); white-space: nowrap; }
.compte:not(:empty)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); margin-right: 6px; vertical-align: 1px; }
.personne { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; }
.personne h1 { font-size: 19px; }

.fil { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; }
.intro-fil { text-align: center; padding: 26px 20px 20px; margin-top: auto; }
.intro-fil p { margin: 0 0 4px; font-size: 14px; }

.message { position: relative; display: flex; gap: 12px; padding: 6px 10px; border-radius: 10px; margin-top: 8px; }
.message.suite { margin-top: 0; padding-top: 1px; padding-bottom: 1px; }
.message:hover { background: var(--fond-2); }
.message-corps { min-width: 0; flex: 1; }
.message-corps p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; margin-bottom: 1px; }
.message-tete b { font-size: 14.5px; }
.pseudo { border: 0; background: none; padding: 0; font-weight: 650; font-size: 14.5px; color: var(--texte); }
.pseudo:hover { text-decoration: underline; }
.message.a-moi .pseudo { color: var(--corail); }
.message-tete time { font-size: 11.5px; }
.heure-suite { width: 38px; flex: none; text-align: center; font-size: 10.5px; color: var(--texte-3); opacity: 0; padding-top: 3px; }
.message:hover .heure-suite { opacity: 1; }
.message-actions { position: absolute; right: 8px; top: -12px; display: none; gap: 2px; background: var(--surface); border: 1px solid var(--ligne-forte); border-radius: 10px; padding: 2px; }
.message:hover .message-actions:not(:empty), .message:focus-within .message-actions:not(:empty) { display: flex; }

.bulle { max-width: min(78%, 520px); align-self: flex-start; background: var(--surface-2); padding: 9px 13px 6px; border-radius: 18px 18px 18px 6px; margin-top: 6px; }
.bulle p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle time { display: block; text-align: right; font-size: 10.5px; color: var(--texte-3); margin-top: 2px; }
.bulle-moi { align-self: flex-end; background: var(--degrade); color: var(--sur-accent); border-radius: 18px 18px 6px 18px; }
.bulle-moi time { color: rgba(26, 15, 20, 0.6); }

.composeur { display: flex; align-items: flex-end; gap: 10px; padding: 10px 16px 14px; flex: none; position: relative; }
.composeur textarea { resize: none; overflow-y: hidden; min-height: 44px; max-height: 140px; border-radius: 22px; padding: 11px 16px; line-height: 1.4; }
.compteur { position: absolute; right: 72px; bottom: 24px; font-size: 11px; color: var(--texte-3); }
.bandeau-demande, .bandeau-info { margin: 10px 16px 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne-forte); flex: none; }
.bandeau-demande { border-color: rgba(255, 122, 89, 0.45); }
.bandeau-info { color: var(--texte-2); font-size: 14px; }

.filtres { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 12px; position: relative; }
.filtres input { padding: 7px 9px; font-size: 13px; }
.filtres input:last-of-type { grid-column: 1 / -1; }
.filtres.verrou { cursor: pointer; }
.filtres.verrou input { pointer-events: none; }
.verrou-texte { grid-column: 1 / -1; font-size: 12px; color: var(--or); text-align: center; }
.fiche-laterale { text-align: center; padding: 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fiche-laterale h3 { margin: 6px 0 0; }
.fiche-laterale .bio { font-size: 14px; color: var(--texte-2); }
.fiche-laterale .aide { margin-top: 18px; }

.nav-mobile { display: none; }

/* ---------- Modération ---------- */

.admin { overflow-y: auto; padding: 18px 22px 40px; flex: 1; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tuile { background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.tuile-n { font-family: var(--titre); font-size: 26px; font-weight: 600; }
.tuile-alerte { border-color: var(--rouge); background: rgba(255, 95, 109, 0.1); }
.pile { display: flex; flex-direction: column; gap: 12px; }
.carte-signalement { background: var(--surface); border: 1px solid var(--ligne); border-left: 4px solid var(--texte-3); border-radius: 12px; padding: 14px 16px; }
.carte-signalement.priorite-2 { border-left-color: var(--or); }
.carte-signalement.priorite-3 { border-left-color: var(--rouge); }
.carte-signalement header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.motif-mineur, .motif-menace { background: rgba(255, 95, 109, 0.15); color: var(--rouge); border-color: transparent; }
.details-signalement { white-space: pre-wrap; font-size: 14px; }
.preuves { background: var(--fond-2); border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; font-size: 13.5px; max-height: 220px; overflow-y: auto; }
.preuves p { margin: 0 0 4px; overflow-wrap: anywhere; }
.vide-grand { text-align: center; color: var(--texte-2); padding: 50px 0; font-size: 17px; }
.recherche-admin { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.tableau-defile { overflow-x: auto; margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
th { color: var(--texte-3); font-weight: 600; }
td { overflow-wrap: anywhere; }

/* ---------- Pages légales ---------- */

.page-doc { max-width: 780px; margin: 0 auto; padding: 0 22px; }
.doc-entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--ligne); }
.doc { padding: 34px 0 50px; font-size: 15.5px; line-height: 1.65; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 5px; }
.doc table { margin: 14px 0; font-size: 14px; }
.doc .formulaire { max-width: 520px; margin-top: 20px; }
.alerte { background: rgba(255, 95, 109, 0.1); border: 1px solid rgba(255, 95, 109, 0.4); border-radius: 12px; padding: 12px 16px; }
.doc .alerte { margin: 16px 0; }

/* ---------- Mobile ---------- */

@media (max-width: 1100px) {
  .grille { grid-template-columns: 1fr 1fr; }
  .appli-grille { grid-template-columns: 240px 1fr; }
  .colonne-droite { display: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 10px; }
  .apercu { transform: none; }
  .carte-auth { position: static; }
  .offre { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .barre { padding: 8px 12px; }
  .barre .btn-fantome { display: none; }
  .moi-pseudo { display: none; }
  .moi { padding: 3px; }
  .appli-grille { grid-template-columns: 1fr; }
  .colonne-gauche, .colonne-droite, .colonne-centre { display: none; border: 0; }
  .appli-grille[data-panneau="salons"] .colonne-gauche { display: block; }
  .appli-grille[data-panneau="chat"] .colonne-centre { display: flex; }
  .appli-grille[data-panneau="membres"] .colonne-droite { display: block; }
  .entete-centre { padding: 10px 14px; }
  .fil { padding: 10px 6px 6px; }
  .composeur { padding: 8px 10px 10px; }
  .nav-mobile {
    display: grid; grid-template-columns: repeat(3, 1fr); flex: none;
    border-top: 1px solid var(--ligne); background: var(--fond-2); padding-bottom: env(safe-area-inset-bottom);
  }
  .nav-mobile button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border: 0; background: none; color: var(--texte-3); font-size: 11.5px; font-weight: 600; }
  .nav-mobile button.actif { color: var(--corail); }
  .pastille-mobile:not(:empty) { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--corail); color: var(--sur-accent); font-size: 10px; line-height: 16px; }
  .message-actions { display: flex; position: static; background: none; border: 0; align-self: flex-start; }
  .message:hover { background: none; }
  .barre-accueil, main > section { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .grille { grid-template-columns: 1fr; }
  .deux-colonnes, .choix, .formules { grid-template-columns: 1fr; }
  .modale-corps { padding: 16px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition: none !important; }
  .apercu-message { opacity: 1; }
}
