/* ============================================================================
   TCHATOU — light "portal" theme, modelled on chatzona.com
   Light slate background · white cards · blue primary · Plus Jakarta Sans
   ========================================================================== */

:root {
  --bg:        #f8fafc;   /* slate-50  page background        */
  --bg-alt:    #f1f5f9;   /* slate-100 alternating sections   */
  --card:      #ffffff;   /* white cards                       */
  --border:    #e2e8f0;   /* slate-200 hairline                */
  --border-2:  #cbd5e1;   /* slate-300 stronger                */

  --ink:       #0f172a;   /* slate-900 headings/text           */
  --muted:     #64748b;   /* slate-500 secondary               */
  --faint:     #94a3b8;   /* slate-400 tertiary                */

  --blue:      #0055a4;   /* bleu de France (flag blue) primary */
  --blue-dark: #00468a;   /* hover                              */
  --blue-soft: #e8f1fa;   /* light tint                         */
  --blue-ring: rgba(0, 85, 164, 0.20);
  --green:     #16a34a;   /* online dot                        */

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow:    0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);

  --radius:    16px;
  --radius-sm: 11px;
  --maxw:      1180px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* The old dark-atmosphere layers are neutralised in the light theme. */
.aurora, .grain { display: none !important; }

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; opacity: 0.5; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --pad: 0.7rem 1.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--pad); border-radius: 10px; font-family: var(--font);
  font-weight: 700; font-size: 0.97rem; cursor: pointer; border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--faint); }
.btn--lg { --pad: 0.9rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.4rem;
  width: 100%; padding: 0.7rem max(1rem, calc((100vw - var(--maxw)) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(8px);
}
.nav__brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.25rem; }
.nav__mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(140deg, #0a6fd0, #0055a4); color: #fff;
  box-shadow: 0 2px 6px rgba(0, 85, 164, 0.35);
}
.nav__mark svg.brandmark { width: 68%; height: 68%; display: block; }
/* @Tchatou@ wordmark — the @ wrappers in the brand blue */
.at { color: var(--blue); font-weight: 800; }
.nav__word { letter-spacing: -0.02em; color: var(--ink); }
.nav__links { display: flex; gap: 1.4rem; margin-left: 0.8rem; }
.nav__links a { color: var(--muted); font-size: 0.95rem; font-weight: 600; transition: color 0.15s; }
.nav__links a:hover { color: var(--blue); }
.nav__cta { margin-left: auto; }

/* "Plus" dropdown */
.nav__more { position: relative; }
.nav__morebtn { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; font: inherit; font-size: .95rem; font-weight: 600; color: var(--muted); cursor: pointer; padding: 0; }
.nav__morebtn:hover { color: var(--blue); }
.nav__morebtn svg { transition: transform .15s; }
.nav__more:hover .nav__morebtn svg, .nav__more:focus-within .nav__morebtn svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .4rem; opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility .16s; z-index: 60; }
.nav__more:hover .nav__menu, .nav__more:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu a { display: block; padding: .55rem .8rem; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.nav__menu a:hover { background: var(--blue-soft); color: var(--blue); }

/* burger + mobile menu */
.nav__burger { display: none; flex-direction: column; gap: 4px; width: 40px; height: 40px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border-2); border-radius: 10px; cursor: pointer; margin-left: .6rem; }
.nav__burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobmenu { position: sticky; top: 49px; z-index: 49; flex-direction: column; padding: .6rem max(1rem, calc((100vw - var(--maxw)) / 2)) 1.1rem; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.mobmenu[hidden] { display: none; }
.mobmenu.is-open { display: flex; }
.mobmenu a { padding: .75rem .3rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobmenu a:last-child { border-bottom: 0; }
.mobmenu a.btn { justify-content: center; margin-top: .7rem; color: #fff; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (min-width: 821px) { .mobmenu { display: none !important; } }

/* ---- Accessibility: visible focus ---------------------------------------- */
:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 2px; }
.skiplink { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--blue); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 700; }
.skiplink:focus { left: 0; }

/* ---- Flash --------------------------------------------------------------- */
.flash { width: min(var(--maxw), 92vw); margin: 1rem auto 0; display: grid; gap: 0.5rem; }
.flash__item { padding: 0.8rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.95rem; border: 1px solid var(--border); background: #fff; }
.flash__item--error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.flash__item--success { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }

/* ---- Section scaffolding ------------------------------------------------- */
.section { padding: 3.2rem 0; }
.section__head { max-width: 42rem; margin-bottom: 1.8rem; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0.5rem 0 0.5rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 2.6rem 0 1.4rem; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.4rem; align-items: start; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 0.8rem 0; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__lede { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.4rem; }
.hero__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

/* stats trio */
.hstats { display: flex; gap: 2.2rem; flex-wrap: wrap; padding-top: 0.4rem; border-top: 1px solid var(--border); }
.hstat { padding-top: 1rem; }
.hstat b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--ink); }
.hstat span { font-size: 0.85rem; color: var(--muted); }

/* ---- Entry card (right) -------------------------------------------------- */
.entry {
  position: relative; padding: 1.6rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.entry h2 { font-size: 1.3rem; }
.entry__sub { color: var(--muted); font-size: 0.94rem; margin: 0.25rem 0 1.1rem; }
.entry__sub b { color: var(--ink); }
.presence { display: none; } /* drop the floating chips in the clean light look */

.field { margin-bottom: 0.85rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; }
.field input, .field select {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--border-2); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s; appearance: none;
}
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-ring); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.entry__note { font-size: 0.8rem; color: var(--faint); margin-top: 0.9rem; text-align: center; }
.entry__note b { color: var(--muted); }

/* ==========================================================================
   FEATURED ROW  ("Salons populaires")
   ========================================================================== */
.feated { padding-top: 2.2rem; }
.feated__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.feated__head h2 { font-size: 1.4rem; }
.feated__all { color: var(--blue); font-size: 0.95rem; font-weight: 700; white-space: nowrap; }
.feated__all:hover { color: var(--blue-dark); }
.feated__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: 0.8rem; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.feated__row::-webkit-scrollbar { height: 6px; }
.feated__row::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.fsalon {
  scroll-snap-align: start; display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 0.9rem; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border); cursor: pointer; text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.fsalon:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.fsalon__emoji {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 1.25rem;
  border-radius: 10px; background: var(--blue-soft); border: 1px solid var(--border);
}
.fsalon__name { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsalon__name b { color: var(--blue); }
.fsalon__count {
  display: inline-flex; align-items: center; gap: 0.35rem; flex: none;
  font-size: 0.82rem; font-weight: 700; color: var(--green);
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 999px; padding: 0.2rem 0.55rem;
}

/* ==========================================================================
   DIRECTORY  ("Les plus actifs maintenant")  + filter tabs
   ========================================================================== */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.filter {
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
  color: var(--muted); background: #fff; border: 1px solid var(--border-2); cursor: pointer;
  transition: all 0.15s;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }

.salons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.salon {
  display: flex; flex-direction: column; padding: 1.2rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); cursor: pointer; text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.salon:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.salon__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.salon__emoji {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.45rem;
  border-radius: 12px; background: var(--blue-soft); border: 1px solid var(--border);
}
.salon__badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green); background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 999px; padding: 0.28rem 0.6rem;
}
.salon h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.salon h3 span { color: var(--blue); }
.salon p { color: var(--muted); font-size: 0.93rem; }
.salon__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-top: auto; padding-top: 0.9rem; font-size: 0.85rem; color: var(--muted);
}
.salon__cat {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-alt); border-radius: 6px; padding: 0.22rem 0.5rem;
}
.salon__count { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.salon__go { margin-top: 0.9rem; color: var(--blue); font-weight: 700; font-size: 0.92rem; }
@media (max-width: 920px) { .salons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .salons { grid-template-columns: 1fr; } }

/* ==========================================================================
   STEPS · FEATURES · SAFETY · STATS · CTA
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: s; }
.step { padding: 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-weight: 800; margin-bottom: 0.7rem; }
.step h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 1rem; }
.feat { padding: 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); transition: border-color 0.15s, box-shadow 0.15s; }
.feat:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.feat__ico { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.4rem; border-radius: 11px; background: var(--blue-soft); margin-bottom: 0.7rem; }
.feat h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.feat p { color: var(--muted); font-size: 0.95rem; }
.feat--wide { grid-column: span 2; }
.feat--tall { grid-row: span 2; }
.feat--accent { background: var(--blue); border-color: var(--blue); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.feat--accent .feat__ico { background: rgba(255, 255, 255, 0.16); }
.feat--accent p { color: rgba(255, 255, 255, 0.9); }
.feat--accent h3 { color: #fff; font-size: 1.45rem; }
@media (max-width: 920px) { .bento { grid-template-columns: repeat(2, 1fr); } .feat--wide, .feat--tall { grid-column: auto; grid-row: auto; } .steps { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; padding: 1.6rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat b { display: block; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--blue); }
.stat span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; padding: 2.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.safety h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0.6rem 0; }
.safety ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.7rem; }
.safety li { display: flex; gap: 0.6rem; color: var(--muted); }
.safety li b { color: var(--ink); font-weight: 700; }
.safety li::before { content: "✓"; color: var(--green); font-weight: 800; }
@media (max-width: 760px) { .safety { grid-template-columns: 1fr; padding: 1.5rem; } }

.cta { text-align: center; padding: 3rem 2rem; border-radius: var(--radius); background: var(--blue); color: #fff; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.cta p { color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; margin-bottom: 1.5rem; }
.cta .btn--primary { background: #fff; color: var(--blue); }
.cta .btn--primary:hover { background: #f1f5f9; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { width: min(var(--maxw), 92vw); margin: 2rem auto 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.foot__top { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; }
.foot__brand { font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.foot__tag { width: 100%; font-weight: 400; font-size: 0.92rem; color: var(--muted); margin-top: 0.3rem; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.foot__cols h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 0.8rem; }
.foot__cols a { display: block; color: var(--muted); font-size: 0.95rem; padding: 0.22rem 0; transition: color 0.15s; }
.foot__cols a:hover { color: var(--blue); }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.88rem; }
@media (max-width: 760px) { .foot__top { grid-template-columns: 1fr; } .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   HERO responsive + CHAT WRAPPER
   ========================================================================== */
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

body.is-chat { overflow: hidden; background: var(--bg); }
.chatwrap { display: flex; flex-direction: column; height: 100dvh; }
.chatbar { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1.1rem; background: #fff; border-bottom: 1px solid var(--border); }
.chatbar__brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.15rem; }
.chatbar__room { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--blue-soft); border: 1px solid var(--border); font-size: 0.9rem; font-weight: 700; color: var(--blue); }
.chatbar__spacer { margin-left: auto; }
.chatbar__who { color: var(--muted); font-size: 0.9rem; }
.chatbar__who b { color: var(--ink); }
.chatframe { flex: 1; border: 0; width: 100%; background: var(--bg); }
.chat-fallback { flex: 1; display: grid; place-items: center; text-align: center; padding: 2rem; }
.chat-fallback div { max-width: 30rem; }
.chat-fallback h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.chat-fallback p { color: var(--muted); margin-bottom: 1.5rem; }
.chat-fallback code { background: var(--bg-alt); padding: 0.2rem 0.5rem; border-radius: 6px; color: var(--blue); }

/* ==========================================================================
   PORTAL PAGES — Actualités (news) + Horoscope
   ========================================================================== */
.pagehead { max-width: 44rem; margin-bottom: 1.4rem; }
.pagehead h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0.5rem 0 0.4rem; }
.pagehead p { color: var(--muted); font-size: 1.05rem; }

/* ---- News grid ----------------------------------------------------------- */
.newsgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ncard {
  display: flex; flex-direction: column; gap: 0.6rem; padding: 1.2rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ncard:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.ncard--lead { grid-column: span 3; flex-direction: column; background: var(--blue-soft); border-color: #dbeafe; }
.ncard__meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.ncard__src {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--blue); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 0.22rem 0.5rem;
}
.ncard__ago { font-size: 0.8rem; color: var(--faint); }
.ncard__title { font-size: 1.06rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.ncard--lead .ncard__title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.ncard__go { margin-top: auto; color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.newsnote { margin-top: 1.2rem; color: var(--faint); font-size: 0.85rem; text-align: center; }
.emptybox { padding: 2.5rem; text-align: center; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
@media (max-width: 920px) { .newsgrid { grid-template-columns: repeat(2, 1fr); } .ncard--lead { grid-column: span 2; } }
@media (max-width: 560px) { .newsgrid { grid-template-columns: 1fr; } .ncard--lead { grid-column: auto; } }

/* ---- Horoscope grid ------------------------------------------------------ */
.hsigns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hsign { padding: 1.2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s; }
.hsign:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.hsign__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.hsign__emoji { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 1.5rem; border-radius: 12px; background: var(--blue-soft); border: 1px solid var(--border); }
.hsign__head h3 { font-size: 1.1rem; }
.hsign__dates { font-size: 0.8rem; color: var(--muted); }
.hsign__stars { margin-left: auto; color: #f59e0b; font-size: 0.95rem; letter-spacing: 1px; }
.hsign__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.hsign__list li { font-size: 0.92rem; color: var(--muted); }
.hsign__list b { display: block; color: var(--ink); font-size: 0.82rem; }
@media (max-width: 920px) { .hsigns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hsigns { grid-template-columns: 1fr; } }

/* ---- Shared page CTA ----------------------------------------------------- */
.newscta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
  margin: 2.5rem 0 1rem; padding: 1.8rem 2rem; background: var(--blue); border-radius: var(--radius); color: #fff;
}
.newscta h2 { color: #fff; font-size: 1.5rem; }
.newscta p { color: rgba(255, 255, 255, 0.88); }
.newscta .btn--primary { background: #fff; color: var(--blue); }
.newscta .btn--primary:hover { background: #f1f5f9; }

/* ---- Météo --------------------------------------------------------------- */
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.wcard { padding: 1.3rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: border-color .15s, box-shadow .15s; }
.wcard:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.wcard__top { display: flex; align-items: center; justify-content: space-between; }
.wcard__city { font-weight: 800; }
.wcard__emoji { font-size: 1.7rem; }
.wcard__temp { font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1.1; margin-top: .3rem; }
.wcard__label { color: var(--muted); font-size: .92rem; }
.wcard__wind { color: var(--faint); font-size: .85rem; margin-top: .35rem; }
@media (max-width: 920px) { .wgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Cuisine ------------------------------------------------------------- */
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rcard { display: flex; gap: 1rem; padding: 1.1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.rcard:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.rcard__emoji { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 1.8rem; border-radius: 13px; background: var(--blue-soft); border: 1px solid var(--border); }
.rcard__body h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.rcard__body p { color: var(--muted); font-size: .9rem; }
.rcard__meta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .6rem; font-size: .82rem; color: var(--faint); }
.rcard__note { color: #f59e0b; font-weight: 700; }
@media (max-width: 920px) { .rgrid { grid-template-columns: 1fr; } }

/* ---- Jeux ---------------------------------------------------------------- */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.game { padding: 1.4rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.game h3 { font-size: 1.15rem; }
.game__hint { color: var(--muted); font-size: .9rem; margin: .35rem 0 1rem; }
.game__row { display: flex; gap: .5rem; }
.game__row input { flex: 1; padding: .7rem .9rem; border: 1px solid var(--border-2); border-radius: 10px; font: inherit; font-weight: 700; }
.game__row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-ring); }
.game__row--rps { justify-content: space-between; }
.rps { flex: 1; font-size: 1.8rem; padding: .6rem; background: #fff; border: 1px solid var(--border-2); border-radius: 12px; cursor: pointer; transition: all .15s; }
.rps:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }
.game__out { margin-top: 1rem; font-weight: 700; min-height: 1.5em; }
.game__reset { margin-top: .6rem; background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 0; font-size: .9rem; }
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; max-width: 220px; }
.ttt__cell { aspect-ratio: 1; font-size: 1.8rem; font-weight: 800; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--blue); }
.ttt__cell:hover { background: var(--blue-soft); }
@media (max-width: 920px) { .games { grid-template-columns: 1fr; } }

/* ---- Blog / news articles (image cards + detail) ------------------------- */
.artgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.artcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.artcard:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.artcard__img { display: block; height: 170px; background: var(--bg-alt) center/cover no-repeat; }
.artcard__body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem 1.2rem; }
.artcard__cat { font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); }
.artcard__title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.artcard__sum { color: var(--muted); font-size: .9rem; }
.artcard__meta { margin-top: auto; padding-top: .3rem; color: var(--faint); font-size: .82rem; }
/* lead = full-width hero card with side image */
.artcard--lead { grid-column: span 3; flex-direction: row; }
.artcard--lead .artcard__img { height: auto; flex: 0 0 52%; min-height: 280px; }
.artcard--lead .artcard__body { justify-content: center; gap: .6rem; padding: 2rem; }
.artcard--lead .artcard__title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.artcard--lead .artcard__sum { font-size: 1.02rem; }
@media (max-width: 920px) { .artgrid { grid-template-columns: repeat(2, 1fr); } .artcard--lead { grid-column: span 2; flex-direction: column; } .artcard--lead .artcard__img { flex: none; height: 220px; min-height: 0; } }
@media (max-width: 560px) { .artgrid { grid-template-columns: 1fr; } .artcard--lead { grid-column: auto; } }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.6rem; }
.pager__btn { padding: .6rem 1.1rem; border: 1px solid var(--border-2); border-radius: 10px; font-weight: 700; color: var(--blue); background: #fff; }
.pager__btn:hover { border-color: var(--blue); background: var(--blue-soft); }
.pager__info { color: var(--muted); font-size: .9rem; }

/* article detail — two-column (content + sidebar), chatzona-style */
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.6rem; align-items: start; }
.post { min-width: 0; }
.post__deck { font-size: 1.2rem; line-height: 1.6; color: var(--muted); margin: .3rem 0 1.2rem; }
.crumbs { color: var(--faint); font-size: .9rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--blue); }
.post__cat { font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.post__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .5rem 0 .6rem; line-height: 1.12; }
.post__meta { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.post__meta b { color: var(--ink); }
.post__img { width: 100%; height: clamp(240px, 42vw, 420px); border-radius: var(--radius); background: var(--bg-alt) center/cover no-repeat; margin-bottom: 1.6rem; }
/* byline */
.post__byline { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; }
.post__avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(140deg, #0a6fd0, #0055a4); color: #fff; font-weight: 800; }
.post__byline b { font-size: .95rem; }
.post__sub { display: block; color: var(--muted); font-size: .85rem; }
/* tags */
.post__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.post__tag { font-size: .8rem; font-weight: 700; color: var(--blue); background: var(--blue-soft); border: 1px solid #d6e4f3; border-radius: 999px; padding: .25rem .7rem; }
/* full body */
.post__body { font-size: 1.14rem; line-height: 1.68; color: #243244; max-width: 68ch; }
.post__body p { margin: 0 0 1rem; }
.post__body p:first-of-type { font-size: 1.22rem; line-height: 1.55; color: var(--ink); margin-bottom: 1.1rem; }
.post__body p:first-of-type::first-letter { float: left; font-size: 3.4rem; line-height: .82; font-weight: 800; color: var(--blue); padding: .25rem .5rem 0 0; }
.post__body h2 { font-size: 1.4rem; line-height: 1.25; margin: 1.9rem 0 .6rem; color: var(--ink); }
.post__body a { color: var(--blue); text-decoration: underline; }
/* foot: sources + share */
.post__foot { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.post__sources { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.post__sources a { color: var(--blue); font-weight: 600; }
.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.share__label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.share__btn { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--border-2); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.share__btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.related { margin-top: 3rem; }
.related h2 { font-size: 1.4rem; margin-bottom: 1.1rem; }

/* article sidebar */
.sidebar { position: sticky; top: 70px; display: grid; gap: 1rem; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.side-card__h { font-size: 1.05rem; margin-bottom: .9rem; }
.side-card__txt { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.side-news { display: grid; gap: .9rem; }
.side-item { display: flex; gap: .7rem; align-items: flex-start; }
.side-item:hover .side-item__title { color: var(--blue); }
.side-item__img { width: 64px; height: 48px; flex: none; border-radius: 9px; background: var(--bg-alt) center/cover no-repeat; }
.side-item__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.side-item__cat { font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); }
.side-item__title { font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.side-news-signup input { width: 100%; padding: .7rem .9rem; margin-bottom: .6rem; border: 1px solid var(--border-2); border-radius: 10px; font: inherit; }
.side-news-signup input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-ring); }
.nl-ok { display: block; color: var(--green); font-weight: 700; }
.side-cats { display: flex; flex-direction: column; }
.side-cats a { padding: .55rem .2rem; border-bottom: 1px solid var(--border); color: var(--ink); font-weight: 600; font-size: .92rem; }
.side-cats a:last-child { border-bottom: 0; }
.side-cats a:hover { color: var(--blue); }
@media (max-width: 980px) {
  .article__grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .side-news-signup { grid-column: span 2; }
}
@media (max-width: 600px) { .sidebar { grid-template-columns: 1fr; } .side-news-signup { grid-column: auto; } }

/* ---- Legal / prose ------------------------------------------------------- */
.legalpage { max-width: 760px; }
.prose { color: var(--ink); }
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   SWAYGO-STYLE STUNNING HERO — centered, floating entry pill, marquee
   ========================================================================== */
.annbar {
  background: var(--blue); color: #fff; text-align: center;
  font-size: 0.86rem; font-weight: 600; padding: 0.5rem 1rem;
}
.annbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.annbar a:hover { opacity: 0.85; }

.hero--center { text-align: center; padding: 3.6rem 0 0; }
.eyebrow--center { justify-content: center; color: var(--blue); }
.eyebrow--center::before { width: 7px; height: 7px; border-radius: 50%; opacity: 1; }

.hero--center .hero__title {
  font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.03em;
  margin: 1rem auto 0; max-width: 18ch; text-align: center;
}
.hero--center .hero__title em { font-style: normal; color: var(--blue); }
.hero__lede--center { margin: 1.2rem auto 0; max-width: 40rem; text-align: center; font-size: 1.15rem; }

/* floating pill entry bar */
.entrybar {
  display: flex; align-items: stretch;
  max-width: 780px; margin: 2.3rem auto 0;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 26px 60px -20px rgba(15, 23, 42, 0.28);
  padding: 0.5rem 0.5rem 0.5rem 0.7rem; text-align: left;
}
.entrybar__field { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0.5rem 1.3rem; min-width: 0; }
.entrybar__field--main { flex: 1.7; }
.entrybar__field--sm { flex: 0.65; }
.entrybar__field > span { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.entrybar__field input, .entrybar__field select { border: 0; outline: 0; background: transparent; font: inherit; font-weight: 700; color: var(--ink); width: 100%; padding: 2px 0; appearance: none; }
.entrybar__field input::placeholder { color: var(--faint); font-weight: 600; }
.entrybar__sep { width: 1px; align-self: center; height: 34px; background: var(--border); flex: none; }
.entrybar__btn { flex: none; align-self: stretch; border-radius: 999px; padding: 0 1.8rem; font-size: 1.02rem; white-space: nowrap; }
@media (max-width: 720px) {
  .entrybar { flex-direction: column; border-radius: 22px; padding: 0.6rem; box-shadow: var(--shadow-lg); }
  .entrybar__field { padding: 0.7rem 1rem; }
  .entrybar__sep { width: auto; height: 1px; align-self: stretch; }
  .entrybar__btn { padding: 0.95rem; margin-top: 0.4rem; }
}

.hero__pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.hpill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: all 0.15s; }
.hpill:hover { border-color: var(--blue); color: var(--blue); }
.hpill--live { color: var(--ink); }
.hpill--live b { color: var(--blue); }

/* dark marquee strip */
.marquee { margin-top: 2.8rem; padding: 0.95rem 0; background: #0f172a; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 2.4rem; width: max-content; animation: marq 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.mtag { color: rgba(255, 255, 255, 0.82); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ==========================================================================
   MEGA-MENU · JOKES · QUIZ · TOOLS  (full-portal extras)
   ========================================================================== */
.nav__mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 1.2rem;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.4rem; opacity: 0; visibility: hidden; z-index: 60;
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav__more:hover .nav__mega, .nav__more:focus-within .nav__mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__mega-col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: .5rem; }
.nav__mega-col a { display: block; padding: .4rem .5rem; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav__mega-col a:hover { background: var(--blue-soft); color: var(--blue); }

/* jokes */
.jokes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.joke { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.joke:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.joke__q { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.4; }
.joke__a { display: block; margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--border-2); color: var(--blue); font-weight: 700; }
.joke__a[hidden] { display: none; }
.joke__cta { display: inline-block; margin-top: .8rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
@media (max-width: 920px) { .jokes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .jokes { grid-template-columns: 1fr; } }

/* quiz / tests */
.quiz { max-width: 620px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.quiz__bar { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; margin-bottom: 1.6rem; }
.quiz__bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .25s ease; }
.quiz__q { font-size: 1.3rem; margin-bottom: 1.1rem; }
.quiz__opts { display: grid; gap: .6rem; }
.quiz__opt { text-align: left; padding: .95rem 1.1rem; border: 1px solid var(--border-2); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: all .15s; }
.quiz__opt:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); transform: translateX(3px); }
.quiz__result { text-align: center; padding: 1rem 0; }
.quiz__badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); border-radius: 99px; padding: .3rem .8rem; }
.quiz__result h3 { font-size: 2rem; margin: .8rem 0 .4rem; color: var(--blue); }
.quiz__result p { color: var(--muted); margin-bottom: 1.4rem; }

/* tool select reuse */
.tool-sel { padding: .7rem .9rem; border: 1px solid var(--border-2); border-radius: 10px; font: inherit; font-weight: 700; background: #fff; }

/* ---- Outils hub (12 tools) ---------------------------------------------- */
.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.1rem; }
.tool { display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.tool:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.tool__head { display: flex; align-items: center; gap: .6rem; }
.tool__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 1.3rem; border-radius: 11px; background: var(--blue-soft); border: 1px solid var(--border); }
.tool__head h3 { font-size: 1.06rem; }
.tool__desc { color: var(--muted); font-size: .88rem; margin-top: -.2rem; }
.tool__lbl { font-size: .85rem; color: var(--muted); font-weight: 600; }
.tool__range { width: 100%; accent-color: var(--blue); }
.tool__checks { display: flex; gap: 1rem; font-size: .9rem; font-weight: 600; }
.tool__checks input { accent-color: var(--blue); }
.tool__input { width: 100%; min-width: 0; padding: .7rem .85rem; border: 1px solid var(--border-2); border-radius: 10px; font: inherit; background: #fff; }
.tool__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-ring); }
textarea.tool__input { resize: vertical; }
.tool__row { display: flex; gap: .5rem; align-items: center; }
.tool__row--wrap { flex-wrap: wrap; }
.tool__row .btn { white-space: nowrap; }
.tool__eq { color: var(--faint); font-weight: 800; flex: none; }
.tool__color { width: 48px; height: 44px; flex: none; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; cursor: pointer; padding: 2px; }
.tool__out { display: block; margin-top: auto; padding: .7rem .85rem; background: var(--bg-alt); border-radius: 10px; font-weight: 700; color: var(--ink); min-height: 1.2em; word-break: break-word; }
.tool__out--mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .95rem; letter-spacing: .01em; }
.tool__qr { display: grid; place-items: center; min-height: 60px; }
.tool__qr img { border-radius: 10px; border: 1px solid var(--border); }

/* ---- Bourse dashboard --------------------------------------------------- */
.tv-ticker { border-bottom: 1px solid var(--border); }
.bcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.bcard__h { font-size: 1.05rem; margin-bottom: .8rem; }
.btable { width: 100%; border-collapse: collapse; }
.btable tr { border-top: 1px solid var(--border); }
.btable tbody tr:first-child { border-top: 0; }
.btable th, .btable td { padding: .55rem .3rem; text-align: left; }
.btable th[scope=row] { font-weight: 600; color: var(--ink); }
.btable__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btable__u { color: var(--faint); font-weight: 600; font-size: .78rem; }
.btable__chg { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-up { color: #16a34a; }
.is-down { color: #dc2626; }

/* index cards */
.idxgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.4rem; }
.idxcard { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.idxcard__name { font-size: .82rem; color: var(--muted); font-weight: 600; }
.idxcard__val { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.idxcard__chg { font-size: .85rem; font-weight: 800; }
@media (max-width: 920px) { .idxgrid { grid-template-columns: repeat(2, 1fr); } }

/* dashboard layout */
.bourse-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.4rem; align-items: start; }
.bourse-main { display: grid; gap: 1.2rem; min-width: 0; }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.bourse-side { display: grid; gap: 1rem; position: sticky; top: 70px; }
.invest .side-card__txt { margin-bottom: .8rem; }
.side-cats button { display: block; width: 100%; text-align: left; padding: .55rem .6rem; border: 0; background: none; border-bottom: 1px solid var(--border); color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; border-radius: 8px; }
.side-cats button:last-child { border-bottom: 0; }
.side-cats button:hover { background: var(--blue-soft); color: var(--blue); }

/* full table */
.bcard--table { padding: .6rem; }
.btable-scroll { overflow-x: auto; }
.btable--full { min-width: 560px; }
.btable--full thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--faint); font-weight: 800; border-bottom: 1px solid var(--border); padding: .5rem .5rem; }
.btable--full th[scope=row] { padding-left: .6rem; }
.btable--full td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: .6rem; }
.btable--full td.soft { color: var(--muted); font-weight: 600; }
.btable--full tbody tr:hover { background: var(--bg-alt); }

@media (max-width: 980px) {
  .bourse-grid { grid-template-columns: 1fr; }
  .bourse-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) { .movers { grid-template-columns: 1fr; } .bourse-side { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
