:root {
  --bg: #fffdf9;
  --bg-soft: #faf7ff;
  --card: #ffffff;
  --card-border: #e8e2eb;
  --text: #111426;
  --text-dim: #68697b;
  --accent: #7847ea;
  --accent-2: #ed3e9d;
  --accent-grad: linear-gradient(135deg, #7148ec 0%, #f03e9e 100%);
  --success: #18864b;
  --error: #c92f3d;
  --radius: 18px;
  --shadow-sm: 0 12px 35px rgba(35, 24, 56, 0.08);
  --shadow-lg: 0 28px 70px rgba(35, 24, 56, 0.13);
}

body {
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 243, 223, 0.72), transparent 24rem),
    radial-gradient(circle at 92% 36%, rgba(244, 232, 255, 0.62), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::selection { background: rgba(120, 71, 234, 0.18); }

header {
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid rgba(226, 219, 229, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav { max-width: 1520px; min-height: 72px; }
.logo { color: var(--text); font-size: 22px; letter-spacing: -0.7px; }
.logo-badge { width: 40px; height: 40px; box-shadow: 0 8px 20px rgba(120, 71, 234, 0.2); }
.nav-menu-links { gap: 2px; }
.nav-menu-links a { color: #343545; font-size: 13px; padding: 10px 11px; }
.nav-menu-links a:hover { color: var(--accent); background: #f4efff; }
.nav-menu-utils { border-left: 0; padding-left: 8px; }
.nav-select {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-color: #ded8e3;
  padding: 8px 10px;
}
.nav-cta { padding: 11px 16px; border-radius: 12px; }
.nav-toggle { color: var(--text); border-color: #ded8e3; background: #fff; }
.nav-toggle:hover { background: #f6f2fb; }

.hero.editorial-hero {
  max-width: 1220px;
  padding: 58px 20px 30px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: clamp(38px, 6vw, 78px);
  text-align: left;
}

.editorial-copy { padding: 18px 4px 18px 6px; }
.editorial-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a43e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.editorial-kicker { margin-bottom: 22px; }
.editorial-kicker {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 235, 255, .72);
}
.editorial-kicker img,
.section-kicker img { width: 18px; height: 18px; }
.editorial-hero h1 {
  max-width: 610px;
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(42px, 4.35vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.editorial-hero h1 span { color: var(--text); background: none; }
.editorial-hero h1 .title-line { display: block; }
/* Sur desktop large, chaque .title-line doit rester sur sa propre ligne SANS
   retour interne (ex: "Transforme ton selfie" ne doit jamais se couper en
   "Transforme ton" / "selfie") : le decoupage en 3 lignes existe deja dans le
   HTML (titleA / titleJoin+titleB / titleC), seul un retour a la ligne
   involontaire a l'interieur d'un bloc restait possible faute de largeur.
   Applique uniquement au-dessus de 980px (fin de la zone tablette a 2
   colonnes resserrees geree juste en dessous) pour ne jamais risquer de
   debordement horizontal sur tablette/mobile, ou le retour naturel reste
   autorise. */
@media (min-width: 981px) {
  .editorial-hero h1 { max-width: 660px; }
  .editorial-hero h1 .title-line { white-space: nowrap; }
}
.editorial-hero h1 .gradient-word {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.editorial-hero .hero-lede {
  max-width: 520px;
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.primary-action,
.secondary-action {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.primary-action {
  color: #fff;
  border: 0;
  background: var(--accent-grad);
  box-shadow: 0 14px 28px rgba(126, 67, 226, 0.22);
}
.secondary-action { color: var(--text); border: 1px solid #dcd6e1; background: rgba(255,255,255,.86); }
.primary-action:hover,
.secondary-action:hover { transform: translateY(-2px); }
.primary-action:hover { box-shadow: 0 18px 34px rgba(126, 67, 226, 0.29); }
.secondary-action:hover { border-color: #b9abc6; box-shadow: var(--shadow-sm); }
.primary-action:focus-visible,
.secondary-action:focus-visible,
.objective-card:focus-visible,
.feature-link:focus-visible,
.flow-tab:focus-visible { outline: 3px solid rgba(120, 71, 234, 0.28); outline-offset: 3px; }

.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.proof-faces { display: flex; padding-left: 7px; }
.proof-faces img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -7px;
}
.proof-copy { color: var(--text-dim); font-size: 12px; line-height: 1.45; }
#statsBanner { margin-top: 2px !important; color: var(--text) !important; font-size: 12px !important; }

.hero-visual { min-width: 0; }
.hero-comparison {
  --split: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 0.92;
  max-height: 650px;
  overflow: hidden;
  border-radius: 21px;
  background: #e6e0db;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero-comparison > img,
.comparison-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}
.comparison-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.comparison-divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 1px rgba(15,18,34,.12);
  transform: translateX(-1px);
  pointer-events: none;
}
.comparison-divider::after {
  content: "‹  ›";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: #fff;
  box-shadow: 0 8px 26px rgba(18,20,38,.2);
  font-size: 16px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}
.comparison-range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.compare-label {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(14,16,28,.48);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}
.compare-label.before { left: 16px; }
.compare-label.after { right: 16px; }

.trust-wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px 78px; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 18px 48px rgba(51, 38, 70, 0.05);
}
.trust-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-right: 1px solid var(--card-border); }
.trust-item:last-child { border-right: 0; }
.trust-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border: 1.5px solid #a780fa;
  border-radius: 50%;
  color: #8a4ce9;
  background: #fff;
  font-size: 22px;
}
.trust-item strong { display: block; margin-bottom: 3px; font-size: 13px; }
.trust-item > span > span { color: var(--text-dim); font-size: 11px; line-height: 1.45; }

.editorial-journey { max-width: 1220px; margin: 0 auto; padding: 0 20px 80px; }
.journey-heading { text-align: center; margin-bottom: 28px; }
.journey-heading .section-kicker { margin-bottom: 8px; }
.journey-heading h2 { margin-bottom: 6px; font-size: clamp(28px, 3.7vw, 42px); letter-spacing: -0.035em; }
.journey-heading p { color: var(--text-dim); font-size: 15px; }
.journey-shell {
  display: grid;
  grid-template-columns: minmax(220px,.86fr) minmax(270px,1fr) minmax(310px,1.15fr);
  gap: 30px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(141, 93, 224, .22);
  border-radius: 24px;
  background: rgba(250, 247, 255, .75);
  box-shadow: 0 22px 60px rgba(71, 43, 100, .08);
}
.journey-step { min-width: 0; display: flex; flex-direction: column; }
.step-heading { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 16px; font-size: 13px; font-weight: 800; }
.step-heading b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent-grad); font-size: 12px; }
.objective-list { display: grid; gap: 9px; }
.objective-card {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e3dce8;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.78);
  text-align: left;
  cursor: pointer;
}
.objective-card img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.objective-card strong { display: block; margin-bottom: 2px; font-size: 13px; }
.objective-card span { display: block; color: var(--text-dim); font-size: 10px; line-height: 1.35; }
.objective-card[aria-pressed="true"] { border-color: var(--accent); background: #fff; box-shadow: 0 9px 25px rgba(120,71,234,.1); }

.guided-uploader {
  position: relative;
  flex: 1;
  min-height: 258px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1.5px dashed #bdb5c6;
  border-radius: 17px;
  background: rgba(255,255,255,.58);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.guided-uploader:hover,
.guided-uploader.is-dragging { border-color: var(--accent); background: #fff; transform: translateY(-2px); }
.guided-uploader input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; color: #81768e; font-size: 48px; }
.guided-uploader strong { font-size: 13px; }
.guided-uploader span { margin-top: 5px; color: var(--text-dim); font-size: 10px; }
.privacy-note { display: flex; justify-content: center; gap: 7px; margin-top: 12px; color: var(--text-dim); font-size: 10px; text-align: center; }

.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; flex: 1; }
.result-grid img { width: 100%; min-height: 112px; height: 100%; max-height: 140px; border-radius: 12px; object-fit: cover; }
.result-note { margin-top: 12px; color: var(--text-dim); font-size: 10px; line-height: 1.5; text-align: center; }

.possibilities { padding-top: 30px; }
.possibilities h3 { margin-bottom: 18px; text-align: center; font-size: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 94px;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: 17px;
  color: var(--text);
  background: rgba(255,255,255,.7);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.feature-link:hover { transform: translateY(-3px); border-color: #cdbde1; box-shadow: var(--shadow-sm); }
.feature-link img { width: 72px; height: 70px; border-radius: 12px; object-fit: cover; }
.feature-link strong { display: block; margin-bottom: 3px; font-size: 13px; }
.feature-link span { color: var(--text-dim); font-size: 10px; line-height: 1.4; }

.final-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: 20px;
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 22px 48px rgba(130, 62, 220, .23);
}
.final-banner h3 { font-size: clamp(20px, 3vw, 28px); letter-spacing: -.025em; }
.final-banner .primary-action { color: #5924b9; background: #fff; box-shadow: none; flex-shrink: 0; }

.workspace-nav { max-width: 980px; margin: 0 auto; padding: 10px 20px 22px; }
.workspace-heading { text-align: center; margin-bottom: 16px; }
.workspace-heading h2 { font-size: clamp(25px, 3.5vw, 34px); letter-spacing: -.03em; }
.workspace-heading p { color: var(--text-dim); font-size: 14px; }
.flow-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.flow-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #ded7e4;
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.flow-tab[aria-selected="true"] { color: #fff; border-color: transparent; background: var(--accent-grad); box-shadow: 0 9px 22px rgba(120,71,234,.2); }

body.editorial-ready .app-section { display: none; }
body.editorial-ready #faq { display: block; }
body.editorial-ready .app-section.flow-active { display: block; animation: flow-in 220ms ease both; }
@keyframes flow-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.app-section { max-width: 920px; margin: 0 auto; padding: 28px 20px 54px; }
.app-card,
.restore-showcase {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.app-card { padding: clamp(24px, 4vw, 42px); }
.restore-showcase { padding: clamp(24px, 4vw, 42px); }
.app-card h2,
.restore-showcase h2,
.section-title,
.step-label { color: var(--text); }
.upload-zone { background: #fbf9fc; border-color: #cfc7d6; }
.upload-zone:hover { border-color: var(--accent); background: #fff; }
.upload-text { color: var(--text); }
.upload-hint { color: var(--text-dim); }
.style-card,
.pack-card,
.faq-item { background: #fff; border-color: var(--card-border); }
.style-card:hover,
.style-card.selected { border-color: var(--accent); }
.btn-secondary { color: var(--text); background: #fff; border-color: #dcd5e2; }
.btn-secondary:hover { background: #f8f4fc; border-color: #cbbdd9; }
.free-trial-cta {
  color: #6d28d9;
  background: linear-gradient(135deg, #faf7ff 0%, #fff7fb 100%);
  border: 1.5px solid #8b5cf6;
  box-shadow: 0 8px 20px rgba(109,40,217,.08);
}
.free-trial-cta:not(:disabled):hover {
  color: #5b21b6;
  background: linear-gradient(135deg, #f1eaff 0%, #ffedf7 100%);
  border-color: #7c3aed;
  box-shadow: 0 10px 26px rgba(109,40,217,.16);
}
.free-trial-cta:focus-visible { outline: 3px solid rgba(139,92,246,.28); outline-offset: 3px; }
input[type="email"],
input[type="text"],
select { color-scheme: light; }
.status-msg { color: var(--text-dim); }
.faq-section { max-width: 820px; }
.faq-item summary { color: var(--text); }
footer { border-top: 1px solid var(--card-border); background: rgba(255,255,255,.55); }

/* Premium live demos: crisp at every size and much lighter than legacy GIF tutorials. */
.demo-gif-wrap {
  max-width: 720px;
  aspect-ratio: auto;
  background: linear-gradient(145deg, #fbf8ff, #fffaf4);
  border-color: #e3dbe9;
  box-shadow: 0 20px 48px rgba(65, 40, 82, .12);
}
.premium-demo { padding: clamp(16px, 3vw, 26px); color: var(--text); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.demo-head strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 3vw, 27px); }
.demo-head span { color: var(--text-dim); font-size: 12px; }
.demo-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.demo-step { position: relative; min-width: 0; padding: 9px; border: 1px solid #e6dfea; border-radius: 16px; background: rgba(255,255,255,.92); overflow: hidden; }
.demo-step::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: inherit; pointer-events: none; animation: demo-focus 6s infinite; }
.demo-step:nth-child(2)::after { animation-delay: 2s; }
.demo-step:nth-child(3)::after { animation-delay: 4s; }
.demo-step-label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--text-dim); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.demo-step-label b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: var(--accent-grad); font-size: 10px; }
.demo-step img { display: block; width: 100%; height: 170px; border-radius: 11px; object-fit: cover; }
.demo-step.wide img { object-position: center; }
.demo-result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.demo-result-grid img { height: 82px; }
.demo-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.demo-choice img { height: 82px; }
.demo-choice img:nth-child(1) { animation: demo-choice 6s infinite; }
.demo-choice img:nth-child(2) { animation: demo-choice 6s 2s infinite; }
.demo-choice img:nth-child(3) { animation: demo-choice 6s 4s infinite; }
.demo-duo-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.demo-duo-inputs img { height: 170px; }
.demo-progress { height: 4px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: #e9e2ee; }
.demo-progress::after { content: ""; display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--accent-grad); animation: demo-progress 6s ease-in-out infinite; }
@keyframes demo-focus { 0%, 29%, 100% { border-color: transparent; box-shadow: none; } 7%, 23% { border-color: #ad78ee; box-shadow: inset 0 0 0 1px rgba(236,72,153,.22); } }
@keyframes demo-choice { 0%, 29%, 100% { opacity: .55; transform: scale(.98); } 7%, 23% { opacity: 1; transform: scale(1); } }
@keyframes demo-progress { 0% { transform: translateX(-105%); } 100% { transform: translateX(288%); } }

/* Thème sombre premium, partagé avec les pages légales via theme.js. */
html[data-theme="dark"] {
  --bg: #121018;
  --bg-soft: #191521;
  --card: #211b2a;
  --card-border: #3b3145;
  --text: #f8f4fa;
  --text-dim: #c7bdcc;
  --accent: #b394ff;
  --accent-2: #ff67b4;
  --accent-grad: linear-gradient(135deg, #936cff 0%, #f34ea6 100%);
  --shadow-sm: 0 14px 38px rgba(0, 0, 0, .24);
  --shadow-lg: 0 30px 78px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 3%, rgba(115, 75, 180, .20), transparent 25rem),
    radial-gradient(circle at 92% 36%, rgba(166, 56, 119, .15), transparent 31rem),
    var(--bg);
}
html[data-theme="dark"] header { background: rgba(18, 16, 24, .92); border-bottom-color: var(--card-border); box-shadow: 0 1px 0 rgba(255,255,255,.03); }
html[data-theme="dark"] .nav-menu-links a { color: var(--text-dim); }
html[data-theme="dark"] .nav-menu-links a:hover { color: var(--text); background: rgba(179, 148, 255, .12); }
html[data-theme="dark"] .nav-select,
html[data-theme="dark"] .nav-toggle { color: var(--text); border-color: var(--card-border); background: var(--card); }
html[data-theme="dark"] .nav-toggle:hover { background: #2a2235; }
html[data-theme="dark"] .editorial-kicker { color: #d7c7ff; background: rgba(118, 76, 178, .22); }
html[data-theme="dark"] .secondary-action,
html[data-theme="dark"] .objective-card,
html[data-theme="dark"] .guided-uploader,
html[data-theme="dark"] .feature-link,
html[data-theme="dark"] .flow-tab,
html[data-theme="dark"] .btn-secondary { color: var(--text); border-color: var(--card-border); background: rgba(33, 27, 42, .92); }
html[data-theme="dark"] .secondary-action:hover,
html[data-theme="dark"] .objective-card[aria-pressed="true"],
html[data-theme="dark"] .guided-uploader.is-dragging,
html[data-theme="dark"] .upload-zone:hover,
html[data-theme="dark"] .btn-secondary:hover { border-color: var(--accent); background: #2a2235; }
html[data-theme="dark"] .hero-comparison { background: #26202d; }
html[data-theme="dark"] .comparison-divider::after { color: var(--text); background: var(--card); box-shadow: 0 8px 26px rgba(0,0,0,.35); }
html[data-theme="dark"] .trust-row,
html[data-theme="dark"] .journey-shell,
html[data-theme="dark"] .app-card,
html[data-theme="dark"] .restore-showcase { border-color: var(--card-border); background: rgba(25, 21, 33, .88); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .trust-icon { color: #d7c7ff; background: var(--card); }
html[data-theme="dark"] .objective-card[aria-pressed="true"] { box-shadow: 0 10px 28px rgba(147,108,255,.17); }
html[data-theme="dark"] .guided-uploader { background: rgba(33, 27, 42, .62); }
html[data-theme="dark"] .feature-link:hover { border-color: var(--accent); }
html[data-theme="dark"] .workspace-nav { border-color: var(--card-border); background: rgba(25, 21, 33, .80); }
html[data-theme="dark"] .upload-zone { border-color: #51455d; background: #1d1825; }
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .pack-card { border-color: var(--card-border); background: var(--card); }
html[data-theme="dark"] footer { background: rgba(18, 16, 24, .62); }
html[data-theme="dark"] .demo-gif-wrap { border-color: var(--card-border); background: linear-gradient(145deg, #1b1722, #241b28); box-shadow: 0 22px 58px rgba(0,0,0,.30); }
html[data-theme="dark"] .demo-step { border-color: #45384f; background: rgba(33, 27, 42, .96); }
html[data-theme="dark"] .demo-progress { background: #3b3145; }
html[data-theme="dark"] select { color-scheme: dark; }

@media (max-width: 980px) {
  .hero.editorial-hero { grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 42px; }
  .editorial-hero h1 { font-size: clamp(38px, 5vw, 52px); }
  .trust-item { padding: 18px 15px; }
  .journey-shell { grid-template-columns: 1fr 1fr; }
  .journey-results { grid-column: 1 / -1; }
  .result-grid { grid-template-columns: repeat(4, 1fr); }
  .result-grid img { height: 150px; max-height: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1360px) {
  .nav-menu { background: rgba(255,253,249,.98); border-bottom-color: var(--card-border); box-shadow: 0 18px 38px rgba(42,31,58,.12); }
  .nav-menu a { color: var(--text); }
  .nav-menu a:hover { background: #f5effc; }
  .nav-menu .nav-cta { color: #fff; }
  html[data-theme="dark"] .nav-menu { background: rgba(18,16,24,.98); border-bottom-color: var(--card-border); box-shadow: 0 18px 38px rgba(0,0,0,.35); }
  html[data-theme="dark"] .nav-menu a:hover { background: rgba(179,148,255,.12); }
}

@media (max-width: 760px) {
  .hero.editorial-hero { grid-template-columns: 1fr; padding: 38px 18px 26px; text-align: center; }
  .editorial-copy { padding: 0; }
  .editorial-hero h1,
  .editorial-hero .hero-lede { margin-left: auto; margin-right: auto; }
  .editorial-hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-actions,
  .hero-proof { justify-content: center; }
  .hero-comparison { aspect-ratio: 1.12; max-height: none; }
  .trust-wrap { padding-bottom: 62px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--card-border); }
  .journey-shell { grid-template-columns: 1fr; padding: 18px; gap: 22px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid img { height: auto; aspect-ratio: 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .final-banner { flex-direction: column; text-align: center; padding: 24px 20px; }
  .final-banner .primary-action { width: 100%; }
  .demo-track { position: relative; display: block; min-height: min(78vw, 330px); }
  .demo-step {
    position: absolute; inset: 0; display: block;
    opacity: 0; visibility: hidden; pointer-events: none;
  }
  .demo-gif-wrap.open .demo-step {
    animation-name: demo-mobile-cycle !important;
    animation-duration: 6.6s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
  }
  .demo-gif-wrap.open .demo-step:nth-child(1) { animation-delay: 0s !important; }
  .demo-gif-wrap.open .demo-step:nth-child(2) { animation-delay: 2.2s !important; }
  .demo-gif-wrap.open .demo-step:nth-child(3) { animation-delay: 4.4s !important; }
  .demo-gif-wrap.open .demo-progress::after { animation-duration: 6.6s !important; animation-play-state: running !important; }
  .demo-step img { height: min(62vw, 260px); }
  .demo-choice img, .demo-result-grid img { height: min(29vw, 120px); }
  .demo-duo-inputs img { height: min(56vw, 230px); }
}

@keyframes demo-mobile-cycle {
  0%, 29% { opacity: 1; visibility: visible; }
  33.333%, 100% { opacity: 0; visibility: hidden; }
}

@media (max-width: 460px) {
  .nav { min-height: 64px; }
  .logo { font-size: 19px; }
  .hero.editorial-hero { padding-top: 28px; }
  .editorial-kicker { margin-bottom: 16px; font-size: 10px; }
  .editorial-hero h1 { font-size: 36px; }
  .editorial-hero .hero-lede { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .primary-action,
  .secondary-action { width: 100%; }
  .hero-proof { align-items: flex-start; text-align: left; }
  .hero-comparison { border-radius: 17px; }
  .trust-wrap,
  .editorial-journey { padding-left: 14px; padding-right: 14px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--card-border); }
  .trust-item:last-child { border-bottom: 0; }
  .journey-heading h2 { font-size: 28px; }
  .objective-card { grid-template-columns: 50px 1fr; }
  .objective-card img { width: 50px; height: 50px; }
  .guided-uploader { min-height: 230px; }
  .feature-link { grid-template-columns: 62px 1fr; }
  .feature-link img { width: 62px; height: 62px; }
  .app-section { padding-left: 14px; padding-right: 14px; }
  .app-card,
  .restore-showcase { border-radius: 20px; padding: 20px 16px; }
  .demo-gif-wrap { max-width: 100%; aspect-ratio: auto; }
  .premium-demo { padding: 14px; }
  .demo-head { align-items: flex-start; flex-direction: column; gap: 3px; }
}

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

/* Pictogramme des kickers ("La reference de la photo IA" / "Trois
   intentions, un resultat") : /kicker-mark.svg est un asset autonome
   (degrade + symbole deja integres dans le fichier lui-meme, voir le SVG),
   donc aucun fond ni degrade a gerer ici cote CSS — uniquement la taille et
   le comportement flex. */
.editorial-kicker > img.kicker-mark,
.section-kicker > img.kicker-mark {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  object-fit: contain;
}
