/* MSP de Floirac — feuille de styles partagée */

:root {
  --c-ink: #1a2a2e;
  --c-ink-soft: #4a5a5e;
  --c-bg: #f6f8f7;
  --c-bg-warm: #eef2ee;
  --c-card: #ffffff;
  --c-primary: #2d6a78;        /* tweakable */
  --c-primary-deep: color-mix(in oklab, var(--c-primary) 80%, #000 20%);
  --c-primary-soft: color-mix(in oklab, var(--c-primary) 18%, #ffffff 82%);
  --c-sage: #a8c8b5;
  --c-sage-soft: #d8e6dc;
  --c-line: #d8dedc;
  --c-warm: #f0e7d8;

  --ff-title: "Newsreader", Georgia, serif;  /* tweakable */
  --ff-body:  "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-2xs:  0.75rem;
  --fs-xs:   0.875rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   1.375rem;

  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 88px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-card: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px -16px rgba(20,40,40,.18);
  --shadow-soft: 0 2px 8px rgba(20,40,40,.04), 0 18px 40px -28px rgba(20,40,40,.22);
}

* { box-sizing: border-box; }
html { font-size: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ff-title);
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-xl); line-height: 1.25; }
h4 { font-size: var(--fs-base); line-height: 1.3; font-family: var(--ff-body); font-weight: 600; letter-spacing: 0; }
p  { margin: 0; text-wrap: pretty; }
a  { color: inherit; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid color-mix(in oklab, var(--c-line) 60%, transparent);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 96px;
}
.brand {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--c-ink);
}
.brand-mark {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  flex: 0 0 96px;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.brand-name {
  display: flex; flex-direction: column; line-height: 1.15;
}
.brand-name b {
  font-family: var(--ff-title); font-weight: 500; font-size: var(--fs-lg); letter-spacing: -0.015em;
}
.brand-name small {
  margin-top: var(--sp-1);
  font-size: var(--fs-2xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-ink-soft);
}
.site-nav {
  display: flex; gap: 4px; margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--c-bg-warm); color: var(--c-ink); }
.site-nav a.active { color: var(--c-primary-deep); background: var(--c-primary-soft); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 500;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.header-cta:hover { background: var(--c-primary-deep); }
.header-cta svg { width: 14px; height: 14px; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-size: var(--fs-sm); font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-deep); }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-ghost:hover { background: var(--c-card); border-color: var(--c-ink-soft); }
.btn svg { width: 16px; height: 16px; }

/* ───────── Sections ───────── */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-2xs); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-primary-deep);
  font-weight: 600;
}
.eyebrow::before {
  content: ""; width: var(--sp-4); height: 1.5px; background: currentColor; border-radius: 2px;
}

.lede { font-size: var(--fs-lg); line-height: 1.55; color: var(--c-ink-soft); max-width: 60ch; }

/* ───────── Cards ───────── */
.card {
  background: var(--c-card);
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--c-line) 70%, transparent);
  box-shadow: var(--shadow-card);
}

/* ───────── Footer ───────── */
.site-footer {
  background: #16282d;
  color: #cfd9d8;
  padding: 64px 0 32px;
  margin-top: 96px;
}
.site-footer h4 { color: #fff; font-family: var(--ff-body); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid a { color: #cfd9d8; text-decoration: none; display: flex; align-items: center; min-height: 44px; padding: 11px 0; font-size: var(--fs-xs); }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: var(--fs-xs); line-height: 1.6; color: #a8b3b2; }
.footer-brand b { color: #fff; font-family: var(--ff-title); font-size: var(--fs-xl); font-weight: 500; display: block; margin-bottom: var(--sp-2); }
.footer-brand .footer-logo { width: 64px; height: 64px; margin-bottom: var(--sp-3); background: #fff; border-radius: 14px; padding: var(--sp-2); display: block; }
.footer-brand .footer-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-4); font-size: var(--fs-xs); color: #9aa5a4;
}

/* ───────── Decorative SVG blobs ───────── */
.blob {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}

/* ───────── Utility ───────── */
.muted { color: var(--c-ink-soft); }
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) 12px; border-radius: var(--r-pill);
  background: var(--c-primary-soft); color: var(--c-primary-deep);
  font-size: var(--fs-2xs); font-weight: 500; letter-spacing: 0.01em;
}
.pill-sage { background: var(--c-sage-soft); color: #2d5a3d; }
.pill-warm { background: var(--c-warm); color: #6a4a1f; }

.kicker {
  font-family: var(--ff-title);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-primary);
  font-weight: 500;
}

/* ───────── Reveals (subtle entry) ───────── */
html.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 180ms ease-out, transform 180ms ease-out; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────── Focus clavier ───────── */
:where(a, button, .btn, .header-cta, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.site-footer :where(a, button):focus-visible,
.rdv-band :where(a, button):focus-visible { outline-color: #fff; }

/* ───────── Menu mobile ───────── */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle span { transition: none; } }

/* ───────── Responsive ───────── */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--sp-2) var(--sp-4) var(--sp-4);
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    font-size: var(--fs-base);
    border-radius: var(--r-sm);
  }
  .site-header .wrap { position: relative; gap: 12px; height: 72px; }
  .brand-mark { width: 56px; height: 56px; flex: 0 0 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .section { padding: 56px 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  /* 11. hiérarchie des actions sur mobile */
  .hero-ctas, .cta-stack, .rdv-cta-stack { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
  .hero-ctas .btn, .cta-stack .btn, .rdv-cta-stack .btn { width: 100%; justify-content: center; min-height: 52px; }
  .hero-ctas .btn-ghost, .cta-stack .btn-ghost { border-color: var(--c-primary); color: var(--c-primary-deep); }
}

/* En-tête de page interne (partagé) */
.page-head{padding:80px 0 48px;background:linear-gradient(180deg,var(--c-warm) 0%,var(--c-bg) 100%);position:relative;overflow:hidden}
.page-head .wrap{position:relative;z-index:2}
.page-head h1{max-width:18ch;margin-top:var(--sp-3)}
.page-head .lede{margin-top:var(--sp-4);font-size:var(--fs-lg)}
.page-head .blob-deco{position:absolute;right:-100px;top:-150px;width:380px;height:380px;border-radius:50%;background:var(--c-primary);opacity:.10;z-index:1}
