/* IT Sahel — feuille de style unique.
   Aucune dépendance externe : les polices système évitent un aller-retour
   réseau, ce qui compte pour des visiteurs en 3G instable. */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #14110d;
  --muted: #6b6255;
  --line: #e6e0d7;
  --accent: #b45309;
  --accent-ink: #ffffff;
  --accent-soft: #fdf3e7;
  --radius: 12px;
  --measure: 68ch;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120f;
    --surface: #1c1916;
    --ink: #f4f0ea;
    --muted: #a89e91;
    --line: #2e2924;
    --accent: #f0a355;
    --accent-ink: #14110d;
    --accent-soft: #241d15;
  }
}

*, *::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(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }

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

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

/* Lien d'évitement : premier élément focalisable, masqué jusqu'au focus clavier */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7em 1.2em;
  z-index: 100;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── En-tête ─────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* Pastille de marque : un simple carré, dessiné en CSS — pas d'image à charger */
.mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  flex: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ── Sections ────────────────────────────────────────────────────────── */

section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

.hero { padding: 96px 0 88px; }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 58ch;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(0.92); }
.btn-secondary { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Grilles ─────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

.section-intro { color: var(--muted); font-size: 1.05rem; }

/* ── Liste de capacités ──────────────────────────────────────────────── */

.features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.features li {
  padding-left: 30px;
  position: relative;
  max-width: var(--measure);
  color: var(--muted);
}
.features li strong { color: var(--ink); font-weight: 600; }
.features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
}

/* ── Encart réalisation ──────────────────────────────────────────────── */

.showcase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.showcase .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a;
  flex: none;
}

/* ── Contact ─────────────────────────────────────────────────────────── */

.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.contact-list .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 100px;
}
.contact-list a, .contact-list span.value { font-size: 1.05rem; }

/* ── Pied de page ────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; max-width: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }

  /* En-tête non collant sur petit écran : la navigation passe sur deux lignes,
     et la garder fixe amputerait le tiers du viewport à chaque défilement. */
  .site-header { position: static; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; gap: 10px 16px; }
  .site-nav { gap: 8px 16px; }
  .site-nav a { font-size: 0.88rem; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .showcase { padding: 24px; }
  .actions .btn { width: 100%; text-align: center; }
}

/* ── Pages légales ───────────────────────────────────────────────────── */
/* Colonne étroite et titres respirants : ces pages se lisent en continu,
   contrairement à l'accueil qui se parcourt par blocs. */
.legal { padding: 64px 0 88px; border-bottom: 0; }
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.legal h3 { margin-top: 1.8em; color: var(--ink); }
.legal .lead { font-size: 1.1rem; color: var(--muted); max-width: var(--measure); }
.legal .features { margin-top: 1em; margin-bottom: 1.4em; }
.legal .contact-list { margin-top: 1.5em; }

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
