/* Site public Media GNETICS — landing, tarifs, comparaison, FAQ */

:root {
  --bg: #0e0e10;
  --surface: #18181b;
  --surface-2: #27272a;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --muted-soft: #71717a;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.15);
  --emerald: #10b981;
  --rose: #f43f5e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV TOP ── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.95rem 2rem; gap: 1.5rem;
}
.site-logo {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.4rem;
  flex-shrink: 0;
}
.site-logo span { color: var(--accent); }

.site-nav-center {
  display: flex; gap: 1.6rem; align-items: center; flex: 1; justify-content: center;
}
.site-nav-center a {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s; position: relative; padding: 0.3rem 0;
}
.site-nav-center a:hover { color: var(--text); }
.site-nav-center a.active {
  color: var(--text); font-weight: 600;
}
.site-nav-center a.active::after {
  content: ""; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}

.site-nav-right {
  display: flex; gap: 0.6rem; align-items: center; flex-shrink: 0;
}
.site-nav-link {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0.9rem;
}
.site-nav-link:hover { color: var(--text); }
.site-nav-cta {
  padding: 0.55rem 1.1rem;
  background: var(--accent); color: white;
  border-radius: 0.5rem;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.site-nav-cta:hover { background: var(--accent-hover); color: white; }

/* Hamburger mobile */
.site-nav-burger {
  display: none; background: transparent; border: 0;
  width: 36px; height: 36px; cursor: pointer; padding: 0;
  position: relative;
}
.site-nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: all 0.25s;
}
.site-nav-burger span:nth-child(1) { top: 12px; }
.site-nav-burger span:nth-child(2) { top: 17px; }
.site-nav-burger span:nth-child(3) { top: 22px; }
.site-nav-burger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.site-nav-burger.open span:nth-child(2) { opacity: 0; }
.site-nav-burger.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* Mobile dropdown menu — overlay plein écran */
.site-nav-mobile {
  display: none; position: fixed; inset: 0;
  /* Fond OPAQUE par défaut. Le blur n'est qu'un bonus si supporté. */
  background: #0e0e10;
  padding: 5rem 1.5rem 2rem;
  flex-direction: column; gap: 0.25rem;
  z-index: 200;                    /* AU-DESSUS de la nav et de tout le reste */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: site-nav-mobile-in .22s ease-out;
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-nav-mobile {
    background: rgba(14, 14, 16, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}
.site-nav-mobile.open { display: flex; }

@keyframes site-nav-mobile-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-nav-mobile a {
  padding: 1rem 0.5rem;
  color: var(--text);
  font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: color .15s, padding-left .15s;
}
.site-nav-mobile a:hover,
.site-nav-mobile a:active { color: var(--accent); padding-left: 0.85rem; }

.site-nav-mobile a.cta {
  margin-top: 1.25rem;
  background: var(--accent); color: white;
  border-radius: 0.6rem;
  text-align: center; justify-content: center;
  border: 0; font-weight: 700; font-size: 1rem;
  padding: 0.95rem 1rem;
}
.site-nav-mobile a.cta:hover,
.site-nav-mobile a.cta:active {
  background: var(--accent-hover); color: white;
  padding-left: 1rem; /* override */
}

/* La nav reste au-dessus du menu (le burger doit rester cliquable pour fermer) */
.site-nav { z-index: 70; }

/* Empêche le scroll du body quand le menu est ouvert */
body.nav-open { overflow: hidden; }

@media (max-width: 920px) {
  .site-nav-inner { padding: 0.85rem 1rem; gap: 0.75rem; }
  .site-nav-center, .site-nav-link { display: none; }
  .site-nav-burger { display: block; }
  .site-nav-cta { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .site-nav-inner { padding: 0.7rem 0.85rem; }
  .site-logo { font-size: 0.95rem; }
  .site-nav-cta { display: none; }
  .site-nav-mobile { padding: 5rem 1.1rem 2rem; }
}

/* ── SECTIONS ── */
.section { padding: 3rem 2rem; }
.section-narrow { max-width: 880px; margin: 0 auto; }
.section-wide { max-width: 1280px; margin: 0 auto; }

/* ── HERO (landing) ── */
.hero {
  text-align: center; padding: 5rem 2rem 3rem; max-width: 920px; margin: 0 auto;
}
.hero h1 {
  font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  margin: 0 0 1.2rem;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.18rem; color: var(--muted); margin: 0 0 2rem;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ── PAGE TITLE (subpages) ── */
.page-title {
  text-align: center; padding: 4rem 2rem 2rem; max-width: 880px; margin: 0 auto;
}
.page-title h1 {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.8rem;
}
.page-title p {
  font-size: 1.05rem; color: var(--muted); margin: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem; border-radius: 0.5rem;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  border: 0; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── FEATURES (landing) ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem; max-width: 1100px; margin: 0 auto; padding: 1rem 2rem;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem;
}
.feature-icon {
  font-size: 1.6rem; margin-bottom: 0.6rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4rem; }
.feature-card p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 1rem 2rem;
}
.step-card {
  text-align: center; padding: 1rem;
}
.step-num {
  display: inline-flex; justify-content: center; align-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 1.2rem; margin-bottom: 0.8rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.3rem; }
.step-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ── PRICING TOGGLE ── */
.toggle-wrap {
  display: flex; justify-content: center; align-items: center; gap: 0.5rem;
  padding: 0 2rem 2rem; flex-wrap: wrap;
}
.toggle {
  display: inline-flex; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.25rem; gap: 0.2rem;
}
.toggle button {
  padding: 0.55rem 1.2rem; border: 0; background: transparent; color: var(--muted);
  border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.88rem;
  transition: all 0.2s;
}
.toggle button.active { background: var(--accent); color: white; }
.toggle-badge {
  padding: 0.3rem 0.7rem; background: rgba(16,185,129,0.15);
  color: var(--emerald); font-size: 0.75rem; font-weight: 700; border-radius: 999px;
  border: 1px solid rgba(16,185,129,0.25);
}

/* ── PLANS ── */
.plans-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem; padding: 0 2rem 3rem; max-width: 1280px; margin: 0 auto;
}
@media (max-width: 1100px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans-grid { grid-template-columns: 1fr; padding: 0 1rem 2rem; } }

.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.5rem; display: flex; flex-direction: column;
  position: relative; transition: transform 0.2s, border-color 0.2s;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.recommended {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white; padding: 0.3rem 0.85rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  white-space: nowrap;
}
.plan-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.3rem; }
.plan-desc { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.2rem; min-height: 2.5em; }
.plan-price-block { margin: 0 0 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.25rem; }
.plan-price .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .currency { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan-price-meta {
  font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; min-height: 1.6em;
}
.plan-price-meta strong { color: var(--emerald); }

.plan-features { list-style: none; padding: 0; margin: 0 0 1.2rem; flex-grow: 1; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  padding: 0.4rem 0; font-size: 0.88rem;
}
.plan-features .icon { flex-shrink: 0; margin-top: 0.05rem; line-height: 1.4; }
.plan-features .icon.yes { color: var(--accent); }
.plan-features .icon.no { color: var(--muted-soft); }
.plan-features li.muted { color: var(--muted-soft); }

.plan-cta {
  display: block; width: 100%; padding: 0.75rem 1rem;
  border: 0; border-radius: 0.5rem; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; text-align: center; text-decoration: none;
}
.plan-cta.primary { background: var(--accent); color: white; }
.plan-cta.primary:hover { background: var(--accent-hover); }
.plan-cta.outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.plan-cta.outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── COMPARISON TABLE ── */
.compare-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: 1rem; overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.compare-table th {
  background: var(--surface-2); font-weight: 700; color: var(--text);
}
.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .check { color: var(--accent); font-weight: 700; font-size: 1rem; }
.compare-table .none { color: var(--muted-soft); font-weight: 400; }
.compare-table .section-title {
  background: rgba(124,58,237,0.08); font-weight: 700; color: var(--accent);
  font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase;
}
.compare-table .recommended-col { background: rgba(124,58,237,0.04); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
details.faq-q {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.6rem;
  padding: 1rem 1.2rem; cursor: pointer; transition: border-color 0.2s;
}
details.faq-q:hover { border-color: var(--border-strong); }
details.faq-q[open] { border-color: var(--accent); }
details.faq-q summary {
  font-weight: 600; font-size: 0.95rem; outline: none; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--text);
}
details.faq-q summary::-webkit-details-marker { display: none; }
details.faq-q summary::after {
  content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 700; flex-shrink: 0;
}
details.faq-q[open] summary::after { content: "−"; }
details.faq-q p { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
details.faq-q a { color: var(--accent); }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center; padding: 4rem 2rem;
  background: linear-gradient(180deg, transparent 0%, var(--accent-soft) 100%);
  border-top: 1px solid var(--border);
}
.cta-section h2 {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 0.6rem; letter-spacing: -0.02em;
}
.cta-section p { color: var(--muted); margin: 0 0 1.5rem; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border); padding: 2rem; text-align: center;
  color: var(--muted-soft); font-size: 0.85rem;
}
.site-footer a { color: var(--muted); transition: color 0.2s; }
.site-footer a:hover { color: var(--text); }
.site-footer .footer-links { margin-bottom: 0.5rem; }
.site-footer .footer-links a { margin: 0 0.6rem; }

/* ── LOADING / ERROR ── */
.loading-state, .error-state {
  text-align: center; padding: 3rem 2rem; color: var(--muted);
}
.error-state a { color: var(--accent); }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE GLOBAL (sections, hero, plans, footer…)
   ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .section { padding: 2.5rem 1.1rem; }
  .section-narrow, .section-wide { padding: 0; }

  .hero { padding: 3.5rem 1.1rem 2rem; }
  .hero h1 { font-size: 2.2rem; line-height: 1.1; }
  .hero p { font-size: 1rem; }
  .hero-actions .btn { padding: 0.65rem 1.1rem; font-size: 0.9rem; }

  .page-title { padding: 2.5rem 1.1rem 1.5rem; }
  .page-title h1 { font-size: 1.8rem; }
  .page-title p { font-size: 0.95rem; }

  .features-grid, .steps-grid { padding: 1rem 1.1rem; gap: 1rem; }
  .feature-card { padding: 1.2rem; }

  .toggle-wrap { padding: 0 1.1rem 1.5rem; }
  .toggle button { padding: 0.5rem 0.9rem; font-size: 0.82rem; }

  .plans-grid { padding: 0 1.1rem 2rem; gap: 1.1rem; }
  .plan-card { padding: 1.2rem; }

  .cta-section { padding: 3rem 1.1rem; }
  .cta-section h2 { font-size: 1.4rem; }

  /* Tableau comparatif → scroll horizontal sur mobile */
  .compare-wrapper, .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1.1rem; padding: 0 1.1rem;
  }
  .compare-table { font-size: 0.82rem; min-width: 560px; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.7rem; }

  details.faq-q { padding: 0.85rem 1rem; }
  details.faq-q summary { font-size: 0.9rem; }
  details.faq-q p { font-size: 0.85rem; }

  .site-footer { padding: 1.5rem 1.1rem; font-size: 0.78rem; }
  .site-footer .footer-links a { display: inline-block; margin: 0.25rem 0.5rem; }
}

@media (max-width: 420px) {
  .section { padding: 2rem 0.85rem; }
  .hero { padding: 2.5rem 0.85rem 1.5rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 0.92rem; }

  .page-title h1 { font-size: 1.5rem; }
  .page-title p { font-size: 0.88rem; }

  .features-grid, .steps-grid, .plans-grid, .toggle-wrap { padding-left: 0.85rem; padding-right: 0.85rem; }

  .plan-card { padding: 1rem; }
  .plan-price .amount { font-size: 1.9rem; }

  .cta-section h2 { font-size: 1.25rem; }
  .cta-section { padding: 2.5rem 0.85rem; }
}

/* Empêche un débordement latéral global (typique Safari iOS sur images
   ou éléments larges hors-grille) */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
