/* ==========================================================================
   Brief — Landing publique
   CSS autonome, self-hosté (aucun CDN tiers ni Google Fonts).
   Palette brand Fuushia/Brief SANS cyan : magenta (CTA), violet (titres),
   crème (fonds doux), brun (texte secondaire).
   ========================================================================== */

/* --- Police self-hostée (progressive enhancement). Si les woff2 sont absents,
   le navigateur retombe sur la stack système : rendu toujours on-brand. --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/vendor/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/vendor/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/vendor/fonts/inter-700.woff2') format('woff2');
}

:root {
  --magenta: #BF267D;
  --magenta-dark: #a51e6b;
  --purple: #450E45;
  --purple-soft: #5a1a5a;
  --cream: #F5F4F2;
  --brown: #63584D;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: rgba(0, 0, 0, 0.08);
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 8px 30px rgba(69, 14, 69, 0.08);
  --shadow-cta: 0 8px 24px rgba(191, 38, 125, 0.28);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1080px;
  --maxw-narrow: 720px;
}

* { box-sizing: border-box; }

html { color-scheme: light; accent-color: var(--magenta); scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; color: var(--purple); margin: 0; }
p { margin: 0; }
a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

::selection { background: var(--magenta); color: #fff; }
*:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; letter-spacing: -0.01em;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--magenta-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream); border-color: rgba(69, 14, 69, 0.2); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-logo { height: 30px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--purple); font-weight: 500; font-size: 14px; }

/* --- Hero --- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 80% -10%, rgba(191, 38, 125, 0.10), transparent 60%),
    radial-gradient(900px 420px at 0% 0%, rgba(69, 14, 69, 0.06), transparent 55%),
    linear-gradient(180deg, var(--cream), var(--white));
  padding: 88px 0 72px;
  text-align: center;
}
.hero-inner { max-width: 820px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--magenta); background: rgba(191, 38, 125, 0.08);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(34px, 5.5vw, 56px); font-weight: 700; }
.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft);
  max-width: 640px; margin: 22px auto 0;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-reassurance { font-size: 14px; color: var(--brown); margin-top: 18px; }

/* --- Sections génériques --- */
.section { padding: 72px 0; }
.section-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
.section-title.centered { text-align: center; }
.section-lede { font-size: 18px; color: var(--ink-soft); margin-top: 18px; }

.section-promise { background: var(--white); }
.section-how { background: var(--cream); }
.section-cv { background: var(--white); }
.section-who { background: var(--cream); }
.section-faq { background: var(--white); }

/* --- CV / ATS : bande mise en avant (panneau teinté + visuel tasse) --- */
.cv-band {
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 40px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(191, 38, 125, 0.08), transparent 70%),
    linear-gradient(180deg, var(--cream), #fbf6f9);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px 44px; box-shadow: var(--shadow-2);
}
.cv-aside { display: flex; justify-content: center; width: 100%; }
@media (max-width: 760px) {
  .cv-band { grid-template-columns: 1fr; padding: 36px 24px; gap: 24px; }
  .cv-aside { order: -1; }
}

/* --- Clips démo (vraies captures du produit, autoplay muet en boucle) ---
   Lecture pilotée par /static/landing.js (lazy + prefers-reduced-motion).
   object-fit: cover + position top → cadre uniforme, le scroll du clip joue
   dans la fenêtre. */
.demo-clip {
  display: block; width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(69, 14, 69, 0.12);
  background: var(--cream);
}
.step-clip {
  aspect-ratio: 16 / 11;
  object-fit: cover; object-position: top center;
  margin-bottom: 20px;
}
.cv-clip {
  aspect-ratio: 16 / 12;
  object-fit: cover; object-position: top center;
}
@media (max-width: 760px) {
  .cv-clip { aspect-ratio: 16 / 10; }
}

/* --- Steps --- */
.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-1);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--purple); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 18px;
}
.step-title { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.step-body { color: var(--ink-soft); font-size: 15px; }

/* --- Check list --- */
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); font-size: 16px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(191, 38, 125, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BF267D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}

/* --- FAQ --- */
.faq { margin-top: 40px; display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; box-shadow: var(--shadow-1);
}
.faq-q {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px;
  color: var(--purple); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; color: var(--magenta); font-size: 22px; font-weight: 400; line-height: 1; }
.faq-item[open] .faq-q::after { content: "\2013"; }
.faq-a { color: var(--ink-soft); font-size: 15px; padding: 0 0 20px; margin-top: -4px; }

/* --- CTA final --- */
.section-cta { background: var(--white); }
.cta-card {
  text-align: center; background: var(--purple); color: #fff;
  border-radius: var(--radius-lg); padding: 56px 40px;
  background-image: radial-gradient(700px 280px at 50% 120%, rgba(191, 38, 125, 0.45), transparent 60%);
}
.cta-title { color: #fff; font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
.cta-body { color: rgba(255, 255, 255, 0.82); font-size: 18px; margin: 16px auto 30px; max-width: 520px; }
.cta-card .btn-primary { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

/* --- Footer --- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 44px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; max-width: 320px; }
.footer-logo { width: 32px; height: 32px; }
.footer-tagline { color: var(--brown); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--purple); font-size: 14px; font-weight: 500; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--brown); font-size: 13px; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .nav-link { display: none; }
  .cta-card { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* --- Consent banner (GDPR opt-in analytics) ---------------------------------
   Rendered `hidden` server-side; landing-consent.js reveals it only when no
   prior decision is stored. Fixed bottom strip, unobtrusive, brand palette. */
#consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: var(--purple);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
#consent-banner[hidden] { display: none; }
.consent-text { flex: 1 1 280px; font-size: 14px; line-height: 1.5; }
.consent-text a { color: #fff; text-decoration: underline; }
.consent-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.consent-refuse {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.consent-refuse:hover { color: #fff; }
@media (max-width: 600px) {
  #consent-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
}
