/* Feuille de style du site vitrine (cvu-prevention.fr). Volontairement
   autonome : aucune ressource externe (police, CDN, script), ce qui permet
   la Content-Security-Policy stricte `default-src 'self'` posée par Caddy
   — cf. Caddyfile. */

:root {
  --fond: #ffffff;
  --fond-doux: #f4f6f8;
  --texte: #16222c;
  --texte-doux: #4a5a66;
  --accent: #1f5f7a;
  --bord: #dde4e9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #11181d;
    --fond-doux: #192329;
    --texte: #e8eef2;
    --texte-doux: #a6b5bf;
    --accent: #7cc3dd;
    --bord: #27343c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header, main, footer {
  max-width: 48rem;
  margin: 0 auto;
}

header { padding: 2rem 0 1rem; }

.marque {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--accent);
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.2;
}

.chapeau {
  font-size: 1.1rem;
  color: var(--texte-doux);
  max-width: 36rem;
}

.offre {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 2.5rem 0;
}

.offre article {
  background: var(--fond-doux);
  border: 1px solid var(--bord);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.offre h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.offre p {
  margin: 0;
  color: var(--texte-doux);
  font-size: 0.95rem;
}

.acces { margin: 2rem 0; }

.bouton {
  display: inline-block;
  background: var(--accent);
  color: var(--fond);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
}

.bouton:hover, .bouton:focus { opacity: 0.9; }

.contact { margin: 2.5rem 0; }
.contact h2 { font-size: 1.05rem; }
.contact p { margin: 0.3rem 0; color: var(--texte-doux); }

.aremplir {
  background: #ffe9a8;
  color: #4a3a00;
  padding: 0 0.3em;
  border-radius: 3px;
}

footer {
  border-top: 1px solid var(--bord);
  margin-top: 3rem;
  padding: 1.2rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--texte-doux);
}

a { color: var(--accent); }
