/* ====== Thème : noir + couleurs TikTok (cyan #25F4EE, rose #FE2C55) ====== */
:root {
  --bg: #000000;
  --panel: #111113;
  --panel-2: #1a1a1d;
  --text: #ffffff;
  --muted: #8b8d96;
  --line: #2a2a2f;
  --accent: #fe2c55;      /* couleur principale : boutons, sélection (rouge TikTok) */
  --on-accent: #ffffff;   /* texte sur les boutons */
  --accent-2: #fe2c55;    /* (inutilisé : plus de vert) */
  --ok: #ff7a93;
  --danger: #ff5c7a;
  --radius: 18px;
}

/* Autre version : class="theme-cyan" sur <body> */
body.theme-cyan { --accent: #25f4ee; --on-accent: #000000; --accent-2: #fe2c55; }
/* Version blanche : class="theme-white" */
body.theme-white { --accent: #ffffff; --on-accent: #000000; --accent-2: #fe2c55; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
code { background: var(--panel-2); padding: 2px 6px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
p { margin: 0 0 12px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.container { width: min(1080px, 100% - 32px); margin-inline: auto; }

.warning { background: #2a1a05; color: #ffd596; padding: 12px 16px; text-align: center; font-size: 14px; }

.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #fff;
}

/* Boutons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, opacity .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent);  }
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-block { width: 100%; }

.link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* Accueil */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero { padding: 64px 0 44px; max-width: 840px; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); letter-spacing: -0.035em; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.hero-actions { margin-top: 26px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 24px 0; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); margin: 0; }
.feature.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.how, .pricing { padding: 32px 0; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--accent); color: var(--on-accent);  }
.steps li span { color: var(--muted); }
.footer { padding: 32px 0 48px; font-size: 14px; }

/* Connexion */
.auth-wrap { width: min(420px, 100% - 32px); margin: 0 auto; padding: 32px 0 48px; }
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; }
.auth-card { padding: 28px; }
.auth-card h2 { margin-top: 10px; }
label { display: block; font-weight: 600; margin: 18px 0 8px; font-size: 14px; }
input[type="email"], input[type="password"], input[type="text"], textarea, select, input[type="file"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
}
input::placeholder, textarea::placeholder { color: #5d5f68; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="file"]::file-selector-button { background: var(--line); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; margin-right: 12px; font-weight: 600; cursor: pointer; }
textarea { resize: vertical; min-height: 110px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 4px; }
#auth-form .btn-block { margin-top: 14px; }
.message { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.message.ok { background: rgba(255,255,255,.07); color: var(--accent); }
.message.error { background: rgba(254,44,85,.12); color: var(--danger); }
.switch { margin: 18px 0 0; text-align: center; color: var(--muted); }

/* Application */
#view-app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: #060607; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 0 10px; }
#nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { color: #5d5f68; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 16px 12px 6px; }
.nav-label:first-child { padding-top: 0; }
.nav-btn { appearance: none; background: transparent; border: 1px solid transparent; color: var(--muted); text-align: left; font: inherit; font-weight: 600; padding: 11px 12px; border-radius: 14px; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.nav-btn:hover { background: var(--panel-2); color: var(--text); }
.nav-btn.active { background: var(--panel-2); color: #fff; border-color: var(--line); }
.nav-btn.active svg { color: var(--accent); }
.l-short { display: none; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; gap: 14px; justify-content: flex-end; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.user-email { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.credit-pill { display: flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; }
.credit-pill svg { width: 16px; height: 16px; fill: #fff; stroke: none; }
.app-content { padding: 32px 28px; max-width: 920px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-head h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; }
.credit-big { font-size: 52px; font-weight: 800; margin: 4px 0 12px; }

/* Formulaires */
.form { display: flex; flex-direction: column; }
.form label:first-child { margin-top: 0; }
.form input[type="text"] { width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 20px 0 4px; }
.check input { margin-top: 4px; flex: none; accent-color: var(--accent); }
.form .btn { margin-top: 22px; align-self: stretch; padding: 14px 22px; font-size: 16px; }
.small { font-size: 13px; margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0; }
.plan-card { margin-top: 16px; }
.plan-card h3 { margin-bottom: 8px; }
#subscribe-message, #image-message, #avatar-message, #motion-message, #video-message { margin-bottom: 16px; }

/* Puces, pastilles et cartes de choix */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { border-color: #3a3a42; }
.chip.on { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,.06); }
.chip .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); }
.chip-swatch .chip { flex-direction: column; gap: 6px; padding: 12px 14px; min-width: 76px; font-size: 13px; }
.chip-swatch .chip .dot { width: 34px; height: 34px; }
.chip-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip-cards .chip { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; text-align: left; }
.chip-cards .chip span { color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.4; }
.chip-cards .chip.on span { color: #d0d2da; }

/* Résultats et galerie */
.result { margin: 16px 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.result img { max-width: 100%; max-height: 640px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); }
.result video { max-width: 100%; max-height: 640px; border-radius: 14px; border: 1px solid var(--line); background: #000; }
.creations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.creation { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.creation a { margin-left: auto; color: var(--accent); }
.creation-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.creation-card img, .creation-card video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; display: block; }
.creation-card .placeholder { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); font-size: 14px; }
.creation-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.creation-body a { color: var(--accent); }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 0 18px; }
}

/* Mobile : le menu passe en barre du bas, comme sur une appli */
@media (max-width: 800px) {
  #view-app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; top: auto; height: auto; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: rgba(6,6,7,.96); backdrop-filter: blur(12px); }
  .sidebar .brand, .nav-label { display: none; }
  #nav { flex-direction: row; justify-content: space-around; gap: 0; }
  .nav-btn { flex: 1; flex-direction: column; gap: 3px; padding: 8px 2px; font-size: 11px; align-items: center; text-align: center; border-radius: 12px; }
  .nav-btn.active { background: transparent; border-color: transparent; color: var(--accent); }
  .l-full { display: none; }
  .l-short { display: inline; }
  .app-top { justify-content: space-between; padding: 12px 16px; }
  .user-email { display: none; }
  .app-content { padding: 20px 16px 110px; }
  .hero { padding-top: 32px; }
}
@media (max-width: 480px) {
  .chip-cards { grid-template-columns: 1fr; }
}
.grid-2 > div > label:first-child { margin-top: 18px; }

/* ---------- Page Clone de mouvement : 3 étapes + aperçu à droite ---------- */
.motion-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.motion-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.motion-side .result { margin: 0; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; margin: 26px 0 4px; letter-spacing: -0.01em; }
.step-title:first-of-type { margin-top: 0; }
.step-title i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--accent); color: var(--on-accent);  }
.preview-box { border: 1.5px dashed var(--line); border-radius: var(--radius); min-height: 360px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.02) 12px 24px); }
.preview-box strong { display: block; color: var(--text); font-size: 18px; margin: 10px 0 4px; }
.preview-box svg { width: 44px; height: 44px; color: var(--accent); }
@media (max-width: 900px) {
  .motion-layout { grid-template-columns: 1fr; }
  .motion-side { position: static; }
  .preview-box { min-height: 160px; }
}
#motion-result:not(.hidden) + .preview-box { display: none; }

/* ---------- Accueil : prompt + duo de vidéos ---------- */
.hero { max-width: 860px; text-align: center; padding: 48px 0 24px; margin-inline: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.pill svg { width: 16px; height: 16px; color: var(--accent); }
.hero h1 { font-size: clamp(34px, 6.5vw, 60px); }
.hl { color: var(--accent); }
.lead { margin-inline: auto; }
.prompt-box { margin: 28px auto 0; max-width: 720px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 14px; text-align: left; box-shadow: 0 0 0 4px rgba(254,44,85,.07); }
.prompt-box textarea { background: transparent; border: 0; min-height: 84px; padding: 8px 10px; resize: none; font-size: 17px; }
.prompt-box textarea:focus { outline: none; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-btn { appearance: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.seg-btn.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.send { appearance: none; border: 0; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center;  }
.send svg { width: 22px; height: 22px; stroke-width: 2.4; }
#landing-message { max-width: 720px; margin: 12px auto 0; text-align: left; }
.try { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 18px; }
.try .chip { font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.try .chip em { font-style: normal; font-size: 12px; color: var(--muted); }
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; max-width: 640px; margin: 44px auto 0; }
.duo-label { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.duo-arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); margin-top: 28px;  }
.video-slot { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 6px solid #1c1c20; background: var(--panel); }
.video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-slot .slot-label { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; gap: 6px; padding: 12px; color: var(--muted); font-size: 12px; background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.025) 12px 24px); }
.video-slot .slot-label strong { color: var(--text); font-size: 15px; }
.video-slot .slot-label svg { width: 32px; height: 32px; color: var(--accent); }
@media (max-width: 560px) {
  .duo { gap: 10px; }
  .duo-arrow { width: 36px; height: 36px; margin-top: 24px; }
  .duo-label { font-size: 12px; }
  .seg-btn { padding: 8px 12px; font-size: 13px; }
}

/* ---------- Fenêtre d'abonnement ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 16px; }
.modal-box { width: min(440px, 100%); text-align: center; }
.modal-box .price { font-size: 20px; margin: 14px 0; }
.perks { list-style: none; margin: 0 0 18px; padding: 0; color: var(--muted); font-size: 14px; }
.perks li { padding: 4px 0; }
.perks li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.modal-box .link { margin-top: 14px; }

@media (max-width: 560px) {
  .topbar { flex-wrap: nowrap; }
  .topbar .brand { white-space: nowrap; }
  .topbar-actions { flex-wrap: nowrap; gap: 6px; }
  .topbar-actions .btn { padding: 9px 14px; font-size: 14px; white-space: nowrap; }
  .pill { font-size: 12px; padding: 7px 12px; text-align: left; }
  .prompt-bar { flex-wrap: nowrap; }
  .seg { flex-wrap: nowrap; }
  .seg-btn { white-space: nowrap; }
  .seg-long { display: none; }
  .send { flex: none; }
}
@media (max-width: 380px) { .topbar-actions .btn-ghost { display: none; } }

/* ---------- En-tête flottant collant ---------- */
#view-landing { padding-bottom: 40px; }
.site-head { position: sticky; top: 0; z-index: 30; padding: 12px 16px 0; background: linear-gradient(#000 70%, rgba(0,0,0,0)); }
.topbar { width: min(1080px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 24px; background: rgba(18,18,20,.88); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; }
.topnav { display: flex; gap: 26px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.topnav a:hover { color: #fff; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 0; padding-bottom: 8px; font-size: 12px; color: var(--muted); }
.trust span::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 6px; }
section[id] { scroll-margin-top: 110px; }
@media (max-width: 800px) { .topnav { display: none; } }
@media (max-width: 560px) {
  .site-head { padding: 8px 10px 0; }
  .topbar { padding: 8px 8px 8px 16px; }
  .trust { font-size: 11px; gap: 2px 12px; }
  .trust span:nth-child(3) { display: none; }
}

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-top: 56px; overflow: hidden; }
.stats div { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .stats div { border-right: 0; border-bottom: 1px solid var(--line); } .stats div:last-child { border-bottom: 0; } }

/* ---------- Avis en défilement ---------- */
.reviews { padding: 32px 0 8px; }
.slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(340px, 84%); scroll-snap-align: start; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 190px; }
.review blockquote { margin: 0; line-height: 1.55; }
.review figcaption { display: flex; flex-direction: column; font-size: 14px; }
.review figcaption span { color: var(--muted); }
.slider-nav { display: flex; gap: 8px; justify-content: flex-end; }
.slider-nav .btn { padding: 8px 18px; }

/* ---------- Comment ça marche : grands numéros ---------- */
.steps li { position: relative; overflow: hidden; padding: 24px; }
.steps li::before { content: "ÉTAPE " counter(step); width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; display: block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.steps li::after { content: counter(step, decimal-leading-zero); position: absolute; right: 14px; top: 4px; font-size: 78px; font-weight: 800; letter-spacing: -0.04em; color: rgba(255,255,255,.06); line-height: 1; }

/* ---------- Fenêtre d'abonnement (choix du plan) ---------- */
.modal-box { position: relative; text-align: left; padding: 28px; }
.modal-box h3 { font-size: 24px; text-align: center; }
.modal-box > .muted { text-align: center; }
.modal-x { position: absolute; top: 12px; right: 14px; appearance: none; background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.plan-pick { display: flex; align-items: center; gap: 14px; border: 2px solid var(--accent); border-radius: 16px; padding: 16px; margin: 18px 0 12px; background: rgba(254,44,85,.07); }
.plan-pick .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; flex: none; }
.plan-pick .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.plan-pick-body { flex: 1; display: flex; flex-direction: column; }
.plan-pick-price { text-align: right; }
.plan-pick-price strong { font-size: 26px; }
.plan-estimate { background: var(--panel-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.plan-estimate b { color: var(--text); }
.modal-box .perks { margin: 14px 0 18px; }
.modal-box .fine { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.modal-box .link { display: block; margin: 12px auto 0; }

/* ---------- Avatar : suggestions de couleur ---------- */
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggest button { appearance: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.suggest button:hover { color: var(--text); border-color: #3a3a42; }
.suggest .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.steps li::after { top: auto; bottom: -8px; }

/* ---------- Tarif, FAQ, pied de page ---------- */
.price-card { max-width: 460px; }
.price-big { font-size: 44px; letter-spacing: -0.03em; }
.price-card .perks { margin: 12px 0 18px; }
.faq { padding: 32px 0 8px; max-width: 820px; }
.faq h2 { text-align: center; margin-bottom: 20px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 40px 0 28px; background: #050506; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr; gap: 32px; }
.footer-brand p { max-width: 340px; margin-top: 10px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.footer-col h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-col a { display: block; color: var(--text); text-decoration: none; padding: 5px 0; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-note { margin-top: 28px; font-size: 12px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pages légales ---------- */
.legal { width: min(820px, 100% - 32px); margin: 0 auto; padding: 32px 0 64px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); margin: 18px 0 8px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: #c9cad1; }
.legal .todo { background: #2a1a05; color: #ffd596; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.legal mark { background: rgba(254,44,85,.2); color: #fff; padding: 0 4px; border-radius: 4px; }
.steps li::after { top: -6px; bottom: auto; font-size: 64px; color: rgba(255,255,255,.045); }

/* ---------- Menu téléphone (3 traits) ---------- */
.burger { display: none; appearance: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 50%; width: 42px; height: 42px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .15s ease, opacity .15s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { width: min(1080px, 100%); margin: 8px auto 0; background: rgba(18,18,20,.97); border: 1px solid var(--line); border-radius: 24px; padding: 10px; display: flex; flex-direction: column; }
.mobile-menu a { color: var(--text); text-decoration: none; font-weight: 600; padding: 14px 16px; border-radius: 14px; }
.mobile-menu a:hover { background: var(--panel-2); }
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 6px 6px; }
.mobile-menu-actions .btn { width: 100%; }
@media (min-width: 801px) { .mobile-menu { display: none !important; } }
@media (max-width: 800px) {
  .topbar-actions { display: none; }
  .burger { display: flex; }
}

/* ---------- Ajustements : phrase de confiance, espacements, cartes cliquables ---------- */
.trust { margin: 6px 0 0; padding: 0 16px; }
.hero { padding-bottom: 0; }
.stats { margin-top: 56px; margin-bottom: 56px; }
.features { padding: 0; }
button.feature { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
button.feature:hover { border-color: #3a3a42; }
button.feature.featured:hover { border-color: var(--accent); }
.how-tool { color: var(--accent); font-size: 18px; margin: -4px 0 16px; }
.review-empty { text-align: center; padding: 32px 20px; }
.review-empty strong { display: block; font-size: 18px; margin-bottom: 6px; }
.review-empty .btn { margin-top: 6px; }
.how { padding-top: 56px; }

.section-title { text-align: center; font-size: clamp(26px, 4.5vw, 38px); letter-spacing: -0.03em; margin-bottom: 22px; }

/* ---- Abonnements (accueil, page Crédits, fenêtre de paiement) ---- */
html { scroll-behavior: smooth; }
.plans-sec { padding: 56px 0 24px; text-align: center; }
.plans-sec h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.plans-sec .center { margin: 0 auto 28px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; text-align: left; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; display: flex; flex-direction: column; }
.plan h3 { font-size: 20px; margin: 0 0 10px; }
.plan-featured { border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(254,44,85,.08); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.plan-price strong { font-size: 40px; line-height: 1; }
.plan-credits { font-weight: 700; margin: 0 0 6px; }
.plan-est { font-size: 13px; margin: 0 0 14px; }
.plan .perks { flex: 1; margin: 0 0 20px; }
.plans-small { max-width: none; margin: 14px 0; }
.plans-small .plan { padding: 22px 18px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

button.plan-pick { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; border: 2px solid var(--line); background: transparent; margin: 10px 0 0; }
button.plan-pick .radio { border-color: var(--line); }
button.plan-pick .radio::after { display: none; }
button.plan-pick.on { border-color: var(--accent); background: rgba(254,44,85,.07); }
button.plan-pick.on .radio { border-color: var(--accent); }
button.plan-pick.on .radio::after { display: block; }
#paywall-plans { margin: 14px 0 12px; }
#paywall-estimate { margin-bottom: 4px; }

/* ---- Compte en bas du menu, bouton S'abonner en haut ---- */
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.side-user-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side-user-text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-text .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.icon-btn { appearance: none; background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 10px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-subscribe { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; border: 1px solid #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.btn-subscribe:hover { background: #e9e9ec; }
.btn-subscribe svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.only-mobile { display: none; }
@media (max-width: 800px) { .side-user { display: none; } .only-mobile { display: grid; } }

/* « Essaie : » toujours sur une seule ligne, même sur téléphone */
.try { flex-wrap: nowrap; }
.try .chip, .try .muted { white-space: nowrap; }
@media (max-width: 640px) {
  .try { gap: 4px; margin-left: -8px; margin-right: -8px; }
  .try .muted { font-size: 11px; }
  .try .chip { font-size: 10.5px; padding: 6px 7px; letter-spacing: -.1px; }
  .try .chip em { display: none; }
}
@media (max-width: 400px) { .try .muted { display: none; } }
@media (max-width: 340px) { .try .chip { font-size: 9.5px; padding: 6px 5px; } }

/* ---- Page Analyse (administrateur) ---- */
.an-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; }
.an-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.an-chips button { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.an-chips button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.an-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.an-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.an-kpi span { font-size: 13px; }
.an-kpi strong { font-size: 24px; }
.an-card { margin-bottom: 16px; }
.an-card h3 { margin: 0 0 10px; }
.an-bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.an-col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.an-pillar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .9; }
.an-col:hover .an-pillar { opacity: 1; filter: brightness(1.2); }
.an-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.an-table-wrap { max-height: 320px; overflow: auto; margin-top: 14px; }
.an-table-el { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-table-el th, .an-table-el td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.an-table-el th { color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--panel); }
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.an-grid .an-card { margin: 0; }
.an-line { margin: 10px 0; }
.an-line-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 4px; }
.an-line-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.an-line-top strong { white-space: nowrap; }
.an-track { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.an-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.an-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.an-dates label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.an-dates input[type="date"] { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; font: inherit; font-size: 14px; color-scheme: dark; }
.an-apply { appearance: none; border: 0; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; }

/* ----- Menus déroulants en pastille (page Créer une vidéo) ----- */
.pill-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.menu-pill { position: relative; }
.menu-btn { appearance: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px 10px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--accent); }
.menu-btn svg { color: var(--muted); }
.menu-list { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 240px; max-width: min(340px, 86vw); max-height: 320px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.menu-item { appearance: none; font: inherit; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.menu-item strong { font-size: 14px; }
.menu-item span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.menu-item:hover { background: var(--panel-2); }
.menu-item.on strong { color: var(--accent); }
@media (max-width: 560px) { .menu-pill { position: static; } .pill-bar { position: relative; } .menu-list { left: 0; right: 0; max-width: none; } }
