/* Site vitrine : une seule feuille, aucun JavaScript. */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --accent: #f472b6;
  --accent-strong: #db2777;
  --radius: 14px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: #f9a8d4;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.narrow {
  max-width: 780px;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */

.button {
  display: inline-block;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  text-align: center;
  transition: background 0.15s;
}

.button:hover {
  background: #be185d;
  color: #fff;
}

.button-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.button-large {
  padding: 0.95rem 2rem;
  font-size: 1.1rem;
}

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

.more {
  font-weight: 600;
}

.more::after {
  content: ' →';
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(10 10 10 / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.7rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  margin: 0 auto 0 0;
}

.logo span {
  color: #ec4899;
}

.main-nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.3rem;
}

.main-nav a:hover,
.main-nav a[aria-current] {
  color: var(--text);
}

@media (max-width: 860px) {
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.1rem;
  }
}

/* ── Accueil ─────────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}

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

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: #d4d4d4;
  max-width: 62ch;
}

.hero .lead,
.final p {
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 1.8rem 0 0;
}

.article-header .hero-cta {
  align-items: flex-start;
}

.figure {
  margin: 2rem 0;
}

.figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.figure figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.6rem;
}

.fig-label {
  fill: #e5e5e5;
  font: 600 18px system-ui, sans-serif;
}

.fig-note {
  fill: #a8a8a8;
  font: 14px system-ui, sans-serif;
}

.hero .figure {
  max-width: 820px;
  margin: 3rem auto 0;
}

.steps,
.features,
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.steps {
  counter-reset: step;
}

.steps li,
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.steps p,
.features p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.card:hover {
  border-color: #ec4899;
  background: var(--surface-2);
}

.card-title {
  color: var(--text);
  font-weight: 650;
  font-size: 1.08rem;
  line-height: 1.3;
}

.card-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.split p {
  color: #d4d4d4;
}

.final {
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── Articles et pages ───────────────────────────────────────────────────── */

.article {
  padding-block: 1.5rem 4rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.4rem;
}

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

.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
}

.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose h2 {
  margin-top: 2.6rem;
  scroll-margin-top: 5rem;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: #fff;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 1.2rem;
  border-left: 3px solid #ec4899;
  color: #d4d4d4;
}

.prose code {
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  font-size: 0.9em;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.faq {
  margin-top: 3rem;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding-block: 1.2rem 0.3rem;
}

.faq-item p {
  color: #d4d4d4;
}

.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin: 3rem 0;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid #9d174d;
  background: linear-gradient(135deg, #2a0f1e, #171717);
}

.cta-block > div:first-child {
  flex: 1 1 320px;
}

.cta-block p {
  margin: 0;
  color: #d4d4d4;
}

.cta-block .cta-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.cta-inline {
  margin: 2rem 0;
}

.related {
  margin-top: 3rem;
}

.not-found {
  padding-block: 5rem;
}

/* ── Pied de page ────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 3rem 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current] {
  color: var(--text);
}

.footer-title {
  color: var(--text);
  font-weight: 650;
  margin-bottom: 0.3rem;
}

.disclaimer {
  margin-top: 2.5rem;
  font-size: 0.85rem;
}

/* ── Démonstration animée de l'accueil ───────────────────────────────────── */

.demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
  max-width: 960px;
  margin: 3rem auto 0;
}

.demo svg {
  display: block;
  width: 100%;
  height: auto;
}

.demo-part {
  min-width: 0;
}

.demo-canvas {
  flex: 1 1 380px;
  max-width: 620px;
}

.demo-phone {
  flex: 0 1 220px;
}

.demo-label {
  margin: 0.6rem 0 0;
  font-weight: 600;
  font-size: 0.98rem;
}

.demo-caption {
  flex: 1 1 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Trois arrêts, un par image, puis retour au début. Les trois animations sont synchrones. */
.demo-slide,
.demo-view,
.demo-dot {
  animation: 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.demo-slide {
  animation-name: demo-slide;
}

.demo-view {
  animation-name: demo-view;
}

.demo-dot {
  animation-name: demo-dot;
}

@keyframes demo-slide {
  0%, 20% { transform: translateX(0); }
  28%, 50% { transform: translateX(-216px); }
  58%, 88% { transform: translateX(-432px); }
  100% { transform: translateX(0); }
}

@keyframes demo-view {
  0%, 20% { transform: translateX(0); }
  28%, 50% { transform: translateX(216px); }
  58%, 88% { transform: translateX(432px); }
  100% { transform: translateX(0); }
}

@keyframes demo-dot {
  0%, 20% { transform: translateX(0); }
  28%, 50% { transform: translateX(12px); }
  58%, 88% { transform: translateX(24px); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-slide,
  .demo-view,
  .demo-dot {
    animation: none;
  }
}
