/* =========================================================
   FLOWTIME — design system du site vitrine
   Repris du thème de l'app (src/constants/theme.ts) :
   indigo #4F46E5, corail #F43F5E, encre #0F1222.
   ========================================================= */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eceDfe;
  --accent: #f43f5e;
  --accent-soft: #ffe4ea;
  --success: #12b76a;
  --warning: #f79009;
  --danger: #f04438;

  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --ink: #0f1222;
  --ink-2: #565e75;
  --ink-3: #8a91a6;
  --border: #e7e9f1;
  --navy: #0b1220;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.05);
  --shadow: 0 6px 16px rgba(11, 16, 32, 0.06);
  --shadow-lg: 0 24px 60px rgba(11, 16, 32, 0.1);
  --glow: 0 8px 24px rgba(79, 70, 229, 0.28);

  --maxw: 1140px;
  --nav-h: 68px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}
h3 {
  font-size: 1.22rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  padding-left: 1.25em;
}
li {
  margin-bottom: 0.4em;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}
.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}
.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.center {
  text-align: center;
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 62ch;
}
.center .lede {
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus {
  left: 0;
}

/* ---------- header ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(245, 246, 250, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-size: 1.06rem;
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--primary), #7c6cf5 55%, var(--accent));
  box-shadow: var(--glow);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand__mark svg {
  width: 17px;
  height: 17px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.nav__links a:hover {
  color: var(--ink);
  background: var(--surface-2);
  text-decoration: none;
}
.nav__links a[aria-current='page'] {
  color: var(--primary);
}
.nav__cta {
  margin-left: 6px;
}
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--glow);
}
.btn--primary:hover {
  background: var(--primary-dark);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  background: var(--surface-2);
}
.btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}
.btn--block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.center .btn-row {
  justify-content: center;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      900px 520px at 12% -10%,
      rgba(79, 70, 229, 0.5),
      transparent 62%
    ),
    radial-gradient(760px 460px at 92% 8%, rgba(244, 63, 94, 0.38), transparent 60%),
    linear-gradient(168deg, #131a35 0%, var(--navy) 60%, #070c17 100%);
  color: #fff;
  padding: clamp(60px, 8vw, 104px) 0 clamp(72px, 9vw, 120px);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #a5b4fc, #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.14rem;
  max-width: 54ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}
.eyebrow--light {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary-dark);
}
.hero__note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__stat b {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__stat span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- maquette téléphone ---------- */
.phone {
  width: min(300px, 78vw);
  margin-inline: auto;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #2b3350, #12182c);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone__screen {
  position: relative;
  border-radius: 32px;
  background: var(--bg);
  overflow: hidden;
  padding: 22px 16px 16px;
  color: var(--ink);
}
.phone__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 6px;
  border-radius: 99px;
  background: rgba(15, 18, 34, 0.16);
}
.phone__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.phone__head strong {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}
.phone__head span {
  font-size: 0.72rem;
  color: var(--ink-3);
}
.crowd-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(100deg, #12b76a, #22c55e);
  color: #fff;
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 13px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
}
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mini-row + .mini-row {
  margin-top: 10px;
}
.mini-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}
.mini-sub {
  font-size: 0.68rem;
  color: var(--ink-3);
}
.wait {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: var(--r-sm);
  color: #fff;
}
.wait--g {
  background: var(--success);
}
.wait--o {
  background: var(--warning);
}
.wait--r {
  background: var(--danger);
}
.phone__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 14px 0 7px;
}
.gain {
  background: linear-gradient(120deg, var(--primary), #6d5df6);
  color: #fff;
  border-radius: var(--r-md);
  padding: 13px;
  text-align: center;
  box-shadow: var(--glow);
}
.gain b {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}
.gain span {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* ---------- cartes / grilles ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 8px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card__icon svg {
  width: 22px;
  height: 22px;
}
.card__icon--accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.card--flat {
  box-shadow: none;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  list-style: none;
  padding: 0;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
  box-shadow: var(--glow);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: var(--ink-2);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.checklist strong {
  color: var(--ink);
}

/* ---------- tarifs ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px;
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan__tag {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--r-full);
}
.plan h3 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.plan__price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan__price small {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}
.plan__desc {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin: 12px 0 20px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.95rem;
}
.plan li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-2);
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}
.plan li.no {
  color: var(--ink-3);
}
.plan li.no::before {
  content: '—';
  color: var(--ink-3);
}
.plan .btn {
  margin-top: auto;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
thead th {
  background: var(--surface-2);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.yes {
  color: var(--success);
  font-weight: 700;
}
td.no {
  color: var(--ink-3);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin-inline: auto;
}
details.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
details.qa[open] {
  box-shadow: var(--shadow);
}
details.qa summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 30px 16px 0;
  list-style: none;
  position: relative;
}
details.qa summary::-webkit-details-marker {
  display: none;
}
details.qa summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}
details.qa[open] summary::after {
  content: '–';
}
details.qa .qa__body {
  padding-bottom: 16px;
  color: var(--ink-2);
}
details.qa .qa__body > :last-child {
  margin-bottom: 0;
}

/* ---------- actus ---------- */
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.post time {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.post h3 {
  margin: 8px 0;
}
.post p {
  color: var(--ink-2);
  margin-bottom: 0;
}
.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--ink-2);
  margin-left: 8px;
}

/* ---------- bandeau CTA ---------- */
.cta {
  background: linear-gradient(140deg, var(--primary), #6d5df6 55%, #8b5cf6);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 56ch;
  margin-inline: auto;
}

/* ---------- capture d'e-mail en ligne (bandeau CTA) ---------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 520px;
  margin: 26px auto 0;
}
.inline-form input[type='email'] {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.inline-form input[type='email']::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.inline-form input[type='email']:focus {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.inline-form input[type='email']:focus::placeholder {
  color: var(--ink-3);
}
.inline-form .btn--primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
  flex: 0 0 auto;
}
.inline-form .btn--primary:hover {
  background: var(--primary-soft);
}
.inline-form__note {
  margin: 14px auto 0;
  max-width: 52ch;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.66);
}
.inline-form__note a {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 520px) {
  .inline-form input[type='email'],
  .inline-form .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ---------- pages de contenu (légal) ---------- */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: clamp(38px, 6vw, 72px) 0 clamp(30px, 4vw, 48px);
}
.page-head h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  margin-bottom: 12px;
}
.page-head p {
  color: var(--ink-2);
  max-width: 66ch;
  margin-bottom: 0;
}
.updated {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: 10px;
}
.prose {
  max-width: 760px;
  margin-inline: auto;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
  padding-top: 0.4em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.6em;
}
.prose li,
.prose p {
  color: var(--ink-2);
}
.prose strong {
  color: var(--ink);
}
.callout {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 26px 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout--warn {
  background: #fff4e6;
  border-left-color: var(--warning);
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 34px;
}
.toc strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
  font-size: 0.95rem;
}
.toc li {
  break-inside: avoid;
}

/* ---------- footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.68);
  padding: clamp(44px, 6vw, 72px) 0 32px;
  font-size: 0.94rem;
}
.footer a {
  color: rgba(255, 255, 255, 0.72);
}
.footer a:hover {
  color: #fff;
}
.footer .brand {
  color: #fff;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__grid p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: 9px;
}
.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
}
.disclaimer {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 90ch;
  margin-top: 18px;
  line-height: 1.55;
}

/* ---------- formulaire ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.field small {
  display: block;
  color: var(--ink-3);
  font-size: 0.83rem;
  margin-top: 6px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p,
  .hero .lede {
    margin-inline: auto;
  }
  .hero .btn-row,
  .hero__stats {
    justify-content: center;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 22px 20px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav__links.open {
    display: flex;
  }
  .nav__links a {
    padding: 12px;
  }
  .nav__cta {
    margin: 8px 0 0;
    text-align: center;
  }
  .toc ol {
    columns: 1;
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .card,
  .steps li,
  .plan,
  .form {
    padding: 22px;
  }
  .btn {
    width: 100%;
  }
  .btn-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* révélation douce au défilement */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* Sans JavaScript, rien ne déclenche la révélation : on affiche tout. */
@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .nav,
  .footer,
  .cta {
    display: none;
  }
}
