/* XiwiX — feuille de style unique, sans dépendance externe. */

:root {
  --paper:   #fbfaf7;
  --surface: #ffffff;
  --ink:     #15171b;
  --muted:   #5c626c;
  --rule:    #e5e2db;
  --accent:  #2b5470;
  --accent-soft: #eef3f7;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #101215;
    --surface: #171a1f;
    --ink:     #eceef1;
    --muted:   #9aa1ab;
    --rule:    #272b32;
    --accent:  #8fc2e0;
    --accent-soft: #1a2530;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- structure ---------- */

.wrap { max-width: 64rem; margin: 0 auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

/* ---------- en-tête ---------- */

.topbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding-block: 1.75rem;
}

.wordmark {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--accent); }

.topbar nav a {
  font-size: 0.9375rem; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
}
.topbar nav a:hover { color: var(--accent); border-color: currentColor; }

/* ---------- accroche ---------- */

.hero { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }

.hero h1 {
  font-size: clamp(1.625rem, 1.25rem + 1.7vw, 2.5rem);
  line-height: 1.25; letter-spacing: -0.03em; font-weight: 650;
  margin: 0 0 1.5rem; max-width: 26em;
}

.note {
  margin: 2rem 0 0; font-size: 0.875rem; color: var(--muted); max-width: 44rem;
}

.lede { font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.5; margin: 0; max-width: 42rem; }

/* ---------- titres de section ---------- */

h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  line-height: 1.15; letter-spacing: -0.03em; font-weight: 700;
  margin: 0 0 1.5rem;
}

h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 650; margin: 0 0 0.6rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- les trois crans ---------- */

.offers { display: grid; gap: 1.25rem; margin-top: 2.75rem; }
@media (min-width: 52rem) { .offers { grid-template-columns: repeat(3, 1fr); } }

.offer {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem 1.4rem 1.3rem;
  display: flex; flex-direction: column;
}

.offer .eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.11em;
  font-weight: 700; color: var(--accent); margin: 0 0 0.9rem;
}
.offer p { font-size: 0.9688rem; line-height: 1.6; color: var(--ink); }

/* ---------- contact ---------- */

.contact-card {
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-top: 2rem;
  display: grid; gap: 1.75rem;
}
@media (min-width: 46rem) { .contact-card { grid-template-columns: 1fr 1fr; } }

.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--muted); margin-bottom: 0.3rem;
}
.contact-card dd { margin: 0 0 1.1rem; font-size: 1rem; }
.contact-card dd:last-child { margin-bottom: 0; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.mail { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem); font-weight: 650; letter-spacing: -0.02em; }

/* ---------- pied ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.25rem 3rem;
  font-size: 0.875rem; color: var(--muted);
}
footer .legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0; }
footer strong { color: var(--ink); font-weight: 650; }

/* ---------- marqueur de valeur manquante ---------- */

.todo {
  background: #ffe9a8; color: #4a3600; font-weight: 700;
  padding: 0.05em 0.4em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) { .todo { background: #6b5300; color: #ffeeb5; } }

/* ---------- pages de service (/421/) ---------- */

.doc h2 { margin-top: 2.5rem; }
.doc h2:first-of-type { margin-top: 0; }
.doc ul { padding-left: 1.15rem; margin: 0 0 1.1rem; }
.doc li { margin-bottom: 0.4rem; }

.backlink { font-size: 0.875rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- titre de page intérieure ---------- */

.page-title {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.035em; font-weight: 700;
  margin: 0 0 1.5rem;
}
.page { padding-block: 1rem clamp(3rem, 7vw, 5rem); }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0 1.5rem; }
