/* ────────────────────────────────────────────────
   Adaptive Logic — M5 Nordic consultancy
   Production styles partagés (homepage + sous-pages)
   ──────────────────────────────────────────────── */

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

:root {
  --bg: #FAFAF8;
  --ink: #1A1A1A;
  --accent: #2E5D4F;
  --accent-soft: #3a7363;
  --sand: #C7C2B6;
  --ink-light: #5A5A52;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Utility ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  display: block;
  margin-bottom: 32px;
}

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

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

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--sand);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-light);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 8px 16px;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--bg);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--bg);
  background-color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 12px 22px;
  transition: opacity 0.15s ease;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.82;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--sand);
  padding: 20px var(--gutter);
  background-color: var(--bg);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--sand);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ── Hero ── */
.hero {
  padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 96px);
  border-bottom: 1px solid var(--sand);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
}

.hero-content {
  grid-column: 1 / 9;
}

.hero-visual {
  grid-column: 9 / 13;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 16ch;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.schema-svg {
  width: 180px;
  height: 200px;
}

/* ── Section generic ── */
section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--sand);
}

.section-heading {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 48px;
  max-width: 22ch;
}

.section-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 40px;
}

/* ── Section 02 — Approche ── */
.approche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.approche-item {
  padding-right: 48px;
  border-right: 1px solid var(--sand);
}

.approche-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 48px;
}

.approche-item:nth-child(2) {
  padding-left: 48px;
}

.approche-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.approche-item p {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.75;
}

/* ── Section 03 — Services ── */
.services-list {
  list-style: none;
}

.service-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto 28px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--sand);
  transition: padding-left 0.15s ease;
  cursor: pointer;
}

.service-row:first-child {
  border-top: 1px solid var(--sand);
}

.service-row:hover {
  padding-left: 8px;
}

.service-row:hover .service-arrow {
  transform: translateX(5px);
}

.service-num {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 11px;
  color: var(--sand);
  letter-spacing: 0.06em;
}

.service-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.service-info p {
  font-size: 13px;
  color: var(--ink-light);
  font-weight: 400;
}

.service-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}

.service-arrow {
  font-size: 18px;
  color: var(--ink-light);
  transition: transform 0.2s ease;
  user-select: none;
}

/* ── Section 04 — Cas clients ── */
.cas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.cas-item {
  padding: 0 48px 0 0;
  border-right: 1px solid var(--sand);
}

.cas-item:nth-child(2) {
  padding: 0 48px;
}

.cas-item:last-child {
  border-right: none;
  padding: 0 0 0 48px;
}

.cas-secteur {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
  display: block;
}

.cas-client {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cas-kpi {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1;
}

.cas-desc {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.7;
}

/* ── Section 05 — Témoignages ── */
.temoignages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.temoignage {
  padding-top: 28px;
  border-top: 2px solid var(--accent);
}

.temoignage blockquote {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 24px;
}

.temoignage cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-light);
}

/* ── Section 06 — Démarrer ── */
.demarrer-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.demarrer-inner h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.demarrer-inner .lead {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-light);
  margin-bottom: 36px;
  line-height: 1.65;
}

.demarrer-inner .email-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}

.demarrer-inner .email-link:hover {
  opacity: 0.7;
}

/* ── Sub-page hero ── */
.subhero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--sand);
}

.subhero h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 18ch;
}

.subhero p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 60ch;
}

/* ── Service detail rows ── */
.service-detail {
  padding: clamp(48px, 7vw, 80px) 0;
  border-bottom: 1px solid var(--sand);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: flex-start;
}

.service-detail-meta {
  position: sticky;
  top: 96px;
}

.service-detail-meta .num {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-bottom: 12px;
  display: block;
}

.service-detail-meta h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.service-detail-meta .price {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-detail-meta .delivery {
  font-size: 13px;
  color: var(--ink-light);
  font-family: ui-monospace, 'Courier New', monospace;
  letter-spacing: 0.04em;
}

.service-detail-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.service-detail-content h3:first-child {
  margin-top: 0;
}

.service-detail-content p,
.service-detail-content li {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-detail-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.service-detail-content ul li {
  position: relative;
  padding-left: 24px;
}

.service-detail-content ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.contact-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 28px 0 8px;
  letter-spacing: -0.01em;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p,
.contact-info a {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.65;
}

.contact-info a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  padding-bottom: 1px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg);
  border: 1px solid var(--sand);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background-color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 14px 28px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.contact-form button:hover {
  opacity: 0.85;
}

.contact-form-note {
  font-size: 12px;
  color: var(--ink-light);
  margin-top: 8px;
}

/* ── About / Manifesto ── */
.about-section {
  padding: clamp(48px, 7vw, 80px) 0;
  border-bottom: 1px solid var(--sand);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: flex-start;
}

.about-content h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-content p + p {
  color: var(--ink-light);
}

/* ── Footer ── */
footer {
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--sand);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.75;
  display: block;
  margin-bottom: 4px;
  transition: color 0.12s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 12px;
  color: var(--sand);
}

.footer-bottom a:hover {
  color: var(--ink-light);
}

/* ── Focus accessible ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    grid-column: 1 / -1;
  }

  .hero-visual {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .approche-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .approche-item {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--sand);
  }

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

  .approche-item:nth-child(2) {
    padding-left: 0;
  }

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

  .cas-item {
    padding: 32px 0;
    border-right: none;
    border-bottom: 1px solid var(--sand);
  }

  .cas-item:nth-child(2) {
    padding: 32px 0;
  }

  .cas-item:last-child {
    border-bottom: none;
    padding: 32px 0 0;
  }

  .temoignages-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-detail-meta {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .service-row {
    grid-template-columns: 1fr 24px;
    gap: 12px;
  }

  .service-num,
  .service-price {
    display: none;
  }

  .service-arrow {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

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

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