/* Site vitrine Shad0wInvest — même identité que l'application :
   fond sombre bleuté, halos colorés, verre dépoli, accent émeraude.
   Pas de dépendance ni de build : nginx sert ces fichiers tels quels. */

:root {
  --background: oklch(0.155 0.012 260);
  --foreground: oklch(0.96 0.005 260);
  --muted-foreground: oklch(0.67 0.015 260);
  --primary: oklch(0.76 0.15 163);
  --primary-strong: oklch(0.82 0.16 163);
  --primary-foreground: oklch(0.18 0.03 170);
  --border: oklch(1 0 0 / 9%);
  --amber: oklch(0.82 0.15 85);
  --radius: 0.625rem;
  --max: 68rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(70rem 45rem at 108% -8%, oklch(0.76 0.15 163 / 14%) 0%, transparent 58%),
    radial-gradient(55rem 35rem at -15% 30%, oklch(0.7 0.13 210 / 9%) 0%, transparent 60%),
    radial-gradient(60rem 40rem at 50% 118%, oklch(0.65 0.12 300 / 7%) 0%, transparent 60%),
    var(--background);
  background-attachment: fixed;
  color: var(--foreground);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ----------------------------------------------------------- Verre */

.glass {
  background: linear-gradient(
    155deg,
    oklch(1 0 0 / 6.5%) 0%,
    oklch(1 0 0 / 2.5%) 55%,
    oklch(1 0 0 / 4%) 100%
  );
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.8);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.21, 1.02, 0.73, 1),
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  border-color: var(--border);
  background: oklch(1 0 0 / 5%);
  color: var(--foreground);
}

.btn-ghost:hover {
  border-color: oklch(0.76 0.15 163 / 40%);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------- Barre du haut */

header.top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: oklch(0.155 0.012 260 / 72%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
}

.top nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.925rem;
  color: var(--muted-foreground);
}

.top nav a:hover {
  color: var(--foreground);
}

.top .actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

/* Sur un petit écran, seul l'appel principal reste : deux boutons plus
   le logo ne tiennent pas sur la ligne. */
.top .actions .btn-ghost {
  display: none;
}

@media (min-width: 560px) {
  .top .actions .btn-ghost {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .top nav {
    display: flex;
  }
  .top .actions {
    margin-left: 0;
  }
}

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

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid oklch(0.76 0.15 163 / 30%);
  border-radius: 999px;
  background: oklch(0.76 0.15 163 / 12%);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

h1 {
  margin: 1.5rem auto 0;
  max-width: 20ch;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 .accent {
  background: linear-gradient(120deg, var(--primary) 0%, oklch(0.85 0.13 190) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 1.25rem auto 0;
  max-width: 46rem;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 2.2vw, 1.175rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.note {
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

/* Aperçu de l'application dans un cadre de navigateur */
.shot {
  margin-top: 3rem;
  padding: 0.6rem;
  overflow: hidden;
}

.shot .bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem 0.65rem;
}

.shot .bar i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 14%);
}

.shot .bar span {
  margin-left: auto;
  margin-right: auto;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 5%);
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.shot img {
  width: 100%;
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid var(--border);
}

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

section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 0.6rem;
  color: var(--muted-foreground);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.35rem;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: calc(var(--radius) * 1.2);
  background: oklch(0.76 0.15 163 / 14%);
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  margin-top: 0.4rem;
  color: var(--muted-foreground);
  font-size: 0.925rem;
}

/* Liste de sécurité */
.checks {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.checks svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--primary);
}

.checks b {
  font-weight: 600;
}

.checks span {
  color: var(--muted-foreground);
}

/* Écosystème */
.eco {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem;
}

.eco .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.eco .row .name {
  font-weight: 600;
}

.eco .row .host {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.live {
  background: oklch(0.76 0.15 163 / 15%);
  color: var(--primary);
}

.badge.soon {
  background: oklch(0.82 0.15 85 / 15%);
  color: var(--amber);
}

.eco .row p {
  flex-basis: 100%;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* Avertissement */
.warn {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid oklch(0.82 0.15 85 / 30%);
  border-radius: calc(var(--radius) * 1.4);
  background: oklch(0.82 0.15 85 / 8%);
}

.warn svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--amber);
}

.warn p {
  font-size: 0.9rem;
  color: oklch(0.88 0.06 85);
}

/* FAQ */
details {
  padding: 1rem 1.25rem;
  margin-bottom: 0.7rem;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 0.7rem;
  color: var(--muted-foreground);
  font-size: 0.94rem;
}

/* Appel final */
.final {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.final h2 {
  max-width: 24ch;
  margin-inline: auto;
}

/* --------------------------------------------------------- Pied de page */

footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}

footer .cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

footer h4 {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

footer ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.925rem;
}

footer ul a:hover {
  color: var(--primary);
}

footer .legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8rem;
}


/* ---------------------------------------------------------- Tarifs */
/* Trois offres côte à côte, puis un comparatif complet. Le tableau est
   la partie qui compte : c'est là qu'on cherche la ligne qui décide. */

.plans {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, 1fr);
  /* Hauteurs égales : les trois boutons finissent alignés, ce qui rend
     les offres comparables d'un coup d'œil. */
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem 1.4rem;
}

/* L'offre du milieu est mise en avant, sans écraser les deux autres :
   une bordure teintée et un léger relief suffisent. */
.plan.featured {
  border-color: color-mix(in oklch, var(--primary) 45%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--primary) 18%, transparent),
              0 18px 50px -28px color-mix(in oklch, var(--primary) 60%, transparent);
}

.plan .ribbon {
  position: absolute;
  top: -0.7rem;
  left: 1.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.plan .price b {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan .price span {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.plan .price-alt {
  margin-top: -0.6rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.plan .price-alt b {
  color: var(--foreground);
  font-weight: 600;
}

.plan .pitch {
  color: var(--muted-foreground);
  font-size: 0.925rem;
}

/* Coche dessinée en CSS : la liste reste du texte pur, lisible même
   sans styles, et il n'y a pas vingt SVG identiques dans le HTML. */
.plan .checks li {
  position: relative;
  display: block;
  padding-left: 1.5rem;
  font-size: 0.925rem;
  color: var(--muted-foreground);
}

.plan .checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.35rem;
  width: 0.42rem;
  height: 0.72rem;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan .btn {
  margin-top: auto;
  justify-content: center;
}

/* -------------------------------------------------------- Comparatif */
.compare {
  margin-top: 1.6rem;
  padding: 0.4rem;
  /* Un tableau large ne doit jamais faire glisser la page entière. */
  overflow-x: auto;
}

.compare table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare th,
.compare td {
  padding: 0.6rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare thead th {
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
}

.compare tbody th[scope="row"] {
  text-align: left;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* Intertitres du tableau : ils rendent les vingt lignes parcourables. */
.compare tbody th.grp {
  padding-top: 1.2rem;
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-color: transparent;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td.y {
  color: var(--primary);
  font-weight: 600;
}

.compare td.n {
  color: color-mix(in oklch, var(--muted-foreground) 55%, transparent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 62rem) {
  .plans {
    grid-template-columns: 1fr;
  }
  .plan.featured {
    order: -1;
  }
}

/* Sur téléphone, un comparatif qu'il faut faire glisser pour voir la
   moindre colonne ne compare rien. On resserre pour que les trois
   forfaits tiennent à l'écran, quitte à ce que les libellés passent sur
   deux lignes. */
@media (max-width: 40rem) {
  .compare table {
    min-width: 0;
    font-size: 0.78rem;
  }
  .compare th,
  .compare td {
    padding: 0.5rem 0.3rem;
  }
  .compare thead th:first-child,
  .compare tbody th[scope="row"]:not(.grp) {
    width: 45%;
    padding-left: 0.5rem;
  }
  .compare thead th {
    white-space: normal;
  }
}

/* Une section visée par une ancre ne doit pas passer sous la barre
   collante du haut. */
section[id] {
  scroll-margin-top: 5rem;
}

/* Focus visible cohérent partout */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
