/* SnapJury — site vitrine
   Direction : éditorial / papeterie réinventée.
   Crème papier + encre + indigo de marque. */

/* Police : système (SF Pro sur Apple, comme l'app) avec Inter en repli cross-plateforme. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Police alignée sur l'app : SF Pro système d'abord, Inter en repli */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;

  /* Palette froide reprise du Theme.swift de l'app */
  --paper: #fbfdff;       /* snBackground app */
  --paper-2: #f2f6fc;     /* snGroupedBackground app */
  --card: #ffffff;
  --ink: #0b121d;         /* texte sombre froid (fond sombre app) */
  --ink-soft: #5a6678;    /* texte secondaire froid */
  --line: #e2e9f3;        /* bordures froides */
  --indigo: #4c4dff;      /* brandIndigo app */
  --indigo-deep: #2e2fd6;
  --blue: #007aff;        /* brandBlue app (action) */
  --navy: #050a5e;        /* brandNavy app */
  --mist: #e9f0ff;        /* brandMist app */
  --green: #31c48d;       /* brandGreen app */
  --coral: #ff686b;       /* brandCoral app */
  --text: #0b121d;        /* couleur du texte courant */
  --panel: #0b121d;       /* fond des sections sombres */
  --panel-text: #eef3fa;  /* texte sur sections sombres */
  --shadow: 0 24px 60px rgba(11, 18, 29, 0.10);
  --radius: 22px;
  --maxw: 1140px;
  --rule: 30px;
}

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

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

body {
  font-family: var(--sans);
  background-color: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  /* fond clair froid, légers halos de marque (pas de grain papier) */
  background-image:
    radial-gradient(circle at 16% 8%, rgba(76,77,255,0.06), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(0,188,212,0.06), transparent 42%);
  background-repeat: no-repeat;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.05; letter-spacing: -0.022em; }
.display { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
.serif-italic { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--indigo-deep);
}
.lead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink-soft); max-width: 38ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(76,77,255,0.40); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo-deep); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--sans); font-size: 1.4rem; font-weight: 600; }
.brand .mark { display: inline-flex; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-weight: 500; }
.nav-links a.muted { color: var(--ink-soft); }
.nav-links a.muted:hover { color: var(--text); }
.nav-cta { font-size: 0.95rem; padding: 0.6rem 1.1rem; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem,6vw,5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.hero h1 { margin: 1.2rem 0 1.4rem; }
.hero h1 .accent { color: var(--indigo); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; align-items: center; }
.hero-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }

/* Baseline cyclique (value proposition qui tourne) */
.hero-cycle { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 600; color: var(--text); margin-top: 1.4rem; letter-spacing: -0.01em; }
.cycle-word { display: inline-block; color: var(--indigo); font-weight: 800; transition: opacity 0.35s ease, transform 0.35s ease; }
.cycle-word.out { opacity: 0; transform: translateY(-0.45em); }

/* Visuel hero : vraie capture, flottement doux */
.hero-shot { display: flex; justify-content: center; align-items: center; }
.hero-shot img { width: 100%; max-width: 320px; height: auto; filter: drop-shadow(0 34px 55px rgba(11,18,29,0.22)); animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-shot img { animation: none; }
  .cycle-word { transition: none; }
}

/* maquette "capture" en CSS */
.device {
  position: relative; background: var(--card); border-radius: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 22px; transform: rotate(1.4deg);
  background-image: repeating-linear-gradient(var(--card), var(--card) calc(var(--rule) - 1px), var(--line) var(--rule));
  background-attachment: local;
}
.device::before {
  content: ""; position: absolute; left: 46px; top: 0; bottom: 0; width: 1.5px;
  background: color-mix(in srgb, var(--coral) 55%, transparent);
}
.device-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-left: 34px; }
.device-title { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; }
.pill { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: color-mix(in srgb, var(--indigo) 12%, transparent); color: var(--indigo-deep); }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 0 9px 34px; }
.tag { font-size: 0.82rem; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.tag.pos { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.tag.neg { background: color-mix(in srgb, var(--coral) 18%, transparent); color: #c63e41; }
.mic-bubble { margin: 14px 0 6px 34px; display: flex; align-items: center; gap: 10px; }
.mic-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(76,77,255,0.4); }
.wave { display: flex; align-items: center; gap: 3px; height: 24px; }
.wave span { width: 3px; background: var(--indigo); border-radius: 2px; animation: bounce 1.1s ease-in-out infinite; }
.wave span:nth-child(1){height:8px;animation-delay:0s}
.wave span:nth-child(2){height:18px;animation-delay:.1s}
.wave span:nth-child(3){height:24px;animation-delay:.2s}
.wave span:nth-child(4){height:14px;animation-delay:.3s}
.wave span:nth-child(5){height:20px;animation-delay:.15s}
.wave span:nth-child(6){height:9px;animation-delay:.25s}
@keyframes bounce { 0%,100%{transform:scaleY(0.5)} 50%{transform:scaleY(1)} }
.composed { margin: 10px 0 0 34px; font-style: italic; color: var(--ink-soft); font-family: var(--sans); font-size: 0.98rem; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 { margin: 0.8rem 0 1rem; }

/* bandeau présence */
.statement { text-align: center; }
.statement .big { font-family: var(--sans); font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; max-width: 22ch; margin: 0 auto; }
.statement .big em { color: var(--indigo); font-style: italic; }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; position: relative;
}
.step .num { font-family: var(--sans); font-size: 0.95rem; color: var(--indigo-deep); font-weight: 600; }
.step .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin: 0.9rem 0 1rem; background: color-mix(in srgb, var(--indigo) 10%, transparent); }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.feature { display: flex; gap: 1rem; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); }
.feature .fico { flex: 0 0 auto; color: var(--indigo); }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; }

/* pricing */
.pricing-wrap { background: var(--panel); color: var(--panel-text); border-radius: 34px; padding: clamp(2.5rem,5vw,4rem); }
.pricing-wrap .eyebrow { color: color-mix(in srgb, var(--indigo) 60%, white); }
.pricing-wrap h2 { color: var(--panel-text); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.plan { border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 2rem; position: relative; }
.plan.featured { background: color-mix(in srgb, var(--indigo) 22%, var(--ink)); border-color: var(--indigo); }
.plan .ptitle { font-family: var(--sans); font-size: 1.3rem; }
.plan .price { font-family: var(--sans); font-size: 2.6rem; margin: 0.6rem 0 0.2rem; }
.plan .price small { font-size: 0.95rem; font-family: var(--sans); color: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.plan .save { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; background: var(--green); color: #fff; margin-bottom: 0.6rem; }
.plan ul { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.plan li { font-size: 0.95rem; color: color-mix(in srgb, var(--paper-2) 85%, transparent); display:flex; gap:0.55rem; }
.plan li::before { content: "✓"; color: var(--indigo); font-weight: 700; }
.trial-line { margin-top: 2rem; text-align: center; color: color-mix(in srgb, var(--panel-text) 78%, transparent); font-size: 0.95rem; }

/* privacy */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.privacy .badge-lock { width: 92px; height:92px; border-radius: 24px; background: color-mix(in srgb, var(--green) 14%, transparent); display:grid; place-items:center; margin-bottom: 1.5rem; }
.privacy ul { list-style:none; display:grid; gap:0.7rem; margin-top:1.2rem; }
.privacy li { display:flex; gap:0.6rem; color: var(--ink-soft); }
.privacy li::before { content:""; width:8px;height:8px;border-radius:50%;background:var(--green); margin-top:0.6rem; flex:0 0 auto; }

/* final CTA */
.final { text-align:center; }
.final h2 { max-width: 18ch; margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.foot-grid { display:flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.foot-links { display:flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.95rem; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--text); }
.foot-legal { color: var(--ink-soft); font-size: 0.85rem; margin-top: 1.5rem; max-width: 60ch; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Document (pages légales) ---------- */
.doc { max-width: 760px; padding-top: 3rem; }
.doc h1 { font-size: clamp(2.2rem,5vw,3.2rem); margin-bottom: 0.4rem; }
.doc .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.5rem; margin: 2.2rem 0 0.7rem; }
.doc p, .doc li { color: var(--text); margin-bottom: 0.7rem; }
.doc ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.doc a:not(.btn) { color: var(--indigo-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc .placeholder { background: color-mix(in srgb, var(--coral) 14%, transparent); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .device { transform: none; margin-top: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 1rem; padding: 1.5rem 24px;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .wave span { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   FUSION — éléments repris de l'ancien site, habillés à la nouvelle DA
   ========================================================================= */

/* ---- Sélecteur de langue ---- */
.lang-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden; }
.lang-toggle button, .lang-toggle a {
  text-decoration: none; display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem;
  padding: 0.35rem 0.7rem; background: transparent; color: var(--ink-soft);
  border: none; cursor: pointer; transition: background 0.18s ease, color 0.18s ease;
}
.lang-toggle button.active, .lang-toggle a.active { background: var(--indigo); color: #fff; }

/* ---- Titres de section centrés ---- */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Démo / vidéo ---- */
.demo .section-head { max-width: 56ch; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  background: var(--ink); box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  color: var(--panel-text); border: none;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--indigo) 55%, transparent), transparent 60%),
    var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
}
.video-placeholder .play {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #0b121d; font-size: 1.7rem; padding-left: 6px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.35); transition: transform 0.2s ease;
}
.video-placeholder:hover .play { transform: scale(1.06); }
.video-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 1rem; cursor: pointer; }
.video-pill { background: color-mix(in srgb, #0b121d 78%, transparent); color: var(--panel-text); font-size: 0.85rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 100px; backdrop-filter: blur(6px); }
.demo-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ---- Showcase : texte + capture, lignes alternées ---- */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.showcase + .showcase { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.showcase.reverse .sc-text { order: 2; }
.dark .showcase + .showcase { border-top-color: rgba(255,255,255,0.10); }
.sc-text .eyebrow { display: block; margin-bottom: 0.7rem; }
.sc-text h3 { font-family: var(--sans); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 0.9rem; }
.sc-text p { color: var(--ink-soft); font-size: 1.05rem; }
.tag-line { display: inline-block; margin-top: 1.1rem; font-size: 0.82rem; font-weight: 600; color: var(--indigo-deep); background: color-mix(in srgb, var(--indigo) 12%, transparent); border-radius: 100px; padding: 0.35rem 0.85rem; }

.sc-media { display: flex; justify-content: center; align-items: center; }
.sc-media img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(33,28,23,0.18)); }
.sc-media.phone img { max-width: 300px; }
.sc-media.watch img { max-width: 320px; }
.sc-media.tablet img { max-width: 520px; }
.sc-media.dual { gap: 0; position: relative; min-height: 360px; }
.sc-media.dual img { max-width: 230px; position: absolute; }
.sc-media.dual img:first-child { transform: translateX(-32%) rotate(-5deg); z-index: 1; }
.sc-media.dual img:last-child { transform: translateX(32%) rotate(5deg); }

/* ---- Sections sombres ---- */
.dark { background: var(--panel); color: var(--panel-text); }
.dark .sc-text h3 { color: var(--panel-text); }
.dark .sc-text p { color: color-mix(in srgb, var(--panel-text) 78%, transparent); }
.dark .eyebrow { color: color-mix(in srgb, var(--indigo) 55%, white); }
.dark .tag-line { color: color-mix(in srgb, var(--indigo) 45%, white); background: rgba(76,77,255,0.18); }

/* ---- Podium Mac ---- */
.mac-frame { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.mac-frame img { display: block; width: 100%; height: auto; }

/* ---- Cartes "Et aussi" ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.card .cico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; background: color-mix(in srgb, var(--indigo) 10%, transparent); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---- Badge bêta ---- */
.beta { display: inline-block; font-family: var(--sans); font-size: 0.6em; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--indigo); background: rgba(76,77,255,0.12); border-radius: 999px; padding: 0.18em 0.6em; vertical-align: middle; }

/* ---- Tarif (offre unique) ---- */
.plan-solo { max-width: 460px; margin: 2.5rem auto 0; background: color-mix(in srgb, var(--indigo) 20%, var(--ink)); border: 1px solid var(--indigo); border-radius: 28px; padding: clamp(2rem, 4vw, 2.8rem); text-align: center; }
.plan-solo .ptitle { font-family: var(--sans); font-size: 1.3rem; }
.plan-solo .price { font-family: var(--sans); font-size: clamp(3rem, 7vw, 4rem); line-height: 1; margin: 0.5rem 0 1.4rem; }
.plan-solo .price small { font-size: 1rem; font-family: var(--sans); color: color-mix(in srgb, var(--panel-text) 70%, transparent); }
.plan-solo ul { list-style: none; display: grid; gap: 0.65rem; margin: 0 0 1.8rem; text-align: left; }
.plan-solo li { font-size: 0.98rem; color: color-mix(in srgb, var(--panel-text) 90%, transparent); display: flex; gap: 0.6rem; }
.plan-solo li::before { content: "✓"; color: #fff; font-weight: 700; }
.btn.block { width: 100%; justify-content: center; }
.plan-solo .trial-line { margin-top: 1.2rem; }

/* ---- Lien confidentialité ---- */
.priv-link { color: var(--indigo-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; box-shadow: var(--shadow); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0.7rem 0.9rem; width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(76,77,255,0.14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { display: none; padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.92rem; font-weight: 500; }
.form-msg.ok { display: block; background: color-mix(in srgb, var(--green) 16%, transparent); color: #157a52; }
.form-msg.err { display: block; background: color-mix(in srgb, var(--coral) 18%, transparent); color: #c63e41; }

/* ---- Bandeau cookies ---- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(33,28,23,0.22);
  padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.show { opacity: 1; transform: none; pointer-events: auto; }
.cookie-msg { font-size: 0.9rem; color: var(--ink-soft); margin: 0; flex: 1 1 280px; }
.cookie-msg a { color: var(--indigo-deep); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* ---- Responsive fusion ---- */
@media (max-width: 880px) {
  .showcase { grid-template-columns: 1fr; gap: 2rem; }
  .showcase.reverse .sc-text { order: 0; }
  .sc-media.dual { min-height: 320px; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .lang-toggle { align-self: flex-start; }
}

/* =========================================================================
   HERO — barème interactif (la note évolue en direct)
   ========================================================================= */
.grader {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: 0 30px 60px rgba(11,18,29,0.12); padding: 24px 26px 20px;
}
.grader-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.grader-eyebrow { display: block; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; font-weight: 700; color: var(--indigo); }
.grader-sub { display: block; font-family: var(--sans); font-size: 1.12rem; font-weight: 700; margin-top: 0.2rem; letter-spacing: -0.01em; }
/* Anneau de note (gauge) */
.gauge { position: relative; width: 84px; height: 84px; flex: 0 0 auto; }
.gauge svg { transform: rotate(-90deg); display: block; }
.gauge-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.gauge-fg {
  fill: none; stroke: var(--indigo); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 226.19; stroke-dashoffset: 226.19;
  transition: stroke-dashoffset 0.5s cubic-bezier(.22,1,.36,1), stroke 0.3s ease;
}
.gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.gauge-num span { font-family: var(--sans); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: color 0.3s ease; }
.gauge-num small { font-size: 0.62rem; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.gauge.is-high .gauge-fg { stroke: var(--green); }
.gauge.is-high .gauge-num span { color: var(--green); }
.gauge.is-mid .gauge-fg { stroke: var(--indigo); }
.gauge.is-mid .gauge-num span { color: var(--indigo); }
.gauge.is-low .gauge-fg { stroke: var(--coral); }
.gauge.is-low .gauge-num span { color: var(--coral); }

/* Appréciation rédigée en direct */
.apprec { margin-top: 1.4rem; padding: 0.95rem 1.1rem; border-radius: 14px; background: color-mix(in srgb, var(--indigo) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--indigo) 16%, transparent); }
.apprec-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--indigo); }
.apprec-pen { font-size: 0.8rem; }
.apprec-text { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.5; color: var(--text); transition: opacity 0.2s ease; }

.criteria { display: grid; gap: 1.05rem; }
.crit { display: grid; gap: 0.5rem; cursor: pointer; }
.crit-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.95rem; font-weight: 500; }
.crit-val { font-family: var(--sans); font-weight: 600; color: var(--indigo-deep); font-variant-numeric: tabular-nums; }

.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border-radius: 100px;
  background: linear-gradient(90deg, var(--indigo) 0 var(--pct, 70%), color-mix(in srgb, var(--line) 90%, transparent) var(--pct, 70%) 100%);
  cursor: pointer; outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 21px; height: 21px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--indigo); box-shadow: 0 3px 10px rgba(76,77,255,0.45);
  cursor: grab; transition: transform 0.12s ease;
}
.slider::-moz-range-thumb {
  width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 2.5px solid var(--indigo);
  box-shadow: 0 3px 10px rgba(76,77,255,0.45); cursor: grab;
}
.slider:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(76,77,255,0.25); }

.grader-hint { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.4rem; font-size: 0.85rem; color: var(--ink-soft); }
.drag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); flex: 0 0 auto; animation: dragpulse 1.8s ease-in-out infinite; }
@keyframes dragpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(76,77,255,0.45); } 50% { box-shadow: 0 0 0 6px rgba(76,77,255,0); } }

@media (max-width: 880px) {
  .grader { margin-top: 1rem; padding: 22px 22px 20px; }
  .grader-sub { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .drag-dot { animation: none; }
  .gauge-fg { transition: none; }
  .gauge-num span { transition: none; }
}

/* =========================================================================
   ÉTAPES — scrollytelling (iPhone fixe, écrans qui s'enchaînent au scroll)
   ========================================================================= */
.scrolly { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.scrolly-media { position: sticky; top: 96px; height: min(74vh, 580px); display: flex; align-items: center; justify-content: center; }
.scrolly-stage { position: relative; width: 100%; height: 100%; }
.sc-screen {
  position: absolute; top: 50%; left: 50%; max-width: 288px; width: 90%; height: auto;
  transform: translate(-50%, -50%) scale(0.95); opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
  filter: drop-shadow(0 34px 55px rgba(11,18,29,0.20));
}
.sc-screen.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.scrolly-steps { display: flex; flex-direction: column; }
.scrolly-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; opacity: 0.38; transition: opacity 0.35s ease; }
.scrolly-step.is-active { opacity: 1; }
.scrolly-step .num { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; color: var(--indigo); letter-spacing: 0.04em; }
.scrolly-step h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0.5rem 0 0.9rem; }
.scrolly-step p { color: var(--ink-soft); font-size: 1.06rem; max-width: 42ch; }

@media (max-width: 880px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-media { display: none; }
  .scrolly-step { min-height: auto; opacity: 1; padding: 1.4rem 0; border-top: 1px solid var(--line); }
  .scrolly-step:first-child { border-top: none; padding-top: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-screen { transition: none; }
  .scrolly-step { transition: none; opacity: 1; }
}

/* l'icône du menu suit la couleur de texte (utile en sombre) */
.menu-toggle svg { stroke: var(--text); }

/* =========================================================================
   MODE SOMBRE — reprend le thème sombre de l'app (#0B121D)
   ========================================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b121d;       /* fond sombre app */
    --paper-2: #101a27;     /* surfaces groupées */
    --card: #131e2e;        /* cartes */
    --text: #eef3fa;        /* texte clair */
    --ink-soft: #9aa7ba;    /* texte secondaire clair */
    --line: rgba(255,255,255,0.11);
    --panel: #18243a;       /* panneaux sombres surélevés (ressortent du fond) */
    --shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .site-header { background: color-mix(in srgb, var(--paper) 78%, transparent); }
  .apprec { background: color-mix(in srgb, var(--indigo) 16%, var(--card)); border-color: color-mix(in srgb, var(--indigo) 32%, transparent); }
  .field input, .field textarea { background: #0d1622; }
  .btn-ghost:hover { color: #fff; border-color: var(--indigo); background: color-mix(in srgb, var(--indigo) 18%, transparent); }
  /* liens des articles/blog et pages légales : indigo clair lisible sur fond sombre */
  .post a:not(.btn), .doc a:not(.btn) { color: #9fa0ff; }
  .cookie-msg a { color: #9fa0ff; }
  .form-msg.ok { color: #5fe0af; }
  .form-msg.err { color: #ff9a9c; }
  .beta { color: #a3a4ff; }
  .cycle-word { color: #8d8eff; }
  .eyebrow { color: #9fa0ff; }
  .post blockquote { background: color-mix(in srgb, var(--indigo) 14%, transparent); }
  .post .post-cta { background: color-mix(in srgb, var(--indigo) 18%, transparent); }
}

/* ---- Tarifs : grille trois formules (mensuel / annuel / à vie) ---- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 880px; margin: 2.5rem auto 0; align-items: stretch; }
.plan { position: relative; background: color-mix(in srgb, var(--indigo) 12%, var(--ink)); border: 1px solid color-mix(in srgb, var(--indigo) 45%, transparent); border-radius: 24px; padding: clamp(1.6rem, 3vw, 2.2rem) 1.4rem; text-align: center; display: flex; flex-direction: column; justify-content: flex-start; }
.plan .ptitle { font-family: var(--sans); font-size: 1.1rem; }
.plan .price { font-family: var(--sans); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; margin: 0.45rem 0 0.7rem; }
.plan .price small { font-size: 0.95rem; color: color-mix(in srgb, var(--panel-text) 70%, transparent); }
.plan .ptag { font-size: 0.9rem; color: color-mix(in srgb, var(--panel-text) 75%, transparent); margin: 0; }
.plan.featured { background: color-mix(in srgb, var(--indigo) 26%, var(--ink)); border: 2px solid var(--indigo); box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--indigo) 60%, transparent); }
.plan .pbadge { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background: var(--indigo); color: #fff; font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.28rem 0.8rem; border-radius: 999px; white-space: nowrap; }
.plan-includes { max-width: 560px; margin: 2.2rem auto 0; text-align: center; }
.plan-includes .pinc-title { font-family: var(--sans); font-size: 0.95rem; color: color-mix(in srgb, var(--panel-text) 75%, transparent); margin-bottom: 0.9rem; }
.plan-includes ul { list-style: none; display: grid; gap: 0.65rem; margin: 0 0 1.8rem; text-align: left; }
.plan-includes li { font-size: 0.98rem; color: color-mix(in srgb, var(--panel-text) 90%, transparent); display: flex; gap: 0.6rem; }
.plan-includes li::before { content: "✓"; color: #fff; font-weight: 700; }
@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 420px; gap: 1.3rem; }
  .plan.featured { order: -1; }
}

/* ============================== BLOG ============================== */
.post { max-width: 720px; padding-top: 3rem; padding-bottom: 4rem; }
.post h1 { font-size: clamp(2rem,4.6vw,2.9rem); margin-bottom: 0.5rem; line-height: 1.08; }
.post .post-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2.2rem; }
.post h2 { font-size: 1.45rem; margin: 2.4rem 0 0.7rem; }
.post h3 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }
.post p, .post li { color: var(--text); margin-bottom: 0.8rem; line-height: 1.65; }
.post ul, .post ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.post a:not(.btn) { color: var(--indigo-deep); text-decoration: underline; text-underline-offset: 3px; }
.post blockquote { border-left: 3px solid var(--indigo); background: color-mix(in srgb, var(--indigo) 6%, transparent); margin: 1.4rem 0; padding: 0.9rem 1.2rem; border-radius: 0 10px 10px 0; }
.post blockquote p { margin: 0; }
.post .post-cta { margin: 3rem 0 0; padding: 1.6rem; border-radius: 16px; background: color-mix(in srgb, var(--indigo) 8%, transparent); text-align: center; }
.post .post-cta p { margin-bottom: 1rem; font-weight: 600; }
.post .post-cta .btn { text-decoration: none; }
.post .lang-alt { font-size: 0.9rem; }
.blog-index { max-width: 880px; padding-top: 3rem; padding-bottom: 4rem; }
.blog-index h1 { font-size: clamp(2.2rem,5vw,3.2rem); margin-bottom: 0.4rem; }
.blog-index .blog-sub { color: var(--ink-soft); margin-bottom: 2.5rem; max-width: 56ch; }
.blog-grid { display: grid; gap: 1.2rem; }
.blog-card { display: block; padding: 1.5rem 1.6rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card h2, .blog-card p { color: var(--text); }
.blog-card p { color: color-mix(in srgb, var(--text) 80%, var(--paper)); }
.blog-card .eyebrow { display: block; margin-bottom: 0.4rem; }
.blog-card h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.blog-card p { color: var(--text); margin: 0; }
