/* =========================================================================
   Landing — SaaS de récupération des remboursements transporteurs
   Palette : encre profonde + un seul accent signal. Interface « on gère
   votre argent » : sobre, dense, chiffrée. Aucun effet gratuit.
   ========================================================================= */

:root {
  --ink: #0d1b2a;
  --ink-2: #142a3f;
  --ink-soft: #46596b;
  --ink-mute: #6b7d8f;
  --line: #dde5ec;
  --line-soft: #eef3f7;
  --paper: #ffffff;
  --paper-2: #f6f9fb;
  --accent: #0f766e;
  --accent-dark: #0b5d56;
  --accent-soft: #e6f4f2;
  --gain: #1e7b4d;
  --warn: #b07800;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(13, 27, 42, 0.06), 0 8px 24px rgba(13, 27, 42, 0.06);
  --shadow-lg: 0 2px 4px rgba(13, 27, 42, 0.06), 0 24px 60px rgba(13, 27, 42, 0.12);
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.032em;
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.028em;
}
h3 {
  font-size: 20px;
}

p {
  margin: 0 0 1em;
}
a {
  color: var(--accent);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 62ch;
}

section {
  padding: 92px 0;
}
.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 64ch;
  margin-bottom: 48px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-mute);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  transform: translateY(-1px);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--ink);
}

/* Les deux actions de l'en-tête : se connecter, ou demander l'audit. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

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

.hero {
  padding: 84px 0 72px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(230, 244, 242, 0) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 20px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-mute);
}

/* Carte « ce que voit le client » */
.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
}
.dot-row {
  display: flex;
  gap: 6px;
}
.dot-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.hero-rows {
  padding: 6px 0;
}
.hero-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.hero-row:last-child {
  border-bottom: 0;
}
.hero-row .track {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-mute);
}
.hero-row .svc {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}
.hero-row .amount {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-top: 1px solid var(--line-soft);
}
.hero-total span {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-total strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag-late {
  background: #fdecea;
  color: #a3271c;
}
.tag-ok {
  background: #e8f4ed;
  color: var(--gain);
}
.tag-wait {
  background: #fdf3e0;
  color: var(--warn);
}

/* ---------- Bandeau de repères ---------- */

.facts {
  border-block: 1px solid var(--line-soft);
  background: var(--paper-2);
  padding: 34px 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.fact strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.fact span {
  font-size: 14.5px;
  color: var(--ink-mute);
}

/* ---------- Simulateur ---------- */

.sim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
}
.sim-field {
  margin-bottom: 26px;
}
.sim-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  gap: 12px;
}
.sim-field label output {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.sim-field .hint {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin: 8px 0 0;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: var(--line);
  outline-offset: 4px;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(13, 27, 42, 0.28);
  cursor: pointer;
}
input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(13, 27, 42, 0.28);
  cursor: pointer;
}

.sim-result {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
  color: #cfdae4;
  position: sticky;
  top: 92px;
}
.sim-result h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.sim-big {
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 4px;
}
.sim-big small {
  font-size: 16px;
  font-weight: 600;
  color: #8fa5b8;
  letter-spacing: 0;
}
.sim-lines {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 18px;
}
.sim-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 14.5px;
}
.sim-line b {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sim-line.net {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 16px;
}
.sim-line.net b {
  color: #7ee2b8;
  font-weight: 800;
}
.sim-disclaimer {
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #7e93a6;
}

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  padding-top: 22px;
  border-top: 2px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.step h3 {
  font-size: 17.5px;
  margin-bottom: 6px;
}
.step p {
  font-size: 15px;
  margin: 0;
}

/* ---------- Règles / cartes ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}
.card p {
  font-size: 15px;
  margin: 0;
}
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card-icon svg {
  width: 19px;
  height: 19px;
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.rules-table caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 14px;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.rules-table th,
.rules-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.rules-table th {
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rules-table tr:last-child td {
  border-bottom: 0;
}
.rules-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.table-scroll {
  overflow-x: auto;
}

/* ---------- Tarif ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.price-card {
  background: var(--ink);
  color: #cfdae4;
  border-radius: var(--radius-lg);
  padding: 38px;
}
.price-card h3 {
  color: #fff;
  font-size: 22px;
}
.price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 6px;
}
.price-main strong {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-main span {
  font-size: 16px;
  color: #8fa5b8;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.price-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 15px;
}
.price-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 4px;
  color: #7ee2b8;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 800px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 34px 19px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-mute);
  border-bottom: 2px solid var(--ink-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq details p {
  padding: 0 40px 20px 0;
  font-size: 15.5px;
  margin: 0 0 0.6em;
}

/* ---------- Formulaire ---------- */

.cta-band {
  background: var(--ink);
  color: #cfdae4;
}
.cta-band h2 {
  color: #fff;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e4ecf2;
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
}
.field input::placeholder {
  color: #7e93a6;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.field select option {
  color: #0d1b2a;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: #9fb2c2;
  margin: 18px 0;
}
.consent input {
  margin-top: 4px;
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.form-msg {
  margin-top: 14px;
  font-size: 14.5px;
  min-height: 1.4em;
}
.form-msg.err {
  color: #ffb3aa;
}
.form-msg.ok {
  color: #7ee2b8;
}

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 60px;
  font-size: 14.5px;
  color: var(--ink-mute);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}
.footer-note {
  max-width: 46ch;
  font-size: 13.5px;
  margin-top: 14px;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink);
}

.draft-note {
  background: #fdf3e0;
  border: 1px solid #f0dcb0;
  color: #6b4f10;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 28px;
}
.draft-note strong {
  color: #6b4f10;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .sim,
  .pricing,
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .steps,
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .sim-result {
    position: static;
  }
  .site-nav {
    display: none;
  }
  /*
    La navigation disparaît, mais PAS la connexion : un client qui revient
    consulter ses réclamations le fait souvent depuis son téléphone, et lui
    faire chercher son point d'entrée est le meilleur moyen qu'il écrive au
    support à la place. On garde donc les deux actions, en les resserrant.
  */
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .header-actions .btn {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 62px 0;
  }
  .hero {
    padding: 52px 0 48px;
  }
  .steps,
  .facts-grid {
    grid-template-columns: 1fr;
  }
  .sim,
  .price-card,
  .form-card {
    padding: 22px;
  }
  /*
    Sur les écrans les plus étroits, les deux boutons ne tiennent plus côte à
    côte avec le logo. On garde « Connexion », qui est un point d'entrée sans
    équivalent ailleurs sur la page ; l'audit gratuit, lui, est repris deux
    fois plus bas dans le hero et dans le formulaire.
  */
  .header-actions .btn-primary {
    display: none;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
