/* ============================================================================
   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:      #2563eb;   /* blue-600 primary                  */
  --blue-dark: #1d4ed8;   /* blue-700 hover                    */
  --blue-soft: #eff6ff;   /* blue-50 tint                      */
  --blue-ring: rgba(37, 99, 235, 0.18);
  --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: 30px; height: 30px; border-radius: 8px;
  background: var(--blue); color: #fff; font-size: 0.95rem; box-shadow: var(--shadow-sm);
}
.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; }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ---- 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: 1.2fr 2fr; 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(3, 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; }

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