:root {
  --navy: #0c447c;
  --blue: #378add;
  --teal: #5dcaa5;
  --ink: #14263a;
  --muted: #5a6b7c;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --line: #e3e9ef;
  --sidebar-w: 280px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

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

/* ---------- Mise en page ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Barre latérale ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  overflow-y: auto;
}

.logo img {
  width: 200px;
  height: auto;
}

.menu-toggle {
  display: none;
}

.nav {
  margin-top: 28px;
  display: grid;
  gap: 6px;
}

.nav-parent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-parent:hover {
  background: var(--bg);
}

button.nav-parent::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}

button.nav-parent[aria-expanded="false"]::after {
  transform: rotate(-45deg);
}

button.nav-parent[aria-expanded="false"] + .nav-sub {
  display: none;
}

.nav-sub {
  list-style: none;
  margin: 2px 0 8px;
  padding: 0 0 0 12px;
}

.nav-sub a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
}

.nav-sub a:hover {
  color: var(--navy);
  border-left-color: var(--blue);
}

.nav-sub a.is-active {
  color: var(--navy);
  font-weight: 700;
  border-left-color: var(--navy);
  background: linear-gradient(90deg, #e8f1fb, transparent);
}

.nav-link.is-active {
  background: #e8f1fb;
}

.sidebar-foot {
  margin-top: auto;
  padding: 0 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Contenu central ---------- */
.content {
  padding: 64px 48px;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  animation: fade 0.25s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.crumb {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--navy);
}

h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--ink);
}

.page p {
  margin: 0 0 16px;
  color: var(--muted);
}

.page .intro {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 24px;
}

/* Liste numérotée */
.list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.list li {
  counter-increment: item;
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 18px;
  font-weight: 700;
  color: var(--blue);
}

.list p,
.cards p {
  margin: 0;
}

/* Cartes */
.cards {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.cards li {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 12px;
}

/* Fiche d'informations */
.facts {
  margin: 28px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

/* Captures */
.shots {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.shots figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.shots img {
  margin: 0 auto;
  border-radius: 8px;
}

.shots figcaption {
  margin-top: 12px;
  font-size: 0.93rem;
  color: var(--muted);
}

.shots strong {
  color: var(--ink);
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #082f57;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .sidebar {
    position: sticky;
    z-index: 10;
    height: auto;
    max-height: 100vh;
    max-height: 100dvh;
    overscroll-behavior: contain;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo img {
    width: 150px;
  }

  .menu-toggle {
    display: inline-block;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font: inherit;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
  }

  .nav {
    display: none;
    margin-top: 12px;
  }

  .nav.is-open {
    display: grid;
  }

  .sidebar-foot {
    display: none;
  }

  .content {
    padding: 32px 20px 48px;
  }

  .nav-parent {
    min-height: 48px;
  }

  .nav-sub a {
    padding-block: 12px;
  }

  .facts div {
    flex-direction: column;
    gap: 0;
  }

  .facts dd {
    text-align: left;
  }
}

/* Tablette en portrait : un peu plus d'air */
@media (min-width: 561px) and (max-width: 860px) {
  .content {
    padding: 40px 40px 56px;
  }
}

/* Écrans tactiles (tablettes en paysage, etc.) : zones de clic d'au moins 44 px */
@media (pointer: coarse) {
  .nav-parent {
    min-height: 48px;
  }

  .nav-sub a {
    padding-block: 12px;
  }

  .button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
  }
}

/* ---------- Page Notre clientèle ---------- */
.map {
  margin: 0 0 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.map img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 8px;
}

.map figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.section-title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  color: var(--navy);
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.tiers {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.tiers li {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
}

.tiers span {
  color: var(--muted);
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 8px 0 20px;
}

.stats div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: #e8f1fb;
  border-radius: 12px;
}

.stats strong {
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--navy);
}

.stats span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Textes justifiés (titres exclus) ---------- */
.content p,
.content li span,
.content .stats span,
.content figcaption {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.content h1,
.content h2,
.content h3,
.content .crumb {
  text-align: left;
}

/* ---------- Spécialités (page Notre solution) ---------- */
.content .section-title {
  margin-top: 48px;
}
