/* sayodevice.fr - transposition de la reference 05 (setup builder neon violet) */
:root {
  --canvas: #0D0E15;
  --surface: #161722;
  --surface-2: #1C1D2B;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --primary: #9D4EDD;
  --primary-hi: #B06AEB;
  --primary-soft: rgba(157, 78, 221, 0.16);
  --lilac: #CDA6F7;
  --text: #F3F1F8;
  --muted: #A3A6BA;
  --accent: #3FE3EA;
  --radius-frame: 40px;
  --radius-card: 16px;
  --radius-btn: 12px;
  --wrap: 1200px;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--text); color: var(--canvas); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Ligne de transparence */
.topline {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* Grand cadre arrondi */
.frame {
  position: relative;
  isolation: isolate;
  margin: 0 24px;
  border-radius: var(--radius-frame);
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 8% 100%, rgba(157, 78, 221, 0.55) 0%, rgba(157, 78, 221, 0) 60%),
    radial-gradient(55% 70% at 30% 35%, rgba(122, 52, 196, 0.32) 0%, rgba(122, 52, 196, 0) 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(96, 40, 170, 0.35) 0%, rgba(96, 40, 170, 0) 70%),
    linear-gradient(180deg, #120F1F 0%, var(--canvas) 100%);
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(157, 78, 221, 0.45);
}
.frame-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.07);
  z-index: -1;
  pointer-events: none;
}

/* Barre de navigation */
.nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 26px 48px 0;
}
.wordmark {
  justify-self: start;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}
.wordmark .dot { color: var(--accent); }
.nav-pill {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(22, 23, 34, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-pill a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-pill a:hover { color: var(--text); }
.nav-pill a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px -4px rgba(157, 78, 221, 0.7);
}
.nav-cta {
  justify-self: end;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: rgba(22, 23, 34, 0.72);
  border: 1px solid var(--line-2);
  transition: border-color .2s, background-color .2s;
}
.nav-cta:hover { border-color: var(--primary); background: var(--primary-soft); }

/* Heros */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  top: -90px;
  right: 0;
  bottom: 0;
  width: 60%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 72px 0 56px 48px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: var(--lilac);
  font-size: 13px;
  font-weight: 500;
}
.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.3), 0 0 12px rgba(176, 106, 235, 0.9);
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 span { display: block; }
.hero h1 .l1 { color: var(--lilac); }
.hero h1 .l2 {
  background: linear-gradient(90deg, var(--lilac) 0%, #EADBFB 70%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .l3 { color: #fff; }
.lead {
  margin-top: 26px;
  max-width: 470px;
  font-size: 17px;
  color: var(--muted);
}
.lead strong { color: var(--text); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s, box-shadow .2s, border-color .2s, transform .2s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 30px -6px rgba(157, 78, 221, 0.75), 0 0 0 4px rgba(157, 78, 221, 0.14);
}
.btn-primary:hover { background: var(--primary-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 38px -6px rgba(176, 106, 235, 0.85), 0 0 0 5px rgba(157, 78, 221, 0.2); }
.btn-ghost {
  background: rgba(13, 14, 21, 0.55);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* Comment ca marche (dans le cadre) */
.how {
  position: relative;
  z-index: 2;
  padding: 8px 48px 48px;
}
.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.row-head h2 { font-size: 22px; font-weight: 700; }
.link-arrow {
  color: var(--lilac);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-grid li {
  padding: 20px 22px 22px;
  border-radius: var(--radius-card);
  background: rgba(22, 23, 34, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.how-grid .num { font-size: 12.5px; font-weight: 500; color: var(--primary-hi); }
.how-grid h3 { margin-top: 10px; font-size: 16.5px; font-weight: 700; }
.how-grid p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* Sections */
main { display: block; }
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 96px 24px 0;
}
.section .row-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-intro { max-width: 640px; color: var(--muted); font-size: 16.5px; }
.notice {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 2px solid var(--primary);
  background: rgba(157, 78, 221, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 820px;
}

/* Cartes produit */
.cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: rgba(157, 78, 221, 0.5); box-shadow: 0 30px 70px -30px rgba(157, 78, 221, 0.5); }
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0A0B11;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px -4px rgba(157, 78, 221, 0.8);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 12px 12px; }
.card h3 { font-size: 20px; font-weight: 700; }
.card-for { margin-top: 6px; color: var(--muted); font-size: 15px; }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.facts li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: #D9D7E4;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(176, 106, 235, 0.8);
}
.card-foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }
.price { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.price span { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.alt-link { justify-self: center; font-size: 13.5px; color: var(--muted); text-underline-offset: 3px; }
.alt-link:hover { color: var(--text); }

/* Comparatif */
.table-wrap {
  margin-top: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 22px; text-align: left; vertical-align: top; }
.compare thead th {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: rgba(157, 78, 221, 0.1);
  border-bottom: 1px solid var(--line-2);
}
.compare tbody th { width: 22%; font-weight: 500; color: var(--text); }
.compare tbody td { color: #D9D7E4; }
.compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare strong { color: #fff; }
.tbc {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--muted);
  font-size: 13px;
}
.row-cta td { padding-top: 18px; padding-bottom: 20px; }
.fine { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Quiz */
.quiz-layout {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.quiz {
  position: relative;
  border-radius: 24px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(157, 78, 221, 0.22) 0%, rgba(157, 78, 221, 0) 70%),
    var(--surface);
  border: 1px solid var(--line);
  padding: 36px 36px 30px;
  min-height: 470px;
  box-shadow: 0 40px 90px -40px rgba(157, 78, 221, 0.45);
}
.quiz-progress { display: flex; justify-content: center; gap: 6px; }
.quiz-progress span {
  width: 30px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color .3s;
}
.quiz-progress span.on { background: var(--primary); box-shadow: 0 0 10px rgba(176, 106, 235, 0.7); }
.quiz-q { margin-top: 18px; text-align: center; font-size: 22px; font-weight: 700; }
.quiz-step { margin-top: 4px; text-align: center; font-size: 13px; color: var(--muted); }
.quiz-options {
  margin: 26px auto 0;
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #23243A 0%, #15161F 100%);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.opt:hover { border-color: rgba(176, 106, 235, 0.7); transform: translateY(-2px); }
.opt[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.3), 0 14px 30px -10px rgba(157, 78, 221, 0.7); }
.opt-visual { display: flex; align-items: center; gap: 4px; height: 40px; color: var(--lilac); }
.opt-visual svg { width: 34px; height: 34px; }
.opt-label { font-size: 15px; font-weight: 700; line-height: 1.25; }
.opt-sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.keys { display: grid; gap: 4px; }
.keys i { display: block; width: 13px; height: 13px; border-radius: 3px; background: var(--primary); box-shadow: 0 0 8px rgba(176, 106, 235, 0.6); }
.keys-3 { grid-template-columns: repeat(3, 13px); }
.keys-5 { grid-template-columns: repeat(3, 13px); }
.keys-10 { grid-template-columns: repeat(5, 13px); }
.big-num { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--lilac); }
.quiz-nav { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn-back {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-back:hover { border-color: #fff; }
.btn-back[hidden] { display: none; }

.result { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.result-media { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #0A0B11; }
.result-media img { width: 100%; height: 100%; object-fit: cover; }
.result-kicker { font-size: 13px; color: var(--lilac); font-weight: 500; }
.result h3 { margin-top: 6px; font-size: 28px; font-weight: 700; }
.result-why { margin: 14px 0 0; padding-left: 18px; color: #D9D7E4; font-size: 15px; display: grid; gap: 6px; }
.result-price { margin-top: 16px; font-size: 22px; font-weight: 700; }
.result-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.result-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.result-alt { margin-top: 16px; font-size: 14px; color: var(--muted); }
.result-alt a { color: var(--lilac); }

.quick {
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 26px;
}
.quick h3 { font-size: 18px; font-weight: 700; }
.quick dl { margin: 16px 0 0; display: grid; gap: 0; }
.quick dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.quick dl > div:first-child { border-top: 0; padding-top: 4px; }
.quick dt { font-size: 14px; color: var(--muted); }
.quick dd { margin: 4px 0 0; font-size: 15px; }
.quick strong { color: var(--lilac); }

/* FAQ */
.faq { margin-top: 24px; display: grid; gap: 10px; max-width: 860px; }
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(157, 78, 221, 0.45); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-size: 16.5px;
  font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--lilac);
  border-bottom: 2px solid var(--lilac);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; max-width: 720px; }

/* Pied de page */
.footer {
  margin: 110px 24px 24px;
  border-radius: var(--radius-frame);
  background:
    radial-gradient(60% 120% at 0% 100%, rgba(157, 78, 221, 0.28) 0%, rgba(157, 78, 221, 0) 70%),
    #11121B;
  border: 1px solid var(--line);
  overflow: hidden;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}
.footer-brand p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 260px; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; justify-self: start; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { font-size: 13.5px; color: var(--muted); }
.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* Tablette */
@media (max-width: 1080px) {
  .nav { padding: 22px 32px 0; }
  .hero-copy { padding-left: 32px; }
  .how { padding: 8px 32px 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quiz-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-pill { display: none; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-media {
    position: relative;
    top: auto;
    width: 100%;
    height: 300px;
    order: 2;
    margin-top: -10px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  }
  .hero-copy { padding: 44px 32px 8px; max-width: none; }
  .how-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --radius-frame: 28px; }
  .topline { padding: 10px 16px; font-size: 12px; }
  .frame { margin: 0 12px; }
  .nav { padding: 18px 18px 0; }
  .wordmark { font-size: 19px; }
  .nav-cta { padding: 7px 13px; font-size: 13px; }
  .hero-copy { padding: 34px 20px 4px; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 56px); margin-top: 20px; }
  .lead { font-size: 16px; margin-top: 18px; }
  .actions { margin-top: 24px; gap: 10px; }
  .actions .btn { flex: 1 1 100%; }
  .hero-media { height: 240px; }
  .how { padding: 0 20px 24px; }
  .row-head { flex-wrap: wrap; row-gap: 4px; }
  .section { padding: 64px 16px 0; }
  .cards { grid-template-columns: 1fr; }
  .compare { font-size: 13.5px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare thead th { font-size: 14px; }
  .compare tbody th { width: 28%; }
  .tbc { padding: 1px 7px; font-size: 12px; }
  .quiz { padding: 26px 16px 20px; min-height: 0; }
  .quiz-q { font-size: 19px; }
  .quiz-options { grid-template-columns: 1fr 1fr; gap: 10px; }
  .opt { min-height: 118px; padding: 13px; }
  .opt-label { font-size: 14px; }
  .result { grid-template-columns: 1fr; gap: 16px; }
  .result h3 { font-size: 24px; }
  .quick { padding: 22px 18px; }
  .faq summary { padding: 16px 48px 16px 18px; font-size: 15.5px; }
  .faq details p { padding: 0 18px 18px; }
  .footer { margin: 72px 12px 12px; }
  .footer-inner { padding: 32px 20px 20px; }
  .footer-bottom { padding: 14px 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
