:root {
  --ink: #0e1726;
  --ink-soft: #5b6675;
  --muted: #8a93a1;
  --line: #e7eaef;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --dark: #0d1320;
  --blue-100: #eef4f9;
  --blue-200: #dce9f4;
  --radius: 16px;
  --container: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  border-radius: 10px;
  transition: transform .15s ease, background .2s ease, opacity .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1c2536; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn .arrow { font-size: 15px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(214, 230, 243, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }

/* Décalage d'ancrage pour ne pas être masqué par le header sticky */
#methode, #etude-de-cas, #temoignages, #contact { scroll-margin-top: 84px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #aacde7 0%, #c6dded 30%, #e6f0f7 65%, #ffffff 100%);
  padding: 64px 0 130px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 30px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2f6dbf;
}
.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.06;
  max-width: 720px;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-checks {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-checks li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.check { color: #2f7a4d; font-weight: 700; }

/* ===== Video embed ===== */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1320;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 30px 60px -30px rgba(20,40,70,0.45);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hero-video {
  width: 100%;
  max-width: 760px;
  margin: 46px auto 0;
}

/* ===== Stats card ===== */
.stats-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px -25px rgba(20,40,70,0.28);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -75px;
  position: relative;
  z-index: 5;
}
.stat {
  padding: 28px 26px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.stat-label { font-size: 13.5px; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  max-width: 540px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 480px;
}

/* ===== Pillar section head (centered, wider) ===== */
#methode .section-label,
#methode .section-title,
#methode .section-sub {
  text-align: center;
}
#methode .section-title {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
#methode .section-sub {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Pillar cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  box-shadow: 0 18px 40px -28px rgba(20,40,70,0.35);
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--blue-100);
  color: #335c86;
  display: grid;
  place-items: center;
}
.card-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.card-text { font-size: 15px; color: var(--ink-soft); }

/* ===== Case studies ===== */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 44px;
}
.case-item {}
.case-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin-bottom: 22px;
}
.case-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  align-items: center;
}
.case-item:nth-child(even) .case-grid {
  grid-template-columns: 1fr 1.45fr;
}
.case-item:nth-child(even) .case-video { order: 2; }
.case-item:nth-child(even) .case-points { order: 1; }
.case-video { border-color: var(--line); }
.case-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
}
.case-bullet {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--blue-100);
  color: #2f7a4d;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

/* ===== Testimonials ===== */
.testi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
}
.testi-head .section-title { margin-bottom: 0; }
.testi-head-sub {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 320px;
  text-align: right;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.testi-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--blue-100);
  padding: 18px 26px;
  margin: -26px -26px 22px;
}
.testi-topic {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.3;
}
.testi-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testi-stats li {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.testi-stats li strong {
  color: var(--ink);
  font-weight: 700;
}
.testi-quote {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  flex-grow: 1;
}
.testi-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
img.avatar {
  display: block;
  object-fit: cover;
  background: var(--blue-100);
}
.person-name { font-size: 14.5px; font-weight: 700; }
.person-role { font-size: 13px; color: var(--muted); }

/* ===== Final CTA ===== */
.cta {
  background: linear-gradient(180deg, #d4e6f3 0%, #cfe2f1 100%);
  padding: 96px 0;
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  max-width: 460px;
  margin-bottom: 18px;
}
.cta-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 440px;
  margin-bottom: 34px;
}

/* ===== Contact form ===== */
.cta-form {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}
.form-row { display: flex; gap: 16px; }
.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  min-width: 0;
}
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.req { color: #c0392b; }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c4d3e0;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: #2f6dbf;
  box-shadow: 0 0 0 3px rgba(47,109,191,0.16);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9aa6b2; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.form-field select:required:invalid { color: #9aa6b2; }
.form-field select option { color: var(--ink); }
.form-field select option[disabled] { color: #9aa6b2; }
.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}
.form-success {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copy { font-size: 13.5px; color: var(--muted); }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.footer-nav a:hover { color: var(--ink); }

/* ===== Mini footer (discret) ===== */
.mini-footer {
  background: var(--bg);
  padding: 18px 0;
}
.mini-footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.mini-footer-copy { font-size: 12px; color: #b3bac4; }
.mini-footer-links { display: flex; gap: 18px; }
.mini-footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color .15s ease;
}
.mini-footer-links a:hover { color: var(--ink-soft); text-decoration: underline; }

/* ===== Pages légales & remerciement ===== */
.subpage { min-height: 100vh; display: flex; flex-direction: column; }
.subpage-head {
  background: linear-gradient(180deg, #aacde7 0%, #d3e6f2 100%);
  padding: 26px 0;
}
.subpage-head .header-inner { height: auto; }
.legal {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.legal .legal-updated { font-size: 13.5px; color: var(--muted); margin-bottom: 36px; }
.legal h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 34px 0 12px;
}
.legal p, .legal li { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: #2f6dbf; text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.back-link:hover { color: var(--ink); }

/* Page remerciement */
.thanks {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, #e6f0f7 0%, #ffffff 60%);
}
.thanks-inner { max-width: 540px; }
.thanks-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #e6f4ec;
  color: #2f7a4d;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
}
.thanks h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.thanks p { font-size: 17px; color: var(--ink-soft); margin-bottom: 32px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-title { font-size: 40px; }
  .stats-card { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cards-grid { grid-template-columns: 1fr; }
  .case-grid,
  .case-item:nth-child(even) .case-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-item:nth-child(even) .case-video,
  .case-item:nth-child(even) .case-points { order: initial; }
  .case-list { gap: 56px; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-head { flex-direction: column; align-items: flex-start; }
  .testi-head-sub { text-align: left; }
  .section-title { font-size: 28px; }
  .cta-title { font-size: 32px; }
}

@media (max-width: 520px) {
  .hero-title { font-size: 32px; }
  .brand-name { display: none; }
  .header-cta { padding: 9px 14px; }
  .mini-footer-inner { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .mini-footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .thanks h1 { font-size: 30px; }
  .stats-card { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-direction: column; gap: 12px; }
  .form-row { flex-direction: column; gap: 0; }
}
