/* ===== Base ===== */
:root {
  --fond: #ffffff;
  --fond-gris: #f3f5f9;
  --sombre: #0b1220;
  --texte: #1c2433;
  --texte-doux: #5b667a;
  --accent: #2563eb;
  --accent-fonce: #1d4ed8;
  --wa: #1fa855;
  --wa-fonce: #178a45;
  --rayon: 14px;
  --ombre: 0 6px 20px rgba(11, 18, 32, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
  padding-bottom: 80px;
}

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

/* ===== En-tête ===== */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--sombre);
}

.logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
}
.logo:hover { text-decoration: none; }

.menu { display: none; gap: 22px; }
.menu a { color: #cbd5e1; font-weight: 500; }
.menu a:hover { color: #fff; text-decoration: none; }

/* ===== Boutons ===== */
.bouton {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.bouton:hover { transform: translateY(-2px); text-decoration: none; }

.bouton-wa { background: var(--wa); color: #fff; }
.bouton-wa:hover { background: var(--wa-fonce); }

.bouton-clair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.bouton-clair:hover { background: rgba(255, 255, 255, 0.1); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--sombre) 0%, #14213d 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px 72px;
}

.hero h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  max-width: 760px;
  margin: 0 auto 18px;
}

.hero p {
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.hero-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ===== Sections ===== */
.section {
  padding: 56px 20px;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: 64px;
}

.section-grise {
  background: var(--fond-gris);
  max-width: none;
}
.section-grise > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  text-align: center;
}

/* ===== Grille et cartes (remplies par script.js) ===== */
.grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.carte {
  background: #fff;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 22px;
  border: 1px solid #e6eaf2;
}

.carte h3 { font-size: 1.15rem; margin-bottom: 8px; }
.carte p { color: var(--texte-doux); font-size: 0.97rem; }

.carte .etiquette {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: #e8efff;
  color: var(--accent-fonce);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ===== Contact ===== */
#contact { text-align: center; }
#contact > p { color: var(--texte-doux); margin-bottom: 20px; }

.contacts { list-style: none; display: inline-block; text-align: left; }
.contacts li { padding: 8px 0; border-bottom: 1px solid #e6eaf2; }
.contacts li:last-child { border-bottom: none; }

/* ===== Pied de page ===== */
.pied {
  background: var(--sombre);
  color: #94a3b8;
  text-align: center;
  padding: 22px 16px;
  font-size: 0.9rem;
}

/* ===== Bouton WhatsApp flottant ===== */
.wa-flottant {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.wa-flottant:hover { background: var(--wa-fonce); text-decoration: none; }

/* ===== Tablette et ordinateur ===== */
@media (min-width: 720px) {
  .menu { display: flex; }
  .hero { padding: 96px 20px 104px; }
  .hero h1 { font-size: 2.6rem; }
  .grille { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .grille { grid-template-columns: repeat(3, 1fr); }
}