/* ============================================================
   kevv - site vitrine
   Charte : Marine #0B2A4A · Corail #F06449 · Fond #F0F5FF
   Titres : Fraunces (serif chaleureuse) · Corps : system-ui
   ============================================================ */

:root {
  --marine: #0B2A4A;
  --marine-med: #1B4F8A;
  --marine-clair: #D6E4F5;
  --corail: #F06449;
  --corail-hover: #D4533B;
  --corail-clair: #FFEEE9;
  --fond-app: #F0F5FF;
  --texte: #1A1A2E;
  --texte-corps: #374151;
  --texte-sec: #6B7280;
  --bordure: #E2E8F0;
  --blanc-chaud: #FFFDFB;
  --success: #16A34A;
  --warning: #D97706;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --radius-card: 12px;
  --radius-btn: 8px;

  --shadow-card: 0 1px 2px rgba(11, 42, 74, 0.06), 0 12px 32px rgba(11, 42, 74, 0.10);
  --shadow-float: 0 8px 24px rgba(11, 42, 74, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--texte-corps);
  background: var(--blanc-chaud);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typo ---------- */

h1, h2, h3 { color: var(--texte); }

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--marine);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--marine);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--texte);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--marine-med);
}

.eyebrow-coral { color: var(--corail); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head .eyebrow { margin-bottom: 10px; }

.accent-underline {
  position: relative;
  white-space: nowrap;
}
.accent-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.16em;
  background: var(--corail);
  border-radius: 99px;
  opacity: 0.85;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-line 0.7s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes draw-line { to { transform: scaleX(1); } }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }

.btn-coral { background: var(--corail); color: #fff; box-shadow: 0 6px 18px rgba(240, 100, 73, 0.35); }
.btn-coral:hover { background: var(--corail-hover); transform: translateY(-1px); }

.btn-marine { background: var(--marine); color: #fff; }
.btn-marine:hover { background: var(--marine-med); }

.btn-outline { background: transparent; color: var(--marine); border: 1.5px solid var(--bordure); }
.btn-outline:hover { border-color: var(--marine-med); color: var(--marine-med); }

.btn-ghost { background: transparent; color: var(--texte-corps); }
.btn-ghost:hover { color: var(--marine); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bordure);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon { width: 34px; height: 34px; }

.logo-word {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
  color: var(--marine);
  font-style: normal;
}
.logo-word em { font-style: normal; color: var(--corail); }
.logo-word-sm { font-size: 1.3rem; }

.header-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.header-nav a {
  text-decoration: none;
  color: var(--texte-corps);
  font-size: 0.92rem;
  font-weight: 500;
}
.header-nav a:hover { color: var(--marine-med); }

.header-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(214, 228, 245, 0.55), transparent 65%),
    radial-gradient(700px 420px at -10% 100%, rgba(255, 238, 233, 0.6), transparent 60%),
    var(--blanc-chaud);
}

.hero-chevrons {
  position: absolute;
  right: -140px;
  top: -100px;
  width: 620px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 104px;
}

.hero-copy .eyebrow { margin-bottom: 18px; }

.hero-sub {
  margin-top: 22px;
  font-size: 1.13rem;
  max-width: 34rem;
}
.hero-sub strong { color: var(--marine); }

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  gap: 22px;
  margin-top: 30px;
  list-style: none;
  flex-wrap: wrap;
}
.hero-proof li {
  font-size: 0.88rem;
  color: var(--texte-sec);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-proof li::before {
  content: '';
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg) translateY(-2px);
}

/* Animation d'entrée */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 110ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .accent-underline::after { animation: none; transform: scaleX(1); }
  .scorebar i { transition: none !important; width: var(--w) !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Maquette produit ---------- */

.hero-visual { position: relative; }

.mock-window {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--fond-app);
  border-bottom: 1px solid var(--bordure);
}
.mock-titlebar .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bordure);
}
.mock-url {
  margin-left: 10px;
  font-size: 0.74rem;
  color: var(--texte-sec);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}
.mock-campaign { font-weight: 700; color: var(--texte); font-size: 0.98rem; }
.mock-meta { font-size: 0.78rem; color: var(--texte-sec); margin-top: 2px; }

.mock-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--marine-med);
  background: #EEF4FF;
  padding: 4px 12px;
  border-radius: 20px;
}

.mock-rows { padding: 6px 10px 14px; }

.mock-row {
  display: grid;
  grid-template-columns: auto 1fr 90px 44px auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 110ms);
}
.mock-row:hover { background: var(--fond-app); }

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-cand { display: flex; flex-direction: column; min-width: 0; }
.mock-name { font-weight: 600; color: var(--texte); font-size: 0.88rem; }
.mock-src { font-size: 0.72rem; color: var(--texte-sec); }

.scorebar {
  height: 7px;
  background: var(--fond-app);
  border-radius: 99px;
  overflow: hidden;
}
.scorebar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--marine-med), var(--marine));
  animation: fill-bar 1s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fill-bar { to { width: var(--w); } }

.score { font-weight: 700; font-size: 0.85rem; text-align: right; }
.score-top { color: var(--marine); }
.score-mid { color: var(--success); }
.score-low { color: var(--warning); }

.pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.pill-green { background: #D1FAE5; color: #065F46; }
.pill-blue  { background: #DBEAFE; color: #1E40AF; }
.pill-amber { background: #FEF3C7; color: #92400E; }

.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--texte-corps);
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.float-card strong { color: var(--marine); }

.float-ia {
  top: -22px;
  left: -28px;
  max-width: 250px;
  animation-delay: 1.1s;
}
.float-ia .spark { color: var(--corail); margin-right: 4px; }

.float-new {
  bottom: -18px;
  right: -16px;
  animation-delay: 1.35s;
}
.float-new strong { color: var(--corail); font-size: 1rem; }

/* ---------- Révélation au scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Bande audience ---------- */

.audience {
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
  background: #fff;
}

.audience-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
}
.audience-inner p {
  font-size: 0.9rem;
  color: var(--texte-sec);
}
.audience-inner ul {
  display: flex;
  gap: 10px;
  list-style: none;
  flex-wrap: wrap;
}
.audience-inner li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--marine);
  background: var(--fond-app);
  border: 1px solid var(--marine-clair);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ---------- Problème ---------- */

.problem { padding: 104px 0; }

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-statement h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
.problem-statement em {
  font-style: italic;
  color: var(--corail);
}

.problem-copy p + p { margin-top: 18px; }
.problem-copy strong { color: var(--marine); }

/* ---------- Méthode ---------- */

.method {
  background: var(--fond-app);
  padding: 96px 0;
}

.method-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 48px;
}
.method-intro .section-head { margin-bottom: 0; }

.method-lead {
  margin-top: 14px;
  color: var(--texte-sec);
  font-size: 1rem;
}

.method-funnel {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.method-funnel svg { width: 150px; height: auto; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.method-card {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.method-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--corail);
  opacity: 0.9;
  line-height: 1;
}

.method-card h3 { margin: 16px 0 10px; font-size: 1.15rem; }
.method-card p { font-size: 0.94rem; }

/* ---------- Étapes (bande marine) ---------- */

.steps {
  position: relative;
  background:
    radial-gradient(900px 480px at 110% 10%, rgba(27, 79, 138, 0.45), transparent 60%),
    var(--marine);
  padding: 100px 0;
  overflow: hidden;
}

.steps-chevron {
  position: absolute;
  left: -180px;
  bottom: -160px;
  width: 700px;
  pointer-events: none;
}

.section-head-light h2 { color: #fff; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--corail);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 0 0 7px rgba(240, 100, 73, 0.16);
}

.step h3 {
  color: #fff;
  margin: 18px 0 8px;
  font-size: 1.06rem;
}
.step p {
  color: #C4D4E8;
  font-size: 0.9rem;
}

/* ---------- Fonctionnalités ---------- */

.features { padding: 104px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--marine-clair);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--corail-clair);
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--corail);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 { font-size: 0.98rem; margin-bottom: 8px; }
.feature p { font-size: 0.86rem; color: var(--texte-sec); }

/* ---------- Mise en œuvre ---------- */

.onboarding {
  background: var(--fond-app);
  padding: 100px 0;
}

.onboarding-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.onboarding-copy .eyebrow { margin-bottom: 10px; }
.onboarding-lead { margin-top: 16px; font-size: 1.05rem; }

.check-list {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.97rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 7px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--corail);
  border-bottom: 2.5px solid var(--corail);
  transform: rotate(-45deg);
}
.check-list strong { color: var(--marine); }

.timeline-card {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.timeline-title {
  font-weight: 700;
  color: var(--marine);
  margin-bottom: 18px;
}
.timeline-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.timeline-card li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--bordure);
}
.timeline-card li:last-child { border-bottom: none; }

.tl-time {
  flex-shrink: 0;
  width: 62px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--marine-med);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.tl-highlight {
  background: var(--corail-clair);
  border-radius: 10px;
  padding: 12px 14px !important;
  margin-top: 8px;
  border-bottom: none !important;
}
.tl-highlight .tl-time { color: var(--corail); }
.tl-highlight span:last-child { color: var(--texte); font-weight: 500; }

/* ---------- CTA final ---------- */

.final-cta {
  position: relative;
  background:
    radial-gradient(800px 500px at 15% 0%, rgba(27, 79, 138, 0.5), transparent 60%),
    var(--marine);
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}

.final-chevrons {
  position: absolute;
  right: -220px;
  top: -140px;
  width: 760px;
  pointer-events: none;
}

.final-inner { position: relative; }

.final-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}
.final-cta p {
  color: #C4D4E8;
  margin-top: 18px;
  font-size: 1.08rem;
}
.final-cta p em { color: #fff; font-style: italic; }

.final-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.final-mail {
  color: #C4D4E8;
  font-size: 0.92rem;
  text-decoration: none;
}
.final-mail:hover { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blanc-chaud);
  border-top: 1px solid var(--bordure);
  padding: 44px 0 28px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--texte-sec);
  max-width: 280px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  text-decoration: none;
  color: var(--texte-corps);
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--marine-med); }

.footer-legal {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--bordure);
}
.footer-legal p {
  font-size: 0.8rem;
  color: var(--texte-sec);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 72px; gap: 64px; }
  .hero-visual { max-width: 560px; }
  .float-ia { left: -8px; }
  .header-nav { display: none; }
}

@media (max-width: 720px) {
  /* Le nowrap + ::after déborde sur petit écran → soulignement natif */
  .accent-underline { white-space: normal; }
  .accent-underline::after { display: none; }
  .accent-underline {
    text-decoration: underline;
    text-decoration-color: var(--corail);
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.08em;
  }
  .problem-inner,
  .onboarding-inner,
  .method-grid { grid-template-columns: 1fr; }
  .method-intro { flex-direction: column; align-items: flex-start; gap: 32px; }
  .method-funnel { align-self: center; }
  .problem { padding: 72px 0; }
  .method, .steps, .features, .onboarding { padding: 72px 0; }
  .final-cta { padding: 88px 0; }
  .audience-inner { justify-content: flex-start; }
  .header-actions .btn-ghost { display: none; }
  .float-new { right: 0; }
  .mock-row { grid-template-columns: auto 1fr 44px auto; }
  .scorebar { display: none; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .pill { display: none; }
  .mock-row { grid-template-columns: auto 1fr 44px; }
}
