/* ============================================================
   EKYMOOV — Direction artistique "Éditorial chaleureux XL"
   Rupture par l'échelle et la typographie : titres géants en
   Fraunces, grille éditoriale asymétrique, mockups d'application
   posés comme des pièces à conviction, rythme clair/sombre.
   ============================================================ */

:root {
  color-scheme: light;

  /* Palette brute */
  --cream: #fbf6ed;
  --cream-deep: #f1e7d3;
  --paper: #fffdf8;
  --ink: #16241f;
  --ink-soft: #4b5a52;
  --terracotta: #c8552d;
  --terracotta-deep: #a63f1e;
  --terracotta-tint: rgba(200, 85, 45, 0.13);
  --forest: #1f4d3d;
  --forest-deep: #123024;
  --forest-tint: rgba(31, 77, 61, 0.12);
  --sable: #e8dcc6;
  --amber: #e3a458;
  --mint: #4ecb9a;
  --success: #2f7a55;
  --success-soft: rgba(47, 122, 85, 0.16);
  --warning: #a86a1c;
  --warning-soft: rgba(224, 166, 58, 0.2);
  --danger: #b6432f;
  --danger-soft: rgba(182, 67, 47, 0.14);

  /* Tokens sémantiques — thème clair (dominant) */
  --bg: var(--cream);
  --bg-soft: var(--cream-deep);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --accent: var(--terracotta);
  --accent-deep: var(--terracotta-deep);
  --accent-soft: var(--terracotta-tint);
  --accent-2: var(--forest);
  --accent-2-deep: var(--forest-deep);
  --line: rgba(22, 36, 31, 0.12);
  --line-strong: rgba(22, 36, 31, 0.24);
  --shadow-sm: 0 10px 26px rgba(22, 24, 15, 0.09);
  --shadow-md: 0 30px 70px rgba(22, 24, 15, 0.14);
  --focus-ring: rgba(166, 63, 30, 0.5);

  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1280px;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

/* Panneau sombre — utilisable sur n'importe quelle section/footer pour
   ponctuer le rythme clair/sombre de la page (pas lié à un profil). */
.on-dark {
  color-scheme: dark;
  color: var(--cream);
  --bg: var(--ink);
  --bg-soft: var(--forest-deep);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: #1e322a;
  --text: var(--cream);
  --text-soft: rgba(251, 246, 237, 0.68);
  --accent: var(--amber);
  --accent-deep: #f0bd7c;
  --accent-soft: rgba(227, 164, 88, 0.2);
  --accent-2: var(--mint);
  --accent-2-deep: #7fe4bb;
  --line: rgba(251, 246, 237, 0.16);
  --line-strong: rgba(251, 246, 237, 0.3);
  --shadow-sm: 0 14px 34px rgba(2, 4, 3, 0.45);
  --shadow-md: 0 32px 70px rgba(2, 4, 3, 0.55);
  --focus-ring: rgba(227, 164, 88, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: top 180ms ease;
}

.skip-link:focus-visible {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.page-shell {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.page-content {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 20px 0 0;
}

main {
  display: block;
}

.section {
  padding: 108px 0;
  position: relative;
}

.section-tight {
  padding: 48px 0;
}

.section-full {
  width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* ── En-tête ── */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 246, 237, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo-image {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-word {
  margin-left: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.topnav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.topnav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a.is-active {
  background: var(--terracotta-tint);
  color: var(--terracotta-deep);
}

.topbar-cta {
  flex: 0 0 auto;
}

/* ── Boutons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff7ef;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
  box-shadow: 0 18px 36px var(--terracotta-tint);
}

.on-dark .button-primary {
  color: #241505;
  background: linear-gradient(135deg, var(--amber), #f0bd7c);
  box-shadow: 0 18px 36px rgba(227, 164, 88, 0.28);
}

.button-secondary {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.button-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--surface);
}

/* ── Éléments d'appui éditoriaux ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}

.section-heading {
  max-width: 660px;
}

.section-heading.center {
  margin: 0 auto;
  text-align: center;
}

.section-heading.center .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

em {
  font-style: italic;
}

/* ── Motif horizon (SVG décoratif) ── */
.horizon-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.horizon-lines svg {
  position: absolute;
  bottom: -10%;
  left: 0;
  width: 140%;
  height: auto;
}

.horizon-line {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.horizon-line-1 {
  opacity: 0.16;
}

.horizon-line-2 {
  opacity: 0.1;
}

.horizon-drift {
  animation: horizonDrift 34s ease-in-out infinite alternate;
}

@keyframes horizonDrift {
  from {
    transform: translateX(-2%);
  }
  to {
    transform: translateX(2%);
  }
}

/* Ligne de trajet qui se dessine au scroll */
.route-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 3 12;
  stroke-dashoffset: 0;
  opacity: 0.75;
}

.route-line-draw {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible .route-line-draw {
  stroke-dashoffset: 0;
}

/* ── Hero XL ── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  padding-top: 48px;
  padding-bottom: 72px;
  min-height: calc(100vh - 120px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 6.6vw, 6.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--accent-deep);
}

.hero-text {
  margin: 26px 0 0;
  max-width: 50ch;
  color: var(--text-soft);
  font-size: 1.14rem;
  line-height: 1.72;
}

.hero-route {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 26px 0 6px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.hero-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
}

.hero-fact span {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 14%;
  z-index: 0;
  background: radial-gradient(closest-side, var(--terracotta-tint), transparent 72%);
  filter: blur(6px);
}

/* ── Cadre téléphone (captures produit), pièce centrale du site ── */
.app-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  line-height: 0;
  background: var(--surface-strong);
  border: 6px solid var(--ink);
  box-shadow: var(--shadow-md);
}

.app-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual .app-frame {
  max-width: 320px;
  transform: rotate(-4deg);
}

.app-frame-float {
  animation: frameFloat 7s ease-in-out infinite;
}

@keyframes frameFloat {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-16px);
  }
}

/* ── Chips flottants décoratifs (extraits d'UI) ── */
.floating-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  animation: chipFloat 6s ease-in-out infinite;
}

.floating-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  flex: 0 0 auto;
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ── Le constat : citation éditoriale + stats géantes ── */
.pull-quote-lead {
  max-width: 900px;
  margin: 0 auto 56px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--text);
  text-wrap: balance;
}

.stat-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 44px;
  border-top: 1px solid var(--line-strong);
}

.stat-editorial {
  padding-right: 24px;
  border-left: 2px solid var(--line-strong);
  padding-left: 24px;
}

.stat-editorial:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-editorial strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.stat-editorial p {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 30ch;
}

/* ── Deux univers (bento) ── */
.split-universes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.universe-panel {
  position: relative;
  padding: clamp(36px, 4vw, 60px);
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  color: var(--text);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.universe-panel h3 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.12;
}

.universe-panel p {
  margin: 0 0 26px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 38ch;
}

.universe-panel .app-frame {
  max-width: 220px;
  margin-top: auto;
  align-self: flex-end;
  transform: rotate(3deg);
}

.universe-panel .button {
  align-self: flex-start;
}

/* ── Vitrine de l'application (bento) ── */
.app-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 38px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.showcase-card:nth-child(2) {
  transform: translateY(-28px);
  background: var(--ink);
  color: var(--cream);
  border-color: transparent;
}

.showcase-card:nth-child(2) p {
  color: rgba(251, 246, 237, 0.68);
}

.showcase-card .app-frame {
  max-width: 208px;
}

.showcase-card:nth-child(odd) .app-frame {
  transform: rotate(-3deg);
}

.showcase-card:nth-child(even) .app-frame {
  transform: rotate(3deg);
}

.showcase-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.showcase-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

/* ── Confiance ── */
.confidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.confidence-statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--text);
  text-wrap: balance;
}

.confidence-list {
  display: grid;
  gap: 24px;
}

.confidence-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.confidence-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.confidence-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
  color: var(--text);
}

.confidence-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.confidence-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.confidence-aside {
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.confidence-aside a {
  color: var(--accent-deep);
  font-weight: 700;
}

/* ── Presse & partenaires (édito) ── */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  margin-top: 44px;
}

.editorial-feature {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.editorial-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editorial-feature h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 600;
}

.editorial-feature > p {
  margin: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.7;
}

.editorial-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  border: 3px solid var(--ink);
}

.editorial-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.press-column {
  display: grid;
  gap: 18px;
}

.press-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  text-decoration: none;
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.press-card:hover,
.press-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.press-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--cream);
  padding: 6px;
}

.press-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.04rem;
}

.press-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

.press-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ── CTA final ── */
.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.final-cta-panel {
  padding: clamp(32px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
}

.final-cta-panel h3 {
  margin: 0 0 14px;
  font-size: 1.7rem;
  font-weight: 600;
}

.final-cta-panel p {
  margin: 0 0 24px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── Formulaire ── */
.request-form {
  display: grid;
  gap: 18px;
  width: min(100%, 780px);
  margin: 56px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-status {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.turnstile-wrap {
  min-height: 65px;
}

/* ── Page CTA (sous-pages) ── */
.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px clamp(28px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--cream);
}

.page-cta-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--cream);
}

.page-cta-copy p {
  margin: 0;
  max-width: 50ch;
  color: rgba(251, 246, 237, 0.7);
  line-height: 1.65;
}

.page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-cta .button-primary {
  color: #241505;
  background: linear-gradient(135deg, var(--amber), #f0bd7c);
  box-shadow: 0 18px 36px rgba(227, 164, 88, 0.28);
}

.page-cta .button-ghost {
  border-color: rgba(251, 246, 237, 0.3);
  color: var(--cream);
}

.page-cta .button-ghost:hover,
.page-cta .button-ghost:focus-visible {
  background: rgba(251, 246, 237, 0.08);
}

/* ── Grille de fonctionnalités (pages Passager / Chauffeur / Établissement) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--cream);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
  font-size: 0.96rem;
}

/* ── Fil de trajet (page Passager) ── */
.journey-path {
  position: relative;
  margin-top: 52px;
  padding-left: 44px;
}

.journey-path::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 14px);
  opacity: 0.6;
}

.journey-stage {
  position: relative;
  margin-bottom: 52px;
}

.journey-stage:last-child {
  margin-bottom: 0;
}

.journey-stage::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.journey-stage h3 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

/* ── Pied de page (toujours sombre, ponctuation finale) ── */
.footer {
  margin-top: 40px;
  padding: 56px clamp(20px, 4vw, 52px) 30px;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--cream);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(160px, 0.8fr));
  gap: 28px;
}

.footer-brand-block {
  display: grid;
  gap: 18px;
}

.footer-brand-block .brand-word {
  color: var(--cream);
}

.footer-copy {
  margin: 0;
  max-width: 40ch;
  color: rgba(251, 246, 237, 0.66);
  line-height: 1.65;
  font-size: 0.94rem;
}

.footer-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-pillars span {
  padding: 7px 12px;
  border: 1px solid rgba(251, 246, 237, 0.22);
  border-radius: 999px;
  color: rgba(251, 246, 237, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-heading {
  display: block;
  margin-bottom: 16px;
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: rgba(251, 246, 237, 0.66);
  font-size: 0.94rem;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 246, 237, 0.16);
  color: rgba(251, 246, 237, 0.6);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: var(--amber);
  font-weight: 700;
}

.footer-mobile {
  display: none;
}

/* ── Modale confidentialité ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 36, 31, 0.55);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(100%, 900px);
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(22, 24, 15, 0.3);
}

.modal-body {
  padding: 36px;
}

.modal-body h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
}

.modal-body > p {
  margin: 0 0 26px;
  max-width: 68ch;
  color: var(--text-soft);
  line-height: 1.75;
}

.modal-close {
  position: sticky;
  top: 16px;
  z-index: 2;
  float: right;
  margin: 16px 16px 0 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.policy-sections {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.policy-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.policy-card p,
.policy-list {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.policy-card p + p,
.policy-card p + .policy-list {
  margin-top: 12px;
}

.policy-list {
  padding-left: 18px;
}

.policy-list li + li {
  margin-top: 8px;
}

.legal-hero {
  margin-bottom: 36px;
}

.legal-title {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-hero p {
  max-width: 62ch;
  color: var(--text-soft);
  line-height: 1.75;
}

/* ── Bandeau cookies ── */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 22px;
  align-items: center;
  width: min(100% - 24px, 760px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(22, 24, 15, 0.22);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-copy h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.cookie-banner-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner-actions .button {
  min-width: 120px;
  min-height: 44px;
  padding: 10px 16px;
}

.cookie-preferences {
  position: fixed;
  right: 20px;
  bottom: 140px;
  z-index: 151;
  width: min(100% - 24px, 460px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(22, 24, 15, 0.22);
}

.cookie-preferences[hidden] {
  display: none;
}

.cookie-preferences-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cookie-preferences-head h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
}

.cookie-preferences-head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.cookie-close {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.cookie-option input {
  margin-top: 2px;
  accent-color: var(--accent);
}

.cookie-option strong,
.cookie-option span {
  display: block;
}

.cookie-option strong {
  font-size: 0.96rem;
}

.cookie-option span {
  margin-top: 4px;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.9rem;
}

.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ── Reveal générique ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 750ms ease, transform 750ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-route {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-facts {
    justify-content: center;
  }

  .split-universes,
  .final-cta,
  .confidence-layout,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .app-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-card:nth-child(2) {
    transform: none;
  }

  .stat-editorial-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stat-editorial {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    padding-top: 24px;
  }

  .stat-editorial:first-child {
    border-top: none;
    padding-top: 0;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* La navigation bascule en menu mobile dès qu'elle ne tient plus sur une
   ligne (5 liens + logo + CTA) plutôt qu'au seuil générique du contenu. */
@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topnav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
  }

  .topbar.menu-open .topnav {
    display: flex;
  }

  .topbar.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .topnav a {
    width: 100%;
    padding: 12px 14px;
    text-align: center;
  }

  .topbar-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-content {
    width: min(100% - 20px, var(--max-width));
  }

  .section {
    padding: 68px 0;
  }

  .topbar {
    top: 10px;
    padding: 8px 8px 8px 14px;
  }

  .app-showcase {
    grid-template-columns: 1fr;
  }

  .app-showcase .showcase-card {
    transform: none !important;
  }

  .page-cta,
  .universe-panel {
    text-align: left;
  }

  .universe-panel .app-frame {
    align-self: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    grid-template-columns: 1fr;
    max-height: 46vh;
    overflow: auto;
  }

  .cookie-preferences {
    left: 10px;
    right: 10px;
    bottom: 120px;
    width: auto;
  }

  .policy-sections {
    grid-template-columns: 1fr;
  }

  .confidence-item {
    grid-template-columns: 1fr;
  }
}

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

  .reveal,
  .reveal.is-visible,
  .horizon-drift,
  .app-frame-float,
  .floating-chip,
  .button,
  .press-card,
  .feature-card,
  .showcase-card {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .route-line-draw {
    stroke-dashoffset: 0 !important;
  }
}
