/* ===================== Variables ===================== */
:root {
  /* accueil (cocoland) */
  --ink: #2d3748;
  --white: #ffffff;
  --gold-1: #f7dda0;
  --gold-2: #f0c24d;
  --gold-text: #e9c46a;
  --glass: rgba(255, 255, 255, 0.25);
  --glass-line: rgba(255, 255, 255, 0.4);
  --field: rgba(255, 255, 255, 0.95);
  /* tchat (coco classique) */
  --taupe: #b39b8b;
  --taupe-dark: #a68e7e;
  --paper: #f0f0f0;
  --lavender: #c5bde6;
  --lavender-row: #d6d0ee;
  --violet-row: #a9a4e0;
  --btn: #f3eca4;
  --btn-line: #3a3a3a;
  --panel: #c8c8c8;
  --h: #1f4fd6;
  --f: #d6338a;
  --blocked: #cc0000;
  --system: #6a6a6a;
  --mine-bg: #fffbe6;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--taupe); }
button { font: inherit; cursor: pointer; }

/* ===================== Accueil (cocoland) ===================== */
.login {
  min-height: 100%; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 15% 15%, rgba(240, 194, 77, 0.28), transparent 40%),
    linear-gradient(135deg, #a7aebb 0%, #8b95ad 50%, #6e7891 100%) fixed;
}
.login[hidden] { display: none; }
.glass {
  background: var(--glass); border: 2px solid var(--glass-line); border-radius: 24px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.18);
}
.btn-gold {
  border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: var(--ink); font-weight: 700; box-shadow: 0 0 22px rgba(240, 194, 77, 0.35);
  transition: transform .15s, opacity .15s;
}
.btn-gold:hover:not(:disabled) { transform: translateY(-1px); }
.btn-gold:disabled { opacity: .5; cursor: not-allowed; }
.form-input {
  font: inherit; color: var(--ink); background: var(--field); width: 100%;
  border: 2px solid var(--glass-line); border-radius: 12px; padding: 11px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.form-input:focus { outline: 2px solid var(--gold-2); outline-offset: 0; }

.hero { max-width: 560px; margin: 0 auto; padding: 48px 16px 32px; text-align: center; width: 100%; }
.hero-title { color: var(--white); font-size: clamp(30px, 6vw, 48px); line-height: 1.15; font-weight: 700; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); }
.hero-title span { color: var(--gold-text); }
.hero-sub { color: var(--white); margin: 14px 0 28px; font-weight: 500; }
.form-card { padding: 26px 22px 22px; text-align: center; border-top: 3px solid var(--gold-1); }
.form-title { color: var(--white); font-size: 20px; font-weight: 600; margin: 0 0 18px; }
#login-form { display: grid; gap: 8px; }
.form-label { display: block; color: var(--white); font-size: 13px; font-weight: 600; margin: 8px 0 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.genre-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.genre-tiles input { position: absolute; opacity: 0; pointer-events: none; }
.genre-tiles span {
  display: block; padding: 12px; border-radius: 12px; background: var(--field); cursor: pointer;
  border: 2px solid var(--glass-line); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); font-weight: 500;
}
.genre-tiles input:checked + span { border-color: var(--gold-2); background: #fff7e2; box-shadow: 0 0 0 3px rgba(240, 194, 77, 0.35); }
.check { display: flex; gap: 10px; align-items: flex-start; text-align: left; color: var(--white); font-size: 13px; margin-top: 6px; }
.check input { margin-top: 3px; accent-color: var(--gold-2); }
.error { color: #fff; background: rgba(212, 60, 60, .8); border-radius: 8px; margin: 4px 0 0; font-size: 14px; padding: 0 10px; }
.error:empty { display: none; }
#enter { padding: 14px; font-size: 16px; margin-top: 10px; }
.online-count { color: var(--white); font-size: 13px; margin: 14px 0 0; }
.features { max-width: 1000px; margin: 0 auto; padding: 24px 16px 48px; text-align: center; color: var(--white); }
.features h2 { font-size: 28px; margin: 0; }
.features > p { margin: 6px 0 28px; opacity: .9; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; text-align: left; }
.feature { padding: 22px; border-radius: 18px; }
.feature h3 { margin: 14px 0 6px; font-size: 18px; }
.feature p { margin: 0; font-size: 14px; opacity: .9; }
.f-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 22px; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); }
.footer { margin-top: auto; text-align: center; padding: 14px 16px 10px; color: var(--white); border-top: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.12); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer a { color: var(--white); text-decoration: none; font-size: 13px; font-weight: 600; border: 2px solid var(--glass-line); border-radius: 99px; padding: 5px 12px; }
.footer small { display: block; margin-top: 8px; font-size: 11px; }

/* ===================== Tchat (coco classique) ===================== */
.app {
  height: 100%; display: flex; flex-direction: column;
  font: 11px/1.35 Verdana, Geneva, Tahoma, sans-serif; color: #000;
  background: linear-gradient(var(--taupe-dark) 0 96px, var(--taupe) 96px);
}
.app[hidden] { display: none; }

.btn-coco {
  font: bold 11px "Courier New", Courier, monospace; background: var(--btn); color: #000;
  border: 1px solid var(--btn-line); border-radius: 2px; padding: 3px 8px; box-shadow: 1px 1px 0 #000;
}
.btn-coco:active { box-shadow: none; transform: translate(1px, 1px); }

.frame {
  flex: 1; min-height: 0; width: 100%; max-width: 1100px; margin: 0 auto; padding: 72px 8px 0;
  display: grid; grid-template-columns: 1fr 78px; grid-template-rows: auto 1fr;
  grid-template-areas: "tabs ." "main side";
}

/* --- onglets --- */
.tabs { grid-area: tabs; display: flex; align-items: flex-end; gap: 2px; padding: 0 8px; overflow-x: auto; }
.tab {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 11px "Courier New", Courier, monospace; font-weight: bold;
  background: #d9d9d9; color: #000; border: 1px solid #000; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 4px 10px;
}
.tab.active { background: var(--paper); }   /* plus de « top: 1px » : il faisait déborder #tabs d'1 px (barre verticale parasite) */
.tab .unread { background: var(--blocked); color: #fff; border-radius: 8px; padding: 0 5px; font-size: 10px; }
.tab .close { color: #777; margin-left: 2px; }
.tab .close:hover { color: #000; }
.tab.offline { color: #888; }

/* --- zone principale --- */
.main { grid-area: main; background: var(--paper); border: 1px solid #000; min-height: 0; overflow: hidden; display: flex; }
.view { flex: 1; min-height: 0; display: flex; }
.view[hidden] { display: none; }

/* Accueil : salons + connectés */
.accueil { position: relative; padding: 18px 20px; gap: 24px; overflow: auto; }
.salons-box { width: 232px; flex: none; background: var(--lavender); border: 1px solid #333; padding: 4px 4px 8px; align-self: flex-start; }
.salons-box h3 { margin: 0 0 6px 4px; font-size: 11px; }
#salons li { display: flex; align-items: center; gap: 4px; margin: 0 0 1px 18px; padding: 1px 6px; background: var(--lavender-row); cursor: pointer; font-weight: bold; }
#salons li:hover { background: #ece8fb; }
#salons li.joined { background: #f4f1ff; outline: 1px solid #6b5bb5; }
#salons li .name { flex: 1; }
#salons li .count { min-width: 20px; text-align: right; }
#salons li.full { color: var(--blocked); }

.users-box { flex: 1; min-width: 0; align-self: flex-start; }
.users-head { display: grid; grid-template-columns: 1fr 1fr 1fr; font-weight: bold; padding: 2px 10px; }
.users-head span { cursor: pointer; }
#users li { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 2px 10px; margin-bottom: 2px; background: var(--violet-row); border: 1px solid #8d88c7; cursor: pointer; }
#users li:hover { background: #bfbbe9; }
#users li.ignored, #chat-users li.ignored { opacity: .45; }
#users .pseudo { font-weight: bold; }
#users .age { font-weight: bold; }
#users .badge { font-size: 9px; background: var(--blocked); color: #fff; padding: 0 3px; margin-left: 4px; border-radius: 2px; }
.g-H { color: var(--h); }
.g-F { color: var(--f); }

/* Panneaux Filtre / Design (à droite, sur la vue Accueil) */
.side-panel {
  position: absolute; right: 20px; top: 300px; width: 212px; background: var(--panel); border: 1px solid #555;
  padding: 8px; font: 11px "Courier New", Courier, monospace; font-weight: bold; display: grid; gap: 6px;
}
.side-panel[hidden] { display: none; }
.side-panel h4 { margin: 4px 0 0; font-size: 11px; background: #ddd; padding: 2px 4px; }
.side-panel label { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.side-panel input[type=number] { width: 44px; font: inherit; }
.side-panel input[type=text], .side-panel input:not([type]), .side-panel select { font: inherit; width: 100%; }
.side-panel .btn-coco { justify-self: end; }
.avatar-zone { height: 90px; display: grid; place-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #555; background: #fff; display: grid; place-items: center; font-size: 26px; }
.info-block { background: #d6d6d6; padding: 4px 6px; }
.toggle { font: inherit; background: transparent; border: 0; color: var(--blocked); padding: 0; text-decoration: underline; }
.toggle.on { color: #1a7f1a; }
.palette { display: grid; grid-template-columns: repeat(9, 16px); gap: 2px; margin: 4px 0; }
.swatch { width: 16px; height: 16px; border: 1px solid #333; cursor: pointer; }
.swatch.sel { outline: 2px solid #000; outline-offset: 1px; }
.couleur-label { text-decoration: underline; }

/* Salon / MP */
.chat { gap: 0; }
.messages { flex: 1; min-width: 0; overflow-y: auto; padding: 8px 12px; background: #fff; font-size: 12px; }
.msg { padding: 2px 4px; word-wrap: break-word; }
.msg.mine { background: var(--mine-bg); }
/* MASTER : message qui cite mon pseudo, accusés de remise des MP (✓ envoyé, ✓✓ remis), onglet cité (@). */
.msg.mention { background: #fff3b0; box-shadow: inset 3px 0 0 #d9a400; }
.msg .accuse { margin-left: 6px; font-size: 10px; color: #8a8172; }
.msg .accuse.remis { color: #2f7d32; }
.tab .tab-mention { margin-left: 3px; font-weight: bold; color: #c2185b; }
.msg .time { color: #888; font-size: 10px; margin-right: 5px; }
.msg .from { font-weight: bold; cursor: pointer; }
/* Salon façon coco (06/11/2026) : bouclier des modérateurs du salon (montré par Blue Classic) ; mot choisi en exposant. */
.msg .from .bouclier-salon { display: none; }
.msg .from .exposant { font-size: 9px; font-weight: normal; line-height: 0; vertical-align: super; margin-left: 1px; color: #000; }
.msg.system { color: var(--system); font-style: italic; font-size: 11px; }
.msg.notice { color: var(--blocked); font-weight: bold; font-size: 11px; }
.empty { color: #888; text-align: center; margin-top: 20%; font-style: italic; }
.chat-side { width: 190px; flex: none; border-left: 1px solid #999; background: var(--paper); overflow-y: auto; padding: 6px; }
.chat-side-title { font-weight: bold; margin-bottom: 6px; }
#chat-users li { padding: 1px 6px; margin-bottom: 2px; background: var(--violet-row); border: 1px solid #8d88c7; cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; }
#chat-users li small { font-weight: normal; }

/* --- boutons de droite --- */
.side-buttons { grid-area: side; display: flex; flex-direction: column; align-items: center; gap: 48px; padding-top: 10px; }

/* --- barre du bas --- */
.band-bottom { flex: none; position: relative; border-top: 1px solid #888; background: var(--taupe); padding: 10px 16px 8px; }
.typing { position: absolute; top: -16px; left: 16px; font-size: 10px; color: #333; font-style: italic; }
.send { display: flex; align-items: center; gap: 10px; max-width: 1100px; margin: 0 auto; }
.target { font: bold 11px "Courier New", monospace; white-space: nowrap; min-width: 90px; }
#input { flex: 1; min-width: 0; font: 13px Verdana, sans-serif; padding: 7px 8px; border: 1px solid #555; border-radius: 3px; background: #fff; }
#input:disabled { background: #ddd; }
.smileys { display: none; flex-wrap: wrap; gap: 2px; max-width: 1100px; margin: 0 auto 6px; }
.smileys.open { display: flex; }
.smileys button { background: #fff; border: 1px solid #999; font-size: 18px; padding: 1px 4px; }
.mini-footer { flex: none; text-align: right; padding: 2px 10px 4px; font-size: 9px; }
.mini-footer a { color: #000; text-decoration: none; margin-left: 14px; }

/* --- menu contextuel & toast --- */
.menu { position: fixed; z-index: 20; background: #fff; border: 1px solid #000; box-shadow: 2px 2px 0 #000; padding: 4px; min-width: 180px; font: 11px Verdana, sans-serif; }
.menu .head { padding: 4px 6px 6px; border-bottom: 1px solid #ccc; margin-bottom: 3px; }
.menu .head small { display: block; color: #555; }
.menu button { display: block; width: 100%; text-align: left; background: transparent; border: 0; font: inherit; padding: 5px 6px; }
.menu button:hover { background: var(--lavender-row); }
.menu button.danger { color: var(--blocked); }
.toast { position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%); z-index: 30; background: #000; color: #fff; padding: 8px 14px; border-radius: 4px; font: 12px Verdana, sans-serif; max-width: calc(100% - 32px); }

/* --- mobile --- */
@media (max-width: 760px) {
  .app { background: var(--taupe); }
  .frame { padding: 6px 4px 0; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; grid-template-areas: "side" "tabs" "main"; }
  .side-buttons { flex-direction: row; justify-content: center; gap: 6px; padding: 0 0 6px; flex-wrap: wrap; }
  .accueil { flex-direction: column; padding: 10px; gap: 12px; }
  .salons-box { width: 100%; }
  .side-panel { position: static; width: 100%; }
  .chat-side { display: none; }
  .target { display: none; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row > div:last-child { grid-column: 1 / -1; }
}

/* --- utilisateur dont la connexion est momentanément coupée --- */
#users li.away, #chat-users li.away { opacity: .55; font-style: italic; }

/* --- phase B : salons privés, favoris, outils de salon, confort grand écran --- */
.btn-coco.small { font-size: 10px; padding: 2px 6px; }
.salons-box > .btn-coco { margin: 8px 0 2px 18px; }
#salons li .star { color: #8a7d2a; width: 12px; text-align: center; font-weight: normal; }
#salons li .star.on { color: #c58a00; }
#salons li.prive .name { color: #5a3e8a; }
.tag { font-size: 9px; font-weight: normal; background: #fff; border: 1px solid #8d88c7; border-radius: 3px; padding: 0 3px; margin-left: 4px; vertical-align: 1px; }
.tag.mine { background: var(--btn); border-color: #000; }
.chat-side-tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 6px; }
.chat-side-tools small { width: 100%; color: #444; }
.side-panel input[type=password], .side-panel input[type=text] { font: inherit; width: 100%; }
.side-panel small { font-weight: normal; color: #333; }
#panel-creer { top: 60px; }
@media (min-width: 1500px) {
  .frame { max-width: 1400px; }
  .salons-box { width: 270px; }
  .chat-side { width: 230px; }
  .messages { font-size: 13px; padding: 10px 16px; }
  .tab { font-size: 12px; }
}
#chat-users li { flex-wrap: wrap; gap: 0 6px; }
#chat-users li > span { display: inline-flex; align-items: center; }

/* --- avatars --- */
.avatar-zone { height: auto; display: grid; justify-items: center; gap: 6px; padding: 6px 0; }
.avatar-zone small { font-weight: normal; font-size: 10px; }
.avatar-actions { display: flex; gap: 4px; }
.avatar-actions label.btn-coco { cursor: pointer; }
.avatar { overflow: hidden; }
.avatar img, img.avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
img.avatar { border-radius: 50%; border: 2px solid #555; background: #fff; }
.avatar.big { width: 96px; height: 96px; border-radius: 50%; border: 2px solid #555; background: #fff; display: grid; place-items: center; font-size: 44px; margin: 4px auto; }
.avatar.mini { float: left; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #555; background: #fff; display: grid; place-items: center; font-size: 18px; margin-right: 8px; }

/* ===================== Phase C : accueil, profils, thèmes ===================== */

/* --- thèmes rétro (couleurs redéfinies sur l'application) --- */
.app[data-theme="ocean"]  { --taupe: #7f9bb3; --taupe-dark: #6b879f; --paper: #eef3f7; --lavender: #a9c6e3; --lavender-row: #c9ddf0; --violet-row: #93b5da; --btn: #f3eca4; }
.app[data-theme="foret"]  { --taupe: #8fa37f; --taupe-dark: #7b8f6b; --paper: #f1f4ec; --lavender: #b9d0a5; --lavender-row: #d4e4c6; --violet-row: #a3c48c; --btn: #f6e7a1; }
.app[data-theme="bonbon"] { --taupe: #c9a3b8; --taupe-dark: #b98fa6; --paper: #fbf1f6; --lavender: #e6b9d6; --lavender-row: #f2d5e7; --violet-row: #dda6c9; --btn: #fff2a8; }
.app[data-theme="minuit"] { --taupe: #3b3f4f; --taupe-dark: #2c2f3c; --paper: #d9dbe4; --lavender: #8e8fc0; --lavender-row: #b3b4d8; --violet-row: #8384bd; --btn: #e9d97c; }
.app[data-theme="minuit"] .mini-footer a, .app[data-theme="minuit"] .target, .app[data-theme="minuit"] .typing { color: #e8e8f0; }
.app[data-theme="minuit"] .messages { background: #f4f4f8; }

/* --- police et taille du texte --- */
.app { font-family: var(--police, Verdana, Geneva, Tahoma, sans-serif); }
.app[data-police="arial"]   { --police: Arial, Helvetica, sans-serif; }
.app[data-police="comic"]   { --police: "Comic Sans MS", "Comic Sans", cursive; }
.app[data-police="courier"] { --police: "Courier New", Courier, monospace; }
.app[data-police="georgia"] { --police: Georgia, "Times New Roman", serif; }
.app[data-taille="petit"] .messages { font-size: 11px; }
.app[data-taille="grand"] .messages { font-size: 15px; }
.app[data-taille="grand"] #users li, .app[data-taille="grand"] #salons li { font-size: 13px; }

/* --- accueil : recherche, catégories, info --- */
.salon-search { width: calc(100% - 18px); margin: 0 0 6px 18px; font: 11px Verdana, sans-serif; padding: 3px 6px; border: 1px solid #555; border-radius: 2px; }
#salons li.cat { margin: 8px 0 2px 4px; padding: 1px 4px; background: transparent; cursor: default; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #3d3470; border-bottom: 1px solid #8d88c7; }
#salons li.cat:hover { background: transparent; }
#salons li.cat.vide { text-transform: none; letter-spacing: 0; border: 0; font-style: italic; }
.accueil-info { font-weight: bold; padding: 2px 10px 8px; color: #3d3470; }

/* --- statuts, amis, annonces --- */
.statut { font-size: 9px; font-weight: normal; padding: 0 3px; margin-left: 4px; border-radius: 2px; border: 1px solid #777; background: #fff; color: #555; }
.statut.occupe { color: #b04a00; border-color: #b04a00; }
.statut.absent { color: #777; font-style: italic; }
.ami { color: #d6338a; margin-right: 3px; }
.favori { color: #c58a00; margin-right: 3px; }
.msg.annonce { background: #fff3c4; border: 1px solid #c9a227; color: #6a4f00; font-weight: bold; margin: 3px 0; }
.btn-coco.amiz { background: #f2b33d; }

.bandeau { position: relative; z-index: 5; margin: 6px auto 0; max-width: 1100px; width: calc(100% - 16px); display: flex; align-items: center; gap: 10px; padding: 5px 10px; border: 1px solid #000; box-shadow: 1px 1px 0 #000; font-weight: bold; }
.bandeau[hidden] { display: none; }
.bandeau.annonce { background: #fff3c4; color: #6a4f00; }
.bandeau.bienvenue { background: var(--lavender-row); color: #2a2450; }
.bandeau span { flex: 1; }
.bandeau .close { background: transparent; border: 0; cursor: pointer; font-size: 12px; }

/* --- panneau Design : profil --- */
.form-profil { display: grid; gap: 4px; }
.form-profil label { display: grid; gap: 2px; }
.form-profil label:has(input[type=checkbox]) { display: flex; align-items: center; gap: 4px; font-weight: normal; }
.form-profil textarea { font: 11px Verdana, sans-serif; resize: vertical; width: 100%; }
#panel-design { max-height: calc(100% - 40px); overflow-y: auto; top: 20px; }

/* --- panneau Amiz --- */
#panel-amis { top: 60px; max-height: calc(100% - 80px); overflow-y: auto; }
.amis-liste li { display: flex; align-items: center; gap: 5px; padding: 2px 4px; background: #fff; border: 1px solid #aaa; margin-bottom: 2px; font-family: Verdana, sans-serif; }
.amis-liste li.vide { font-style: italic; font-weight: normal; background: transparent; border: 0; }
.amis-liste .nom { flex: 1; cursor: pointer; }
.amis-liste .pastille { color: #1a9a1a; }
.amis-liste .hors-ligne .pastille, .amis-liste .hors-ligne .nom { color: #888; }
.amis-liste small { font-weight: normal; color: #555; }
.amis-liste .close { cursor: pointer; color: #777; }

/* --- fiche de profil --- */
.profil-box { position: fixed; z-index: 25; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 340px; max-width: calc(100% - 32px); background: var(--paper, #f0f0f0); border: 1px solid #000; box-shadow: 3px 3px 0 #000; padding: 12px; font: 12px Verdana, sans-serif; }
.profil-box[hidden] { display: none; }
.profil-head { display: flex; gap: 12px; align-items: center; }
.profil-head .avatar.big { margin: 0; flex: none; }
.profil-head strong { font-size: 15px; }
.profil-box .presentation { background: #fff; border: 1px solid #aaa; padding: 6px; white-space: pre-wrap; word-wrap: break-word; min-height: 2.5em; }
.profil-box .salons { color: #555; font-size: 11px; }
.profil-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* Panneau latéral ouvert (Filtre, Design, Amiz, Créer) : la liste des connectés lui laisse la place. */
@media (min-width: 761px) {
  .accueil:has(.side-panel:not([hidden])) .users-box { margin-right: 236px; }
}
.profil-box .depuis { color: #555; font-size: 11px; }

/* ===================== Phase communautaire : amis, favoris, membres ===================== */
.amis-liste { margin: 2px 0; padding: 0; }
.amis-liste li .btn-coco.small { padding: 0 4px; }
#panel-amis .info-block { padding: 2px 4px 4px; }
#panel-amis .info-block h4 { margin-top: 0; }
.menu button:disabled { color: #888; cursor: default; background: transparent; }
.bandeau.ami { background: var(--lavender-row); color: #2a2450; }
.chat-membres { margin-top: 8px; background: var(--lavender); border: 1px solid #333; padding: 4px; }
.chat-membres[hidden] { display: none; }
.chat-membres h4 { margin: 0 0 4px; font-size: 11px; }
.chat-membres .amis-liste li { flex-wrap: wrap; }

/* =====================================================================
   Référence visuelle Cocoland (voir docs/AUDIT-VISUEL.md)
   Couleurs relevées sur la capture ; disposition pour ordinateur 1920 × 1080.
   ===================================================================== */
:root {
  --taupe: #c4ada5;        /* fond rosé autour de la zone centrale */
  --taupe-dark: #ad9483;   /* bandeau du haut et barre du bas */
  --paper: #eeeeee;        /* zone centrale */
  --lavender: #bdb6e6;     /* liste des salons */
  --lavender-row: #cdc8ee;
  --violet-row: #a8a3e3;   /* lignes des connectés */
  --panel: #c0c0c0;        /* panneaux gris (Design…) */
}
.app[data-theme="classique"], .app:not([data-theme]) { background: linear-gradient(var(--taupe-dark) 0 96px, var(--taupe) 96px); }
.band-bottom { background: var(--taupe-dark); border-top: 1px solid #8a7466; }
.mini-footer { background: var(--taupe-dark); }

/* Boutons de la colonne de droite : petits, Courier gras, une couleur par bouton. */
.btn-coco.rail { width: 58px; padding: 1px 0; text-align: center; font-size: 11px; box-shadow: 1px 1px 0 #444; border-radius: 0; }
.btn-coco.rail.accueil { background: #f2f2f2; }
.btn-coco.rail.filtre  { background: #f2c4e0; }
.btn-coco.rail.filtre::before { content: '● '; font-size: 8px; vertical-align: 1px; }
.btn-coco.rail.design  { background: #f3eca4; }
.btn-coco.rail.premium, .btn-coco.premium { background: #efe2bf; }
.btn-coco.rail.amiz    { background: #f2b033; }

/* Liste des salons : lignes très serrées, Verdana gras 11 px, nombre à droite. */
.salons-box h3 { font-weight: normal; margin: 2px 0 4px 4px; font-size: 11px; }
.salons-box h3 + ul { margin-bottom: 6px; }
#salons li, #salons-membres li, #salons-recents li {
  display: flex; align-items: center; gap: 3px; margin: 0 0 1px 4px; padding: 0 4px; line-height: 13px;
  background: var(--lavender-row); cursor: pointer; font: bold 11px Verdana, Geneva, sans-serif;
}
/* Alternance de deux violets, comme la liste de Coco. */
#salons li:nth-child(even), #salons-membres li:nth-child(even), #salons-recents li:nth-child(even) { background: var(--lavender-row-2, #bfb5e4); }
#salons li:hover, #salons-membres li:hover, #salons-recents li:hover { background: #ece8fb; }
.salons-box li .bloque-txt { color: #d00000; font: bold 10px Verdana, Geneva, sans-serif; flex: none; }
.salons-box li.bloque { cursor: not-allowed; }
.salons-box li .hp { display: inline-block; width: 11px; height: 9px; margin-left: 4px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath d='M0 3h2l3-3v9L2 6H0z'/%3E%3Cpath d='M6.5 2.6q1.4 1.9 0 3.8M8.2 1q2.9 3.5 0 7' stroke='%23000' stroke-width='1.1' fill='none'/%3E%3C/svg%3E") no-repeat center / contain; }
.salons-box li .proprio { font-weight: normal; color: #3a2f6b; font-size: 10px; }
#salons li.joined, #salons-membres li.joined, #salons-recents li.joined { background: #f4f1ff; outline: 1px solid #6b5bb5; }
#salons-membres li.prive .name { color: #5a3e8a; }
#salons-recents li { font-weight: normal; }
.salons-box li .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* C18.2 : exemplaire « Nom--N » : la base s'abrège, le numéro reste visible. */
.salons-box li .name.exemplaire { display: flex; align-items: baseline; min-width: 0; }
.salons-box li .name.exemplaire .nom-ex { display: flex; min-width: 0; flex: 0 1 auto; }
.salons-box li .name.exemplaire .base { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.salons-box li .name.exemplaire .num, .salons-box li .name.exemplaire > small { flex: none; }
.salons-box li .count { min-width: 16px; text-align: right; }
.salons-box li .star { width: 12px; font-weight: normal; color: #8a7d2a; text-align: center; flex: none; }
.salons-box li .star.on { color: #c58a00; }
.salons-box li.vide { background: transparent; font-weight: normal; font-style: italic; cursor: default; }
.salons-box .tag { font-size: 8px; padding: 0 2px; }
.salon-search { width: calc(100% - 8px); margin: 0 0 4px 4px; font: 10px Verdana, sans-serif; padding: 1px 4px; height: 16px; border: 1px solid #7a74a8; border-radius: 0; background: #f6f5fd; }
.salons-box > .btn-coco { margin: 6px 0 2px 4px; }

/* Connectés : tableau étroit, Courier, lignes violettes à bord fin. */
.users-head span { cursor: pointer; }
#users li { border-radius: 0; }
#users .pseudo, #users .age, #users .ville { font: bold 11px "Courier New", Courier, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#users .ville, #users .age { font-weight: normal; }
.accueil-info { font: 10px Verdana, sans-serif; color: #555; padding: 4px 2px 0; }

/* Panneaux gris (Design, Filtre, Premium, Amiz, Créer) : sobres, bord fin, Courier. */
.side-panel { background: var(--panel); border: 1px solid #555; box-shadow: none; }
.side-panel h4 small { font-weight: normal; }
.side-panel details summary { cursor: pointer; font-weight: bold; }
.side-panel details[open] summary { margin-bottom: 3px; }
.bandeau { box-shadow: none; }

@media (min-width: 761px) {
  /* Zone centrale ~945 px + colonne de boutons, centrées comme sur la référence. */
  .frame { max-width: 1045px; padding: 72px 0 0; grid-template-columns: 1fr 100px; }
  .main { border: 1px solid #6e6e6e; }
  .side-buttons { gap: 0; padding: 10px 0 24px; justify-content: flex-start; align-items: center; }
  .side-buttons .rail { margin-bottom: 96px; }
  .side-buttons .rail.premium { margin-top: auto; }
  .side-buttons .rail.amiz { margin-bottom: 0; }

  /* Accueil : salons à gauche, tableau des connectés en haut à droite, le centre reste vide. */
  .accueil { display: block; padding: 18px 20px; }
  .salons-box { float: left; width: 222px; margin-left: 10px; padding: 3px 3px 6px; }
  .users-box { float: right; width: 270px; margin: 0 6px 0 0 !important; max-height: calc(100% - 4px); overflow-y: auto; display: block; }
  .users-head { grid-template-columns: 38% 30% 32%; padding: 0 2px 3px; font: bold 11px Verdana, sans-serif; }
  #users li { grid-template-columns: 52% 14% 34%; padding: 1px 6px; margin-bottom: 1px; border: 1px solid #7d78c0; }
  #users li.moi { background: #9a9ae6; border-color: #3d3d8a; }

  /* Panneaux : rectangle gris d'environ 210 px, posé sur la droite vers le milieu de la hauteur. */
  .side-panel { right: 4px; top: 300px; width: 214px; max-height: calc(100% - 310px); overflow-y: auto; }
  #panel-creer, #panel-amis, #panel-premium, #panel-filtre { top: 190px; max-height: calc(100% - 200px); }

  /* Barre du bas : bouton Premium à gauche, saisie très longue, Smiley lavande. */
  .band-bottom { padding: 12px 16px 10px; }
  .send { max-width: 1045px; gap: 18px; }
  .target { display: none; }
  #input { height: 34px; font-size: 13px; border: 1px solid #555; border-radius: 0; }
  .mini-footer a { margin-left: 18px; }
}
.salons-box ul { padding-left: 14px; margin: 0; list-style: none; }
@media (min-width: 761px) {
  #panel-design { top: 330px; max-height: calc(100% - 340px); }
}
#chat-users { padding-left: 0; margin: 0; list-style: none; }
#chat-users li { border-radius: 0; font: bold 11px "Courier New", Courier, monospace; }
#chat-users li small { font-family: "Courier New", Courier, monospace; }
#users { padding-left: 0; margin: 0; list-style: none; }
.users-head { gap: 6px; }

/* =====================================================================
   M2 : entrée (genre facultatif, documents), genre non précisé, salons, appels
   ===================================================================== */

/* --- page d'entrée --- */
.genre-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.genre-tiles label { display: flex; }
.genre-tiles span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 12px 6px; }
.form-label small { font-weight: 400; opacity: .85; }
.form-hint { color: var(--white); font-size: 12px; text-align: left; opacity: .9; margin-top: -2px; }
.check a, .doc-link { color: var(--gold-text); font-weight: 700; }
.doc-fond { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; background: rgba(40, 45, 60, 0.55); }
.doc-fond[hidden] { display: none; }
.doc-fenetre {
  width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  padding: 20px 22px; border-top: 3px solid var(--gold-1); background: rgba(110, 120, 145, 0.6);
}
.doc-contenu {
  flex: 1; min-height: 120px; max-height: 62vh; overflow-y: auto; text-align: left;
  background: var(--field); color: var(--ink); border: 2px solid var(--glass-line); border-radius: 12px;
  padding: 14px 18px; font-size: 14px; line-height: 1.55;
}
.doc-contenu:focus { outline: 2px solid var(--gold-2); }
.doc-contenu h1 { font-size: 18px; margin: 0 0 4px; }
.doc-contenu h2 { font-size: 15px; margin: 16px 0 6px; }
.doc-contenu p, .doc-contenu li { margin: 4px 0; }
.doc-contenu ul { padding-left: 20px; }
.doc-contenu small { color: #555; }
.doc-contenu table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 6px 0; }
.doc-contenu th, .doc-contenu td { border: 1px solid #c9c9c9; padding: 3px 6px; text-align: left; vertical-align: top; }
.doc-aide { color: var(--white); font-size: 13px; margin: 10px 0 0; min-height: 1.2em; }
.doc-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.doc-actions .btn-gold { padding: 10px 18px; }
.doc-fermer { border: 2px solid var(--glass-line); border-radius: 12px; background: transparent; color: var(--white); padding: 10px 18px; font-weight: 600; }

/* --- liste des connectés : pas de barre de défilement horizontale (en-tête « Genre : Non précisé ») --- */
.users-box { overflow-x: hidden; }

/* --- genre non précisé : couleur neutre --- */
.g-X, .g- { color: #666; }

/* --- description d'un salon, sous le titre de la colonne de droite --- */
.chat-side-desc { color: #666; font-size: 10px; font-weight: normal; margin: -4px 0 6px; word-wrap: break-word; }
.chat-side-desc[hidden] { display: none; }

/* --- appels audio/vidéo : petites fenêtres grises en bas à droite, au-dessus de la saisie --- */
.media-demandes { position: fixed; right: 16px; bottom: 92px; z-index: 23; display: grid; gap: 6px; width: 250px; }
.media-demandes:empty { display: none; }
.media-demande, .appel { background: var(--panel); border: 1px solid #555; font: bold 11px "Courier New", Courier, monospace; color: #000; }
.media-demande p { margin: 6px 6px 4px; font-weight: normal; }
.appel { position: fixed; right: 16px; bottom: 92px; z-index: 22; width: 320px; padding-bottom: 6px; }
.appel[hidden] { display: none; }
.appel-titre { background: #ddd; padding: 2px 6px; border-bottom: 1px solid #888; }
.appel .appel-titre { cursor: move; user-select: none; touch-action: none; }
.appel-video { position: relative; margin: 6px 6px 0; aspect-ratio: 4 / 3; background: #000; border: 1px solid #555; }
.appel-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.appel-video .appel-local { position: absolute; right: 4px; bottom: 4px; width: 30%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #fff; background: #222; }
.appel-audio { margin: 6px 6px 0; padding: 6px; background: #d6d6d6; font-weight: normal; }
.appel-audio audio { display: none; }
.appel-etat { display: block; margin: 4px 6px 0; font-weight: normal; color: #333; min-height: 1.3em; }
.appel-boutons { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 6px 0; }
.appel-boutons .btn-coco.off { background: #e0e0e0; color: var(--blocked); }
.appel-boutons .raccrocher { background: #f2a3a3; }

@media (max-width: 760px) {
  .media-demandes, .appel { right: 8px; left: 8px; width: auto; bottom: 76px; }
  .appel-video { max-height: 40vh; }
  .genre-tiles span { font-size: 14px; flex-wrap: wrap; text-align: center; }
}

/* Bandeau de bienvenue / annonce : posé dans le bandeau taupe du haut, sans décaler l'interface. */
@media (min-width: 761px) {
  .app { position: relative; }
  .bandeau { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); margin: 0; width: min(1045px, calc(100% - 32px)); }
}

/* =====================================================================
   M8 : photos en messages privés (bouton, prévisualisation, fil, affichage)
   ===================================================================== */
.btn-coco.photo { background: #d4e6c8; }
.btn-coco.photo:disabled { color: #888; cursor: default; }
.btn-coco.danger { color: var(--blocked); }

/* Prévisualisation : petite fenêtre grise posée au-dessus de la barre de saisie, sans la décaler. */
.photo-envoi {
  position: absolute; bottom: calc(100% + 6px); left: max(16px, calc(50% - 522px)); z-index: 15; width: 360px;
  background: var(--panel); border: 1px solid #555; font: bold 11px "Courier New", Courier, monospace; color: #000;
}
.photo-envoi[hidden] { display: none; }
.photo-envoi-titre, .photo-vue-titre { background: #ddd; padding: 2px 6px; border-bottom: 1px solid #888; }
.photo-envoi-corps { display: flex; gap: 8px; padding: 6px; }
.photo-envoi-vignette { flex: none; width: 96px; height: 96px; display: grid; place-items: center; background: #fff; border: 1px solid #888; overflow: hidden; }
.photo-envoi-vignette img { display: block; max-width: 100%; max-height: 100%; }
.photo-envoi-texte { flex: 1; min-width: 0; display: grid; gap: 3px; align-content: start; font-weight: normal; }
.photo-envoi-info { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
.photo-envoi-etat:empty { display: none; }
.photo-envoi-etat.erreur { color: var(--blocked); font-weight: bold; }
.photo-envoi-boutons { display: flex; gap: 4px; margin-top: 2px; }
.photo-envoi .btn-coco:disabled { color: #888; cursor: default; box-shadow: none; }
.photo-barre { height: 10px; background: #fff; border: 1px solid #555; }
.photo-barre[hidden] { display: none; }
.photo-barre span { display: block; height: 100%; width: 0; background: #6b5bb5; transition: width .2s; }

/* Lignes « photo » du fil : texte simple, petits boutons, miniature à bord fin. */
.msg.photo .photo-texte { margin-right: 6px; }
.msg.photo .photo-actions { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.msg.photo > .btn-coco.small { margin-left: 6px; vertical-align: middle; }
.photo-lien { font: inherit; background: transparent; border: 0; padding: 0; color: #1f4fd6; text-decoration: underline; cursor: pointer; }
.photo-mini {
  display: block; margin: 3px 0 2px 38px; padding: 2px; min-width: 60px; min-height: 30px; max-width: calc(100% - 38px);
  background: #fff; border: 1px solid #888; border-radius: 0; cursor: zoom-in; font: 10px Verdana, sans-serif; color: #666; text-align: left;
}
.photo-mini img { display: block; max-width: 100%; height: auto; }

/* Affichage en grand : fenêtre grise façon Coco, fermable (✕, Fermer, Échap, clic à côté). */
.photo-fond { position: fixed; inset: 0; z-index: 28; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.35); }
.photo-fond[hidden] { display: none; }
.photo-vue {
  display: flex; flex-direction: column; max-width: min(1000px, 100%); max-height: calc(100vh - 32px);
  background: var(--panel); border: 1px solid #555; box-shadow: 3px 3px 0 #000; font: bold 11px "Courier New", Courier, monospace; color: #000;
}
.photo-vue-titre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.photo-vue-titre .close { background: transparent; border: 0; padding: 0 2px; font-size: 12px; }
.photo-vue-cadre { margin: 6px; min-width: 220px; min-height: 120px; display: grid; place-items: center; background: #d6d6d6; border: 1px solid #888; overflow: auto; }
.photo-vue-cadre img { display: block; max-width: min(960px, calc(100vw - 60px)); max-height: calc(100vh - 130px); }
.photo-vue-etat { margin: 8px; font-weight: normal; }
.photo-vue-boutons { display: flex; align-items: center; gap: 4px; padding: 0 6px 6px; }
.photo-vue-boutons small { flex: 1; font-weight: normal; color: #333; }

@media (max-width: 760px) {
  .photo-envoi { left: 8px; right: 8px; width: auto; }
  .photo-mini { margin-left: 0; max-width: 100%; }
}

/* =====================================================================
   M9 : salons vocaux (encadré de la colonne de droite, marqueur de la liste)
   ===================================================================== */
.side-panel label[hidden] { display: none; }
.tab .tab-vocal { font-size: 9px; line-height: 1; height: 1em; overflow: hidden; }
.chat-vocal { margin: 0 0 6px; background: var(--panel); border: 1px solid #555; font: bold 11px "Courier New", Courier, monospace; color: #000; }
.chat-vocal[hidden] { display: none; }
.chat-vocal h4 { margin: 0; padding: 1px 4px; font-size: 11px; background: #ddd; border-bottom: 1px solid #888; }
.chat-vocal ul { list-style: none; margin: 3px 4px 0; padding: 0; }
.chat-vocal li { display: flex; align-items: center; gap: 4px; padding: 0 4px; margin-bottom: 1px; background: #fff; border: 1px solid #aaa; cursor: pointer; }
.chat-vocal li .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-vocal li .micro { font-size: 10px; flex: none; }
.chat-vocal li small { font-weight: normal; color: #555; flex: none; }
.chat-vocal li.parle { background: #dcf2d2; border-color: #1a8a1a; box-shadow: inset 3px 0 0 #1a8a1a; }
.chat-vocal li.attente .nom { font-style: italic; opacity: .7; }
.chat-vocal li.echec .nom { text-decoration: line-through; opacity: .7; }   /* C17 : liaison audio perdue */
.chat-vocal li .vocal-reessayer { margin-left: 4px; padding: 0 4px; font-size: 10px; line-height: 14px; }
.chat-vocal li.ignored { opacity: .45; }
.chat-vocal .vide { margin: 3px 4px 0; font-weight: normal; font-style: italic; }
.chat-vocal-boutons { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px; }
.chat-vocal .btn-coco.off { background: #e0e0e0; color: var(--blocked); }
.chat-vocal .btn-coco.quitter { background: #f2a3a3; }
.chat-vocal .btn-coco:disabled { color: #888; cursor: default; box-shadow: none; }

/* Mobile : la colonne de droite est masquée ; seul l'encadré vocal reste visible, sous les messages. */
@media (max-width: 760px) {
  .chat:has(#chat-vocal:not([hidden])) { flex-direction: column; }
  .chat:has(#chat-vocal:not([hidden])) .chat-side { display: block; width: auto; max-height: 40%; border-left: 0; border-top: 1px solid #999; padding: 4px; }
  .chat:has(#chat-vocal:not([hidden])) .chat-side > :not(#chat-vocal) { display: none; }
  .chat-vocal { margin: 0; }
}

/* =====================================================================
   M10 : fidélité Coco Classic (onglets, notifications, smileys, couleur du pseudo,
   boutons de la barre de saisie, indicateurs de la liste)
   ===================================================================== */

/* --- onglets : barre compacte, défilement horizontal seulement --- */
.tabs {
  min-width: 0; overflow-x: auto; overflow-y: hidden; gap: 1px; padding: 0 4px; scrollbar-width: thin;
  /* trait de base dessiné dans la barre (et non par .main) : l'onglet actif le recouvre sans rien faire déborder */
  background: linear-gradient(to top, #6e6e6e 1px, transparent 1px);
}
.main { border-top: 0; }
.tab {
  flex: none; max-width: 170px; gap: 4px; margin-bottom: 1px; padding: 2px 6px;
  font: bold 11px/14px "Courier New", Courier, monospace;
  background: #d6d6d6; color: #333; border: 1px solid #7a7a7a; border-bottom: 0; border-radius: 2px 2px 0 0;
}
.tab:hover { background: #e4e4e4; }
.tab.active { margin-bottom: 0; padding-bottom: 4px; background: var(--paper); color: #000; border-color: #444; }
.tab .titre { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tab .puce { font-size: 8px; }
.tab .close { flex: none; width: 12px; height: 12px; margin-left: 1px; font: bold 12px/11px Verdana, Geneva, sans-serif; text-align: center; color: #777; }
.tab .close:hover { color: #fff; background: #8a8a8a; }
.tab.offline .titre { font-style: italic; }

/* Nouveaux messages : compteur (n) en gras, onglet légèrement jaune, bref clignotement doux. */
.tab .unread { background: none; color: #a00000; padding: 0; border-radius: 0; font-size: 11px; }
.tab.nonlu { background: #efe6b6; color: #000; }
.tab.clignote { animation: onglet-clignote 1.2s ease-in-out 4; }
@keyframes onglet-clignote { 50% { background: #f4d873; } }
@media (prefers-reduced-motion: reduce) { .tab.clignote { animation: none; } }

/* --- barre de saisie : petits boutons gris à bord fin (icône + libellé court) --- */
.outils-saisie { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.btn-outil {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; white-space: nowrap;
  font: 10px Verdana, Geneva, Tahoma, sans-serif; color: #000; background: #e2e2e2;
  border: 1px solid #6e6e6e; border-radius: 0; box-shadow: none;
}
.btn-outil[hidden] { display: none; }
.btn-outil:hover:not(:disabled) { background: #f0f0f0; }
.btn-outil:active:not(:disabled), .btn-outil[aria-expanded="true"] { background: #cdcdcd; border-color: #333; }
.btn-outil:disabled { color: #8a8a8a; cursor: default; }
.btn-outil .ico { font-size: 11px; line-height: 1; }

/* --- panneau « Smiley » façon Coco Classic (M14) : fond blanc, bord noir fin, 9 colonnes × 8 rangées
   de smileys :00 à :66 (image 24×24 et code dessous), puis une petite rangée « classiques texte » --- */
.smileys {
  position: absolute; right: max(16px, calc(50% - 522px)); bottom: calc(100% + 4px); z-index: 16;
  max-width: calc(100vw - 16px); max-height: calc(100vh - 150px); overflow-y: auto; overflow-x: hidden; box-sizing: border-box;
  margin: 0; padding: 12px 0 2px; background: #dcd9ef; border: 1px solid #000; border-radius: 0; box-shadow: none; color: #000;
  font: 10px Verdana, Arial, Helvetica, sans-serif;
}
.smileys.open { display: block; }
.smileys-grille { display: grid; grid-template-columns: repeat(9, 37px); grid-auto-rows: 38px; justify-content: start; }
.smileys .smiley-case {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px;
  width: auto; height: auto; min-width: 0; margin: 0; padding: 1px 0 0; overflow: hidden;
  background: transparent; border: 1px solid transparent; border-radius: 0; cursor: pointer; color: #000;
}
.smiley-case img { display: block; flex: none; width: 24px; height: 24px; image-rendering: pixelated; }
.smiley-code { font: 10px/11px Arial, Verdana, Helvetica, sans-serif; color: #000; white-space: nowrap; }
.smileys .smiley-case:hover, .smileys .smiley-case:focus-visible { background: #e8e6f8; border-color: #000; outline: none; }
.smileys .smileys-fermer {
  position: absolute; top: 0; right: 1px; width: 14px; height: 13px; padding: 0; margin: 0;
  background: none; border: 0; border-radius: 0; font: bold 13px/12px Arial, sans-serif; color: #000; cursor: pointer;
}
.smileys .smileys-fermer:hover, .smileys .smileys-fermer:focus-visible { color: #c00; outline: none; }
.smileys-texte-titre { margin: 3px 0 2px; padding-top: 2px; border-top: 1px solid #ccc; font: 9px Verdana, Arial, sans-serif; color: #666; }
.smileys-texte { display: flex; flex-wrap: wrap; gap: 1px; max-width: 333px; padding: 0 2px; box-sizing: border-box; }
.smileys-texte button { width: 24px; height: 22px; padding: 0; font-size: 14px; line-height: 20px; background: #fff; border: 1px solid #b0b0b0; border-radius: 0; }
.smileys-texte button:hover, .smileys-texte button:focus-visible { background: var(--lavender-row); border-color: #555; outline: none; }
.smileys.sans-classic .smileys-grille, .smileys.sans-classic .smileys-texte-titre { display: none; }
/* smileys Classic dans les messages : 24 px de haut, alignés au texte, pixels nets */
.smiley-img { display: inline-block; width: auto; height: 24px; vertical-align: middle; image-rendering: pixelated; }

/* --- couleur du pseudo : pastilles carrées et aperçu --- */
.palette { grid-template-columns: repeat(9, 14px); gap: 2px; margin: 4px 0; }
.swatch { width: 14px; height: 14px; padding: 0; border: 1px solid #333; border-radius: 0; box-shadow: none; }
.swatch.sel { outline: 2px solid #000; outline-offset: 1px; }
.swatch:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
.couleur-apercu { font: bold 11px "Courier New", Courier, monospace; background: #fff; border: 1px solid #999; padding: 0 4px; }
.couleur-apercu:empty { display: none; }

/* --- liste des connectés : pseudo en couleur choisie, petites icônes 🎤 / 📷 à droite --- */
#users .pseudo, #chat-users .pseudo { display: flex; align-items: center; min-width: 0; }
#users .pseudo > *, #chat-users .pseudo > * { flex: none; }
#users .pseudo > .nom, #chat-users .pseudo > .nom { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.indics { margin-left: 3px; font: normal 10px/1 Verdana, sans-serif; letter-spacing: 1px; opacity: .85; white-space: nowrap; }
.indic { cursor: help; }
#chat-users li > .pseudo { flex: 1 1 auto; }

/* --- mobile : rien ne déborde horizontalement --- */
@media (max-width: 760px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .send { gap: 6px; }
  .btn-outil { height: 26px; padding: 0 5px; }
  .btn-outil .lib { display: none; }
  .btn-outil .ico { font-size: 14px; }
  /* panneau Smiley : tient dans l'écran (9 colonnes resserrées, défilement vertical interne si besoin) */
  .smileys { right: 8px; left: auto; width: min(335px, calc(100vw - 16px)); max-height: min(60vh, calc(100vh - 170px)); }
  .smileys-grille { grid-template-columns: repeat(9, minmax(0, 1fr)); grid-auto-rows: 38px; }
  .smileys-texte { max-width: none; }
  .smileys-texte button { width: 30px; height: 28px; font-size: 17px; line-height: 26px; }
  .tab { max-width: 130px; }
}

/* =====================================================================
   M11 : webcams dans les salons (bouton, encadré de la colonne de droite, petites fenêtres flottantes)
   ===================================================================== */
.btn-outil.actif { background: #f0d2d2; border-color: #8a2a2a; color: #6a0000; }
.btn-outil.actif:hover:not(:disabled) { background: #f6dede; }

/* Encadré « Webcams du salon » : même gabarit que l'encadré vocal. */
.chat-webcams { margin: 0 0 6px; background: var(--panel); border: 1px solid #555; font: bold 11px "Courier New", Courier, monospace; color: #000; }
.chat-webcams[hidden] { display: none; }
.chat-webcams h4 { margin: 0; padding: 1px 4px; font-size: 11px; background: #ddd; border-bottom: 1px solid #888; }
.chat-webcams ul { list-style: none; margin: 3px 4px 4px; padding: 0; }
.chat-webcams li { display: flex; align-items: center; gap: 3px; padding: 1px 3px; margin-bottom: 1px; background: #fff; border: 1px solid #aaa; }
.chat-webcams li.ouverte { background: #ece8fb; border-color: #6b5bb5; }
.chat-webcams li .cam-ico { font: normal 10px/1 Verdana, sans-serif; flex: none; }
.chat-webcams li .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.chat-webcams li small { font-weight: normal; color: #555; flex: none; }
.chat-webcams li .btn-coco.small { flex: none; padding: 0 4px; }
.chat-webcams-moi { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 3px 4px 4px; padding: 2px 4px; background: #f6eaea; border: 1px solid #b08080; font-weight: normal; }
.chat-webcams-moi span { flex: 1 1 auto; }
.msg.system.webcam .btn-coco.small { margin-left: 6px; font-style: normal; vertical-align: middle; }

/* Fenêtres flottantes : barre de titre grise à bord fin, vidéo 320 × 240, petits boutons. */
.webcams { position: fixed; inset: 0; z-index: 19; pointer-events: none; }
@media (min-width: 761px) {
  .webcams { position: static; inset: auto; z-index: auto; }
  .webcams > .cam-fenetre { position: fixed; z-index: 30; }
}
.cam-fenetre {
  position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column;
  width: 322px; min-width: 170px; min-height: 140px; max-width: calc(100vw - 8px); max-height: calc(100vh - 8px);
  resize: both; overflow: hidden;
  background: var(--panel); border: 1px solid #555; box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
  font: bold 11px "Courier New", Courier, monospace; color: #000;
}
.cam-fenetre[hidden] { display: none; }
.cam-fenetre.apercu { width: 182px; min-width: 130px; min-height: 120px; }
.cam-titre {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 1px 5px;
  background: #d8cfc8; border-bottom: 1px solid #8a7466; cursor: move; user-select: none; touch-action: none;
}
.cam-pseudo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-direct { flex: none; font: normal 10px Verdana, sans-serif; color: #666; }
.cam-fenetre[data-etat="en-direct"] .cam-direct { color: #c00000; }
.cam-video { position: relative; flex: 1 1 240px; height: 240px; min-height: 60px; background: #000; }
.cam-fenetre.apercu .cam-video { flex-basis: 135px; height: 135px; }
.cam-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam-fenetre.apercu video { transform: scaleX(-1); }   /* miroir */
.cam-etat {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center;
  font: normal 11px Verdana, sans-serif; color: #ddd; background: #222;
}
.cam-etat[hidden] { display: none; }
.cam-fenetre[data-etat="deconnectee"] .cam-etat { color: #f0b0b0; }
.cam-etat.compteur { inset: auto 0 0 auto; padding: 0 4px; font-size: 9px; color: #fff; background: rgba(0, 0, 0, .55); }
.cam-boutons { flex: none; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; padding: 3px 14px 3px 4px; }
.cam-boutons .btn-coco.small { padding: 0 5px; }
.cam-boutons .arreter { background: #f2a3a3; }
/* MASTER — fenêtre webcam Classic : vidéo à gauche, colonne de petits boutons carrés à droite. */
.cam-fenetre.classic { width: 322px; }   /* C8 : deux webcams côte à côte dans la zone des messages (Coconut, Brown, Actuel) */
.cam-corps { flex: 1; display: flex; min-height: 0; }
.cam-corps .cam-video { flex: 1 1 auto; height: auto; }
.cam-boutons-v { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 2px; background: #d8cfc8; border-left: 1px solid #8a7466; }
.cam-v { width: 22px; height: 22px; padding: 0; border: 1px solid #6d5a4e; background: #efe8e2; font: 12px/20px Verdana, sans-serif; color: #222; cursor: pointer; }
.cam-v:hover:not(:disabled) { background: #fff3b0; }
.cam-v:disabled { opacity: .45; cursor: default; }
/* C8 : image remplie (recadrée sans déformation) ou entière, choisie dans « Image et taille » ; sinon le défaut de la
   présentation. En-tête : ★ favori et ✕ ; le badge âge / lieu de la fiche n'apparaît que dans les présentations Classic. */
.cam-fenetre[data-image="remplir"] .cam-video video { object-fit: cover; }
.cam-fenetre[data-image="entiere"] .cam-video video { object-fit: contain; }
.cam-titre :is(.fi-age, .fi-lieu) { display: none !important; }   /* Tropical a sa propre fiche : pas de badge dans la fenêtre webcam */
.cam-titre :is(.cam-fermer, .fi-favori) {
  flex: none; width: 18px; height: 18px; padding: 0; border: 1px solid #6d5a4e; background: #efe8e2;
  font: 11px/16px Verdana, sans-serif; color: #222; cursor: pointer;
}
.cam-titre :is(.cam-fermer, .fi-favori):hover { background: #fff3b0; }
.cam-fenetre.agrandie { position: fixed; left: 8vw !important; top: 6vh !important; width: 84vw !important; height: 86vh !important; resize: none; }

/* Mobile : fenêtres empilées en bas, pleine largeur, non déplaçables. */
@media (max-width: 760px) {
  .webcams { inset: auto 8px 76px 8px; max-height: 58vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; pointer-events: auto; }
  .webcams:not(:has(.cam-fenetre:not([hidden]))) { display: none; }
  .cam-fenetre, .cam-fenetre.apercu { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; min-width: 0; max-width: none; resize: none; flex: none; }
  .cam-titre { cursor: default; }
  .cam-video, .cam-fenetre.apercu .cam-video { flex: none; height: auto; aspect-ratio: 4 / 3; max-height: 30vh; }
  .cam-fenetre.apercu .cam-video { max-height: 18vh; }
  .cam-boutons { padding-right: 4px; }
  /* L'encadré « Webcams du salon » reste visible sous les messages, comme l'encadré vocal. */
  .chat:has(#chat-webcams:not([hidden])) { flex-direction: column; }
  .chat:has(#chat-webcams:not([hidden])) .chat-side { display: block; width: auto; max-height: 40%; border-left: 0; border-top: 1px solid #999; padding: 4px; }
  .chat:has(#chat-webcams:not([hidden])) .chat-side > :not(#chat-vocal):not(#chat-webcams) { display: none; }
  .chat-webcams { margin: 0 0 4px; }
}
@media (max-width: 760px) {
  .chat .chat-side > #chat-webcams:not([hidden]) { display: block !important; }
}
@media (max-width: 760px) {
  /* Liste des webcams au-dessus des messages : les fenêtres empilées en bas ne la recouvrent pas. */
  .chat:has(#chat-webcams:not([hidden])) .chat-side { order: -1; border-top: 0; border-bottom: 1px solid #999; }
}

/* =====================================================================
   M12 : reproduction Coco Classic (thème bleu-gris, sections de salons, « Créez un salon »,
   8 boutons de droite, PACK PREMIUM de démonstration, Amiz, zone d'avis, fiche profil)
   ===================================================================== */

/* --- thème bleu-gris (Coco Classic) --- */
:root { --lavender-row-2: #bfb5e4; --rose-manager: #e8c8dc; }
.app[data-theme="bleugris"] {
  --taupe: #a3afc4; --taupe-dark: #94a1b9; --paper: #efefef; --panel: #c6cad6;
  --lavender: #c0b8e4; --lavender-row: #d6d0ee; --lavender-row-2: #c9c1ea; --violet-row: #9fa0e6;
}
.app[data-theme="bleugris"] .band-bottom { border-top-color: #76839c; }
.app[data-theme="bleugris"] .cam-titre { background: #cfd5e2; border-bottom-color: #76839c; }

/* --- encadré violet : titres de section en noir gras, lignes serrées --- */
.salons-box { border: 1px solid #000; }
.salons-box h3 { font: bold 11px Verdana, Geneva, sans-serif; margin: 7px 0 3px 4px; color: #000; }
.salons-box h3:first-child { margin-top: 2px; }
.salons-box h3.discret { font-weight: normal; color: #333; margin-top: 10px; }
#salons-trivox li, #salons-prives li {
  display: flex; align-items: center; gap: 3px; margin: 0 0 1px 4px; padding: 0 4px; line-height: 13px;
  background: var(--lavender-row); cursor: pointer; font: bold 11px Verdana, Geneva, sans-serif;
}
#salons li:nth-child(even), #salons-trivox li:nth-child(even), #salons-prives li:nth-child(even), #salons-recents li:nth-child(even) { background: var(--lavender-row-2); }
/* Salons Manager : fond rose pâle uni. */
#salons-membres li, #salons-membres li:nth-child(even) { background: var(--rose-manager); }
#salons-trivox li:hover, #salons-prives li:hover, #salons-membres li:hover { background: #f1ecfb; }
#salons-trivox li.joined, #salons-prives li.joined { background: #f4f1ff; outline: 1px solid #6b5bb5; }
#salons-membres li.joined { background: var(--rose-manager); outline: 1px solid #6b5bb5; }
#salons-membres li.joined:hover { background: #f1ecfb; }
#salons-prives li.prive .name, #salons-membres li.prive .name { color: #000; }
.salons-box li.vide.aucun { font: bold 11px Verdana, Geneva, sans-serif; font-style: normal; padding-left: 26px; background: transparent; cursor: default; }
.salons-box li.vide.aucun:hover { background: transparent; }
#salons-recents li { opacity: .8; }

/* Étoile des favoris : discrète, visible au survol ou quand le salon est favori. */
.salons-box li .star { visibility: hidden; }
.salons-box li:hover .star, .salons-box li .star.on, .salons-box li .star:focus-visible { visibility: visible; }

/* Haut-parleur gris-bleu avant le nom des salons vocaux ; « vox » en exposant pour les salons de membres. */
.salons-box li .hp { flex: none; margin: 0 1px 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath fill='%235b6b8c' d='M0 3h2l3-3v9L2 6H0z'/%3E%3Cpath d='M6.5 2.6q1.4 1.9 0 3.8M8.2 1q2.9 3.5 0 7' stroke='%235b6b8c' stroke-width='1.1' fill='none'/%3E%3C/svg%3E"); }
.salons-box sup.vox { flex: none; font: bold 8px/1 Verdana, Geneva, sans-serif; color: #2b2b2b; vertical-align: 0; position: relative; top: -3px; margin-right: 1px; }
.salons-box .picto { font-weight: normal; }
.salons-box .picto.adulte { font-size: 9px; margin-left: 2px; }
/* Salon bloqué : toute la ligne en rouge, « - Bloqué ». */
.salons-box li.bloque, .salons-box li.bloque .name, .salons-box li.bloque .proprio { color: #d00000; }
.salons-box li .bloque-txt { margin: 0 3px 0 2px; font: bold 10px Verdana, Geneva, sans-serif; }

/* --- encadré « Créez un salon » --- */
.creer-box { margin: 8px 4px 2px; padding: 3px 5px 4px; background: #f1eefb; border: 1px solid #6e68a0; font: 10px Verdana, Geneva, sans-serif; color: #000; }
.creer-titre { font: bold 11px Verdana, Geneva, sans-serif; margin-bottom: 3px; }
.creer-ligne { display: flex; gap: 4px; align-items: center; }
.creer-ligne input { flex: 1; min-width: 0; height: 18px; padding: 0 3px; font: 11px Verdana, Geneva, sans-serif; border: 1px solid #555; border-radius: 0; background: #fff; }
.cs-btn { flex: none; height: 18px; padding: 0 7px; font: bold 10px Verdana, Geneva, sans-serif; color: #000; background: #fff; border: 1px solid #000; border-radius: 0; }
.cs-btn:active { background: #e4e0f6; }
.cs-btn:disabled { color: #888; }
.creer-cases { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 1px 4px; margin-top: 4px; }
.creer-cases label { display: flex; align-items: center; gap: 2px; white-space: nowrap; cursor: pointer; }
.creer-cases input { width: 11px; height: 11px; margin: 0; }
.creer-cases label.inactif { color: #8a8a8a; cursor: not-allowed; }
.creer-code { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.creer-code[hidden] { display: none; }
.creer-code input { flex: 1; min-width: 0; height: 17px; font: 11px Verdana, Geneva, sans-serif; border: 1px solid #555; padding: 0 3px; }
.lien-options { background: none; border: 0; padding: 0; font: 10px Verdana, Geneva, sans-serif; color: #24247a; text-decoration: underline; cursor: pointer; }
.creer-box .lien-options { display: block; margin: 3px 0 0 auto; }
.cs-erreur { margin: 2px 4px 0; color: #c00000; font: 10px Verdana, Geneva, sans-serif; }
.cs-erreur:empty { display: none; }

/* --- liste des connectés : tableau violet compact, bord fin noir, Courier gras noir --- */
#users:not(:empty) { border: 1px solid #000; }
.users-head span { cursor: pointer; }
.users-head span:hover { text-decoration: underline; }
#users .age, #users .ville { font-weight: bold; color: #000; }
@media (min-width: 761px) {
  .users-head { font: bold 11px Verdana, Geneva, sans-serif; color: #000; }
  #users li { margin: 0; border: 0; border-bottom: 1px solid #000; padding: 1px 6px; }
  #users li:last-child { border-bottom: 0; }
  #users li.moi { border-color: #000; }
}

/* --- 8 boutons de la colonne de droite --- */
.btn-coco.rail { font: bold 11px "Courier New", Courier, monospace; color: #000; border: 1px solid #000; }
.btn-coco.rail.filtre::before { content: none; }
.btn-coco.rail.accueil { background: #e8e8e8; }
.btn-coco.rail.filtre  { background: #e8b8d0; }
.btn-coco.rail.design  { background: #f0ec9c; }
.btn-coco.rail.reset   { background: #bfe0a8; }
.btn-coco.rail.profil  { background: #f6f6f6; }
.btn-coco.rail.info    { background: #e89c9c; }
.btn-coco.rail.premium, .btn-coco.premium { background: #e8d8b8; }
.btn-coco.rail.amiz    { background: #e8b030; }
@media (min-width: 761px) {
  .side-buttons { justify-content: space-between; padding: 12px 0 20px; margin-left: 12px; border-left: 1px solid rgba(0, 0, 0, .35); }
  .side-buttons .rail, .side-buttons .rail.premium, .side-buttons .rail.amiz { margin: 0; }
  #panel-profil, #panel-info { top: 190px; max-height: calc(100% - 200px); }
  #panel-amis { width: 290px; }
}

/* --- panneaux : petits compléments --- */
.side-panel .info-ligne { margin: 0; font: 10px Verdana, Geneva, sans-serif; }
.side-panel .lien-options { font-size: 10px; }
.panel-boutons { display: flex; justify-content: space-between; align-items: center; }
.info-liens { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.info-liens a { color: #000; }
#info-chiffres { font-weight: normal; display: grid; gap: 1px; }
#profil-me .avatar.mini { margin-right: 6px; }
#profil-me::after { content: ''; display: block; clear: both; }
#amis-filtre, .recherche-ligne input { font: 11px Verdana, Geneva, sans-serif; width: 100%; min-width: 0; }
.recherche-ligne { display: flex; gap: 4px; margin: 2px 0; }
#recherche-info { display: block; font-weight: normal; }
.amis-liste li { flex-wrap: wrap; }
.amis-liste li .actions { display: flex; gap: 2px; margin-left: auto; }
.amis-liste li .btn-coco.small:disabled { color: #888; box-shadow: none; cursor: default; }

/* --- barre du bas : « + » au-dessus de Premium, avis au-dessus de la saisie blanche arrondie --- */
.send {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 18px;
  grid-template-areas: "plus avis avis" "prem saisie outils";
}
#btn-plus { grid-area: plus; justify-self: center; width: 16px; height: 13px; padding: 0; font: bold 12px/11px Verdana, Geneva, sans-serif; color: #000; background: #e8d8b8; border: 1px solid #000; border-radius: 0; }
.avis { grid-area: avis; min-width: 0; height: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: bold 11px/15px Verdana, Geneva, sans-serif; color: #000; }
.avis-heure { font-weight: normal; color: #333; }
.avis-lien { background: none; border: 0; padding: 0; font: inherit; color: #14146a; cursor: pointer; text-decoration: underline; }
#btn-premium-bas { grid-area: prem; }
#input { grid-area: saisie; }
.outils-saisie { grid-area: outils; }
#input { border-radius: 7px; border: 1px solid #666; background: #fff; }
#smiley-btn { background: #cfc9f0; border-color: #555; }
@media (min-width: 761px) {
  #input { border-radius: 7px; height: 32px; }
  .band-bottom { padding: 4px 16px 10px; }
}

/* --- fenêtre PACK PREMIUM (démonstration) --- */
.pack-premium {
  position: fixed; left: 0; top: 0; z-index: 21; width: 470px;   /* C9 : sans !important, Fenetres la met au premier plan */ max-width: calc(100vw - 16px); max-height: calc(100vh - 16px);
  display: flex; flex-direction: column; overflow-y: auto;
  background: #dccba4; border: 1px solid #4a3c20; box-shadow: 3px 3px 0 rgba(0, 0, 0, .35); font: 11px Verdana, Geneva, sans-serif; color: #000;
}
.pack-premium[hidden] { display: none; }
.pp-barre {
  position: sticky; top: 0; z-index: 1; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 2px 8px;
  background: #c4ad7c; border-bottom: 1px solid #4a3c20; font: bold 12px "Courier New", Courier, monospace; cursor: move; user-select: none; touch-action: none;
}
.pp-fermer { width: 16px; height: 16px; padding: 0; border: 1px solid #000; background: #e89c9c; font: bold 10px/14px Verdana, sans-serif; color: #000; }
.pp-corps { display: grid; gap: 8px; padding: 8px 12px 10px; }
.pp-demo { margin: 0; padding: 3px 6px; text-align: center; font-weight: bold; color: #a00000; background: #fff4d0; border: 1px dashed #a00000; }
.pp-intro { margin: 0; text-align: center; font: bold 13px Verdana, Geneva, sans-serif; }
.pp-offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-offre {
  padding: 8px 4px; font: bold 13px Verdana, Geneva, sans-serif; color: #fff; background: #5aa83c;
  border: 1px solid #2c5a1a; border-radius: 3px; cursor: not-allowed; text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.pp-offre small { display: block; font-size: 10px; }
.pp-offre:hover { background: #63b244; }
.pp-compte { margin: 0; text-align: center; }
.pp-compte b.ok { color: #186018; }
.pp-options { padding: 6px 10px; background: #fcefd0; border: 1px solid #b8995a; }
.pp-options > u { font-weight: bold; }
.pp-options ul { margin: 4px 0 4px; padding-left: 16px; }
.pp-options li { margin: 1px 0; }
.pp-options li small { color: #444; }
.pp-etat { font-weight: bold; }
.pp-etat.disponible, .pp-etat.ok { color: #186018; }
.pp-etat.premium { color: #8a5600; }
.pp-etat.desactive, .pp-etat.indisponible { color: #a00000; }
.pp-etat.adevelopper { color: #555; }
.pp-reserver { margin-top: 2px; }
.pp-affichage { padding: 3px 6px; background: #e8dcc0; border: 1px solid #b8995a; font: bold 11px "Courier New", Courier, monospace; }
.pp-affichage summary { cursor: pointer; }
.pp-affichage summary small { font-weight: normal; }
.pp-affichage .info-block { margin-top: 4px; }
.pp-affichage .form-profil label { display: grid; gap: 2px; }
.pp-affichage select { width: 100%; font: inherit; }
.pp-affichage #premium-save { display: block; margin: 4px 0 2px auto; }
.pp-note { margin: 0; font-style: italic; font-size: 10px; color: #333; }

/* --- fiche profil : en-tête bleu clair, photo, colonne de petites icônes carrées --- */
.profil-box { width: 370px; padding: 0; background: #f4f4f4; }
.profil-titre { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 2px 8px; background: #bcd4f0; border-bottom: 1px solid #000; font: bold 12px "Courier New", Courier, monospace; }
.profil-corps { display: flex; gap: 8px; padding: 8px; }
.profil-infos { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: start; }
.profil-infos p { margin: 0; }
.profil-icones { flex: none; display: flex; flex-direction: column; gap: 3px; }
.ico-profil { width: 22px; height: 22px; padding: 0; font: 12px/20px Verdana, Geneva, sans-serif; text-align: center; color: #000; background: #ddd; border: 1px solid #000; border-radius: 0; }
.ico-profil:hover:not(:disabled) { filter: brightness(1.08); }
.ico-profil:disabled { opacity: .45; cursor: default; }
.ico-profil.fermer { width: 16px; height: 16px; font: bold 10px/14px Verdana, sans-serif; background: #e89c9c; }
.ico-profil.mp { background: #bcd4f0; }
.ico-profil.fav { background: #f0ec9c; }
.ico-profil.ami { background: #e8b8d0; }
.ico-profil.video, .ico-profil.cam { background: #bfe0a8; }
.ico-profil.audio { background: #e8d8b8; }
.ico-profil.on { box-shadow: inset 0 0 0 2px #333; }

/* --- mobile (≤ 760 px) : rien ne déborde horizontalement --- */
@media (max-width: 760px) {
  .side-buttons { gap: 4px; }
  .btn-coco.rail { width: auto; min-width: 54px; padding: 1px 4px; }
  .send { gap: 2px 6px; }
  .pack-premium { left: 8px !important; top: 8px !important; right: 8px; width: auto; max-height: calc(100vh - 16px); }
  .pp-offres { grid-template-columns: 1fr; }
  .profil-box { width: auto; }
  #panel-amis { width: 100%; }
}

/* =====================================================================
   M13 : panneau Design façon Coco Classic (gris moyen, bord noir fin, Courier gras 13 px),
   fiche d'édition du profil (pseudo, âge, « changer l'avatar »)
   ===================================================================== */
#panel-design.design-coco {
  width: 315px; min-height: 400px; padding: 8px 10px 12px; gap: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  background: #b8b8b8; border: 1px solid #000; border-radius: 0; box-shadow: none;
  font: bold 13px/1.3 "Courier New", "Lucida Console", Courier, monospace; color: #000;
}
#panel-design.design-coco[hidden] { display: none; }
@media (min-width: 761px) {
  #panel-design.design-coco { top: 150px; right: 4px; max-height: calc(100% - 160px); overflow-y: auto; }
}
#panel-design button { cursor: pointer; }

/* « Charger Avatar » : petit carré vert à étoile blanche, texte serif sur deux lignes, en haut à droite. */
.dc-haut { align-self: flex-end; display: flex; align-items: flex-start; gap: 5px; margin-right: 6px; }
.dc-etoile {
  flex: none; width: 19px; height: 19px; padding: 0; margin-top: 2px; border: 1px solid #2f5a12; border-radius: 0;
  background: #7cc63a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M10 1.5l2.6 5.6 6.1.7-4.5 4.1 1.2 6-5.4-3-5.4 3 1.2-6L1.3 7.8l6.1-.7z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.dc-etoile:hover { filter: brightness(1.08); }
.dc-etoile:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
#panel-design .dc-charger { display: block; font: normal 14px/1.15 "Times New Roman", Times, serif; color: #000; cursor: pointer; }
.dc-charger:hover { text-decoration: underline; }

/* Aperçu de l'avatar : petit carré 64 × 64 sous le texte, « supprimer » dessous. */
.dc-avatar { align-self: flex-end; display: grid; justify-items: center; gap: 1px; min-width: 70px; margin: 4px 0 0; }
.dc-apercu { display: block; width: 64px; height: 64px; overflow: hidden; background: #fff; border: 1px solid #000; }
.dc-apercu[hidden] { display: none; }
.dc-apercu img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dc-lien { font: normal 11px Verdana, Geneva, sans-serif; color: #14146a; background: none; border: 0; padding: 0; text-decoration: underline; }
.dc-lien[hidden] { display: none; }
.dc-etat { font: normal 10px Verdana, Geneva, sans-serif; color: #222; max-width: 290px; text-align: right; }
.dc-etat:empty { display: none; }
.dc-etat.erreur { color: #c00000; font-weight: bold; }

/* Blocs alignés à gauche, comme sur la capture. */
.dc-bloc { padding: 1px 6px 2px; }
.dc-auth { margin-top: 52px; background: #d8d8d8; display: grid; justify-items: start; }
.dc-ligne { font: inherit; color: #000; background: none; border: 0; padding: 0; text-align: left; }
.dc-ligne:hover { text-decoration: underline; }
.dc-val { color: #c00000; font-weight: bold; }
.dc-val.on { color: #0a7a0a; }
.dc-recup { margin-top: 6px; padding: 1px 6px; font: inherit; color: #000; background: #e8d4a8; border: 1px solid #000; border-radius: 0; box-shadow: none; }
.dc-recup:active { background: #dcc493; }
.dc-premium { margin-top: 18px; }
.dc-notif { margin-top: 18px; background: #d0b8d0; }
#panel-design .toggle { font: inherit; color: #c00000; background: none; border: 0; padding: 0; text-decoration: none; }
#panel-design .toggle.on { color: #0a7a0a; }
#panel-design .toggle:hover { text-decoration: underline; }
#panel-design .dc-volume { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font: normal 10px Verdana, Geneva, sans-serif; vertical-align: 1px; }
#panel-design .dc-volume[hidden] { display: none; }
.dc-volume select { height: 16px; padding: 0; font: 10px Verdana, Geneva, sans-serif; border: 1px solid #555; border-radius: 0; background: #fff; }
.dc-navigateur { margin: 1px 0; }
.dc-navigateur[hidden] { display: none; }
.dc-navigateur .dc-lien { font-size: 10px; text-align: left; }
.dc-navigateur .dc-etat { margin-left: 3px; }

/* Couleur : deux rangées de 9 carrés 18 × 18 (la 2e décalée), « save » à droite de la 1re rangée. */
.dc-couleur { margin-top: 4px; padding: 1px 6px 5px; background: #e8e8e8; }
.dc-couleur-corps { display: flex; align-items: flex-start; gap: 8px; margin-top: 3px; }
#panel-design .palette { display: grid; gap: 4px; margin: 0; grid-template-columns: none; }
#panel-design .palette .rangee { display: flex; gap: 4px; }
#panel-design .palette .rangee.r2 { margin-left: 6px; }
#panel-design .swatch { width: 18px; height: 18px; padding: 0; border: 1px solid #333; border-radius: 0; box-shadow: none; }
#panel-design .swatch.sel { outline: 2px solid #000; outline-offset: 1px; border-color: #000; }
.dc-save { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
#design-save { height: 18px; padding: 0 6px; font: 11px Verdana, Geneva, sans-serif; color: #000; background: #fff; border: 1px solid #000; border-radius: 0; box-shadow: none; }
#design-save:active { background: #e8e8e8; }
#design-save.modifie { box-shadow: inset 0 0 0 1px #000; font-weight: bold; }
#design-save:disabled { color: #888; }
.dc-ok { font: bold 10px Verdana, Geneva, sans-serif; color: #0a7a0a; max-width: 80px; }
.dc-ok.erreur { color: #c00000; }
.dc-ok:empty { display: none; }
.dc-apercu-pseudo { margin-top: 4px; font: normal 11px Verdana, Geneva, sans-serif; }
.dc-apercu-pseudo .couleur-apercu { font: bold 12px "Courier New", Courier, monospace; background: #fff; border: 1px solid #999; padding: 0 4px; }

/* Réglages discrets sous la palette : webcams (si activées) et thème. */
.dc-webcam { margin-top: 8px; background: #d8d8d8; font-size: 11px; }
.dc-webcam[hidden] { display: none; }
#panel-design .dc-theme { display: flex; align-items: center; gap: 4px; margin-top: 8px; font: normal 10px Verdana, Geneva, sans-serif; color: #222; }
#panel-design .dc-theme select { font: 10px Verdana, Geneva, sans-serif; height: 17px; width: auto; }

/* Petite fenêtre (vérification, récupération) : même gris, bord noir fin. */
.dc-fenetre {
  position: absolute; left: 12px; right: 12px; top: 96px; z-index: 3;
  background: #b8b8b8; border: 1px solid #000; font: bold 12px/1.3 "Courier New", "Lucida Console", Courier, monospace;
}
.dc-fenetre[hidden] { display: none; }
.dc-fenetre-barre { display: flex; justify-content: space-between; align-items: center; padding: 1px 3px 1px 6px; background: #d8d8d8; border-bottom: 1px solid #000; }
.dc-fermer { width: 15px; height: 15px; padding: 0; font: bold 9px/13px Verdana, sans-serif; color: #000; background: #e89c9c; border: 1px solid #000; border-radius: 0; }
.dc-fenetre-corps { padding: 4px 8px 8px; }
.dc-fenetre-corps p { margin: 4px 0; }
.dc-reponse { color: #c00000; }
.dc-reponse:empty { display: none; }
.dc-note { font: normal 10px Verdana, Geneva, sans-serif; color: #222; }
.dc-recup-form { display: grid; gap: 3px; }
#panel-design .dc-recup-form label { display: block; font: inherit; }
.dc-recup-form input { min-width: 0; height: 20px; padding: 0 4px; font: 12px Verdana, Geneva, sans-serif; border: 1px solid #000; border-radius: 0; background: #fff; }
.dc-bouton { justify-self: start; height: 19px; padding: 0 8px; font: 11px Verdana, Geneva, sans-serif; color: #000; background: #fff; border: 1px solid #000; border-radius: 0; }
.dc-bouton:disabled { color: #888; }

/* Profil : pseudo, âge déclaré, « changer l'avatar », erreurs du serveur. */
#panel-profil #pr-age { font: inherit; width: 100%; }
#profil-me .lien-options { margin-top: 2px; }
.profil-msg { margin: 0; font: bold 10px Verdana, Geneva, sans-serif; color: #c00000; }
.profil-msg:empty { display: none; }
#panel-profil .form-profil label small { font-weight: normal; }
/* Cases de confidentialité : la case reste à gauche de son texte (le texte passe à la ligne à côté). */
#panel-profil .form-profil label:has(input[type=checkbox]) { flex-wrap: nowrap; align-items: flex-start; }
#panel-profil .form-profil label:has(input[type=checkbox]) input { flex: none; margin-top: 1px; }

/* Mobile : le panneau tient dans la largeur de l'écran. */
@media (max-width: 760px) {
  #panel-design.design-coco { width: 100%; max-width: 100%; min-height: 0; position: relative; top: auto; right: auto; order: -1; flex: none; }
  .dc-auth { margin-top: 16px; }
  .dc-fenetre { top: 60px; left: 6px; right: 6px; }
}

/* =====================================================================
   Premium complet : PACK PREMIUM (activation gratuite, demande, état), smileys Premium (onglets),
   recherche étendue (Amiz), limite d'Amiz, 3e rangée de couleurs « Premium »
   ===================================================================== */
.pp-gratuit { margin: 0; padding: 3px 6px; text-align: center; font: bold 12px Verdana, Geneva, sans-serif; color: #14520c; background: #e6f4d8; border: 1px solid #2c5a1a; }
.pp-demo { font-size: 10px; padding: 1px 6px; }
.pp-statut { text-align: center; }
.pp-oui-non { font: bold 15px "Courier New", Courier, monospace; letter-spacing: .02em; }
.pp-oui-non.oui b { color: #0a5e0a; }
.pp-oui-non.non b { color: #c00000; }
.pp-compte b.std { text-transform: capitalize; }   /* « standard » (libellé vérifié) affiché « Standard » */
.pp-ancien { color: #6a3a00; }
.pp-details { display: grid; gap: 1px; padding: 4px 10px; background: #fcefd0; border: 1px solid #b8995a; }
.pp-details[hidden] { display: none; }
.pp-details b { color: #000; }
#pp-restant { color: #0a5e0a; }
.pp-actifs ul { margin: 2px 0 0; padding-left: 16px; }
.pp-actifs li { margin: 0; }
.pp-intro[hidden], .pp-offres[hidden] { display: none; }
.pp-offre { cursor: pointer; line-height: 1.2; }
.pp-offre .pp-prix { display: block; margin-top: 2px; font: normal 9px Verdana, Geneva, sans-serif; color: #e8f6dc; text-shadow: none; }
.pp-offre .pp-prix s { color: #fff; }
.pp-offre.choisie { outline: 2px solid #1d4a0c; outline-offset: 1px; box-shadow: inset 0 0 0 2px #e6f4d8; }
.pp-offre:focus-visible { outline: 2px dotted #000; outline-offset: 1px; }
.pp-demande { display: grid; gap: 4px; padding: 5px 10px; background: #f4e6c4; border: 1px solid #b8995a; }
.pp-demande[hidden] { display: none; }
.pp-demande p { margin: 0; }
.pp-choix b { color: #14520c; }
.pp-message { font-weight: bold; }
#pp-message { width: 100%; min-width: 0; height: 20px; padding: 0 4px; font: 11px Verdana, Geneva, sans-serif; border: 1px solid #555; border-radius: 0; background: #fff; }
.pp-demande-boutons { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-demander { background: #bfe0a8; }
.pp-demande .btn-coco:disabled { color: #888; box-shadow: none; cursor: default; }
.pp-attente { font-weight: bold; color: #6a4f00; }
.pp-info { font-style: italic; }
.pp-precedente { color: #444; }
.pp-reponse { font-weight: bold; color: #14520c; }
.pp-reponse.erreur { color: #a00000; }
.pp-dispo { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
#pp-dispo-pseudo { flex: 1 1 110px; min-width: 0; height: 18px; padding: 0 4px; font: 11px Verdana, Geneva, sans-serif; border: 1px solid #555; border-radius: 0; background: #fff; }
.pp-dispo-reponse { display: block; margin-top: 2px; font-weight: bold; }
.pp-dispo-reponse.ok { color: #14520c; }
.pp-dispo-reponse.erreur { color: #a00000; }
.pp-pied { display: flex; justify-content: flex-end; }

/* Panneau Design : « PREMIUM: OUI » en vert foncé rétro, « NON » en rouge. */
#dc-premium-val { color: #c00000; }
#dc-premium-val.on { color: #006000; }

/* Couleur du pseudo : 3e rangée « Premium » (9 couleurs, avantage premium.profile.customization). */
#panel-design .palette .rangee.r3 { flex-wrap: wrap; margin: 2px 0 0; padding-top: 2px; border-top: 1px dotted #888; }
#panel-design .palette .rangee-titre { flex-basis: 100%; font: bold 9px Verdana, Geneva, sans-serif; color: #6a4f00; }

/* Panneau Smiley : onglets compacts « Classic » | « Premium » en haut à gauche (petits boutons gris). */
.smileys { padding-top: 17px; }
.smileys-onglets { position: absolute; top: 1px; left: 2px; display: flex; gap: 2px; }
.smileys .smileys-onglet {
  height: 14px; padding: 0 6px; margin: 0; font: 9px/12px Verdana, Geneva, sans-serif; color: #000;
  background: #e2e2e2; border: 1px solid #6e6e6e; border-radius: 0; box-shadow: none; cursor: pointer;
}
.smileys .smileys-onglet[hidden] { display: none; }
.smileys .smileys-onglet.actif { background: #fff; border-color: #000; font-weight: bold; }
.smileys .smileys-onglet:hover:not(.actif), .smileys .smileys-onglet:focus-visible { background: #f0f0f0; outline: none; }
.smileys-grille-p { display: grid; grid-template-columns: repeat(9, 37px); grid-auto-rows: 38px; justify-content: start; }
.smileys-grille-p[hidden] { display: none; }
.smileys .sp-case {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px;
  width: auto; height: auto; min-width: 0; margin: 0; padding: 1px 0 0; overflow: hidden;
  background: transparent; border: 1px solid transparent; border-radius: 0; cursor: pointer; color: #000;
}
.sp-case img { display: block; flex: none; width: 24px; height: 24px; image-rendering: pixelated; }
.smileys .sp-case:hover, .smileys .sp-case:focus-visible { background: #f6efd8; border-color: #000; outline: none; }
.smileys.onglet-premium .smileys-grille, .smileys.onglet-premium .smileys-texte-titre, .smileys.onglet-premium .smileys-texte { display: none; }
.smileys-reserve { margin: 3px 2px 1px; padding-top: 2px; border-top: 1px solid #ccc; font: italic 9px Verdana, Arial, sans-serif; color: #555; }
.smileys-reserve[hidden] { display: none; }

/* Amiz : limite atteinte, recherche étendue compacte (pseudo, âge, ville, genre, statut). */
#amis-compteur.plein { color: #c00000; }
.amis-limite { margin: 0; padding: 2px 4px; font: bold 10px Verdana, Geneva, sans-serif; color: #6a4f00; background: #fff3c4; border: 1px solid #c9a227; }
.amis-limite[hidden] { display: none; }
.recherche-form { display: grid; gap: 2px; }
.recherche-criteres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; font: 10px Verdana, Geneva, sans-serif; }
.side-panel .recherche-criteres label { flex-wrap: nowrap; gap: 3px; min-width: 0; font-weight: normal; }
.side-panel .recherche-criteres input[type=number] { width: 36px; flex: none; font: 10px Verdana, Geneva, sans-serif; padding: 0 1px; }
.side-panel .recherche-criteres input[type=text], .side-panel .recherche-criteres select { flex: 1 1 auto; width: auto; min-width: 0; font: 10px Verdana, Geneva, sans-serif; }

@media (max-width: 760px) {
  .smileys-grille-p { grid-template-columns: repeat(9, minmax(0, 1fr)); grid-auto-rows: 38px; }
  .smileys .smileys-onglet { height: 18px; font-size: 11px; line-height: 16px; }
  .smileys { padding-top: 21px; }
  .recherche-criteres { grid-template-columns: minmax(0, 1fr); }
  .pp-demande, .pp-details { padding: 4px 6px; }
}

/* =====================================================================
   M16 : comptes sécurisés — petites fenêtres grises façon Coco Classic (gris #c8c8c8 / #b8b8b8, bord noir 1 px,
   Verdana / Courier petits, champs compacts, boutons rectangulaires à bord noir)
   ===================================================================== */
.bandeau.compte { background: #e8e8e8; color: #000; }

/* Écran d'entrée : petit encadré gris au-dessus du formulaire invité (inchangé). */
.compte-entree { display: grid; gap: 4px; margin: -6px 0 12px; padding: 4px 6px; text-align: left; background: #c8c8c8; border: 1px solid #000; font: 11px Verdana, Geneva, sans-serif; color: #000; }
.ce-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.ce-ligne[hidden], .login-avis[hidden] { display: none; }
.ce-titre { font: bold 11px "Courier New", Courier, monospace; }
.ce-bouton { height: 19px; padding: 0 8px; font: 11px Verdana, Geneva, sans-serif; color: #000; background: #fff; border: 1px solid #000; border-radius: 0; cursor: pointer; }
.ce-bouton[hidden] { display: none; }
.ce-bouton.principal { height: 21px; font-weight: bold; background: #e8e8e8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-bouton:hover:not(:disabled) { background: #f0f0f0; }
.ce-bouton:disabled { color: #888; cursor: default; }
.login-avis { margin: 0; padding: 2px 4px; font: bold 11px Verdana, Geneva, sans-serif; color: #c00000; background: #fff; border: 1px solid #000; }
.login-avis.ok { color: #006000; }

/* Fenêtre des comptes (connexion, inscription, sécurité, appareils…) : au centre, toujours dans l'écran. */
.cpt-fond { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; padding: 8px; background: rgba(0, 0, 0, .28); }
.cpt-fond[hidden] { display: none; }
.cpt-fenetre {
  width: 360px; max-width: 100%; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; overflow-x: hidden;
  background: #c8c8c8; border: 1px solid #000; box-shadow: 2px 2px 0 rgba(0, 0, 0, .45); font: 11px/1.35 Verdana, Geneva, sans-serif; color: #000; text-align: left;
}
.cpt-barre { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 1px 3px 1px 6px; background: #b8b8b8; border-bottom: 1px solid #000; font: bold 12px "Courier New", Courier, monospace; }
.cpt-fermer { flex: none; width: 15px; height: 15px; padding: 0; font: bold 9px/13px Verdana, sans-serif; color: #000; background: #e89c9c; border: 1px solid #000; border-radius: 0; cursor: pointer; }
.cpt-fermer[hidden] { display: none; }
.cpt-corps { display: grid; gap: 5px; padding: 6px 8px 8px; }
.cpt-form { display: grid; gap: 4px; min-width: 0; }
.cpt-cadre { margin-top: 2px; padding: 4px 6px 6px; background: #d8d8d8; border: 1px solid #888; }
.cpt-sous-titre { font: bold 11px "Courier New", Courier, monospace; }
.cpt-champ { display: grid; gap: 1px; min-width: 0; font: bold 10px Verdana, Geneva, sans-serif; }
.cpt-champ[hidden] { display: none; }
.cpt-input, .cpt-champ select { width: 100%; min-width: 0; height: 20px; padding: 0 4px; font: 12px Verdana, Geneva, sans-serif; color: #000; background: #fff; border: 1px solid #000; border-radius: 0; }
.cpt-input[readonly] { background: #e8e8e8; }
.cpt-input:focus, .cpt-champ select:focus { outline: 1px dotted #000; outline-offset: 1px; }
.cpt-aide { font: normal 9px Verdana, Geneva, sans-serif; color: #333; }
.cpt-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.cpt-case { display: flex; align-items: flex-start; gap: 4px; font-size: 10px; }
.cpt-case input { flex: none; margin: 1px 0 0; }
.cpt-case a, .cpt-fenetre a { color: #14146a; }
.cpt-piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cpt-boutons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.cpt-bouton { height: 19px; padding: 0 8px; font: 11px Verdana, Geneva, sans-serif; color: #000; background: #fff; border: 1px solid #000; border-radius: 0; cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cpt-bouton.principal { font-weight: bold; background: #e8e8e8; }
.cpt-bouton.petit { height: 16px; padding: 0 5px; font-size: 10px; }
.cpt-bouton.danger { color: #a00000; }
.cpt-bouton:hover:not(:disabled) { background: #f0f0f0; }
.cpt-bouton:disabled { color: #888; cursor: default; }
.cpt-texte { margin: 0; }
.cpt-note { margin: 0; font-size: 10px; color: #222; }
.cpt-ok { font-weight: bold; color: #006000; }
.cpt-erreur { font-weight: bold; color: #c00000; }
.cpt-msg { margin: 0; font: bold 10px Verdana, Geneva, sans-serif; color: #c00000; }
.cpt-msg:empty { display: none; }
.cpt-msg.ok { color: #006000; }
.cpt-msg.attente { color: #333; font-weight: normal; }
.cpt-fiche { display: grid; gap: 1px; padding: 4px 6px; background: #fff; border: 1px solid #000; }
.cpt-ligne { overflow-wrap: anywhere; }
.cpt-etat.oui { color: #006000; font-weight: bold; }
.cpt-etat.non { color: #c00000; font-weight: bold; }
.cpt-fiche .cpt-bouton { justify-self: start; }
.cpt-secret { padding: 3px 6px; font: bold 14px "Courier New", Courier, monospace; letter-spacing: .04em; text-align: center; background: #fff; border: 1px solid #000; overflow-wrap: anywhere; user-select: all; }
.cpt-lien { font-size: 10px; }
.cpt-lien-ouvrir { justify-self: start; font-size: 10px; }
.cpt-codes { margin: 0; padding: 4px 8px 4px 28px; columns: 2; column-gap: 24px; font: bold 13px "Courier New", Courier, monospace; background: #fff; border: 1px solid #000; }
.cpt-appareils { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.ap-ligne { display: grid; gap: 1px; padding: 3px 5px; background: #e8e8e8; border: 1px solid #888; }
.ap-ligne.courante { background: #fff; border-color: #000; }
.ap-appareil { font-weight: bold; overflow-wrap: anywhere; }
.ap-ici { color: #006000; }
.ap-dates { font-size: 10px; color: #333; }
.ap-ligne .cpt-bouton { justify-self: start; }

/* Panneau Profil : type de profil, Premium, petits boutons du compte. */
#panel-profil .profil-type { display: grid; gap: 0; padding: 3px 5px; background: #d8d8d8; border: 1px solid #000; font: bold 11px "Courier New", Courier, monospace; }
#panel-profil .profil-type small { font: normal 9px Verdana, Geneva, sans-serif; color: #333; }
.pt-type.invite { color: #666; }
.pt-type.enregistre { color: #006000; }
.pt-premium.oui { color: #006000; }
.pt-premium.non { color: #c00000; }
.profil-cpt-boutons { display: flex; flex-wrap: wrap; gap: 2px; }
.profil-cpt-boutons:empty { display: none; }
.pc-bouton { height: 17px; padding: 0 4px; font: 10px Verdana, Geneva, sans-serif; color: #000; background: #fff; border: 1px solid #000; border-radius: 0; cursor: pointer; white-space: nowrap; }
.pc-bouton:hover { background: #f0f0f0; }
#pc-deconnexion { color: #a00000; }

/* Design : réponse positive de la petite fenêtre (lien envoyé, demande enregistrée). */
.dc-reponse.ok { color: #006000; }

@media (max-width: 760px) {
  .cpt-fond { align-items: flex-start; }
  .cpt-fenetre { width: 100%; }
  .cpt-codes { columns: 1; }
  .ce-bouton.principal { white-space: normal; height: auto; min-height: 21px; }
}

/* MASTER — petite fenêtre Classic générique (Reset) : barre grise, bordure fine, police rétro compacte. */
.fenetre-classic {
  position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 22; width: 340px; max-width: calc(100vw - 16px);
  background: #efece6; border: 1px solid #000; box-shadow: 3px 3px 0 rgba(0, 0, 0, .35); font: 11px Verdana, Geneva, sans-serif; color: #000;
}
.fenetre-classic[hidden] { display: none; }
/* Fenêtre « Rechercher un pseudo » : une seule des deux parties (recherche ou message Premium), quel que soit le thème
   (certains imposent display à .fc-corps). */
#fenetre-pseudo .fc-corps[hidden], #fenetre-pseudo [hidden] { display: none !important; }
.fc-barre { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 2px 8px; background: #d8d8d8; border-bottom: 1px solid #000; font: bold 12px "Courier New", Courier, monospace; }
.fc-fermer { width: 16px; height: 16px; padding: 0; border: 1px solid #000; background: #e89c9c; font: bold 10px/14px Verdana, sans-serif; color: #000; }
.fc-corps { display: grid; gap: 5px; padding: 8px 10px 10px; }
.fc-corps p { margin: 0; }
.fc-corps label { display: flex; gap: 5px; align-items: center; }
.fc-note { color: #555; font-size: 10px; }
.fc-boutons { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
/* MASTER : cases du Filtre à libellé long, la case reste à gauche du texte (pas de retour à la ligne sous la case). */
#panel-filtre label:has(> input[type=checkbox]) { flex-wrap: nowrap; align-items: flex-start; }
#panel-filtre label > input[type=checkbox] { flex: none; margin-top: 1px; }
/* S1 : listes de « Mes données » et bouton de suppression définitive. */
.cpt-liste { font-size: 11px; } .cpt-liste ul { margin: 2px 0 4px; padding-left: 16px; } .cpt-liste li { margin: 1px 0; }
.cpt-bouton.danger { background: #f2a3a3; font-weight: bold; }

/* =====================================================================
   Gestionnaire commun des fenêtres Classic (public/fenetres.js) : styles de base NEUTRES ; les présentations les
   surchargent (.fenetre, .fenetre-barre, .fenetre-titre, .fenetre-fermer, .fenetre-corps, data-fenetre="…").
   Empilement : fenêtres 30 à 900 (fenetres.js) ; au-dessus, toujours : menu d'un pseudo, appels, modales, toast.
   ===================================================================== */
.menu { z-index: 1000; }
.toast { z-index: 1001; }
body .hors-ligne { z-index: 1002; }
body .appel { z-index: 990; }
body .media-demandes { z-index: 995; }
body .photo-fond { z-index: 1040; }
body .cpt-fond { z-index: 1050; }
.fenetre-barre, .cam-titre, .profil-titre { user-select: none; -webkit-user-select: none; touch-action: none; }
.profil-titre, #fenetre-reset .fc-barre { cursor: move; }

.fenetre-gen {
  position: fixed; left: 0; top: 0; z-index: 30; display: flex; flex-direction: column; min-width: 180px; max-width: calc(100vw - 8px); max-height: calc(100vh - 8px);
  background: #efefef; color: #000; border: 1px solid #000; box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); font: 11px Verdana, Geneva, sans-serif;
}
.fenetre-gen[hidden] { display: none; }
.fenetre-gen .fenetre-barre {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 2px 3px 2px 6px; background: #c8c8c8; border-bottom: 1px solid #000;
  font: bold 12px "Courier New", Courier, monospace; cursor: move;
}
.fenetre-gen .fenetre-titre { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fenetre-gen .fenetre-fermer { flex: none; width: 17px; height: 17px; padding: 0; border: 1px solid #000; background: #b55fd6; color: #fff; font: bold 11px/15px Verdana, sans-serif; cursor: pointer; }
.fenetre-gen .fenetre-corps { flex: 1; min-height: 0; overflow: auto; padding: 6px 8px; }
.fenetre-gen.fenetre-redim { resize: both; overflow: hidden; }

/* Aide et Historique */
.fenetre-aide { width: 460px; height: 360px; }
.aide-texte { white-space: pre-wrap; line-height: 1.45; }
.aide-liens { margin: 8px 0 0; }
.fenetre-historique { width: 420px; height: 320px; }
/* C13 : Gestion du salon (même fenêtre Classic grise que l'Aide et l'Historique, police compacte, bordures fines). */
.fenetre-gestion { width: 400px; height: 440px; }
.fenetre-gestion .gs-resume { display: grid; grid-template-columns: 1fr; gap: 1px; margin-bottom: 4px; }
.fenetre-gestion .gs-section { margin: 6px 0 0; border-top: 1px solid #999; padding-top: 3px; }
.fenetre-gestion .gs-titre { font-weight: bold; margin-bottom: 2px; }
.fenetre-gestion .gs-form { display: flex; flex-direction: column; gap: 2px; }
.fenetre-gestion .gs-champ { display: grid; grid-template-columns: 84px 1fr; align-items: start; gap: 4px; }
.fenetre-gestion .gs-champ input, .fenetre-gestion .gs-champ textarea { font: 11px Verdana, sans-serif; padding: 1px 3px; border: 1px solid #777; min-width: 0; resize: vertical; }
.fenetre-gestion .gs-cases { display: flex; flex-wrap: wrap; gap: 2px 10px; padding-left: 88px; }
.fenetre-gestion .gs-aide { color: #555; font-size: 10px; margin: 2px 0; }
.fenetre-gestion .gs-boutons { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.fenetre-gestion .gs-liste { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #999; max-height: 110px; overflow-y: auto; }
.fenetre-gestion .gs-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 1px 3px; border-bottom: 1px dotted #ddd; }
.fenetre-gestion .gs-liste li .btn-coco { margin-left: auto; }
.fenetre-gestion .gs-nom { font-weight: bold; }
.fenetre-gestion .gs-nom.en-ligne::before { content: "● "; color: #2a8a2a; }
.fenetre-gestion .gs-motif { color: #7a3b00; }
.fenetre-gestion .gs-vide, .fenetre-gestion .gs-attente { color: #666; font-style: italic; margin: 2px 0; }
.fenetre-gestion .gs-msg { min-height: 13px; margin: 2px 0; color: #1a4f8a; }
.fenetre-gestion .gs-erreur { color: #a00; }
.fenetre-gestion .gs-msg.erreur { color: #a00; }
/* C13 (audit visuel) : petits textes (date, « par », motif) à 10 px comme l'aide de la fenêtre (avant : <small> à
   9,17 px dans Actuel, Coconut, Brown, Tropical, Blue 2011, 10 px dans Taupe, Rose, Blue Classic). */
.fenetre-gestion small { font-size: 10px; }
/* C13 : accueil d'un salon (signé du propriétaire, distinct des avis officiels) et règles locales dans Info. */
/* Classe propre « accueil-salon » (audit visuel C13 : la classe « accueil » de la vue Cocoland lui donnait overflow
   auto ou hidden et gap 24 px selon la présentation). */
.msg.accueil-salon { background: #eef6ee; border: 1px dashed #6a9a6a; color: #234; margin: 3px 0; padding: 1px 4px; font-style: italic; }
/* C13 (audit visuel) : règles dans la police du panneau Info de la présentation (avant : Verdana 11 px forcé, alors que
   tout le panneau, description comprise, est en Courier New 11 px dans les huit présentations). */
.info-regles .regles-salon { white-space: pre-wrap; font: inherit; font-weight: normal; margin: 2px 0 4px; padding: 3px 4px; background: #fff; border: 1px solid #bbb; max-height: 140px; overflow-y: auto; }
.fenetre-historique .fenetre-corps { display: flex; flex-direction: column; gap: 4px; }
.histo-filtre { flex: none; font: 11px Verdana, sans-serif; padding: 2px 4px; border: 1px solid #777; }
.histo-liste { flex: 1; overflow-y: auto; margin: 0; padding: 0 0 0 4px; list-style: none; background: #fff; border: 1px solid #999; }
.histo-liste li { padding: 1px 2px; border-bottom: 1px dotted #ddd; word-wrap: break-word; }
.histo-liste li.system { color: #666; font-style: italic; }
.histo-liste .time { color: #888; font-size: 10px; }

/* Informations utilisateur (MP) : âge, lieu, avatar, icônes colorées */
.fenetre-infos { width: 186px; background: #b9c8ec; }
.fenetre-infos .fenetre-barre { background: #b9c8ec; border-bottom: 0; padding: 3px 3px 1px 3px; }
.fi-age { display: inline-grid; justify-items: center; min-width: 24px; padding: 0 2px; background: #9b9be0; line-height: .9; }
.fi-age b { font-size: 12px; }
.fi-age small { font-size: 9px; }
.fi-lieu { font: bold 12px "Courier New", Courier, monospace; }
.fi-pseudo { font: bold 10px Verdana, sans-serif; overflow: hidden; text-overflow: ellipsis; }
.fenetre-infos .fenetre-corps { display: flex; gap: 4px; padding: 3px; overflow: visible; }
.fi-avatar { width: 96px; height: 96px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid #333; overflow: hidden; font: 10px "Courier New", monospace; }
.fi-avatar .avatar.big { width: 96px; height: 96px; border-radius: 0; border: 0; margin: 0; }
.fi-icones { display: grid; grid-template-columns: repeat(2, 24px); gap: 3px; align-content: start; }
.fi-ico { width: 24px; height: 24px; padding: 0; border: 1px solid rgba(0, 0, 0, .35); border-radius: 4px; color: #fff; font: bold 13px/22px Verdana, sans-serif; cursor: pointer; }
.fi-ico:disabled { opacity: .35; cursor: default; }
/* Choix « Salons / Connectés » de l'accueil : seulement Classic Signature sur téléphone (themes/classic-signature.css). */
.sig-volets { display: none; }
/* Cadre réservé à l'équipe (code, fournisseur d'accès, type de compte ; adresse IP pour les administrateurs). */
.fenetre-infos .fenetre-corps { flex-wrap: wrap; }
.fi-equipe { flex: 1 0 100%; box-sizing: border-box; margin: 0; padding: 3px 5px; background: #fff8dc; border: 1px dashed #b08a2e; border-radius: 4px; color: #3a2f12; font: 11px/1.4 Verdana, sans-serif; overflow-wrap: anywhere; user-select: text; cursor: text; }
.fi-equipe p { margin: 0; }
.fi-equipe-ip { font-family: Consolas, 'Courier New', monospace; }
.fi-equipe-lieu { cursor: help; }
.profil-infos .fi-equipe { margin-top: 8px; }
.fi-favori { background: #5fb33a; } .fi-webcam { background: #3f6fd1; } .fi-audio { background: #c45ab8; } .fi-mp { background: #2a9cb8; }
.fi-amiz { background: #8d55e6; } .fi-infos { background: #e19a2a; } .fi-plus { background: #3e9b3a; } .fi-signaler { background: #d23b3b; } .fi-aide { background: #555; }
.fenetre-infos[data-parti] :is(.fi-avatar, .fi-age, .fi-lieu) { opacity: .55; }
.aide-fiche { margin: 0; padding: 0 0 0 16px; max-width: 360px; }
.aide-fiche li { margin: 2px 0; }
.aide-fiche li.inactif { color: #666; }

/* Panneau micro rétro : petit encadré blanc à bord noir (affiché par les présentations historiques). */
#view-chat { position: relative; }
.panneau-micro { display: none; }
html:is([data-apparence="tropical"], [data-apparence="blue2011"], [data-apparence="taupe"], [data-apparence="rose"], [data-apparence="blueclassic"]) .panneau-micro:not([hidden]) {
  display: block; position: absolute; right: 8px; bottom: 8px; z-index: 5; width: 190px;
  background: #fff; border: 1px solid #000; padding: 3px; font: 11px Verdana, sans-serif;
}
html:is([data-apparence="taupe"], [data-apparence="rose"], [data-apparence="blueclassic"])[data-gabarit="historique"] .panneau-micro:not([hidden]) { right: calc(var(--u, 1px) * 354 + 8px); }
.pm-ligne { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pm-bouton { font: bold 11px "Courier New", Courier, monospace; padding: 0 4px; border: 1px solid #000; background: #e8e8e8; color: #000; cursor: pointer; }
.pm-bouton.actif { background: #b8e6a6; }
.pm-bouton:disabled { color: #888; cursor: default; }
.pm-etat { font-size: 9px; color: #555; margin: 2px 0; }
.pm-participants { list-style: none; margin: 0 0 3px; padding: 0; max-height: 90px; overflow-y: auto; }
.pm-participants li { font: bold 11px "Courier New", Courier, monospace; cursor: pointer; display: flex; gap: 3px; }
.pm-participants li.parle .nom { background: #c9f2bb; }
.pm-participants li.vide { font-weight: normal; font-style: italic; cursor: default; }

/* Liste du salon flottante : fermée (rouverte par « Liste du salon »), redimensionnable quand elle est dépliée. */
html:is([data-apparence="tropical"], [data-apparence="blue2011"], [data-apparence="blueclassic"])[data-gabarit="historique"] #chat-side.fermee { display: none !important; }
html:is([data-apparence="tropical"], [data-apparence="blue2011"], [data-apparence="blueclassic"])[data-gabarit="historique"] #chat-side:not(.replie) { resize: both; }

/* Annonces automatiques de modération : ligne grise en italique, légèrement décalée */
.msg.system.moderation { padding-left: 10px; font-style: italic; color: #777; }
.msg.system.moderation::before { content: '-'; margin-right: 1px; }
/* Bulle d'information : texte seul, ne doit jamais empêcher de cliquer dans la saisie qu'elle recouvre. */
.toast { pointer-events: none; }

/* En tête d'un MP : informations sur l'interlocuteur (statut, niveau, présence, ville), gris italique. */
.messages .mp-infos { margin: 0; color: #777; font-style: italic; font-size: .92em; line-height: 1.35; }

/* Charte en 10 étapes (avant l'entrée) et fenêtres du site Oui / Non et OK (remplacent les boîtes du navigateur). */
#charte-fond { z-index: 1042; }   /* au-dessus des décors des pages d'entrée et (C10) de toute fenêtre (30 à 900) */
.charte-fenetre { width: min(560px, calc(100vw - 32px)); }
.charte-etape { margin: 0 0 4px; font-size: 12px; font-weight: bold; color: #b00020; }
.charte-titre { margin: 6px 0; font-size: 16px; }
.charte-texte { max-height: none; min-height: 72px; font-size: 14px; line-height: 1.5; }
.charte-engagement { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 4px; font-weight: bold; cursor: pointer; }
.charte-engagement input { margin-top: 3px; }
.confirm-fond { z-index: 1045; }   /* C10 : Oui / Non et OK toujours au-dessus des fenêtres (30 à 900) */
.confirm-fenetre { width: min(420px, calc(100vw - 32px)); text-align: center; }
.confirm-icone { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.confirm-message { white-space: pre-line; margin: 4px 0 10px; font-size: 14px; }
.confirm-fenetre .doc-actions { justify-content: center; }

/* C1 : bouton discret « ⋮ » des messages (visible au survol ou au clavier), actions du message en tête du menu. */
.msg { position: relative; }
.msg-menu {
  display: inline-block; margin-left: 6px; padding: 0 4px; border: 1px solid #bbb; border-radius: 6px; background: #fff;
  font: bold 11px/12px Verdana, sans-serif; color: #444; cursor: pointer; opacity: 0; vertical-align: text-top;
}
.msg:hover > .msg-menu, .msg-menu:focus-visible { opacity: 1; }
/* Boîte en ligne d'interligne nul : juste après le texte, sans jamais agrandir la ligne (les présentations Classic
   imposent leur taille aux enfants des messages). */
#messages .msg > .msg-menu { display: inline; font-size: 11px; line-height: 0; padding: 1px 4px; vertical-align: 1px; }
@media (hover: none) { .msg-menu { opacity: .6; } }
.menu .menu-message { padding: 3px 6px; border-bottom: 1px solid #ccc; color: #555; }
.menu .msg-action { font-weight: bold; }
/* C1 : aperçu d'avatar (carré, bord discret), devant la liste ; ne capte pas la souris. */
.apercu-avatar { position: fixed; z-index: 1003; width: 180px; height: 180px;   /* ≈ capture : carré 180 px */ padding: 0; background: #111; border: 1px solid #555; pointer-events: none; box-shadow: 2px 2px 0 rgba(0, 0, 0, .2); }
.apercu-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* C1 : fenêtre micro — voyant, CTRL, croix. */
.pm-haut { position: relative; padding-right: 26px; }
.pm-voyant { position: absolute; right: 13px; top: 1px; width: 9px; height: 9px; background: #aaa; border: 1px solid #555; }
.pm-voyant.relie { background: #3acf53; border-color: #1e7a2c; }
.pm-voyant.attente { background: #f0a020; border-color: #8a5a00; }
.pm-voyant.echec { background: #d93a2b; border-color: #7a1a10; }   /* C17 : liaison audio perdue avec une personne */
.pm-fermer { position: absolute; right: 0; top: -2px; width: 12px; height: 12px; padding: 0; border: 0; background: none; font: bold 12px/12px Verdana, sans-serif; color: #333; cursor: pointer; }
#panneau-micro button.pm-fermer { background: none !important; border: 0 !important; padding: 0 !important; }

/* C3 : fenêtre rouge « Salon soumis à une restriction d'âge (18+) » (fond rouge mat, bord noir fin, texte noir compact,
   bouton bleu foncé à cadenas) ; « - Bloqué » rouge ; 🔞 des salons à vérification. */
.age-popup {
  position: fixed; z-index: 1035; width: 310px; padding: 10px 12px 12px; box-sizing: border-box;   /* C10 : au-dessus des fenêtres */
  background: #d06a6a; border: 1px solid #5a1d1d; color: #000; font: 13px/1.35 "Lucida Console", "Courier New", Courier, monospace;
}
.age-popup-titre { margin: 4px 18px 14px 0; }
.age-popup-etat { margin: -6px 0 8px; font-size: 11px; color: #2a0000; }
.age-popup-etat:empty { display: none; }
.age-verifier {
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 8px; border: 1px solid #23255a; border-radius: 2px;
  background: #3e4288; color: #fff; font: bold 13px "Lucida Console", "Courier New", Courier, monospace; cursor: pointer;
}
.age-verifier:disabled { opacity: .55; cursor: default; }
.age-cadenas { font-size: 13px; }
.age-fermer { position: absolute; right: 4px; top: 2px; padding: 0 4px; border: 0; background: none; font: bold 15px Verdana, sans-serif; color: #2a0000; cursor: pointer; }
.salons-box li .bloque-txt { color: #cc0000; font-weight: bold; }
.salons-box li:has(.bloque-txt) .name { color: #cc0000; }
.picto.age18 { font-size: .85em; margin-left: 2px; }
/* ♦ « a une photo de profil » : affiché dans la liste Blue Classic (capture du propriétaire), masqué ailleurs. */
#chat-users .ls-photo { display: none; }
html[data-apparence="blueclassic"][data-gabarit="historique"] #chat-users .ls-photo { display: inline; order: 3; color: #000; font-size: .85em; margin-left: -2px; cursor: default; }
/* Accueil façon Coco (Blue Classic) : choix du genre ou de l'âge en rouge à la place de la ligne d'en-tête. */
.users-head.choix > span:not(.head-choix) { display: none; }
.users-head .head-choix:not([hidden]) { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .3em 2.2em; flex-wrap: wrap; cursor: default; }
.users-head .head-choix b { margin-right: -1.8em; color: #000; }
.users-head .head-choix button { padding: 0; background: none; border: 0; box-shadow: none; font: inherit; color: #e00000; text-decoration: none; cursor: pointer; }
.users-head .head-choix, .users-head .head-choix:hover { text-decoration: none; }   /* le soulignement au survol des en-têtes ne vaut pas ici */
.users-head .head-choix button:hover { text-decoration: underline; }
/* Filtre façon Coco (Blue Classic) : cadre rose à la place du bouton ♠Filtre, boutons gris ; réglage actif en vert. */
.filtre-coco:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 104px; padding: 40px 0 12px; box-sizing: border-box; background: #dcb4d0; border: 1px solid #333; font: bold 12px/1.25 "Courier New", monospace; }
html[data-apparence] #filtre-coco .fc-bouton, html[data-apparence] #filtre-coco .fc-age { font: bold 12px/1.25 "Courier New", Courier, monospace; }
.filtre-coco .fc-bouton { width: 86px; padding: 3px 2px; background: #e2e2e2; border: 0; color: #111; cursor: pointer; }
.filtre-coco .fc-bouton[aria-pressed="true"] { background: #a8dca8; outline: 1px solid #2d6a2d; }
.filtre-coco .fc-bouton:hover { filter: brightness(1.05); }
.filtre-coco .fc-age { display: flex; align-items: center; gap: 4px; width: 86px; padding: 3px 0 3px 2px; box-sizing: border-box; background: #e2e2e2; overflow: visible; }
.filtre-coco .fc-age input { flex: 0 0 34px; width: 34px; margin-right: -12px; padding: 4px 3px; border: 1px solid #888; border-radius: 4px; background: #fff; font: 12px Verdana, sans-serif; -moz-appearance: textfield; }
.filtre-coco .fc-age input::-webkit-inner-spin-button { -webkit-appearance: none; }
.filtre-coco .fc-plus { margin-top: 4px; padding: 0; background: none; border: 0; font: 9px Verdana, sans-serif; color: #333; text-decoration: underline; cursor: pointer; }
/* Photo de salon en Blue Classic : « ........ » et le pictogramme d'appareil photo, à la couleur de l'auteur, sans lien
   souligné (Cocoland). « Signaler » est dans la fenêtre de la photo, pas sur la ligne. */
html[data-apparence="blueclassic"] .msg.photo-salon .photo-icone { width: 28px; height: 20px; margin-left: 1px; vertical-align: text-bottom; }
html[data-apparence="blueclassic"][data-gabarit="historique"] .msg.photo-salon .photo-lien { padding: 0 2px; background: none; border: 0; color: var(--couleur-auteur, #000); font: inherit; text-decoration: none; cursor: pointer; }
html[data-apparence="blueclassic"][data-gabarit="historique"] .msg.photo-salon .photo-lien:hover { text-decoration: underline; }
html[data-apparence="blueclassic"][data-gabarit="historique"] .msg.photo-salon .photo-signaler { display: none; }
/* Notes de 0 à 10 d'une photo de salon : colonne de carrés arrondis colorés à gauche de la photo (Cocoland). */
#photo-vue.avec-notes { display: grid; grid-template-columns: 58px 1fr; column-gap: 8px; }
#photo-vue.avec-notes > :not(.photo-notes) { grid-column: 2; }
.photo-notes { grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; background: #eeeeee; align-items: center; }
.photo-note { width: 44px; height: 40px; border: 1px solid #333; border-radius: 6px; font: 16px Verdana, sans-serif; color: #111; cursor: pointer; }
.photo-note:hover:not(:disabled) { filter: brightness(1.08); }
.photo-note.choisie { outline: 3px solid #000; outline-offset: 1px; font-weight: bold; }
.photo-note:disabled { cursor: default; opacity: .75; }
.photo-notes-resume { margin: 4px 0 0; font: 10px/1.2 Verdana, sans-serif; text-align: center; color: #333; }

/* « ^^^ » (historique) en haut d'un salon : seulement en Blue Classic (classic-blueclassic.css). */
.haut-histo { display: none; }

/* Fenêtres de la colonne (présentations Classic, salon ou MP ouvert) : Filtre, Design, Profil, Info et Amiz
   s'ouvrent par-dessus la conversation (app.js, ouvrirPanneauFlottant) ; barre de titre déplaçable, croix, Échap.
   Les présentations peuvent préciser la place et les couleurs (ex. Design en Blue Classic). */
.side-panel > .pf-barre { display: none; }
@media (min-width: 761px) {
  html[data-gabarit="historique"] .app > .side-panel.flottant {
    position: fixed; left: 50%; top: 80px; right: auto; bottom: auto; width: 300px; max-width: calc(100vw - 16px);
    max-height: calc(100vh - 120px); overflow-y: auto; margin: 0; padding-top: 0; box-sizing: border-box; z-index: 30;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, .3);
  }
  html[data-gabarit="historique"] .app > .side-panel.flottant[hidden] { display: none; }
  html[data-gabarit="historique"] .app > .side-panel.flottant > .pf-barre {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; position: sticky; top: 0; z-index: 2;
    margin: 0 -8px 2px; padding: 2px 4px 2px 8px; background: #c8c8c8; border-bottom: 1px solid #555;
    font: bold 12px "Courier New", Courier, monospace; color: #000; cursor: move; user-select: none; touch-action: none;
  }
  html[data-gabarit="historique"] .app > .side-panel.flottant .pf-titre { flex: 1; }
  html[data-gabarit="historique"] .app > .side-panel.flottant .pf-fermer {
    flex: none; padding: 0 4px; font: bold 11px/14px Verdana, Geneva, sans-serif; color: #000; background: #eee; border: 1px solid #555; border-radius: 0; cursor: pointer;
  }
}


/* C5 : nouveaux messages arrivés pendant la lecture plus haut — petit bouton au bas de la conversation. */
.nouveaux-messages { position: fixed; z-index: 25; padding: 1px 8px; border: 1px solid #000; border-radius: 0; background: #ffffe0; color: #000; font: bold 11px Verdana, Geneva, sans-serif; cursor: pointer; box-shadow: 1px 1px 0 rgba(0, 0, 0, .3); }
.nouveaux-messages[hidden] { display: none; }

/* C9 — fenêtre PACK PREMIUM : tableau compact des 7 durées et historique du titulaire (style de la fenêtre beige). */
.pp-durees { width: 100%; border-collapse: collapse; font: 10px Verdana, Geneva, sans-serif; background: #f3e6c6; border: 1px solid #b8995a; }
.pp-durees caption { text-align: left; font-weight: bold; padding: 0 0 2px; }
.pp-durees th, .pp-durees td { padding: 1px 4px; border-top: 1px solid #d8c394; text-align: left; font-weight: normal; }
.pp-durees th { font-weight: bold; white-space: nowrap; }
.pp-durees small { color: #555; }
.pp-durees .pp-choisir { padding: 0 5px; font: 10px Verdana, Geneva, sans-serif; background: #5aa83c; color: #fff; border: 1px solid #2c5a1a; border-radius: 2px; cursor: pointer; }
.pp-durees .pp-choisir.choisie { background: #2c5a1a; outline: 1px solid #000; }
.pp-historique { padding: 3px 6px; background: #f3e6c6; border: 1px solid #b8995a; }
.pp-historique summary { cursor: pointer; font-weight: bold; }
.pp-historique table { width: 100%; border-collapse: collapse; font: 10px Verdana, Geneva, sans-serif; }
.pp-historique td { padding: 1px 3px; border-top: 1px solid #d8c394; }
/* C9 — badge de l'équipe dans la liste des connectés : ADMIN distinct de MODO. */
#users .badge.badge-admin { background: #b4141a; color: #fff; }
.pp-durees-bloc { padding: 3px 6px; background: #f3e6c6; border: 1px solid #b8995a; }
.pp-durees-bloc summary { cursor: pointer; font-weight: bold; }
.pp-durees-bloc summary small { font-weight: normal; }
.pp-durees-bloc .pp-durees { margin-top: 3px; border: 0; }
/* Fenêtre Design : « présentation… » (repli) et « Agrandir avec la fenêtre » n'existent qu'en Blue Classic historique. */
#panel-design .dc-presentations, #panel-design .dc-echelle { display: none; }

/* ── Téléphone, troisième passe (06/12/2026) ── */
/* iPhone : Safari agrandit toute la page dès qu'on touche un champ écrit en moins de 16 px, et ne revient pas tout seul.
   Sur un petit écran ou un appareil tactile, tous les champs de saisie sont donc écrits en 16 px (toutes présentations). */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="file"]):not([type="color"]), select, textarea { font-size: 16px !important; }
  html:not([data-apparence="signature"]) :is(.cpt-input, .cpt-champ select) { height: auto; min-height: 26px; }
}
/* Bouton « Envoyer » de la saisie : affiché seulement par la présentation Signature sur téléphone ; ailleurs la touche
   Entrée envoie (le bouton reste dans la page pour que le clavier du téléphone valide bien le formulaire). */
#envoyer-btn { display: none; }
