@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-italic-subset.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1c1f23;
  --text: #3d4146;
  --muted: #62666c;
  --hair: #e3e5e8;
  --wash: #f4f5f6;
  /* Le Petit Dakar (logo : orange, turquoise) */
  --pd: #d67a49;
  --pd-2: #5da199;
  --pd-ink: #a24e27;      /* orange assombri : 5,6:1 sur blanc */
  --pd-wash: #fbf1ea;
  /* Focus Services (logo : bleu marine, vert) */
  --fo: #15396a;
  --fo-2: #95bf83;
  --fo-ink: #15396a;
  --fo-wash: #edf2f8;
  --radius: 14px;
  --focus-ring: 0 0 0 3px #fff, 0 0 0 5px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.layout { max-width: 520px; margin: 0 auto; padding: 0 20px; }

/* ---------- Identité ---------- */
.identity { padding: 20px 0 30px; }

.marques {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--hair);
  margin: 0 -4px;
}
.marque {
  display: grid;
  place-items: center;
  height: 156px;
  padding: 14px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .15s ease;
}
.marque + .marque { position: relative; }
.marque + .marque::before {
  content: ""; position: absolute; left: 0; top: 28px; bottom: 28px;
  border-left: 1px solid var(--hair);
}
.marque--pd img { height: 128px; width: auto; }
.marque--fo img { width: 150px; height: auto; }
.marque:hover { background: var(--wash); }
.marque:focus-visible { outline: none; box-shadow: var(--focus-ring); }

h1 {
  margin: 28px 0 14px;
  font-size: clamp(2.15rem, 9vw, 2.7rem);
  line-height: 1.05;
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.fonctions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fonctions li { text-wrap: pretty; display: flex; align-items: baseline; gap: 12px; font-size: 1.06rem; line-height: 1.35; color: var(--text); }
.chip {
  flex: none;
  width: 12px; height: 12px;
  transform: translateY(1px);
}
.chip--pd { background: linear-gradient(90deg, var(--pd) 50%, var(--pd-2) 50%); }
.chip--fo { background: linear-gradient(90deg, var(--fo) 50%, var(--fo-2) 50%); }
.chip--lg { width: 16px; height: 16px; transform: none; }
.zone { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Actions principales ---------- */
.actions { margin-top: 26px; display: grid; gap: 10px; }
.actions__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn {
  -webkit-appearance: none; appearance: none;
  font: inherit;
  display: flex; align-items: center; gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #d5d8dc;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 560;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { background: var(--wash); border-color: #c4c8cd; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn--primary {
  justify-content: center;
  min-height: 58px;
  font-size: 1.06rem;
  font-weight: 620;
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.btn--primary:hover { background: #000; border-color: #000; }
.btn__txt { display: grid; }
.btn__val { font-weight: 450; color: var(--muted); font-size: .93rem; font-variant-numeric: tabular-nums; }
.status { margin: 0; font-size: .92rem; color: var(--text); }
.status:not(:empty) { margin-top: 2px; }

.desk-qr { display: none; }

/* ---------- Sections des deux activités ---------- */
.activite { padding: 36px 0 8px; border-top: 1px solid var(--hair); scroll-margin-top: 12px; }
.activite__tete { display: flex; align-items: center; gap: 12px; }
.activite h2 { margin: 0; font-size: 1.6rem; line-height: 1.2; font-weight: 620; letter-spacing: -0.01em; color: var(--ink); }
.phrase { margin: 10px 0 0; font-style: italic; font-size: 1.08rem; color: var(--ink); }
.desc { margin: 8px 0 0; max-width: 60ch; }
.contact-co { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.contact-co strong { color: var(--text); font-weight: 600; }

.rows { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 14px;
  min-height: 68px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: var(--ink);
  border-radius: 0;
  transition: background-color .15s ease;
}
.row__ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
}
.row__ico svg { width: 22px; height: 22px; }
.row__txt { display: grid; min-width: 0; }
.row__label { font-weight: 600; line-height: 1.3; }
.row__val { color: var(--muted); font-size: .94rem; line-height: 1.35; overflow-wrap: break-word; }
.row:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink); border-radius: 10px; }

.activite--pd .row__ico { background: var(--pd-wash); color: var(--pd-ink); }
.activite--pd .row:hover { background: var(--pd-wash); }
.activite--fo .row__ico { background: var(--fo-wash); color: var(--fo-ink); }
.activite--fo .row:hover { background: var(--fo-wash); }

/* ---------- Pied de page ---------- */
.pied { padding: 28px 0 40px; border-top: 1px solid var(--hair); margin-top: 28px; font-size: .88rem; color: var(--muted); }
.pied p { margin: 0 0 10px; }
.pied details { margin-top: 6px; }
.pied summary { cursor: pointer; color: var(--text); font-weight: 560; width: max-content; border-radius: 6px; }
.pied summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pied details p { margin: 8px 0 0; max-width: 62ch; }

/* ---------- Ordinateur ---------- */
@media (min-width: 960px) {
  .layout {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 380px 1fr;
    column-gap: 64px;
    padding: 48px 40px 0;
  }
  .identity { position: sticky; top: 32px; align-self: start; padding: 0 0 32px; }
  main { padding-top: 4px; }
  .activite:first-child { border-top: 0; padding-top: 12px; }
  .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; border-top: 0; }
  .rows li { border-top: 1px solid var(--hair); }
  .row { border-bottom: 0; }
  .desk-qr {
    display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center;
    margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hair);
    font-size: .9rem; color: var(--muted);
  }
  .desk-qr img { width: 92px; height: 92px; }
  .desk-qr p { margin: 0; }
  .pied { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .actions, .desk-qr { display: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
