/* Circut — circut.app
   Feuille unique, en couches : 1. fontes · 2. tokens · 3. base · 4. composants · 5. sections.
   Les composants (couche 4) sont réutilisables par la future page de partage /s/
   — ne pas les coupler à la structure de la landing.
   Aucune requête tierce : la fonte Manrope (titres) est AUTO-HÉBERGÉE (OFL). */

/* ───── 1. Fontes (Manrope SemiBold/Bold, auto-hébergée, OFL) ───── */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/manrope-600.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-700.woff2") format("woff2");
}

/* ───── 2. Tokens ───── */
:root {
  color-scheme: light dark;
  --accent: #4c3ddb;            /* indigo Circut, mode clair (≈ 7:1 sur blanc) */
  --accent-text: #4c3ddb;
  --accent-soft: rgba(76, 61, 219, 0.10);
  --accent-line: rgba(76, 61, 219, 0.22);
  --brand-1: #4945d1;           /* dégradé de marque (icône, fonds) */
  --brand-2: #282483;
  --bg: #ffffff;
  --bg-2: #f7f7fb;              /* sections alternées */
  --bg-card: #ffffff;
  --bg-window: #ffffff;
  --text: #15151a;
  --text-2: #5a5a66;
  --border: rgba(20, 20, 32, 0.10);
  --shadow-sm: 0 1px 2px rgba(20, 20, 40, 0.06), 0 4px 12px rgba(20, 20, 40, 0.05);
  --shadow-lg: 0 24px 70px rgba(40, 36, 131, 0.18);
  --radius: 14px;
  --radius-sm: 9px;
  --font-head: "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6b66f2;          /* aplats et boutons pleins, titres ≥ 24 px */
    --accent-text: #a8a3ff;     /* liens et accents du corps de texte (≈ 8:1) */
    --accent-soft: rgba(107, 102, 242, 0.16);
    --accent-line: rgba(107, 102, 242, 0.30);
    --bg: #0f0f14;
    --bg-2: #15151c;
    --bg-card: #181820;
    --bg-window: #1c1c25;
    --text: #ececf1;
    --text-2: #9b9ba6;
    --border: rgba(255, 255, 255, 0.11);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  }
}

/* ───── 3. Base ───── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-underline-offset: 2px; }
code, .trigger-badge { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
section { padding: 84px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.eyebrow .chev { width: 15px; height: 15px; }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }

/* Chevron de marque, réutilisable inline */
.chev { display: inline-block; vertical-align: middle; color: currentColor; }

/* ───── 4. Composants ───── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  padding: 13px 26px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 24px rgba(76, 61, 219, 0.32); }
.btn .chev { width: 17px; height: 17px; }
.btn-small { padding: 8px 16px; font-size: 0.92rem; }

.trigger-badge {
  display: inline-block;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 0.9em; font-weight: 500;
  padding: 0.08em 0.42em; border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; display: flex; align-items: center; gap: 9px; }
.card h3 .chev { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.card p { color: var(--text-2); margin-bottom: 0; }

/* Fenêtre macOS factice (démo du hero, et plus tard /s/) */
.window {
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-bottom: 1px solid var(--border);
}
.window-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.window-title { margin-left: 8px; font-size: 0.85rem; color: var(--text-2); }

/* Fausse notification macOS (pilier « occasions manquées ») */
.notif {
  display: flex; align-items: center; gap: 13px;
  background: var(--bg-window);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 13px 17px; margin-top: 20px; font-size: 0.9rem; text-align: left;
}
.notif img { border-radius: 9px; flex: none; }
.notif strong { display: block; font-size: 0.92rem; }
.notif span { color: var(--text-2); display: block; }

/* ───── 5. Sections ───── */
/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1000px; margin: 0 auto; padding: 14px 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang { font-size: 0.92rem; color: var(--text-2); text-decoration: none; font-weight: 500; }
.lang:hover { color: var(--accent-text); }

/* Hero */
.hero { position: relative; text-align: center; padding: 72px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%);
}
.hero h1 { max-width: 16ch; margin: 0 auto 0.35em; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-1), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.22rem; color: var(--text-2); max-width: 600px; margin: 0 auto 36px; }
.demo { max-width: 580px; margin: 0 auto; }
.demo-body { padding: 22px 24px; min-height: 148px; }
.demo-text { margin: 0; white-space: pre-wrap; font-size: 1.05rem; line-height: 1.6; }
.caret {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--accent); vertical-align: text-bottom; margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
.caret--typing { animation: none; opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }
.expanded-flash { border-radius: 4px; animation: flash 0.6s ease-out forwards; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }
.hero-cta { margin-top: 38px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-note { font-size: 0.88rem; color: var(--text-2); max-width: 440px; margin: 0; }

/* Bande de confiance */
.trust { padding: 0; }
.trust ul {
  list-style: none; margin: 0 auto; padding: 22px 24px; max-width: 1000px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust li {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  color: var(--text-2);
}
.trust li .chev { width: 14px; height: 14px; color: var(--accent-text); }

/* Grilles */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Piliers */
.pillars .card p { font-size: 0.96rem; }

/* Packs métier */
.packs { background: var(--bg-2); }
.metiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.metier {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 18px;
  font-weight: 500; font-size: 0.96rem; box-shadow: var(--shadow-sm);
}
.metier .chev { width: 13px; height: 13px; color: var(--accent-text); }
.packs-note { text-align: center; color: var(--text-2); font-size: 0.92rem; margin: 30px auto 0; max-width: 580px; }

/* Confidentialité — ancrage visuel fort, dégradé de marque */
.privacy { background: linear-gradient(150deg, var(--brand-1), var(--brand-2)); color: #fff; }
.privacy .eyebrow { color: rgba(255, 255, 255, 0.85); }
.privacy .eyebrow .chev { color: #fff; }
.privacy h2 { color: #fff; }
.privacy .section-head p { color: rgba(255, 255, 255, 0.82); }
.privacy .grid-4 { margin-top: 8px; }
.privacy .pv {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 16px 18px; font-family: var(--font-head); font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.privacy .pv .chev { width: 16px; height: 16px; color: #fff; flex: none; }

/* Switchers */
.switchers .formats {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none;
  justify-content: center;
}
.switchers .formats li {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 17px; font-size: 0.94rem; color: var(--text-2); background: var(--bg-card);
}

/* Détails */
.details { background: var(--bg-2); }
.details .card { padding: 20px; box-shadow: none; }
.details .card h3 { font-size: 1rem; }
.details .card p { font-size: 0.92rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 15px; height: 15px; color: var(--accent-text); transition: transform 0.2s ease; flex: none; }
.faq details[open] summary .chev { transform: rotate(90deg); }
.faq details p { margin: 12px 0 0 25px; color: var(--text-2); }

/* CTA final */
.cta-final { text-align: center; }
.cta-final .card {
  max-width: 720px; margin: 0 auto; padding: 48px 32px;
  background: linear-gradient(150deg, var(--brand-1), var(--brand-2));
  border: none; color: #fff;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, 0.85); max-width: 460px; margin: 0 auto 26px; }
.cta-final .btn { background: #fff; color: var(--brand-2); }
.cta-final .btn:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 44px 24px; text-align: center; }
.footer img { height: 26px; width: auto; opacity: 0.9; margin-bottom: 14px; }
.footer p { margin: 0 0 8px; font-size: 0.9rem; color: var(--text-2); }
.footer .lang { font-size: 0.9rem; }

/* Responsive */
@media (max-width: 880px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .nav .btn { display: none; }    /* le CTA du hero est juste en dessous */
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .expanded-flash, .btn { animation: none; transition: none; }
}
