/* ============================================================
   BIEN-ÊTRE & SANTÉ – Global Stylesheet
   ============================================================ */

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

:root {
  --blue:        #0b4f8a;
  --blue-mid:    #2872c4;
  --blue-light:  #e8f1fb;
  --teal:        #0d8f6f;
  --teal-light:  #e1f5ee;
  --gold:        #e8a020;
  --gold-light:  #fef8ec;
  --text:        #1a1a2e;
  --text-muted:  #5a6070;
  --text-light:  #8892a0;
  --bg:          #ffffff;
  --bg-soft:     #f7f8fc;
  --bg-card:     #ffffff;
  --border:      #e2e8f0;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 12px rgba(0,0,0,.06);
  --shadow-hover:0 8px 30px rgba(11,79,138,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-top: 68px; /* navbar height */
}

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Playfair+Display:wght@400;500&display=swap');

/* ── Utility ────────────────────────────────────────────────── */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section     { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-badge {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.section-badge.teal { background: var(--teal-light); color: var(--teal); }
.section-badge.gold { background: var(--gold-light); color: #b07808; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 14px;
}
.section-sub {
  font-size: 17px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 18px; border-radius: 10px; cursor: pointer;
  border: none; transition: all .2s; white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue); color: var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11,79,138,.3);
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0a7560; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #d08f18; transform: translateY(-1px); }
.btn-sm  { font-size: 13px; padding: 6px 14px; border-radius: 8px; }
.btn-lg  { font-size: 15px; padding: 12px 24px; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group  { margin-bottom: 16px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; display: block; }
input, select, textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text);
  background: var(--bg-soft); outline: none; transition: border .2s, box-shadow .2s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(11,79,138,.08);
}
textarea { resize: vertical; min-height: 80px; }
select   { cursor: pointer; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.form-check input[type=checkbox] { width: auto; margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.form-check label { font-size: 12px; color: var(--text-muted); cursor: pointer; }
.form-check a { color: var(--blue); }
.required-note { font-size: 12px; color: var(--text-light); margin-top: 8px; }

/* ── Cards (shared) ─────────────────────────────────────────── */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 24px;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: var(--blue); transform: translateY(-2px); }

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 68px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text strong { font-size: 14px; font-weight: 600; color: var(--blue); }
.nav-logo-text span   { font-size: 11px; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); background: var(--blue-light); }
.nav-ctas { display: flex; align-items: center; gap: 8px; }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: .3s;
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav-links, .nav-ctas { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 16px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    gap: 4px;
  }
  .nav-links.open ~ .nav-ctas {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 0 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    gap: 8px; top: auto;
  }
}

/* ── Footer ─────────────────────────────────────────────────── */
#site-footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 60px 24px 30px;
}
.footer-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-brand h3 { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.footer-brand p  { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: #fff; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,.6); text-decoration: none;
  font-size: 14px; transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,.55); text-decoration: none;
  font-size: 13px; transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-links a.admin-link {
  color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.15);
  padding: 3px 10px; border-radius: 20px; font-size: 12px;
}
.footer-links a.admin-link:hover { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Modals ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px; padding: 36px 32px;
  max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.2); position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-soft); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 18px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.modal p.sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ── Floating action buttons ───────────────────────────────── */
.floating-actions {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 40px;
  padding: 10px 16px; cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text); box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transition: all .2s; text-decoration: none; white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.float-btn:hover { box-shadow: 0 8px 24px rgba(0,0,0,.14); transform: translateX(-2px); }
.float-btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.float-btn.primary:hover { background: var(--blue-mid); }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--teal); color: #fff;
  padding: 14px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 500; z-index: 3000; opacity: 0;
  transition: all .3s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RGPD banner ────────────────────────────────────────────── */
.rgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
  background: #fff; border-top: 1px solid var(--border);
  padding: 16px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.rgpd-banner p { font-size: 13px; color: var(--text-muted); flex: 1; min-width: 200px; }
.rgpd-banner a { color: var(--blue); }
.rgpd-banner-btns { display: flex; gap: 8px; flex-shrink: 0; }
.rgpd-accept { background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.rgpd-refuse { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; font-size: 13px; color: var(--text-muted); cursor: pointer; font-family: 'DM Sans', sans-serif; }

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #f0f6ff 0%, #f8fbff 60%, #f0fbf6 100%);
  padding: 64px 24px 56px; border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 1160px; margin: 0 auto; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
  text-transform: uppercase;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px); font-weight: 400; line-height: 1.15;
  color: var(--text); margin-bottom: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--blue); }
.page-hero p { font-size: 17px; color: var(--text-muted); max-width: 560px; line-height: 1.7; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up          { animation: fadeUp .5s ease both; }
.delay-1          { animation-delay: .1s; }
.delay-2          { animation-delay: .2s; }
.delay-3          { animation-delay: .3s; }
