/* Page d'accueil d'Autocut (s'ajoute à style.css) */

/* Largeur du contenu : s'étend sur les grands écrans */
body.landing { overflow-x: hidden; --page: clamp(1160px, 82vw, 1600px); }
.landing a { text-decoration: none; }

.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 14px max(16px, calc((100vw - var(--page)) / 2));
  background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline);
}
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: 14px; transition: color .15s; }
.nav nav a:hover { color: var(--text); }

.btn.big { padding: 13px 22px; font-size: 15px; border-radius: 10px; }

.hero { position: relative; text-align: center; padding: 96px 16px 40px; max-width: var(--page); margin: 0 auto; }
.hero-glow {
  /* Toute la largeur de l'écran, et des halos qui s'éteignent avant les bords : aucune limite visible */
  position: absolute; top: -120px; left: 50%; width: 100vw; height: 900px; transform: translateX(-50%);
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(50vw 340px at 50% 22%, rgba(99, 102, 241, 0.30), transparent 70%),
    radial-gradient(34vw 300px at 22% 38%, rgba(86, 156, 255, 0.10), transparent 70%),
    radial-gradient(34vw 300px at 78% 38%, rgba(60, 207, 154, 0.08), transparent 70%);
}
.hero-logo { display: block; margin: 0 auto 18px; }
.eyebrow { color: var(--accent-ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 750; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 680px; margin: 22px auto 0; }
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.badges { list-style: none; display: flex; gap: 22px; justify-content: center; padding: 0; margin: 26px 0 0; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.badges li, .privacy-list li { display: flex; align-items: center; gap: 8px; }
.check {
  width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--ok-soft); position: relative;
}
.check::after {
  content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px;
  border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.shot {
  margin: 64px auto 0; max-width: min(1280px, 100%); border-radius: 14px; overflow: hidden; text-align: left;
  border: 1px solid var(--border-2); background: var(--panel);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 -20px 80px rgba(99, 102, 241, 0.14);
}
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.shot-bar em { font-style: normal; color: var(--faint); font-size: 12px; margin-left: 10px; }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.shot.demo { margin: 0 auto 28px; max-width: min(1180px, 100%); }

.formats {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  max-width: var(--page); margin: 56px auto 0; padding: 0 16px; color: var(--faint); font-size: 13px;
}
.formats div { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.formats span { min-width: 56px; text-align: right; }
.formats b { color: var(--muted); font-weight: 600; padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; }

/* Interrupteur Vidéo / Bruitages du haut de page, onglets « Pour qui ? » */
.mode-switch, .who-tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border-2);
}
.mode-switch { margin-top: 56px; }
.mode-switch button, .who-tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 9px; cursor: pointer;
  background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; transition: background .15s, color .15s;
}
.mode-switch button:hover, .who-tabs button:hover { color: var(--text); }
.mode-switch button[aria-selected="true"], .who-tabs button[aria-selected="true"] {
  background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line);
}
.mode-switch button span, .who-tabs button span { display: inline-flex; color: var(--accent-ink); }
.hero-shot { margin-top: 22px; }
.hero-shot img[hidden], .who[hidden] { display: none; }

#pour-qui { text-align: center; }
#pour-qui .title { margin-bottom: 32px; }
.who-tabs { margin-bottom: 36px; }
.who { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; align-items: center; text-align: left; }
.who h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.who-text > p { color: var(--muted); font-size: 16px; margin: 0 0 20px; }
.who ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.who li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.who li .check { margin-top: 2px; }
.who .shot { margin: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03); }

.section { max-width: var(--page); margin: 0 auto; padding: 110px 16px 0; }
.section > .eyebrow, .section > .title { text-align: center; }
.title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.15; text-transform: none; color: var(--text); font-weight: 700; }
.section .title { margin-bottom: 48px; }
.hero h1, .title, .final h2, .who h3 { text-wrap: balance; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps article, .features article {
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--border); border-radius: 14px; padding: 26px;
}
.step {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); margin-bottom: 16px;
}
.steps h3, .features h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.steps p, .features p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.features article { padding: 22px; }
.features h3 { font-size: 17px; }
.features p { font-size: 14.5px; }
.more { text-align: center; color: var(--muted); margin: 28px 0 0; }
.more a { color: var(--accent-ink); white-space: nowrap; }
.more a::after { content: " →"; }
.features article { transition: border-color .2s, transform .2s; }
.features article:hover { border-color: var(--border-2); transform: translateY(-2px); }
.f-ico {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 16px;
  color: var(--accent-ink); background: var(--accent-soft);
}

.privacy {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.privacy > div > .eyebrow, .privacy .title { text-align: left; }
.privacy .title { margin-bottom: 20px; }
.privacy p { color: var(--muted); font-size: 16px; }
.privacy-list { list-style: none; padding: 26px; margin: 0; display: flex; flex-direction: column; gap: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.privacy-list li { align-items: flex-start; gap: 14px; }
.privacy-list li .check { margin-top: 2px; }
.privacy-list b { display: block; margin-bottom: 2px; }
.privacy-list span:not(.check) { color: var(--muted); font-size: 14px; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; font-size: 16px; }
.faq summary { cursor: pointer; color: var(--text); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.final {
  max-width: var(--page); margin: 120px auto 0; padding: 64px 16px; text-align: center; border-radius: 20px;
  background: radial-gradient(500px 200px at 50% 0%, rgba(99, 102, 241, 0.25), transparent 70%), var(--panel);
  border: 1px solid var(--border);
}
.final h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.03em; text-transform: none; color: var(--text); margin-bottom: 14px; }
.final p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; text-wrap: balance; }
.final-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--accent-ink); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3);
}
.final-tag svg { display: block; }

.footer {
  max-width: var(--page); margin: 0 auto; padding: 40px 16px 48px; display: flex; justify-content: space-between; gap: 16px;
  color: var(--faint); font-size: 13px; flex-wrap: wrap;
}
.brand.small { font-size: 14px; gap: 7px; color: var(--muted); }

.final { width: calc(100% - 32px); }
@media (max-width: 1060px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .theme-btn { margin-left: auto; }
  .nav .lang-btn { margin-left: 0; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .formats span { min-width: 0; width: 100%; text-align: center; }
  .mode-switch, .who-tabs { display: flex; max-width: 100%; }
  .mode-switch button, .who-tabs button { flex: 1; justify-content: center; padding: 9px 8px; font-size: 13px; line-height: 1.3; }
  .mode-switch button span, .who-tabs button span { display: none; }
  .privacy { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { padding-top: 64px; }
  .section { padding-top: 80px; }
}

/* Page d'aide */
.doc { max-width: 1160px; margin: 0 auto; padding: 56px 16px 40px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc .eyebrow { margin-bottom: 10px; }
.toc a { color: var(--muted); font-size: 14px; padding: 5px 10px; border-radius: 7px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--panel); }
.doc-body { max-width: 760px; font-size: 15.5px; line-height: 1.65; }
.doc-body h1 { font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
.lead-doc { color: var(--muted); font-size: 17.5px; margin: 16px 0 8px; }
.doc-body section { padding-top: 44px; scroll-margin-top: 70px; }
.doc-body h2 { font-size: 24px; letter-spacing: -.02em; text-transform: none; color: var(--text); font-weight: 700; margin-bottom: 14px; }
.doc-body h3 { font-size: 17px; margin: 20px 0 6px; }
.doc-body p, .doc-body li, .doc-body dd { color: var(--text-2); }
.doc-body a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.doc-body ol, .doc-body ul { padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-body dl { margin: 0; }
.doc-body dt { font-weight: 650; color: var(--text); margin-top: 16px; }
.doc-body dd { margin: 4px 0 0; }
.doc-body pre { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow: auto; margin: 10px 0; }
.doc-body pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.6; color: var(--text); }
.doc-body .note { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent-ink); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; }
.doc-body table.keys { border-collapse: collapse; width: 100%; font-size: 14.5px; margin-top: 8px; }
.doc-body table.keys td { padding: 8px 0; border-top: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
.doc-body table.keys td:first-child { white-space: nowrap; padding-right: 22px; width: 1%; }
.inline-ico { color: var(--accent-ink); font-weight: 700; }
.doc-end { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer a { color: var(--muted); }
.footer-pages { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer a:hover { color: var(--text); }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .toc { display: none; }
}

/* Pages dédiées à un usage (podcast, Shorts, Godot…) */
.usage-free { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; margin: 22px 0 0; }
.usage-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usage-more { text-align: center; }
.usage-more nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.usage-more nav a { color: var(--muted); padding: 8px 16px; border: 1px solid var(--border-2); border-radius: 99px; font-size: 14px; }
.usage-more nav a:hover { color: var(--text); border-color: var(--accent-line); }
@media (max-width: 1060px) { .usage-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .usage-points { grid-template-columns: minmax(0, 1fr); } }

/* Thème clair : halos plus doux, ombres plus légères, dégradé du titre plus profond pour rester lisible sur blanc */
:root[data-theme="light"] .hero-glow {
  background:
    radial-gradient(50vw 340px at 50% 22%, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(34vw 300px at 22% 38%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(34vw 300px at 78% 38%, rgba(60, 207, 154, 0.08), transparent 70%);
}
:root[data-theme="light"] .grad { background-image: linear-gradient(90deg, #0891b2, #7c3aed 60%, #2563eb); }
:root[data-theme="light"] .shot { box-shadow: 0 30px 90px rgba(30, 36, 70, 0.16), 0 0 0 1px rgba(17, 20, 42, 0.04), 0 -20px 80px rgba(99, 102, 241, 0.10); }
:root[data-theme="light"] .who .shot { box-shadow: 0 24px 60px rgba(30, 36, 70, 0.14), 0 0 0 1px rgba(17, 20, 42, 0.04); }
:root[data-theme="light"] .final { background: radial-gradient(500px 200px at 50% 0%, rgba(99, 102, 241, 0.14), transparent 70%), var(--panel); }
:root[data-theme="light"] .final-tag { background: var(--accent-soft); border-color: var(--accent-line); }
:root[data-theme="light"] .steps article, :root[data-theme="light"] .features article { background: var(--panel); box-shadow: 0 1px 2px rgba(30, 36, 70, 0.04); }
