@import './tokens.css';

/* =====================================================
   Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 500; margin: 0; color: var(--color-text-primary); }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.display { font-size: 48px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.h2      { font-size: 32px; line-height: 1.2;  letter-spacing: -0.02em; font-weight: 500; }
.h3      { font-size: 18px; line-height: 1.4;  font-weight: 500; }
.lead    { font-size: 20px; line-height: 1.55; color: var(--color-text-secondary); }
.muted   { color: var(--color-text-secondary); }

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
  line-height: 1;
}
.btn .icon { width: 16px; height: 16px; stroke-width: 1.75; }
.btn-primary  { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent-tint); }
.btn-ghost { background: transparent; color: var(--color-slate-50); border-color: var(--color-slate-400); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-block { width: 100%; }

.link-accent {
  color: var(--color-accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms ease;
}
.link-accent:hover { color: var(--color-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.link-accent .icon { width: 16px; height: 16px; stroke-width: 1.75; }

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 200ms ease;
}
.site-header.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-symbol { height: 28px; width: 28px; }
.brand-wordmark { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--color-slate-900); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--color-text-secondary); transition: color 150ms ease; }
.nav a:hover { color: var(--color-text-primary); }

.header-right { display: flex; align-items: center; gap: 20px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.lang-switch button {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-slate-500);
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 150ms ease, color 150ms ease;
}
.lang-switch button:hover { color: var(--color-slate-900); }
.lang-switch button.is-active { background: var(--color-slate-50); color: var(--color-slate-900); }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  color: var(--color-slate-900);
  border-radius: 6px;
}
.menu-toggle:hover { background: rgba(0,0,0,0.04); }
.menu-toggle .icon { width: 22px; height: 22px; }

/* =====================================================
   Sections
   ===================================================== */
section { padding: 96px 0; }
section.dark { background: var(--color-bg-dark); color: var(--color-slate-50); }
section.dark h2 { color: var(--color-slate-50); }
section.tint { background: var(--color-ocre-tint); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .lead { margin-top: 16px; }

/* =====================================================
   Hero
   ===================================================== */
.hero { padding: 96px 0 112px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--color-ocre-tint);
  color: var(--color-ocre-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ocre-base); }
.hero h1  { max-width: 580px; }
.hero .lead { max-width: 560px; margin-top: 24px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-ocre-tint);
  color: var(--color-ocre-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
}
.badge .icon { width: 14px; height: 14px; stroke-width: 2; }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Phone illustration */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}
.phone-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(196,126,42,0.10), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(30,35,40,0.06), transparent 55%);
  pointer-events: none;
}
.phone {
  position: relative;
  width: 290px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  box-shadow:
    0 1px 2px rgba(30,35,40,0.04),
    0 24px 48px -16px rgba(30,35,40,0.18),
    0 8px 16px -8px rgba(30,35,40,0.08);
  padding: 14px;
}
.phone-screen {
  background: var(--color-slate-50);
  border-radius: 18px;
  padding: 18px 16px 20px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-slate-700);
  padding: 0 2px;
}
.phone-statusbar .dots { display: inline-flex; gap: 3px; }
.phone-statusbar .dots span { width: 4px; height: 4px; background: var(--color-slate-700); border-radius: 50%; }
.phone-brand { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; }
.phone-brand svg { width: 22px; height: 22px; }
.phone-brand .wm { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; color: var(--color-slate-900); }
.phone-title { font-size: 15px; font-weight: 500; color: var(--color-slate-900); margin-top: 4px; }
.phone-sub   { font-size: 12px; color: var(--color-slate-500); margin-top: -10px; }
.phone-label { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-slate-500); }
.phone-input {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: var(--color-slate-500);
  min-height: 64px;
  line-height: 1.5;
}
.phone-input strong { display: block; color: var(--color-slate-900); font-weight: 500; margin-bottom: 4px; }
.phone-camera-btn {
  background: var(--color-ocre-base);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.phone-camera-btn .icon { width: 16px; height: 16px; stroke-width: 1.75; }
.phone-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--color-ocre-tint);
  border-radius: 10px;
}
.phone-status .left { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--color-ocre-dark); }
.phone-status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--color-ocre-base); position: relative; }
.phone-status .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-ocre-base);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.phone-status .ref { font-size: 11px; color: var(--color-ocre-dark); opacity: 0.7; font-variant-numeric: tabular-nums; }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(30,35,40,0.10);
  font-size: 13px;
}
.float-chip .icon-wrap {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--color-ocre-tint);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-ocre-dark);
}
.float-chip .icon-wrap svg { width: 16px; height: 16px; }
.float-chip strong { font-weight: 500; color: var(--color-slate-900); display: block; }
.float-chip span   { color: var(--color-slate-500); font-size: 12px; }
.float-chip-1 { top: 28px; right: -10px; }
.float-chip-2 { bottom: 56px; left: -24px; }

/* =====================================================
   Problème
   ===================================================== */
.problem-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.problem-text h2 { max-width: 560px; }
.problem-text p  { margin-top: 24px; max-width: 560px; color: var(--color-slate-400); line-height: 1.75; }
.problem-text p + p { margin-top: 16px; }
.problem-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }

.paper-card {
  position: absolute;
  width: 200px;
  background: #FAF7F0;
  border: 1px solid #C8BFA8;
  padding: 18px 16px;
  transform: rotate(-9deg);
  left: 4%; top: 18%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  font-family: var(--font-sans);
  color: #4a4538;
}
.paper-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 49%, rgba(0,0,0,0.04) 50%, transparent 51%) 0 0 / 30px 30px,
    linear-gradient(45deg,  transparent 49%, rgba(0,0,0,0.03) 50%, transparent 51%) 0 0 / 24px 24px;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.paper-card .stamp { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: #7a6f55; margin-bottom: 6px; }
.paper-card .ref   { font-size: 22px; font-weight: 500; color: #3a3528; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }
.paper-card .line  { height: 1px; background: #C8BFA8; margin: 10px 0; }
.paper-card .field { font-size: 10px; color: #7a6f55; margin-bottom: 2px; }
.paper-card .value { font-size: 11px; color: #3a3528; margin-bottom: 6px; }
.paper-card .scribble {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, #5a503b 4px 8px, transparent 8px 14px),
    repeating-linear-gradient(90deg, transparent 0 6px, #5a503b 6px 9px, transparent 9px 18px);
  background-position: 0 4px, 0 9px;
  background-size: 60% 1px, 80% 1px;
  background-repeat: no-repeat;
}
.paper-card .tear {
  position: absolute;
  top: -1px; right: 24px;
  width: 30px; height: 14px;
  background: var(--color-bg-dark);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 78% 30%, 60% 90%, 42% 20%, 24% 80%, 8% 30%);
}

.phone-mini {
  position: absolute;
  right: 4%; bottom: 6%;
  width: 178px;
  background: #232930;
  border: 1px solid #2f3640;
  border-radius: 22px;
  padding: 8px;
  transform: rotate(6deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.phone-mini-screen { background: #1a1e23; border-radius: 16px; padding: 14px 10px 10px; }
.phone-mini-header { font-size: 10px; color: var(--color-slate-400); display: flex; justify-content: space-between; margin-bottom: 8px; letter-spacing: 0.04em; }
.phone-mini-header .search { background: #2a313a; color: var(--color-slate-400); padding: 4px 8px; border-radius: 6px; font-size: 9px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.gallery div { aspect-ratio: 1; background: #2a313a; border-radius: 2px; }
.gallery div:nth-child(2)  { background: #3a424d; }
.gallery div:nth-child(4)  { background: #2f3640; }
.gallery div:nth-child(5)  { background: #353c45; }
.gallery div:nth-child(7)  { background: #2a313a; }
.gallery div:nth-child(9)  { background: #3a424d; }
.gallery div:nth-child(11) { background: #2f3640; }
.gallery .lost { background: #2a313a; position: relative; overflow: hidden; }
.gallery .lost::after {
  content: "?";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-slate-500);
  font-size: 14px; font-weight: 500;
}

/* =====================================================
   Comment ça marche
   ===================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 32px; left: 40px;
  right: calc((100% - 48px) / 3 - 40px);
  height: 1.5px;
  background-image: linear-gradient(to right, var(--color-slate-400) 50%, transparent 0%);
  background-size: 10px 1.5px;
  background-repeat: repeat-x;
  z-index: 0;
}
.step { background: transparent; padding: 0 8px; position: relative; z-index: 1; }
.step-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ocre-base);
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(30,35,40,0.06);
}
.step-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.step-number { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-slate-400); font-weight: 500; margin-bottom: 8px; }
.step h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p  { color: var(--color-text-secondary); font-size: 15px; line-height: 1.6; }

/* =====================================================
   Pour qui
   ===================================================== */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.audience-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.audience-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,35,40,0.08); }
.audience-card .icon-square {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-ocre-tint);
  color: var(--color-ocre-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.audience-card .icon-square svg { width: 20px; height: 20px; stroke-width: 1.5; }
.audience-card h3 { font-size: 16px; margin-bottom: 6px; }
.audience-card p  { color: var(--color-text-secondary); font-size: 14px; line-height: 1.55; }
.audience-card.special { background: var(--color-ocre-tint); border: 1px dashed var(--color-ocre-light); }
.audience-card.special .icon-square { background: #fff; }

/* =====================================================
   Tarifs
   ===================================================== */
.pricing-head { text-align: center; margin-left: auto; margin-right: auto; }
.pricing-head h2,
.pricing-head .lead { margin-left: auto; margin-right: auto; }

.pricing-toggle-wrap { display: flex; justify-content: center; margin: 32px 0 40px; }
.pricing-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px; gap: 4px;
}
.pricing-toggle button {
  position: relative;
  background: transparent;
  border: none;
  padding: 9px 22px;
  font-size: 14px; font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 999px;
  transition: color 150ms ease, background 150ms ease;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
}
.pricing-toggle button.active { background: var(--color-slate-900); color: #fff; }
.pricing-toggle .save-pill {
  background: var(--color-ocre-tint);
  color: var(--color-ocre-dark);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.pricing-toggle button.active .save-pill { background: var(--color-ocre-base); color: #fff; }

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid var(--color-ocre-base);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 12px 32px rgba(196,126,42,0.10);
  position: relative;
}
.pricing-card .trial-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-ocre-tint);
  color: var(--color-ocre-dark);
  font-size: 12px; font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-ocre-light);
  white-space: nowrap;
}
.pricing-card .plan-name { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-slate-500); font-weight: 500; margin-top: 8px; }
.price-row    { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.price-amount { font-size: 48px; font-weight: 500; letter-spacing: -0.02em; color: var(--color-slate-900); line-height: 1; }
.price-period { font-size: 15px; color: var(--color-slate-500); }
.price-sub    { font-size: 13px; color: var(--color-slate-500); margin-top: 6px; min-height: 20px; }
.price-sub strong { color: var(--color-ocre-dark); font-weight: 500; }
.pricing-card hr { border: none; border-top: 1px solid var(--color-border); margin: 24px 0; }

.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--color-slate-700); }
.feature-list .check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-ocre-tint);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-ocre-dark);
  margin-top: 1px;
}
.feature-list .check svg { width: 12px; height: 12px; stroke-width: 2.5; }
.pricing-card .btn { width: 100%; margin-top: 24px; padding: 13px 20px; font-size: 15px; }

.addon {
  max-width: 480px;
  margin: 24px auto 0;
  background: var(--color-ocre-tint);
  border: 1px solid var(--color-ocre-light);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: flex; gap: 16px; align-items: flex-start;
}
.addon .icon-wrap {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
  color: var(--color-ocre-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.addon .icon-wrap svg { width: 18px; height: 18px; stroke-width: 1.5; }
.addon-title { font-size: 15px; font-weight: 500; color: var(--color-slate-900); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.addon-title .price { color: var(--color-ocre-dark); font-weight: 500; }
.addon-text  { color: var(--color-slate-500); font-size: 13.5px; margin-top: 4px; line-height: 1.55; }
.pricing-footnote { text-align: center; font-size: 13px; color: var(--color-slate-400); margin-top: 32px; }

/* =====================================================
   Contact
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
.contact-text h2   { max-width: 480px; }
.contact-text .lead { color: var(--color-slate-400); margin-top: 20px; max-width: 480px; }

.contact-meta { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-meta .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-meta .icon-wrap {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--color-ocre-light);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-meta .icon-wrap svg { width: 18px; height: 18px; stroke-width: 1.5; }
.contact-meta strong { color: var(--color-slate-50); font-weight: 500; font-size: 15px; display: block; }
.contact-meta span  { color: var(--color-slate-400); font-size: 14px; }
.contact-meta a { color: var(--color-ocre-light); }
.contact-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form-card {
  background: #2A3038;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 32px;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; color: var(--color-slate-400); margin-bottom: 8px; letter-spacing: 0.01em; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(0,0,0,0.18);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-slate-50);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--color-slate-500); }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--color-ocre-base); box-shadow: 0 0 0 3px rgba(196,126,42,0.18); }
.form-card .btn { padding: 13px 20px; font-size: 15px; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: rgba(196,126,42,0.08);
  border: 1px solid rgba(196,126,42,0.35);
  border-radius: var(--radius-sm);
  color: var(--color-slate-50);
}
.form-success.show { display: flex; }
.form-success .icon-wrap {
  width: 36px; height: 36px;
  background: var(--color-ocre-base);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-success strong { display: block; margin-bottom: 4px; font-weight: 500; }
.form-success p { font-size: 14px; color: var(--color-slate-400); }

.form-error {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: var(--radius-sm);
  color: #FCA5A5;
  font-size: 14px;
  line-height: 1.5;
}
.form-error.show { display: block; }

.form-alt { margin-top: 24px; text-align: center; font-size: 14px; color: var(--color-slate-400); }
.form-alt a { color: var(--color-ocre-light); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================
   Footer
   ===================================================== */
footer { background: var(--color-bg-footer); color: var(--color-slate-400); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-lockup { display: inline-flex; align-items: center; gap: 10px; }
.footer-lockup .brand-symbol { height: 24px; width: 24px; }
.footer-lockup .brand-wordmark { color: var(--color-slate-50); font-size: 20px; }
.footer-tagline { font-size: 14px; color: var(--color-slate-400); max-width: 320px; }
.footer-copy    { font-size: 12px; color: var(--color-slate-500); margin-top: 16px; }
.footer-links   { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-links a { font-size: 13px; color: var(--color-slate-400); transition: color 150ms ease; }
.footer-links a:hover { color: var(--color-ocre-light); }

/* =====================================================
   Pages légales
   ===================================================== */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--color-border);
}
.page-hero .micro {
  color: var(--color-ocre-dark);
  margin-bottom: 12px;
  display: block;
}
.page-hero h1 {
  font-size: 36px;
  letter-spacing: -0.02em;
  max-width: 640px;
}
.page-hero .updated {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.legal-content {
  max-width: 760px;
  padding: 64px var(--pad-x) 96px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 16px;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}
.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.legal-content p strong { color: var(--color-text-primary); font-weight: 500; }
.legal-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--color-accent-hover); }

.legal-content ul {
  padding-left: 0;
  list-style: none;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content ul li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
}
.legal-content ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-ocre-base);
}
.legal-content ul li strong { color: var(--color-text-primary); font-weight: 500; }

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th {
  background: var(--color-slate-50);
  padding: 10px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-slate-700);
  border-bottom: 1px solid var(--color-border);
}
.legal-table td {
  padding: 12px 16px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.55;
  vertical-align: top;
}
.legal-table td:first-child { color: var(--color-text-primary); font-weight: 500; white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 150ms ease;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--color-text-primary); }
.back-link .icon { width: 16px; height: 16px; stroke-width: 1.75; }

.legal-lang-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  font-size: 13px;
}
.legal-lang-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.legal-lang-nav a:hover {
  color: var(--color-text-primary);
  border-color: var(--color-ocre-base);
  background: rgba(196,126,42,0.06);
}
.legal-lang-nav .sep { color: var(--color-border); user-select: none; }

.legal-section { padding-top: 64px; margin-top: 64px; border-top: 1px solid var(--color-border); }
.legal-section:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.legal-section-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 960px) {
  :root { --pad-x: 28px; }
  section { padding: 72px 0; }
  .hero   { padding: 56px 0 80px; }
  .display { font-size: 38px; }
  .h2     { font-size: 28px; }
  .lead   { font-size: 18px; }
  .hero-grid, .problem-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .phone-stage { min-height: 480px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr; }
  .footer-links  { align-items: flex-start; }
}

@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .nav { display: none; }
  .header-right .lang-switch { display: none; }
  .header-right .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .display { font-size: 32px; }
  .h2   { font-size: 24px; }
  .lead { font-size: 17px; }
  section { padding: 64px 0; }
  .hero   { padding: 40px 0 64px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-cta .btn { width: 100%; }
  .form-card    { padding: 24px; }
  .pricing-card { padding: 24px; }
  .price-amount { font-size: 40px; }
  .float-chip-1 { right: -4px; top: 12px; }
  .float-chip-2 { left: -4px;  bottom: 24px; }
  .audience-grid { grid-template-columns: 1fr; }
  .section-head  { margin-bottom: 40px; }

  .nav.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--color-bg-primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--pad-x) 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .nav.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-slate-900);
    font-size: 16px;
  }
  .nav.open a:last-child { border-bottom: none; }
  .nav.open .btn { margin-top: 16px; width: 100%; }
}
