/* Modèle A — « Verre de nuit » : habillage du HUD et des fenêtres, chargé après style.css. */
/* Les icônes sont celles de l’interface lisse (/img/icones.svg) : elles prennent la couleur du texte (currentColor). */

/* Ordinateur : la barre d'onglets flotte au-dessus de la salle (plus de bande vide sous la salle). */
@media (min-width: 901px) {
  .stage-wrap { position: relative; }
  .mainnav { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; }
  .actionbar { bottom: 92px; }
  /* « Live au-dessus du chat » : la barre d'onglets se pose dans la colonne de la salle (même axe que les gestes) */
  body.live-side .mainnav { position: relative; left: auto; bottom: auto; transform: none; grid-column: 1; grid-row: 2; align-self: end; justify-self: center; margin: 0 0 14px; }
}

/* ==========================================================================
   Modèle A — « Verre de nuit »
   Panneaux en verre dépoli posés sur la salle, contours fins lumineux, ombres
   douces, accent dégradé lavande → rose. Thème Nuit : verre sombre ; thème Clair : verre
   laiteux (mêmes formes, mêmes jetons --g-*).
   ========================================================================== */
html[data-theme] {
  color-scheme: dark;
  --glass: rgba(28, 24, 58, 0.72);
  --glass-strong: rgba(24, 20, 50, 0.86);
  --glass-line: rgba(255, 255, 255, 0.13);
  --glass-hi: rgba(255, 255, 255, 0.07);
  --grad: linear-gradient(135deg, #b9a3e3 0%, #f3b6c9 100%);
  --panel: var(--glass-strong);
  --panel-ink: #f4effc;
  --muted: #b3a9cf;
  --surface-raised: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --surface-warm: transparent;
  --text: #f4effc;
  --text-soft: #d3cae8;
  --accent-text: #d9c8ff;
  --outline: var(--glass-line);
  --shadow-hard: transparent;
  --line: rgba(255, 255, 255, 0.1);
  --btn-bg: rgba(255, 255, 255, 0.07);
  --btn-hover: rgba(255, 255, 255, 0.14);
  --btn-primary: #c9b2f0;
  --btn-primary-hover: #d8c6f7;
  --btn-primary-text: #1d1838;
  --btn-lav: rgba(185, 163, 227, 0.22);
  --btn-danger: rgba(224, 90, 116, 0.28);
  --btn-danger-text: #ffd9e1;
  --chip-bg: rgba(185, 163, 227, 0.2);
  --hi-bg: rgba(242, 180, 80, 0.24);
  --field-bg: rgba(8, 6, 22, 0.45);
  --field-text: #f4effc;
  --field-placeholder: #8f86ad;
  --tint-lav: rgba(185, 163, 227, 0.12);
  --tint-rose: rgba(243, 182, 201, 0.12);
  --tint-amber: rgba(242, 180, 80, 0.12);
  --tint-sage: rgba(156, 196, 164, 0.14);
  --ok-text: #9be0b2;
  --warn-text: #f5cd7c;
  --err-text: #ffa9bb;
  --err-bg: rgba(224, 90, 116, 0.2);
  --stage-in: #43386e;
  --stage-out: #1b1636;
  --backdrop: rgba(10, 8, 26, 0.38);
  --scroll-thumb: rgba(255, 255, 255, 0.18);
  --scroll-track: transparent;
  /* jetons de l'interface lisse, repris en verre */
  --hud-surface: var(--glass);
  --hud-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.32);
  --hud-shadow-strong: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --hud-accent: #d9c8ff;
  --hud-accent-pale: rgba(185, 163, 227, 0.2);
  --hud-text-pale: #b3a9cf;
  /* verre : barres, fenêtres, chat, encre, survol, sélection, ombres */
  --g-bar: rgba(18, 15, 38, 0.72);
  --g-modal: rgba(26, 22, 54, 0.8);
  --g-modal-line: rgba(255, 255, 255, 0.16);
  --g-chat: rgba(20, 17, 42, 0.92);
  --g-ink: #efe8ff;
  --g-ink-soft: #cfc5ea;
  --g-ink-strong: #ffffff;
  --g-hover: rgba(255, 255, 255, 0.08);
  --g-faint: rgba(255, 255, 255, 0.05);
  --g-sel: rgba(185, 163, 227, 0.22);
  --g-sel-line: rgba(201, 178, 240, 0.55);
  --g-ring: #c9b2f0;
  --g-shade: rgba(0, 0, 0, 0.45);
  --g-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --g-page: #120f26;
  --g-game: linear-gradient(180deg, #1a1638, #120f26);
  --g-cinema: radial-gradient(ellipse at 50% 0%, #2c2152, #120f26 75%);
  --g-avatar-ring: #2a2350;
  --g-warn-bg: rgba(242, 180, 80, 0.16);
  --g-warn-line: rgba(242, 180, 80, 0.3);
  --g-solid: #1d1838;
}
/* Thème Clair : verre laiteux, encre prune, mêmes accents */
html[data-theme='clair'] {
  color-scheme: light;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(74, 58, 120, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.6);
  --grad: linear-gradient(135deg, #a98ce0 0%, #ee9ab8 100%);
  --panel: var(--glass-strong);
  --panel-ink: #2a2140;
  --muted: #6c6385;
  --surface-raised: rgba(255, 255, 255, 0.6);
  --surface-hover: rgba(138, 114, 196, 0.08);
  --text: #2a2140;
  --text-soft: #4a4064;
  --accent-text: #6a4f9a;
  --line: rgba(74, 58, 120, 0.12);
  --btn-bg: rgba(255, 255, 255, 0.7);
  --btn-hover: #ffffff;
  --btn-primary-text: #ffffff;
  --btn-lav: rgba(185, 163, 227, 0.25);
  --btn-danger: #f5c2cd;
  --btn-danger-text: #6e1830;
  --chip-bg: rgba(185, 163, 227, 0.22);
  --hi-bg: #fff0d1;
  --field-bg: rgba(255, 255, 255, 0.85);
  --field-text: #2a2140;
  --field-placeholder: #8a8199;
  --tint-lav: rgba(185, 163, 227, 0.14);
  --tint-rose: rgba(243, 182, 201, 0.2);
  --tint-amber: #fff3d6;
  --tint-sage: #dcf5e3;
  --ok-text: #3d7a55;
  --warn-text: #8a5a00;
  --err-text: #8c1d36;
  --err-bg: #ffe1e7;
  --stage-in: #efe7fb;
  --stage-out: #ffffff;
  --backdrop: rgba(42, 33, 64, 0.22);
  --scroll-thumb: rgba(74, 58, 120, 0.25);
  --hud-shadow: 0 1px 2px rgba(46, 40, 90, 0.08), 0 8px 22px rgba(46, 40, 90, 0.12);
  --hud-shadow-strong: 0 14px 40px rgba(46, 40, 90, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --hud-accent: #7a5fc0;
  --hud-accent-pale: rgba(185, 163, 227, 0.25);
  --hud-text-pale: #6c6385;
  --g-bar: rgba(255, 255, 255, 0.72);
  --g-modal: rgba(255, 255, 255, 0.82);
  --g-modal-line: rgba(255, 255, 255, 0.9);
  --g-chat: rgba(255, 255, 255, 0.9);
  --g-ink: #2a2140;
  --g-ink-soft: #5d5378;
  --g-ink-strong: #2a2140;
  --g-hover: rgba(138, 114, 196, 0.1);
  --g-faint: rgba(255, 255, 255, 0.55);
  --g-sel: rgba(169, 140, 224, 0.2);
  --g-sel-line: rgba(138, 114, 196, 0.55);
  --g-ring: #8a72c4;
  --g-shade: rgba(46, 40, 90, 0.18);
  --g-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --g-page: #efe5f7;
  --g-game: linear-gradient(180deg, #efe5f7, #f7eee4);
  --g-cinema: radial-gradient(ellipse at 50% 0%, #e9ddf8, #f4ecf8 75%);
  --g-avatar-ring: #ffffff;
  --g-warn-bg: #fff4dc;
  --g-warn-line: rgba(242, 180, 80, 0.45);
  --g-solid: #fbf8ff;
}
html[data-theme] body { background: var(--g-page); }
html[data-theme] .game { background: var(--g-game); }

/* Boutons : verre, sans contour épais ni ombre pleine */
.btn { border: 1px solid var(--glass-line); border-radius: 12px; box-shadow: var(--g-inset); font-weight: 700; }
.btn:active { transform: scale(0.97); box-shadow: none; }
.btn:focus-visible { outline: 2px solid #f3b6c9; outline-offset: 2px; }
.btn.primary { background: var(--grad); border-color: transparent; color: var(--btn-primary-text); box-shadow: 0 6px 18px rgba(214, 160, 220, 0.35); }
.btn.primary:hover { filter: brightness(1.06); background: var(--grad); }
.btn.small { box-shadow: none; }
/* bouton enfoncé, onglet ou filtre choisi : lavande (et non l'ambre du thème d'origine) */
.btn.on, .btn[aria-pressed='true'] { background: var(--g-sel); color: var(--g-ink-strong); box-shadow: inset 0 0 0 1px var(--g-sel-line); }
.btn.round { background: var(--glass); color: var(--g-ink); box-shadow: 0 6px 16px var(--g-shade); }
input, select, textarea { border: 1px solid var(--glass-line) !important; border-radius: 12px !important; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(243, 182, 201, 0.8); }

/* sélections des grilles (objets, tenues, compagnons, poses) : même lavande que les boutons choisis */
.thumb-opt[aria-pressed='true'], .swatch[aria-pressed='true'], .outfit[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--g-ring), 0 0 14px var(--g-sel-line); }
.opt[aria-pressed='true'], .pet-card.on, .wardrobe .rot .btn[aria-pressed='true'] { background: var(--g-sel); box-shadow: 0 0 0 2px var(--g-ring); }
.room-item:hover, .room-item:focus-visible, .item-card:hover, .item-card:focus-visible { box-shadow: 0 0 0 2px var(--g-sel-line); }
.nav-tab:focus-visible, .prog-card:focus-visible, .seg-btn:focus-visible, .me-chip-open:focus-visible, .me-chip-name:focus-visible { outline-color: #f3b6c9; }

/* Barre du haut : transparente et floutée */
.topbar { background: var(--g-bar); color: var(--g-ink); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--glass-line); }
.room-title strong { font-size: 16px; letter-spacing: 0.2px; }
.topbar .top-icon { border-radius: 14px; background: var(--g-faint); color: var(--g-ink); }
.me-chip { background: var(--g-faint); border: 1px solid var(--glass-line); border-radius: 18px; }
.me-chip-av { border: 2px solid transparent; background: linear-gradient(var(--g-avatar-ring), var(--g-avatar-ring)) padding-box, var(--grad) border-box; }
.lvl-badge { background: var(--grad); color: var(--btn-primary-text); border: 0; }
.xp-bar { background: var(--g-hover); height: 5px; }
.xp-bar > span { background: var(--grad); box-shadow: 0 0 10px rgba(243, 182, 201, 0.7); }
.sim-banner { background: var(--g-warn-bg); color: var(--warn-text); border-bottom: 1px solid var(--g-warn-line); }

/* Dock de navigation flottant */
html[data-theme] .mainnav { background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--glass-line); border-radius: 22px; box-shadow: 0 14px 40px var(--g-shade), var(--g-inset); padding: 6px; }
.nav-tab { color: var(--g-ink-soft); font-weight: 700; border: 0; border-radius: 16px; gap: 4px; }
.nav-tab:hover { background: var(--g-hover); color: var(--g-ink-strong); }
.nav-tab.on, .nav-tab[aria-expanded='true'] { background: var(--g-sel); color: var(--g-ink-strong); box-shadow: inset 0 0 0 1px var(--g-sel-line); }
.actionbar { background: var(--glass); backdrop-filter: blur(18px); border: 1px solid var(--glass-line); border-radius: 20px; box-shadow: 0 14px 40px var(--g-shade); }
.actionbar .btn { background: transparent; border-color: transparent; color: var(--g-ink); box-shadow: none; }
.actionbar .btn:hover { background: var(--g-hover); }

/* Fenêtres : verre dépoli, grands rayons */
.modal { background: var(--g-modal); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--g-modal-line); border-radius: 26px; box-shadow: 0 30px 80px var(--g-shade), var(--g-inset); }
.modal::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }
.modal-head { background: transparent; border-bottom: 1px solid var(--line); padding: 16px 16px 14px 22px; }
.modal-head h2 { font-size: 21px; font-weight: 800; letter-spacing: 0.2px; }
.modal-head h2::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 10px 3px 0; background: var(--grad); box-shadow: 0 0 12px #f3b6c9; }
.modal-body { padding: 16px 22px 22px; }
#modal-close { border-radius: 50%; width: 38px; }
.shop-card, .shop-modes .shop-mode, .shop-detail { border: 1px solid var(--glass-line) !important; border-radius: 18px; background: var(--g-faint); }
.shop-card:hover { background: var(--g-hover); }
.shop-modes .shop-mode.on { background: var(--g-sel); box-shadow: inset 0 0 0 1px var(--g-sel-line); }
.shop-cats .btn.on { background: var(--grad); color: var(--btn-primary-text); }

/* Chat : colonne de verre */
.chat-panel { background: var(--g-chat); border-left: 1px solid var(--glass-line); }
.resizer { background: transparent; width: 6px; }
.chat-head, .chat-tabs { background: transparent; border-bottom: 1px solid var(--line); }
.chat-tab { border: 0; border-radius: 10px; background: transparent; }
.chat-tab[aria-selected='true'] { background: var(--g-sel); }
.chat-form input { border-radius: 14px !important; }
.tw-cta { border-radius: 16px; }

/* Lecteur : cadre sobre et halo */
.cinema { background: var(--g-cinema); border-bottom: 1px solid var(--glass-line); }
.cinema-frame { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--glass-line), 0 18px 50px var(--g-shade), 0 0 60px rgba(185, 163, 227, 0.18); }
.cinema-frame::before, .cinema-frame::after, .marquee { display: none; }
.ctx-menu, .react-menu, .toast { background: var(--glass-strong); backdrop-filter: blur(18px); border: 1px solid var(--glass-line); border-radius: 18px; box-shadow: 0 16px 40px var(--g-shade); }
@media (max-width: 900px) {
  html[data-theme] .mainnav { left: 10px; right: 10px; width: auto; bottom: max(8px, env(safe-area-inset-bottom)); border-radius: 22px; border-width: 1px; padding: 4px; }
  .chat-panel { border-top: 1px solid var(--glass-line); border-radius: 22px 22px 0 0; background: var(--g-chat); backdrop-filter: blur(18px); }
  .modal { border-radius: 24px; }
}
@media (prefers-reduced-transparency: reduce) { .modal, .mainnav, .actionbar, .topbar { backdrop-filter: none; background: var(--g-solid); } }
@media (max-width: 900px) { :root { --navh: 72px; } }

/* Badges « Verre de nuit » : le médaillon est entièrement dans l'image SVG (badge-lisse.js). */
.badge-medal.lisse { background: none; border: 0; box-shadow: none; border-radius: 50%; overflow: visible; outline: 0; isolation: isolate; }
.badge-medal.lisse img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(10, 6, 30, 0.25)); }
.badge-medal.lisse.xs { width: 22px; height: 22px; }
.badge-medal.lisse.xs img { filter: none; }
.badge-medal.lisse.sm { width: 34px; height: 34px; }
.badge-medal.lisse.md { width: 60px; height: 60px; }
.badge-medal.lisse.lg { width: 84px; height: 84px; }
.badge-cell.is-main .badge-medal.lisse, .badge-medal.lisse.is-main { outline: 0; }
.badge-cell.is-main .badge-medal.lisse::before, .badge-medal.lisse.is-main::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 196, 90, 0.6), rgba(242, 196, 90, 0)); z-index: -1; }
/* Animés (BÊTA TESTEUR, mythiques) : reflet qui balaie le verre, éclat qui fait le tour du liseré. */
.badge-medal.lisse.anim::after { inset: 9%; border-radius: 50%; transform: none; background-size: 320% 100%; background-position: 120% 0; animation: badge-shine-lisse 4.2s ease-in-out infinite; }
@keyframes badge-shine-lisse { 0% { background-position: 120% 0; } 45%, 100% { background-position: -20% 0; } }
.badge-glint { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; animation: badge-glint 4.2s linear infinite;
  -webkit-mask: radial-gradient(closest-side, transparent 83%, #000 86%, #000 95%, transparent 99%); mask: radial-gradient(closest-side, transparent 83%, #000 86%, #000 95%, transparent 99%); }
.badge-medal.or .badge-glint { background: conic-gradient(from 0deg, transparent 0 74%, rgba(255, 233, 160, 0.95) 86%, transparent 96%); }
.badge-medal.iris .badge-glint { background: conic-gradient(from 0deg, rgba(159, 227, 255, 0.85), rgba(243, 182, 201, 0.85), rgba(255, 224, 138, 0.85), rgba(185, 163, 227, 0.85), rgba(159, 227, 255, 0.85)); opacity: 0.75; animation-duration: 6s; }
@keyframes badge-glint { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .badge-medal.lisse.anim::after { animation: none; opacity: 0; } .badge-glint { animation: none; } }
body.calm .badge-medal.lisse.anim::after { animation: none !important; opacity: 0; }
body.calm .badge-glint { animation: none !important; }
.status-ico.lisse { width: 20px; height: 20px; vertical-align: middle; }

/* Navigateur de salles « Carte du Cocon » (modèle C, 23/10/2026) : panels.js navigator, vignettes-salles.js.
   Le Salon du Live en grande tuile, les lieux en mosaïque, deux rangées de chambres. Les étiquettes posées sur les
   vignettes restent claires dans les deux thèmes (dégradé sombre sous le texte). */
#modal:has(.nav-cocon) { width: min(1060px, calc(100vw - 24px)); max-width: none; max-height: min(92vh, 860px); }
@media (min-width: 701px) { #modal:has(.nc-map, .nc-grid, .nc-zone > .nc-empty) { height: min(92vh, 860px); } } /* la fenêtre ne saute pas pendant une recherche */
.vignette-moteur { position: fixed; left: -10000px; top: 0; width: 480px; height: 300px; pointer-events: none; visibility: hidden; }
.nav-cocon { display: flex; flex-direction: column; gap: 14px; }
.nc-top { display: flex; gap: 10px; align-items: center; }
.nc-searchbox { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--field-bg); border: 1px solid var(--line); color: var(--muted); }
.nc-searchbox:focus-within { border-color: var(--g-sel-line); box-shadow: 0 0 0 3px var(--g-sel); }
#modal .nc-searchbox .nc-search { flex: 1; min-width: 0; height: auto; min-height: 0; padding: 0; border: 0 !important; border-radius: 0 !important; -webkit-appearance: none; appearance: none; background: none; box-shadow: none; outline: none; color: var(--field-text); font: inherit; font-size: 15px; }
.nc-searchbox .nc-search:focus-visible { outline: none; }
.nc-search::placeholder { color: var(--field-placeholder); }
.nc-ico { width: 16px; height: 16px; flex: none; }
.nc-back { flex: none; gap: 6px; align-self: flex-start; }
.nav-cocon form > h3:first-child { display: none; } /* le titre de la fenêtre dit déjà « Créer une chambre » */
.nc-map { display: flex; flex-direction: column; gap: 18px; }

/* tuiles (lieux, live, résultats) */
.nc-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
.nc-tile { position: relative; overflow: hidden; display: block; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, #2a2350, #15112d); color: #fff; font: inherit; text-align: left; cursor: pointer; isolation: isolate; transition: transform 0.15s, box-shadow 0.15s; }
.nc-tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 11, 32, 0) 38%, rgba(14, 11, 32, 0.9)); pointer-events: none; }
.nc-tile:hover:not(:disabled), .nc-tile:focus-visible { box-shadow: 0 0 0 2px var(--g-sel-line), 0 10px 26px var(--g-shade); outline: none; transform: translateY(-1px); }
.nc-tile:disabled { cursor: default; }
.nc-tile.here { box-shadow: 0 0 0 2px var(--g-sel-line); }
.nc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.nc-img.ok { opacity: 1; }
.nc-pills { position: absolute; top: 9px; right: 9px; z-index: 2; display: flex; gap: 6px; }
.nc-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(12, 10, 30, 0.66); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); white-space: nowrap; }
.nc-pill .nc-ico { width: 12px; height: 12px; }
.nc-pill.here { background: var(--grad); color: #1d1838; border-color: transparent; }
.nc-pill.full { background: rgba(224, 90, 116, 0.85); border-color: transparent; }
.nc-pill.live { background: #e05a74; border-color: transparent; letter-spacing: 0.04em; }
.nc-pill.une { background: #f6d365; color: #1d1838; border-color: transparent; letter-spacing: 0.04em; }
.nc-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #8fe0a8; box-shadow: 0 0 8px #8fe0a8; }
.nc-dot.off { background: #8b82a8; box-shadow: none; }
.nc-pill.live .nc-dot { background: #fff; box-shadow: 0 0 8px #fff; }
.nc-lab { position: absolute; left: 13px; right: 12px; bottom: 11px; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.nc-lab strong { font-size: 15px; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.nc-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #ddd3f2; min-width: 0; white-space: nowrap; }
.nc-sub > span:last-child:not(.nc-dot) { overflow: hidden; text-overflow: ellipsis; }
.nc-faces { display: inline-flex; flex: none; }
.nc-faces canvas { width: 22px; height: 22px; border-radius: 50%; background: #e9def8; border: 2px solid #231d47; margin-left: -7px; image-rendering: pixelated; }
.nc-faces canvas:first-child { margin-left: 0; }
.nc-faces canvas.kit-portrait { image-rendering: auto; }

/* Salon du Live */
.nc-live { grid-column: span 2; grid-row: span var(--live-rows, 2); }
.nc-tile.nc-wide { grid-column: span 2; grid-row: span 2; } /* jamais de bandeau : une tuile élargie garde la proportion des autres */
.nc-live::after { background: linear-gradient(180deg, rgba(60, 40, 110, 0.1), rgba(14, 11, 32, 0.92)), radial-gradient(80% 70% at 15% 10%, rgba(201, 178, 240, 0.3), transparent); }
.nc-live.on { box-shadow: 0 0 0 2px rgba(224, 90, 116, 0.7), 0 0 30px rgba(224, 90, 116, 0.25); }
.nc-live .nc-lab { left: 20px; right: 18px; bottom: 18px; gap: 4px; }
.nc-live strong { font-size: 25px; }
.nc-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #f3b6c9; }
.nc-live .nc-sub { font-size: 13.5px; white-space: normal; }
.nc-cta { align-self: flex-start; margin-top: 10px; pointer-events: none; gap: 6px; }

/* rangées de chambres */
.nc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.nc-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 8px; }
.nc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.modal-body .nc-head h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.nc-link { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent-text); cursor: pointer; }
.nc-link:hover, .nc-link:focus-visible { text-decoration: underline; outline: none; }
.nc-strip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.nc-strip > * { flex: 0 0 calc((100% - 24px) / 3); min-width: 140px; scroll-snap-align: start; }
.nc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 12px; }
.nc-grid > .nc-tile { grid-column: auto; min-height: 150px; }
.nc-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--g-faint); border: 1px solid var(--line); min-width: 0; }
.nc-card.here { box-shadow: 0 0 0 2px var(--g-sel-line); }
.nc-go { display: flex; flex-direction: column; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.nc-go:disabled { cursor: default; }
.nc-card:has(.nc-go:hover:not(:disabled)), .nc-card:has(.nc-go:focus-visible) { box-shadow: 0 0 0 2px var(--g-sel-line); }
.nc-go:focus-visible { outline: none; }
.nc-thumb { position: relative; display: block; height: 100px; background: linear-gradient(160deg, #2a2350, #15112d); }
.nc-thumb .nc-pills { top: 7px; right: 7px; }
.nc-t { display: flex; flex-direction: column; gap: 1px; padding: 8px 11px 10px; min-width: 0; }
.nc-t strong { display: flex; align-items: center; gap: 5px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--g-ink); }
.nc-t .nc-ico { width: 13px; height: 13px; color: var(--warn-text); }
.nc-t .nc-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.nc-manage { display: flex; flex-direction: column; gap: 6px; padding: 0 9px 10px; }
.nc-manage .btn { width: 100%; padding-inline: 6px; }
.nc-new { align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 12px; border: 1.5px dashed var(--g-sel-line); background: var(--g-sel); color: var(--accent-text); font: inherit; cursor: pointer; text-align: center; }
.nc-new strong { font-size: 13.5px; }
.nc-new:hover, .nc-new:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--g-sel-line); }
.nc-plus { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1d1838; margin-bottom: 4px; }
.nc-plus .nc-ico { width: 18px; height: 18px; }
.nc-empty { margin: 6px 2px; }

/* salles à thème : quatre tuiles ; fermées (« Bientôt disponible ») : vue adoucie, pastille dorée */
.nc-theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
.nc-theme-grid > .nc-tile { grid-column: auto; }
.nc-tile.soon { cursor: help; }
.nc-tile.soon .nc-img.ok { opacity: 0.75; filter: saturate(0.75); }
.nc-tile.soon::after { background: linear-gradient(180deg, rgba(14, 11, 32, 0.12) 30%, rgba(14, 11, 32, 0.9)); }
.nc-pill.soon { background: linear-gradient(135deg, #f7d37a, #f3b6c9); color: #1d1838; border-color: transparent; }
.nc-pill.soon .nc-ico { width: 12px; height: 12px; }
.nc-tile.soon.nope { animation: nc-nope 0.35s ease; }
@keyframes nc-nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.nc-tile.soon .nc-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* salle « top secret » : vignette brouillée, nom barré, tampon ; à l'ouverture, tout se dévoile d'un coup */
.nc-tile.secret .nc-img.ok { opacity: 0.9; filter: blur(12px) saturate(0.6) brightness(0.8); transform: scale(1.2); }
.nc-redact s { display: inline-block; padding: 0 6px; background: #14121b; color: transparent; text-decoration: line-through 3px #e05a74; border-radius: 2px; letter-spacing: 0.08em; user-select: none; }
.nc-stamp { position: absolute; top: 42%; left: 50%; z-index: 2; padding: 4px 12px; border: 3px solid #e05a74; border-radius: 4px; color: #e05a74; background: rgba(255, 246, 234, 0.9); font-weight: 900; font-size: clamp(13px, 3.6vw, 17px); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; transform: translate(-50%, -50%) rotate(-9deg); box-shadow: 3px 3px 0 #14121b; pointer-events: none; }
.nc-tile.reveal .nc-img.ok { animation: nc-reveal-img 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nc-tile.reveal .nc-lab strong { animation: nc-reveal-name 0.9s 0.35s ease-out both; }
.nc-tile.reveal::before { content: 'Top secret'; position: absolute; top: 40%; left: 50%; z-index: 3; padding: 4px 12px; border: 3px solid #e05a74; border-radius: 4px; color: #e05a74; background: rgba(255, 246, 234, 0.9); font-weight: 900; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; pointer-events: none; animation: nc-reveal-stamp 0.8s ease-in both; }
@keyframes nc-reveal-img { 0% { filter: blur(12px) brightness(2.2) saturate(0.6); transform: scale(1.2); } 35% { filter: blur(4px) brightness(1.6); } 100% { filter: none; transform: none; } }
@keyframes nc-reveal-name { 0% { opacity: 0; letter-spacing: 0.4em; filter: blur(4px); } 100% { opacity: 1; letter-spacing: normal; filter: none; } }
@keyframes nc-reveal-stamp { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg); } 100% { opacity: 0; transform: translate(-50%, -260%) rotate(-28deg) scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .nc-tile.reveal .nc-img.ok, .nc-tile.reveal .nc-lab strong { animation: none; } .nc-tile.reveal::before { display: none; } }

@media (max-width: 700px) {
  #modal:has(.nav-cocon) { width: 100vw; max-width: none; margin: 0; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .nc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 118px; gap: 10px; }
  .nc-tile.nc-live { grid-column: span 2; grid-row: span 2; }
  .nc-tile, .nc-tile.nc-wide { grid-column: span 1; grid-row: span 1; }
  .nc-tile.nc-m-wide { grid-column: span 2; grid-row: span 2; }
  .nc-live strong { font-size: 21px; }
  .nc-live .nc-lab { left: 16px; bottom: 14px; }
  .nc-lab strong { font-size: 14px; }
  .nc-sub { font-size: 12px; }
  .nc-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nc-strip { margin-right: -16px; padding-right: 16px; }
  .nc-strip > * { flex-basis: 150px; }
  .nc-thumb { height: 84px; }
  .nc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nc-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 118px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .nc-tile.soon.nope { animation: none; } .nc-tile, .nc-img { transition: none; } .nc-tile:hover:not(:disabled) { transform: none; } }
