/* ============================================================
   Truck Stop Santé — feuille de style unique
   Aucune dépendance externe. Mobile d'abord.
   ============================================================ */

:root {
  --ink: #101828;
  --body: #344054;
  --faint: #667085;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #f0fdfa;
  --accent-border: #99f6e4;
  --border: #eaecf0;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --radius: 12px;
  --maxw: 1040px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--ink); border-color: #d0d5dd; }
.btn-secondary:hover { background: var(--bg-alt); }
.btn-inverse { background: #fff; color: var(--accent-dark); }
.btn-inverse:hover { background: var(--accent-soft); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 20px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; color: var(--accent-dark); }
.site-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-nav a { color: var(--body); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 600; }
@media (max-width: 880px) {
  .header-cta { display: none; }
}

/* ---------- Héros ---------- */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--accent-soft), #fff);
  border-bottom: 1px solid var(--border);
}
.page-hero { padding: 48px 0 44px; }
.kicker {
  display: inline-block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.hero h1 { max-width: 680px; }
.hero .lede { font-size: 1.08rem; max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.lang-note { font-size: 0.9rem; color: var(--faint); }
@media (min-width: 720px) {
  .hero h1 { font-size: 2.5rem; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 660px; margin-bottom: 32px; }
.section-head p { color: var(--faint); }

/* ---------- Cartes de services ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
}
.card .icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card p { font-size: 0.95rem; flex: 1; }
.card-link { font-weight: 600; font-size: 0.95rem; }

/* ---------- Étapes ---------- */
.steps {
  list-style: none; counter-reset: step;
  margin: 0; padding: 0;
  display: grid; gap: 16px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 20px 66px;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li p { margin: 0; font-size: 0.97rem; }

/* ---------- Encadré (limite de la télémédecine) ---------- */
.note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.95rem;
  margin: 24px 0 0;
}
.note p { margin: 0; }

/* ---------- Bande d'appel à l'action ---------- */
.cta-band {
  background: var(--accent-dark);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 640px; margin: 0 auto 24px; }

/* ---------- Contenu long (politique, pages de conditions) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; font-size: 1.25rem; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  font-size: 0.92rem;
  color: var(--faint);
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.footer-heading { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--accent-dark); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }

/* ---------- Bannière de consentement aux témoins ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  margin: 0 auto; max-width: 560px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
  padding: 20px;
  z-index: 100;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.9rem; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
