/* =========================================================
   Netest – redesign moderne sombre
   ========================================================= */

:root {
  --bg: #05070e;
  --bg-soft: #080c17;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(56, 189, 248, 0.38);
  --text: #e9eefb;
  --muted: #97a5c0;
  --accent: #38bdf8;
  --accent-2: #8b5cf6;
  --radius: 18px;
  --shell: 1080px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(820px 520px at 88% 4%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(56, 189, 248, 0.10), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 0%, #000 10%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 7, 14, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.5));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-name span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 27px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-primary {
  color: #04121b;
  background: linear-gradient(135deg, var(--accent) 0%, #7dd3fc 45%, var(--accent-2) 130%);
  box-shadow: 0 14px 34px -14px rgba(56, 189, 248, 0.85);
}

.btn-primary:hover {
  color: #04121b;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px rgba(139, 92, 246, 0.85);
}

.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: #fff;
  background: var(--panel-strong);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 19px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.04rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  padding: 74px 20px 60px;
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.hero-copy h1 {
  max-width: 18ch;
  margin: 22px 0 18px;
}

.hero-copy .lead {
  margin: 0;
}

.hero-copy .hero-actions {
  justify-content: flex-start;
}

.hero-art {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  filter: drop-shadow(0 40px 70px rgba(56, 189, 248, 0.25));
}

.hero-chips,
.test-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li,
.test-chips li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.test-chips {
  justify-content: center;
  margin: 24px 0 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

.hero h1 {
  max-width: 15ch;
  margin: 24px auto 18px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 58px auto 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
}

.hero-stats span {
  display: block;
  margin-top: 3px;
  font-size: 0.79rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 58px 20px;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
}

h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: #fff;
}

.section-head p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* ---------- Cadre du test ---------- */

.test-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95);
}

.test-frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.test-frame-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.test-frame-bar span:nth-child(2) {
  background: #febc2e;
}

.test-frame-bar span:nth-child(3) {
  background: #28c840;
}

.test-frame-bar p {
  margin: 0 0 0 12px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.test-frame iframe {
  display: block;
  width: 100%;
  height: 650px;
  border: 0;
  background: #fff;
}

/* ---------- Partage ---------- */

/* La barre ShareThis flottante peut recouvrir les CTA et ouvrir un onglet
   de partage au clic. On la masque, les boutons inline restent disponibles. */
.st-sticky-share-buttons,
#st-3 {
  display: none !important;
}

.share-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 34px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.share-panel h2 {
  margin-bottom: 4px;
}

.share-panel p {
  margin: 0;
  color: var(--muted);
}

.share-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.share-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.share-count strong {
  margin-right: 6px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.share-link {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.share-link:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.share-float {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 55;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}

.share-float-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121b;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(56, 189, 248, 0.9);
}

.share-float-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-float-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 34px;
  padding: 2px 6px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  background: #0c1222;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.share-float-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.share-float.is-open .share-float-menu {
  display: flex;
}

.share-float-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(12, 18, 34, 0.96);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.share-float-link:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.consent-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  /* Passe au-dessus de la barre sociale publicitaire (z-index maximal cote annonceur) */
  z-index: 2147483647;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(8, 12, 23, 0.98);
  box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, 0.95);
}

.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.consent-text {
  flex: 1 1 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-text a {
  color: var(--accent);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.consent-btn:hover {
  border-color: var(--border-accent);
}

.consent-btn--accept {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121b;
}

body.consent-open {
  padding-bottom: 96px;
}

body.consent-open .share-float {
  bottom: 110px;
}

@media (max-width: 560px) {
  .consent-banner {
    padding: 14px;
  }

  .consent-inner {
    gap: 12px;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-btn {
    flex: 1;
    text-align: center;
  }

  body.consent-open {
    padding-bottom: 150px;
  }

  body.consent-open .share-float {
    bottom: 160px;
  }
}

@media (max-width: 560px) {
  .share-float {
    right: 12px;
    bottom: 12px;
  }

  .share-float-toggle {
    width: 48px;
    height: 48px;
  }

  .share-float-link {
    width: 42px;
    height: 42px;
  }
}

/* ---------- Publicités ---------- */

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 34px auto;
  min-height: 60px;
}

.ad-slot--tall {
  min-height: 260px;
}

.ad-slot--leaderboard {
  min-height: 100px;
}

.ad-slot--wide {
  max-width: 100%;
}

/* 160x600 : réservé pour éviter tout décalage de mise en page (CLS) */
.ad-slot--skyscraper {
  min-height: 604px;
  max-width: 100%;
  overflow: hidden;
}

/* ---------- Technologies ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 26px 50px -32px rgba(56, 189, 248, 0.7);
}

.tech-card img {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
}

.tech-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
}

.tech-card .tech-speed {
  display: inline-block;
  margin: 8px 0 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #a5e3ff;
  font-size: 0.82rem;
  font-weight: 600;
}

.tech-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Chiffres clés ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.figures li {
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.figures strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.figures span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.prose-tight {
  max-width: 780px;
  margin: 40px auto 0;
  text-align: center;
}

.prose-tight h2 {
  margin-top: 0;
}

/* ---------- Cartes de mesures ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  min-width: 0;
  height: 100%;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 30px 55px -34px rgba(56, 189, 248, 0.75);
}

.card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  color: #7dd3fc;
}

.card .icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  overflow-wrap: break-word;
}

.cards .ad-slot {
  grid-column: 1 / -1;
  margin: 4px auto;
}

/* ---------- Contenu éditorial ---------- */

.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 56px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 18px;
  color: var(--muted);
}

.prose strong {
  color: var(--text);
}

.intro-cards {
  margin-top: 34px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding: 44px 20px 54px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.site-footer p {
  margin: 0;
  color: #6f7d99;
  font-size: 0.82rem;
}

/* ---------- Popup ---------- */

.popup {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: none;
  width: 88%;
  max-width: 330px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #0c1222;
  color: #fff;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.95);
}

.popup-head {
  position: relative;
  padding: 17px 18px 17px 54px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
}

.popup-head img {
  position: absolute;
  top: 15px;
  left: 17px;
  width: 26px;
  height: 26px;
}

.popup-center {
  padding: 20px 18px;
  color: #c9d4ea;
  line-height: 1.55;
}

.popup-bottom {
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.popup-bottom .button {
  display: block;
  width: 132px;
  margin: 0 auto;
  padding: 8px 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121b;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  transition: border-color 0.22s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Pages éditoriales ---------- */

.article-hero {
  padding: 56px 20px 30px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.article-hero h1 {
  max-width: 900px;
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.article-hero .lead {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.1rem;
}

.article-meta {
  margin-bottom: 24px;
  color: #6f7d99;
  font-size: 0.82rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 60px;
}

.article-body {
  max-width: none;
}

.article-body h2 {
  margin-top: 42px;
}

.article-body h3 {
  margin-top: 26px;
  font-size: 1.18rem;
}

.article-body ul,
.article-body ol {
  color: var(--muted);
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body p {
  color: var(--muted);
}

.article-body strong {
  color: var(--text);
}

.article-body a {
  color: var(--accent);
}

.article-body table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.article-body td {
  color: var(--muted);
}

.article-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.aside-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.aside-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.aside-card p,
.aside-card li {
  color: var(--muted);
  font-size: 0.88rem;
}

.aside-card ul {
  margin: 0;
  padding-left: 18px;
}

.aside-card .btn {
  width: 100%;
  margin-top: 12px;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(56, 189, 248, 0.07);
}

.callout p {
  margin: 0;
}

.cta-band {
  margin: 16px auto 0;
  padding: 30px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(139, 92, 246, 0.12));
  text-align: center;
}

.cta-band h2 {
  margin-top: 0;
}

.cta-band p {
  max-width: 620px;
  margin: 0 auto 20px;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 26px 50px -32px rgba(56, 189, 248, 0.7);
}

.guide-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-card span {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 20px 16px;
    background: rgba(5, 7, 14, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.9);
  }

  .nav.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-cta {
    margin-left: 0;
  }

  .hero {
    padding: 62px 20px 48px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-copy h1 {
    max-width: 22ch;
    margin-inline: auto;
  }

  .hero-copy .hero-actions,
  .hero-chips {
    justify-content: center;
  }

  .hero-art {
    order: -1;
    max-width: 420px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 42px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 46px 20px;
  }

  .test-frame iframe {
    height: 620px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .article-aside {
    position: static;
  }

  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }

  .cards,
  .tech-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .test-frame iframe {
    height: 580px;
  }
}
