/* ============ KoreHost — site vitrine : identité sobre & corporate ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --border: #e2e6ec;
  --border-strong: #c7ced9;
  --text: #101828;
  --muted: #5b6472;
  --primary: #0b5fbf;
  --primary-dark: #08417f;
  --primary-light: #eaf2fc;
  --accent: #0f8f6b;
  --accent-light: #e6f6f0;
  --danger: #d0342c;
  --danger-light: #fbe9e8;
  --warning: #b5650a;
  --warning-light: #fbf0e2;
  --ok: #0f8f6b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --font: 'Inter', system-ui, sans-serif;
  --font-head: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.65; min-height: 100vh;
}
h1, h2, h3, .logo { font-family: var(--font-head); letter-spacing: -.01em; }
a { color: var(--primary); text-decoration: none; transition: .15s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
code { font-family: var(--font-mono); font-size: .86em; background: var(--bg-alt); border: 1px solid var(--border); padding: .05rem .4rem; border-radius: 6px; color: var(--primary-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem; }

/* ============ Navigation publique ============ */
.announce { background: var(--primary-dark); color: #fff; text-align: center; padding: .5rem 1rem; font-size: .85rem; font-weight: 600; }

/* Bandeau "installe l'appli" — mobile uniquement, fermeture mémorisée en local */
.app-banner {
  display: none; align-items: center; gap: .6rem; background: var(--primary-dark); color: #fff;
  padding: .55rem 1rem;
}
.app-banner .mark { flex-shrink: 0; width: 20px; height: 20px; display: inline-flex; color: #fff; }
.app-banner .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 600; }
.app-banner .cta {
  flex-shrink: 0; background: #fff; color: var(--primary-dark); padding: .32rem .8rem; border-radius: 99px;
  font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.app-banner .close {
  flex-shrink: 0; background: none; border: none; color: rgba(255, 255, 255, .75); font-size: 1.3rem;
  line-height: 1; cursor: pointer; padding: 0 .15rem; font-family: inherit;
}
@media (max-width: 680px) {
  .app-banner.show { display: flex; }
}
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-nav .inner { display: flex; align-items: center; flex-wrap: wrap; row-gap: .6rem; gap: 1.2rem; padding: .9rem 1.4rem; max-width: 1180px; margin: 0 auto; }
.logo { font-size: 1.22rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; }
.logo .mark { display: inline-flex; width: 26px; height: 26px; color: var(--primary); }
.logo .mark svg { width: 100%; height: 100%; }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; row-gap: .5rem; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 500; white-space: nowrap; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--primary); transition: right .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-dropdown { position: relative; }
.nav-dropdown summary {
  color: var(--muted); font-size: .92rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  list-style: none; display: flex; align-items: center; gap: .3rem; user-select: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; transition: transform .15s; opacity: .7;
}
.nav-dropdown:hover summary, .nav-dropdown summary.active { color: var(--text); }
.nav-dropdown[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: .5rem; min-width: 180px; display: flex; flex-direction: column; gap: .1rem;
}
.nav-dropdown-menu a { color: var(--muted); font-size: .89rem; font-weight: 500; padding: .5rem .7rem; border-radius: 8px; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--text); }
.nav-cta { display: flex; gap: .6rem; align-items: center; margin-left: auto; }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: 8px; font-size: .92rem; font-weight: 600;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); cursor: pointer; font-family: inherit; transition: .15s;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:hover { background: var(--bg-alt); border-color: var(--muted); color: var(--text); }
.btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-danger { background: var(--danger-light); color: var(--danger); border-color: rgba(208, 52, 44, .3); }
.btn-danger:hover { background: #f6d5d3; color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-alt); }
.btn-sm { padding: .4rem .85rem; font-size: .84rem; border-radius: 7px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============ Hero ============ */
.hero { text-align: left; padding: 4.5rem 1.4rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border-radius: 99px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--primary); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { color: var(--muted); max-width: 480px; margin: 1.3rem 0 2rem; font-size: 1.08rem; }
.hero .actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.hero .actions .btn-primary { padding: .85rem 1.6rem; font-size: 1rem; }
.hero .actions .btn-primary svg { width: 16px; height: 16px; }
.btn-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); font-weight: 600; font-size: .96rem; }
.btn-link svg { width: 15px; height: 15px; transition: transform .15s; }
.btn-link:hover { color: var(--primary); }
.btn-link:hover svg { transform: translateX(3px); }
.hero .badges { margin-top: 2.6rem; display: flex; gap: 1.8rem; color: var(--muted); font-size: .86rem; flex-wrap: wrap; }
.hero .badges span { display: inline-flex; align-items: center; gap: .5rem; }
.hero .badges span svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art-svg { width: 100%; max-width: 440px; height: auto; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .eyebrow, .hero .actions, .hero .badges { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art-svg { max-width: 280px; }
}
/* ============ Sections ============ */
.section { padding: 3.2rem 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); font-weight: 800; letter-spacing: -.02em; }
.section-head h2::after { content: ''; display: block; width: 44px; height: 3px; background: var(--primary); margin: 1rem auto 0; border-radius: 2px; }
.section-head p { color: var(--muted); margin-top: .9rem; }
.group-label { font-size: .95rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }

.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.7rem;
  transition: .18s; position: relative; box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.06rem; margin-bottom: .45rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .93rem; }
.card .icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); border-radius: 12px; margin-bottom: 1.1rem; }
.card .icon svg { width: 24px; height: 24px; }

/* Tarifs */
.plan-card { display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.plan-card.featured:hover { box-shadow: var(--shadow-lg); }
.plan-card .flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: .22rem 1rem; border-radius: 99px; white-space: nowrap; }
.plan-card .price { font-size: 2.1rem; font-weight: 800; margin: .9rem 0; font-family: var(--font-head); letter-spacing: -.02em; color: var(--text); }
.plan-card .price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan-card ul { list-style: none; margin: 0 0 1.5rem; flex: 1; }
.plan-card li { padding: .4rem 0; color: var(--muted); font-size: .92rem; border-bottom: 1px solid var(--border); }
.plan-card li::before { content: '✓  '; color: var(--accent); font-weight: 700; }

/* FAQ / étapes / CTA */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .7rem; background: var(--surface); transition: .15s; }
.faq-item:hover, .faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { padding: 1.05rem 1.3rem; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--primary); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item div { padding: 0 1.3rem 1.1rem; color: var(--muted); font-size: .94rem; }

/* Hub FAQ compact : recherche + nav de catégories collante + groupes courts */
.faq-hub-head { text-align: center; padding: 3.4rem 1.4rem 1.6rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.faq-hub-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; font-family: var(--font-head); }
.faq-hub-head p { color: var(--muted); margin-top: .7rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.faq-search { position: relative; max-width: 440px; margin: 1.6rem auto 0; }
.faq-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.faq-search input {
  width: 100%; padding: .78rem 1rem .78rem 2.5rem; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); font-size: .92rem; font-family: inherit; color: var(--text);
}
.faq-search input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.faq-nav { position: sticky; top: 64px; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); padding: .75rem 1.4rem; overflow-x: auto; }
.faq-nav .inner { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.faq-nav a {
  flex-shrink: 0; padding: .42rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; transition: .15s;
}
.faq-nav a:hover { border-color: var(--border-strong); color: var(--text); }
.faq-nav a.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.faq-hub-body { max-width: 760px; margin: 0 auto; padding: 2.8rem 1.4rem 5rem; }
.faq-hub-group { margin-bottom: 2.4rem; scroll-margin-top: 4.4rem; }
.faq-hub-group h2 {
  font-size: 1.08rem; font-weight: 700; margin-bottom: .9rem; display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-head);
}
.faq-hub-group h2 .count { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg-alt); border-radius: 999px; padding: .18rem .55rem; }
.faq-hub-group .faq-item { margin-bottom: .55rem; }
.faq-hub-empty { display: none; text-align: center; color: var(--muted); padding: 3rem 1rem; }

@media (max-width: 640px) {
  .faq-nav a { font-size: .78rem; padding: .38rem .75rem; }
}

.step { text-align: center; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto 1rem; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-family: var(--font-head);
}
.step h3 { font-size: 1.02rem; font-weight: 700; }

.cta-band {
  background: var(--primary-dark);
  border-radius: var(--radius-lg); padding: 3.2rem 2rem; text-align: center; color: #fff;
}
.cta-band h2 { font-size: 1.75rem; margin-bottom: .6rem; letter-spacing: -.02em; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); margin-bottom: 1.7rem; }
.cta-band .btn { border-color: transparent; }
.cta-band .btn:not(.btn-primary) { background: rgba(255, 255, 255, .12); color: #fff; }
.cta-band .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .2); }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-band .btn-primary:hover { background: #eef3fa; }

/* Footer */
.site-footer { background: #0f1b2d; color: #aab4c4; margin-top: 4rem; padding: 3rem 0 2rem; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer .logo, .site-footer .logo span { color: #fff; }
.site-footer .logo .mark { color: #7fb2ea; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; font-family: var(--font-head); }
.site-footer a { display: block; color: #aab4c4; padding: .18rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom-line { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.4rem; text-align: center; font-size: .84rem; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ============ Formulaires ============ */
.form-group { margin-bottom: 1.15rem; }
label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: .4rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: .65rem .9rem; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 8px; font-family: inherit; font-size: .95rem; transition: .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea { min-height: 110px; resize: vertical; }
select option { background: var(--surface); }
.hint { color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.checkbox { display: flex; gap: .55rem; align-items: center; }
.checkbox input { width: auto; accent-color: var(--primary); }
.checkbox label { margin: 0; }
.error { color: var(--danger); font-size: .84rem; margin-top: .35rem; }
.alert { padding: .85rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.3rem; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: var(--accent-light); color: var(--accent); border-color: rgba(15, 143, 107, .25); }
.alert-error { background: var(--danger-light); color: var(--danger); border-color: rgba(208, 52, 44, .25); }

.auth-box { max-width: 440px; margin: 5rem auto; }
.auth-box .card { padding: 2.2rem; box-shadow: var(--shadow-md); }
.auth-box .card:hover { box-shadow: var(--shadow-md); }
.auth-box h1 { font-size: 1.4rem; margin-bottom: 1.5rem; text-align: center; font-weight: 800; }
.auth-box .alt { text-align: center; margin-top: 1.3rem; color: var(--muted); font-size: .9rem; }

/* Statut */
.status-hero { text-align: center; padding: 3.5rem 1rem 2.3rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.status-hero .indicator { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.3rem; font-weight: 700; font-family: var(--font-head); }
.pulse { width: 12px; height: 12px; border-radius: 50%; position: relative; }
.pulse.ok { background: var(--ok); }
.pulse.ko { background: var(--danger); }
.pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 1.8s ease-out infinite; color: inherit; }
.pulse.ok::after { color: var(--ok); }
.pulse.ko::after { color: var(--danger); }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .68rem; border-radius: 99px; font-size: .74rem; font-weight: 700; border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok, .badge-active, .badge-running, .badge-paid, .badge-completed { background: var(--accent-light); color: var(--ok); border-color: rgba(15, 143, 107, .25); }
.badge-warn, .badge-pending { background: var(--warning-light); color: var(--warning); border-color: rgba(181, 101, 10, .25); }
.badge-danger, .badge-error, .badge-cancelled, .badge-failed { background: var(--danger-light); color: var(--danger); border-color: rgba(208, 52, 44, .25); }
.badge-muted, .badge-offline, .badge-closed { background: var(--bg-alt); color: var(--muted); border-color: var(--border); }
.badge-admin, .badge-open, .badge-normal { background: var(--primary-light); color: var(--primary); border-color: rgba(11, 95, 191, .25); }

.empty { text-align: center; color: var(--muted); padding: 3.2rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-alt); }

.sub { color: var(--muted); font-size: .95rem; }

/* Widget de chat flottant (partagé avec le panel) : on aligne juste ses couleurs de marque
   sur l'identité du site vitrine, sans toucher au partial lui-même. Spécificité forcée au-dessus
   de la règle #kh-chat-widget définie inline par le partial (mêmes variables, valeurs par défaut
   néon conservées côté panel). */
body #kh-chat-widget {
  --kh-brand: linear-gradient(120deg, var(--primary), var(--primary-dark));
  --kh-brand-shadow: rgba(11, 95, 191, .35);
  --kh-ai-tag: var(--primary);
  --kh-send: var(--primary);
}

/* Actualités */
.news-head { text-align: center; padding: 3.4rem 1.4rem 1.6rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.news-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; font-family: var(--font-head); }
.news-head p { color: var(--muted); margin-top: .7rem; }

.news-filters { position: sticky; top: 64px; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); padding: .9rem 1.4rem; display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; }
.news-filters .group { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.news-filters .label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: .25rem; }
.news-filters .pill {
  flex-shrink: 0; padding: .38rem .85rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: .15s; font-family: inherit;
}
.news-filters .pill:hover { border-color: var(--border-strong); color: var(--text); }
.news-filters .pill.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.news-body { padding: 2.8rem 1.4rem 5rem; max-width: 900px; }

.news-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; margin-bottom: 1.1rem; transition: .15s; color: var(--text);
}
.news-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.news-card .meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .7rem; }
.news-card .meta .date { color: var(--muted); font-size: .82rem; }
.news-card h2, .news-card h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; margin-bottom: .5rem; }
.news-card h2 { font-size: 1.5rem; }
.news-card h3 { font-size: 1.15rem; }
.news-card p { color: var(--muted); font-size: .93rem; margin-bottom: .8rem; }
.news-card .read-more { color: var(--primary); font-weight: 700; font-size: .88rem; }
.news-card.featured { background: var(--primary-light); border-color: rgba(11, 95, 191, .25); padding: 2.2rem; }

.news-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

.news-article .container { max-width: 720px; padding-top: 2.8rem; padding-bottom: 1rem; }
.news-article .back-link { display: inline-block; color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 1.4rem; }
.news-article .back-link:hover { color: var(--primary); }
.news-article .meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.news-article .meta .date { color: var(--muted); font-size: .85rem; }
.news-article h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; font-family: var(--font-head); margin-bottom: 1.6rem; }
.news-article-image { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 1.8rem; display: block; }
.news-article-body p { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-bottom: 1.1rem; }
.faq-item img, .faq-hub-group img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); margin-top: .8rem; display: block; }

.news-related { max-width: 900px; padding: 1rem 1.4rem 5rem; border-top: 1px solid var(--border); }
.news-related h2 { font-size: 1.2rem; font-weight: 800; font-family: var(--font-head); margin: 2rem 0 1.2rem; }

@media (max-width: 720px) {
  .site-footer .cols { grid-template-columns: 1fr; }
}

/* ============ Loader ============ */
#page-loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease, visibility .45s ease;
}
#page-loader .loader-mark { width: 42px; height: 42px; color: var(--primary); animation: loaderPulse 1.1s ease-in-out infinite; }
#page-loader .loader-mark svg { width: 100%; height: 100%; }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.8); opacity: .5; } }
body.is-loaded #page-loader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============ Reveal au scroll ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #page-loader .loader-mark { animation: none; }
}

/* ============ Tuiles jeux ============ */
.game-grid { gap: 1rem; }
.game-tile {
  display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center;
  padding: 1.1rem .8rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--primary-light), var(--surface) 60%);
  color: inherit; transition: .18s;
}
.game-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.game-tile-art { width: 100%; height: 2.1rem; display: flex; align-items: center; justify-content: center; }
.game-tile-art img { height: 100%; width: auto; max-width: 8rem; object-fit: contain; }
.game-tile h3 { font-size: .92rem; margin: 0; font-weight: 700; }

/* ============ Groupes de tarifs plus compacts ============ */
.group-label { margin-top: .4rem; }
.plan-card { padding: 1.4rem; }
.plan-card li { padding: .3rem 0; font-size: .88rem; }

.plan-group-tag { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .2rem; }

/* ============ Theme sombre ============ */
:root[data-theme="dark"] {
  --bg: #0b0f16;
  --bg-alt: #121826;
  --surface: #141b29;
  --border: #232b3a;
  --border-strong: #333e52;
  --text: #eef1f6;
  --muted: #94a0b4;
  --primary: #4d9bff;
  --primary-dark: #2f7ce0;
  --primary-light: rgba(77, 155, 255, .14);
  --accent: #2fd39a;
  --accent-light: rgba(47, 211, 154, .12);
  --danger: #ff6b64;
  --danger-light: rgba(255, 107, 100, .12);
  --warning: #f0a94e;
  --warning-light: rgba(240, 169, 78, .12);
  --ok: #2fd39a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
}
:root[data-theme="dark"] .site-nav { background: rgba(11, 15, 22, .86); }
:root[data-theme="dark"] .plan-card .flag,
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .cta-band .btn-primary { color: #06101d; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted); cursor: pointer; flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); background: var(--bg-alt); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Taille par defaut pour toute icone <x-icon> non explicitement dimensionnee ailleurs */
.kh-icon { width: 1.15em; height: 1.15em; vertical-align: -0.18em; flex-shrink: 0; }
