@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #0b101a;
  --bg-soft: #111a29;
  --bg-card: #162236;
  --line: rgba(205, 218, 237, 0.16);
  --text: #f4f7fb;
  --muted: #b8c2d1;
  --muted-dark: #8d9aad;
  --accent: #d9e4f7;
  --accent-dark: #17243a;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(780px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 26, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav > a:not(.btn-contact) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav > a:not(.btn-contact):hover {
  color: var(--text);
}

.btn-contact,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #111827;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-contact {
  min-height: 48px;
  padding: 0 20px;
}

.btn-primary {
  min-height: 54px;
  padding: 0 26px;
}

.btn-contact:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #ffffff;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 120px 0 100px;
  background:
    radial-gradient(circle at 50% 4%, rgba(88, 119, 164, 0.18), transparent 43%),
    linear-gradient(135deg, #0a101a 0%, #0f1725 48%, #131d2e 100%);
}

.hero-content {
  max-width: 980px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #9eabc0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero h1,
section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 920px;
  margin: 0 auto 24px;
  color: #ffffff;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.08;
}

.subtitle {
  max-width: 820px;
  margin: 0 auto;
  color: #e0e7f2;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-description {
  max-width: 720px;
  margin: 30px auto 34px;
  color: var(--muted);
  font-size: 1.02rem;
}

.cta-note {
  margin: 13px 0 0;
  color: #9eabc0;
  font-size: 0.82rem;
}

section {
  padding: 100px 0;
}

section h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(2rem, 3.3vw, 3.05rem);
  line-height: 1.18;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 44px;
  color: var(--muted);
  font-size: 1.05rem;
}

.problem {
  background: #f3f5f8;
  color: #1d2939;
}

.problem .section-kicker {
  color: #5b6c83;
}

.problem h2 {
  color: #172132;
}

.problem p:not(.section-kicker) {
  color: #455468;
  font-size: 1.05rem;
}

.offer {
  background: var(--bg);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 1;
}

.service-number,
.method-step > span {
  display: block;
  margin-bottom: 24px;
  color: #a7b8d2;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-card h3,
.audience-card h3,
.method-step h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.35;
}

.service-card p,
.audience-card p,
.method-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.method {
  background: var(--bg-soft);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.method-step {
  min-height: 230px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience {
  background: #101928;
}

.audience .section-kicker,
.audience h2,
.audience .section-intro {
  text-align: center;
}

.audience .section-intro {
  margin-right: auto;
  margin-left: auto;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.audience-card {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
}

.contact {
  background:
    radial-gradient(circle at 50% 0%, rgba(123, 153, 199, 0.16), transparent 45%),
    #0b101a;
}

.contact-inner {
  text-align: center;
}

.contact .section-kicker,
.contact .section-intro {
  text-align: center;
}

.contact p:not(.section-kicker):not(.contact-note) {
  max-width: 690px;
  margin: 0 auto 32px;
  color: var(--muted);
}

.contact-note {
  margin: 18px 0 0;
  color: #9eabc0;
  font-size: 0.9rem;
}

.contact-note a {
  color: #e5edfc;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: #080d15;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8794a9;
  font-size: 0.82rem;
}

.footer-wrap p {
  margin: 0;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .nav-wrap {
    min-height: 76px;
  }

  .brand {
    font-size: 1rem;
    gap: 9px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav {
    gap: 12px;
  }

  .nav > a:not(.btn-contact) {
    display: none;
  }

  .btn-contact {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 570px;
    padding: 90px 0 70px;
  }

  section {
    padding: 72px 0;
  }

  .card-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .method-step,
  .audience-card {
    min-height: auto;
  }

  .footer-wrap {
    flex-direction: column;
    gap: 4px;
  }
}
/* Correctif final du thème */
html,
body {
  min-height: 100%;
  background: #0b101a !important;
}

body {
  color: #f4f7fb !important;
}

.site-header {
  background: rgba(11, 16, 26, 0.97) !important;
  border-bottom: 1px solid rgba(205, 218, 237, 0.16) !important;
}

.brand,
.nav > a:not(.btn-contact) {
  color: #f4f7fb !important;
}

.nav a.btn-contact {
  color: #111827 !important;
}

.nav > a:not(.btn-contact):hover {
  color: #d9e4f7 !important;
}

.btn-contact,
.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #d9e4f7 !important;
  color: #111827 !important;
  border: 1px solid #d9e4f7 !important;
  border-radius: 7px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.btn-contact {
  min-height: 48px !important;
  padding: 0 20px !important;
}

.btn-primary {
  min-height: 54px !important;
  padding: 0 26px !important;
}

.btn-contact:hover,
.btn-primary:hover {
  background: #ffffff !important;
  color: #111827 !important;
}

.problem {
  background: #f3f5f8 !important;
}

.offer,
.method,
.audience,
.contact {
  background: #0b101a !important;
}

.method {
  background: #111a29 !important;
}

.audience {
  background: #101928 !important;
}

.service-card,
.audience-card {
  background: #162236 !important;
  border-color: rgba(205, 218, 237, 0.16) !important;
}

.service-card h3,
.audience-card h3,
.method-step h3 {
  color: #ffffff !important;
}

.service-card p,
.audience-card p,
.method-step p {
  color: #b8c2d1 !important;
}

.site-footer {
  background: #080d15 !important;
}

/* ---- Périmètre et conditions ---- */
.scope-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.scope-col {
  padding: 30px;
  border: 1px solid rgba(205, 218, 237, 0.16);
  border-radius: 12px;
  background: #131d2e;
}

.scope-col h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.scope-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-col li {
  position: relative;
  padding: 7px 0 7px 20px;
  color: #b8c2d1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.scope-col li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 7px;
  height: 1px;
  background: #7f8fa6;
}

/* ---- Limites d'intervention ---- */
.limits {
  background: #f3f5f8 !important;
  color: #1d2939;
}

.limits .section-kicker {
  color: #5b6c83;
}

.limits h2 {
  color: #172132 !important;
}

.limits-intro {
  max-width: 700px;
  margin: 0 0 30px;
  color: #455468;
  font-size: 1.05rem;
}

.limits-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d7dde6;
}

.limits-list li {
  padding: 15px 0 15px 28px;
  border-bottom: 1px solid #d7dde6;
  color: #33404f;
  font-size: 1rem;
  line-height: 1.55;
  position: relative;
}

.limits-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: #8a99ad;
}

.limits-note {
  margin: 0;
  padding: 20px 24px;
  border-left: 3px solid #6d7f96;
  background: #e9edf3;
  color: #33404f;
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .scope-box {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pages legales ---------- */

.legal-hero {
  padding: 84px 0 34px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  margin: 10px 0 14px;
}

.legal-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

.legal-body {
  padding: 52px 0 78px;
}

.legal-body h2 {
  font-size: 1.22rem;
  margin: 48px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}

.legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-body h3 {
  font-size: 1rem;
  margin: 28px 0 8px;
  color: var(--accent);
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  max-width: 74ch;
}

.legal-body ul {
  padding-left: 20px;
}

.legal-body li {
  margin-bottom: 7px;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 0.93rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.legal-table th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.legal-note {
  margin-top: 34px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.93rem;
}

.legal-note p {
  margin: 0;
}

.legal-updated {
  margin-top: 40px;
  font-size: 0.86rem;
  color: var(--muted-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #8794a9;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 680px) {
  .legal-hero {
    padding: 60px 0 28px;
  }

  .legal-table th {
    white-space: normal;
  }
}

/* ---- Prolongements ---- */
.extend {
  background: #0e1725 !important;
}

.extend-note {
  max-width: 820px;
  margin: 26px 0 0;
  color: #b8c2d1;
  font-size: 0.95rem;
  line-height: 1.6;
}
