/* ============================================
   CINEPULSE.LINK — Feuille de style principale
   Style synchronisé avec cinepulse.men
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d0d0f;
  --bg-card:      #141417;
  --bg-hover:     #1a1a1f;
  --border:       #222228;
  --border-light: #2c2c35;
  --text:         #e8e8ee;
  --text-muted:   #888899;
  --text-faint:   #555566;
  --accent:       #e63535;
  --accent-dim:   #c42020;
  --accent-glow:  rgba(230,53,53,0.15);
  --white:        #ffffff;
  --tag-bg:       #1e1e24;
  --radius:       6px;
  --radius-lg:    10px;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --max-w:        860px;
  --transition:   0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  margin-top: 2.4rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
p { margin-bottom: 0.9rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { color: var(--white); }

strong { color: var(--white); font-weight: 600; }
em { color: var(--text-muted); font-style: normal; }

ul, ol { padding-left: 1.3rem; margin-bottom: 0.9rem; }
li { margin-bottom: 0.3rem; color: var(--text); }

/* --- Layout --- */
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* --- Header / Nav --- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 28px;
  width: auto;
}
.site-logo .logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.site-logo .logo-text span { color: var(--accent); }

/* --- Mobile nav toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active { color: var(--white); background: var(--bg-hover); }
.site-nav a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dim) !important; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 0.65rem 0;
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text-faint); }

/* --- Hero --- */
.hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(230,53,53,0.2);
  border-radius: var(--radius);
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: var(--white); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-light);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-faint); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: var(--border-light); background: var(--bg-hover); }

/* --- Main content --- */
.main-content {
  flex: 1;
  padding: 2rem 0 3rem;
}
.content-body {
  max-width: var(--max-w);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-light); }
.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.card-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

/* --- Info box --- */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.info-box strong { display: block; margin-bottom: 0.25rem; }

/* --- Domain badge --- */
.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.domain-badge:hover { color: var(--white); border-color: var(--border-light); }
.domain-badge.official { color: var(--accent); border-color: rgba(230,53,53,0.3); background: var(--accent-glow); }

/* --- Table --- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead tr { background: var(--bg-hover); }
th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
td:first-child { font-family: var(--font-mono); color: var(--text); }

/* --- Status badge --- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-green { background: rgba(34,197,94,0.12); color: #4ade80; }
.badge-blue  { background: rgba(59,130,246,0.12); color: #60a5fa; }
.badge-gray  { background: var(--tag-bg); color: var(--text-faint); }
.badge-red   { background: var(--accent-glow); color: var(--accent); }

/* --- FAQ Accordion --- */
.faq-list { margin: 1.25rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  gap: 0.75rem;
  transition: background var(--transition), color var(--transition);
}
.faq-question:hover { background: var(--bg-hover); color: var(--white); }
.faq-question.open { color: var(--white); background: var(--bg-hover); }
.faq-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--transition);
}
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 1.1rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-card);
  line-height: 1.65;
}
.faq-answer.open { display: block; }
.faq-answer a { color: var(--accent); }
.faq-answer a:hover { color: var(--white); }

/* --- Section nav (quick access) --- */
.quick-access {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.quick-access-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Tag list --- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.tag {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Comparison table (vs pages) --- */
.vs-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(230,53,53,0.25);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.check { color: #4ade80; }
.cross { color: var(--accent); }
.neutral { color: var(--text-faint); }

/* --- Rating stars --- */
.rating {
  display: inline-flex;
  gap: 0.15rem;
  font-size: 0.85rem;
}
.star { color: #f59e0b; }
.star-empty { color: var(--border-light); }

/* --- Article meta --- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-faint);
  padding: 0.2rem 0.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text-muted); }
.footer-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer-copy strong { color: var(--text-muted); font-weight: 500; }

/* --- Prose content --- */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose p { margin-bottom: 1rem; }
.prose .table-wrap { margin: 1.5rem 0; }

/* --- Responsive --- */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.6rem 0.75rem; font-size: 0.9rem; }
  .header-inner { position: relative; }
  .hero { padding: 2rem 0 1.75rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; gap: 0; }
}

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

/* --- Status dot --- */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.18);
  flex-shrink: 0;
}
.dot.warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.dot.down { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* --- Meter (progress bar) --- */
.meter {
  width: 100%;
  height: 6px;
  background: var(--tag-bg);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: #4ade80;
}
.meter-fill.warn { background: #f59e0b; }
.meter-fill.accent { background: var(--accent); }

/* --- ISP / Server status cards --- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--transition);
}
.status-card:hover { border-color: var(--border-light); }
.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.status-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}
.status-card-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.1rem;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(74,222,128,0.12);
  color: #4ade80;
}
.status-badge.warn { background: rgba(245,158,11,0.12); color: #f59e0b; }
.status-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.status-metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.status-metric-row strong { color: var(--text); font-weight: 600; }

/* --- Numbered step card --- */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--accent-glow);
  border: 1px solid rgba(230,53,53,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}
