/* ============================================================
   MECAGENDA — refonte
   Sobre, contemporain, fond clair, parallax doux
   ============================================================ */

:root {
  /* Mecagenda brand palette */
  --bg: #FFFFFF;
  --bg-2: #F5F5F5;
  --bg-3: #ECEEF1;
  --paper: #FFFFFF;
  --ink: #1E2432;       /* Primary Text */
  --ink-2: #2A3142;
  --muted: #8A8A8F;     /* Secondary Text */
  --muted-2: #A8ACB3;
  --line: rgba(30, 36, 50, 0.08);
  --line-strong: rgba(30, 36, 50, 0.16);

  --brand: #225165;     /* Brand Primary */
  --brand-2: #3F688C;   /* Brand Tertiary */
  --brand-3: #5A83A0;   /* Brand Secondary */
  --brand-deep: #15364A;
  --accent: #015F72;    /* Accent1 (CTA) */
  --accent-ink: #013F4E;
  --accent-tint: #E0EEF1;
  --accent-warm: #A65D5D;
  --ok: #4CAF50;        /* Accent3 / Success-like */
  --err: #800418;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 34px;

  --shadow-sm: 0 1px 0 rgba(30,36,50,.04), 0 1px 2px rgba(30,36,50,.04);
  --shadow-md: 0 12px 36px -14px rgba(30,36,50,.22), 0 2px 6px rgba(30,36,50,.05);
  --shadow-xl: 0 50px 90px -32px rgba(21,54,74,.35), 0 10px 24px -12px rgba(30,36,50,.10);

  --container: 1200px;
  --pad: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 10vw, 140px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
.display, h1, h2, h3, h4 {
  font-family: "Montserrat", -apple-system, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-weight: 700;
}
.serif {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.015em;
}

h1, .h1 {
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h2, .h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h3, .h3 {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}
p { margin: 0; }
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}

/* ---------- Container / sections ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
section { padding: var(--section) 0; position: relative; }
section + section { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .lead { max-width: 60ch; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav-wrap.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-size: 17px; }
.brand-sub { display:block; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; margin-top: -2px;}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink-2);
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  font-weight: 500;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--accent {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(34, 81, 101, 0.08) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(1, 95, 114, 0.05) 0%, transparent 60%);
  will-change: transform;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(30,36,50,0.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  opacity: 0.6;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 14px 0 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-badge .pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px;
}
.hero h1 .em { color: var(--accent); }
.hero p.lead { margin-top: 24px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-bullets {
  margin-top: 44px;
  display: grid; gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 520px;
}
.hero-bullets li {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; color: var(--ink-2);
}
.hero-bullets .check {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 720px;
}
.hero-visual .phone { width: 100%; max-width: 380px; }
.hero-visual > div[data-parallax] { width: 100%; max-width: 380px; }

/* ---------- Phone mockup ---------- */
/* La hauteur du téléphone découle de l'écran (aspect-ratio calé sur les
   captures 738x1600) + le liseré de 10px → la capture remplit le cadre
   exactement, sans recadrage. */
.phone {
  position: relative;
  border-radius: 44px;
  background: var(--ink);
  padding: 10px;
  box-shadow:
    var(--shadow-xl),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
}
.phone::before {
  /* notch */
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 28%; height: 22px; border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%;
  /* Ratio EXACT des captures (738/1600) → object-fit:cover n'a rien à
     rogner : l'écran complet de l'app entre dans le cadre. */
  aspect-ratio: 738 / 1600;
  border-radius: 36px;
  background: var(--paper);
  overflow: hidden;
  /* Clipping fiable sur WebKit/iOS (Safari) : `overflow:hidden` +
     `border-radius` seuls ne découpent PAS un enfant absolu quand un
     ancêtre est transformé/animé (data-parallax + animation
     phoneFloat) → l'illustration débordait du cadre. `clip-path`
     fonctionne dans ce cas. */
  -webkit-clip-path: inset(0 round 36px);
  clip-path: inset(0 round 36px);
}
.phone-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  /* Ceinture + bretelles : l'image porte elle-même les coins arrondis,
     donc le rendu reste correct même si le clipping du parent échoue. */
  border-radius: 36px;
}
.phone-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(34,81,101,0.04) 0px, rgba(34,81,101,0.04) 1px, transparent 1px, transparent 14px),
    linear-gradient(180deg, #FFFFFF 0%, #ECEEF1 100%);
  color: var(--muted);
  text-align: center;
  padding: 32px;
}
.phone-placeholder .pp-mark {
  width: 56px; height: 56px; border-radius: 14px;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(34,81,101,.35);
}
.phone-placeholder .pp-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.phone-placeholder .pp-title { font-size: 14px; color: var(--ink); letter-spacing: -0.01em; }
.phone-placeholder .pp-sub { font-size: 12px; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase; }

/* Floating cards around hero phone */
.float-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  will-change: transform;
}
.float-card .ic {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); font-size: 16px;
}
.float-card .ic.accent { background: var(--accent-tint); }
.float-card .ic.dark { background: var(--ink); color: #fff; }
/* Offsets ramenés dans le conteneur (pas de débordement → pas de
   scroll horizontal sur tablette). */
.fc-1 { left: 0;   top: 18%; }
.fc-2 { right: 0;  top: 42%; }
.fc-3 { left: 6%;  bottom: 8%; }
.float-card strong { display: block; color: var(--ink); font-weight: 500; letter-spacing: -0.005em; }
.float-card small { color: var(--muted); font-size: 11.5px; }

/* ---------- Steps section ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.step-num {
  font-family: "Montserrat", sans-serif;
  font-size: 52px;
  line-height: 1;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.step-num .small { font-size: 14px; color: var(--muted); margin-left: 6px; vertical-align: super; font-weight: 500;}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step-ic {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  border: 1px solid var(--line);
}

/* ---------- Application section ---------- */
.app-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}
.app-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.app-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-visual .phone { width: 100%; max-width: 340px; }
.app-visual > div[data-parallax] { width: 100%; max-width: 340px; }
.app-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 32px;
}
.feat {
  padding: 22px 22px 24px;
  border-top: 1px solid var(--line);
}
.feat-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
  margin-bottom: 14px;
}
.feat-ic.accent { background: var(--accent-tint); color: var(--accent-ink); }
.feat strong { display: block; font-size: 15.5px; color: var(--ink); font-weight: 500; margin-bottom: 4px; letter-spacing: -0.01em;}
.feat span { color: var(--muted); font-size: 14px; }

/* ---------- Pro section (dark) ---------- */
.pro-section {
  position: relative;
  background:
    linear-gradient(180deg, #1B4258 0%, #15364A 100%);
  color: #F1EFE8;
  border-radius: 36px;
  margin: 0 var(--pad);
  padding: clamp(64px, 8vw, 120px) clamp(28px, 5vw, 80px);
  overflow: hidden;
}
.pro-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 90% 10%, rgba(90, 131, 160, 0.28) 0%, transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(255,255,255,0.05) 0%, transparent 60%);
}
.pro-section > * { position: relative; z-index: 1; }

/* Pro top: text + dashboard phone side by side */
.pro-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.pro-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pro-visual .phone { width: 100%; max-width: 290px; }
.pro-visual > div[data-parallax] { width: 100%; max-width: 290px; }
.pro-section .eyebrow { color: rgba(255,255,255,0.6); }
.pro-section .eyebrow .dot { background: var(--accent); }
.pro-section h2, .pro-section h3 { color: #fff; }
.pro-section .serif { color: #A8C7DB; }
.pro-section .lead { color: rgba(241, 239, 232, 0.72); }
.pro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.pro-item {
  padding: 32px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: flex; gap: 22px;
}
.pro-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.10); }
.pro-item:nth-last-child(-n+2) { border-bottom: none; }
.pro-item-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.pro-item h3 { margin-bottom: 6px; font-size: 18px;}
.pro-item p { color: rgba(241,239,232,0.65); font-size: 14.5px; }

.pro-cta {
  display: flex; justify-content: space-between; align-items: end; gap: 32px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255,255,255,0.10);
  flex-wrap: wrap;
}
.pro-cta .stat {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.pro-cta .stat-sub { color: rgba(241,239,232,0.6); font-size: 14px; margin-top: 8px;}
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.why-item {
  background: var(--paper);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
  transition: background .3s var(--ease);
}
.why-item:hover { background: var(--bg); }
.why-num {
  font-size: 12px; color: var(--muted); letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.why-item h3 {
  margin-top: auto;
  font-size: 20px;
}
.why-item p { color: var(--muted); font-size: 14.5px; }
.why-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-2); display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 16px;
}

/* ---------- Download section ---------- */
.download {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 6vw, 88px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.download h2 { font-size: clamp(28px, 3.4vw, 44px); }
.download .lead { margin-top: 14px; }
.app-buttons { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.badge-btn {
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  line-height: 0;
}
.badge-btn img {
  height: 52px;
  width: auto;
  display: block;
}
.badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(30, 36, 50, 0.35);
}
.badge-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.badge-btn.is-soon {
  position: relative;
  cursor: not-allowed;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  text-align: center;
}
.badge-btn.is-soon img {
  filter: grayscale(1) opacity(0.5);
  margin: 0 auto;
}
.badge-btn .soon-tag {
  display: block;
  width: max-content;
  margin: 0 auto;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--accent-tint);
  border: 1px solid color-mix(in oklab, var(--brand) 22%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.4;
}
.download-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
}
.download-visual .phone { width: 100%; max-width: 240px; }
.download-visual > div[data-parallax] { width: 100%; max-width: 240px; }

/* QR code stylized */
.qr {
  position: absolute; bottom: 8%; right: -10%;
  width: 96px; height: 96px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-md);
}
.qr svg { width: 100%; height: 100%; }

/* ---------- Newsletter ---------- */
.newsletter {
  position: relative;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(34, 81, 101, 0.10) 0%, transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(1, 95, 114, 0.06) 0%, transparent 60%),
    var(--bg-2);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 88px);
  border: 1px solid var(--line);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.newsletter h2 { font-size: clamp(30px, 3.6vw, 48px); }
.newsletter .lead { margin-top: 16px; }

.profile-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 18px;
  position: relative;
}
.profile-toggle button {
  position: relative;
  border: none; background: transparent;
  padding: 10px 22px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  z-index: 1;
  transition: color .25s var(--ease);
}
.profile-toggle button.active { color: #fff; }
.profile-toggle .toggle-pill {
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  background: var(--ink);
  border-radius: 999px;
  transition: transform .35s var(--ease), width .35s var(--ease);
  z-index: 0;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.form-row.single { grid-template-columns: 1fr; }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.field input, .field select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(34,81,101,0.10);
}
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: var(--muted);
  margin-top: 14px;
}
.consent input { margin-top: 3px; accent-color: var(--ink); }
.newsletter form .btn { margin-top: 18px; width: 100%; justify-content: center; }
.form-success {
  display: none;
  background: var(--ok);
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14px;
  align-items: center; gap: 10px;
}
.form-success.show { display: flex; }

/* ---------- Footer ---------- */
footer {
  margin-top: var(--section);
  padding-top: 64px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  align-items: start;
}
.footer-grid h4 {
  font-size: 12px; color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase; margin: 0 0 14px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;}
.footer-grid li a { font-size: 14.5px; color: var(--ink-2); transition: color .2s var(--ease);}
.footer-grid li a:hover { color: var(--accent); }
.footer-tag { color: var(--muted); font-size: 14px; max-width: 30ch; margin-top: 16px;}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px;
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1; transform: none;
}

/* Phone-specific entrance: fade + scale + slight tilt */
.hero-visual.reveal,
.app-visual.reveal,
.download-visual.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.94) rotate(-2deg);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.hero-visual.reveal.in,
.app-visual.reveal.in,
.download-visual.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

/* Continuous gentle float on the phone itself (doesn't conflict with parallax on wrapper) */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.phone {
  animation: phoneFloat 6s ease-in-out infinite;
}
.hero-visual .phone { animation-delay: 0s; }
.app-visual .phone  { animation-delay: -2s; }
.download-visual .phone { animation-delay: -4s; }

/* Subtle screen shimmer on hover */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 1.4s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.phone:hover .phone-screen::after {
  transform: translateX(100%);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner, .app-inner, .download, .newsletter-inner { grid-template-columns: 1fr; }
  .hero-visual, .app-visual, .download-visual {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .download-visual { margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pro-grid { grid-template-columns: 1fr; }
  .pro-top { grid-template-columns: 1fr; }
  .pro-visual { width: 100%; max-width: 320px; margin: 8px auto 0; }
  .pro-item:nth-child(odd) { border-right: none; }
  .pro-item:nth-last-child(2) { border-bottom: 1px solid rgba(255,255,255,0.10); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  nav { height: 64px; }
  .nav-links { display: none; }
  /* Sur mobile, on ne garde que le CTA bleu « S'abonner » dans la barre.
     « Je suis un professionnel » reste accessible via la page / le footer. */
  .nav-cta-secondary { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .app-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pro-section { margin: 0 16px; padding: 56px 28px; }
  .float-card { display: none; }
  .fc-3 { display: flex; left: 0; right: 0; bottom: -16px; margin: auto; width: max-content;}
  /* Marges mobiles : le formulaire respire et reste bien centré
     (l'énorme padding clamp() décalait/comprimait la carte). */
  .container { padding-left: 16px; padding-right: 16px; }
  .newsletter { padding: 26px 18px; border-radius: 20px; }
  .newsletter-inner { gap: 28px; }
  .form-card { padding: 20px; }
}

/* ---------- Print/PDF & reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
