/* Maxime Faivre, site vitrine.
   Tokens repris du design system « Maxime Faivre » (tokens.json). */

:root {
  /* Couleurs */
  --surface: #ffffff;
  --surface-alt: #f6f8f8;
  --mint: #eef6f4;
  --ink: #172033;
  --muted: #3b4558;
  --faint: #5a6475;
  --teal: #0f7b73;
  --teal-dark: #0a5c56;
  --teal-mid: #5fb3a9;
  --teal-light: #b5ddd7;
  --on-teal: #e8f6f3;
  --line: #c9d6d3;
  --success: #22a06b;

  /* Typographie */
  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-sans: "Funnel Sans", system-ui, sans-serif;

  /* Espacements */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  /* Rayons */
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 28px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--teal);
}
a:hover {
  color: var(--teal-dark);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.band {
  background: var(--surface-alt);
}

/* ---------- Titres ---------- */

.display,
.title,
.subtitle,
.heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

.display {
  font-size: clamp(52px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.title {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 760px;
}

.subtitle {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.heading {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 680px;
}

.body {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-main {
  background: var(--teal);
  color: #ffffff;
}
.btn-main:hover {
  background: var(--teal-dark);
  color: #ffffff;
}

.btn-line {
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn-line:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-white {
  min-height: 56px;
  padding: 0 24px;
  background: #ffffff;
  color: var(--teal-dark);
}
.btn-white:hover {
  background: var(--on-teal);
  color: var(--teal-dark);
}

.btn-ghost {
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid var(--on-teal);
  color: #ffffff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.site-header {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover {
  color: var(--teal);
}
.nav .nav-cta {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ---------- Accroche ---------- */

.hero {
  padding-top: 72px;
  padding-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 900px;
}

.dispo {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 15px;
  color: var(--muted);
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--teal);
}
.dot-success {
  background: var(--success);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-1);
}

/* Planning des disponibilités */

.planning {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
  padding-top: 12px;
}

.planning-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.planning-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.legend {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.legend i {
  width: 18px;
  height: 8px;
  border-radius: var(--radius-pill);
}

.swatch-busy {
  background: var(--teal);
}
.swatch-free {
  background: var(--teal-light);
}

.months {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 6px;
}
.months li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.months .bar {
  height: 10px;
  border-radius: var(--radius-pill);
}
.months .label {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

/* Illustration : des points qui se rangent */

.hero-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.scatter {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  background: var(--mint);
  overflow: hidden;
}

.scatter-base {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 36px;
  height: 2px;
  background: var(--line);
  opacity: 0;
}

.scatter-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
}

.hero-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--muted);
}

.progress {
  flex: 0 0 160px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--teal);
}

/* ---------- Références ---------- */

.trust {
  padding-bottom: var(--space-7);
}

.trust-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

.logos {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}
.logos li {
  display: flex;
  align-items: center;
  height: 48px;
}
.logos img {
  display: block;
  width: auto;
}

/* ---------- Sections génériques ---------- */

.section {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Services */

.services {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.svc {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.svc:hover {
  transform: translateX(12px);
}

.svc-head {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.svc-head .subtitle {
  font-weight: 500;
}

.svc-body {
  flex: 1.6 1 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-format {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.icon {
  display: block;
}

/* Méthode */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.steps li {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: var(--space-3);
  border-top: 6px solid var(--teal);
}
.steps li:nth-child(2) {
  border-top-color: var(--teal-mid);
}
.steps li:nth-child(3) {
  border-top-color: var(--teal-light);
}

/* Résultats */

.results-wrap {
  padding-bottom: var(--space-7);
}

.results {
  background: var(--mint);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.kpis {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  /* 32 px entre colonnes : les quatre résultats tiennent sur une ligne à 1440 px. */
  gap: 40px 32px;
}
.kpis li {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kpi-value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.kpi-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.note {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* Parcours */

.about {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 64px;
}

.portrait {
  flex: 0 1 380px;
  min-width: 260px;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--mint);
}

.about-body {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.about-intro .body {
  max-width: 520px;
}

.checklist {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
  color: var(--ink);
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.companies {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.companies div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.companies dt {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.companies dd {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  align-self: center;
}

/* Contact */

.contact {
  background: var(--teal);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: flex-end;
  justify-content: space-between;
}

.contact-text {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-person {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.contact-person img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 3px solid var(--on-teal);
}
.contact-person p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--on-teal);
}
.contact-person strong {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.contact-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.contact .body {
  color: var(--on-teal);
  max-width: 560px;
}

.contact-actions {
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-actions .btn {
  display: flex;
}

.contact-mail {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--on-teal);
  text-align: center;
}
.contact-mail a {
  color: var(--on-teal);
}
.contact-mail a:hover {
  color: #ffffff;
}

/* Pied de page */

.site-footer {
  padding-top: 8px;
  padding-bottom: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 14px;
  line-height: 1.4;
  color: var(--faint);
}
.site-footer p {
  margin: 0;
}
.site-footer nav {
  display: flex;
  gap: var(--space-3);
}
.site-footer a {
  color: var(--faint);
}
.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .container {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
  .nav {
    gap: 18px;
  }
  .hero {
    padding-top: 40px;
  }
  .scatter {
    height: 320px;
  }
  .subtitle {
    font-size: 28px;
  }
  .kpi-value {
    font-size: 48px;
  }
  .months .label {
    font-size: 12px;
  }
  .svc-head,
  .svc-body,
  .about-body,
  .contact-text {
    flex-basis: 100%;
  }
  .portrait {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .svc,
  .svc:hover {
    transition: none;
    transform: none;
  }
}
