/* ============================================================
   Ergo Accompagnement — Site stylesheet
   Shared design system used by every page.
   ============================================================ */

:root {
  --burgundy:         #70232b;
  --burgundy-dark:    #561a21;
  --burgundy-soft:    #8a3b43;
  --cream:            #f5e6cc;
  --cream-pale:       #faf3e6;
  --sand:             #e1c296;
  --sand-soft:        #efd9b6;
  --ink:              #2a1a1c;
  --ink-soft:         #5b4a4d;
  --line:             #e6d8c2;
  --bg:               #fbf7ef;
  --white:            #ffffff;

  --shadow-sm: 0 1px 2px rgba(86, 26, 33, 0.08);
  --shadow-md: 0 8px 24px rgba(86, 26, 33, 0.10);
  --shadow-lg: 0 18px 48px rgba(86, 26, 33, 0.14);

  --radius:    14px;
  --radius-lg: 22px;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--burgundy-dark);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.2; margin-top: 0; }
h3 { font-size: 1.18rem; line-height: 1.3; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy-dark); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--burgundy-dark);
  border-color: var(--burgundy);
}
.btn-ghost:hover {
  background: var(--burgundy);
  color: var(--white);
}
.btn-cream {
  background: var(--cream);
  color: var(--burgundy-dark);
  border-color: var(--sand);
}
.btn-cream:hover {
  background: var(--sand-soft);
  color: var(--burgundy-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--burgundy-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}
.nav-links a.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a.nav-link:hover { background: var(--cream); color: var(--burgundy-dark); }
.nav-links a.nav-link[aria-current="page"] {
  background: var(--cream);
  color: var(--burgundy-dark);
  font-weight: 600;
}
.nav-cta { margin-left: 6px; }
.nav-links .btn.nav-cta {
  padding: 10px 16px;
  font-size: 0.88rem;
}

.menu-toggle { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(225, 194, 150, 0.45), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(112, 35, 43, 0.10), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--cream);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 strong {
  color: var(--burgundy);
  font-weight: 700;
}
.hero .lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--burgundy); display: inline-block; }

.hero-visual { position: relative; }
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  position: relative;
  transform: rotate(-1deg);
}
.hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--burgundy);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 240px;
  line-height: 1.3;
  transform: rotate(2deg);
}
.hero-badge small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.85;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(225, 194, 150, 0.45), transparent 60%),
    radial-gradient(700px 300px at -10% 110%, rgba(112, 35, 43, 0.08), transparent 60%),
    var(--bg);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lede {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- Section scaffolding ---------- */
section { padding: 72px 0; }
.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; }

/* ---------- Trust strip ---------- */
.trust {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-pale);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-grid div {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.trust-grid strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--burgundy);
  margin-bottom: 4px;
  font-weight: 700;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand);
}
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-circle svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.96rem; margin: 0; }

/* ---------- Featured callout ---------- */
.callout {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.callout h2 { color: var(--white); }
.callout p { color: rgba(255,255,255,0.88); }
.callout .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Process ---------- */
.process { background: var(--cream-pale); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-top: 14px; font-size: 1.05rem; }
.step p { font-size: 0.92rem; margin: 0; }

/* ---------- About strip ---------- */
.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
}
.about img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow-md);
}
.about .credentials {
  font-size: 0.85rem;
  color: var(--burgundy);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ---------- Generic content cards ---------- */
.content-prose {
  max-width: 760px;
  margin: 0 auto;
}
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.content-card h2 { margin-top: 0; }
.content-card h3 {
  color: var(--burgundy);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-top: 2em;
}
.content-card h3:first-of-type { margin-top: 0; }
.content-card ul, .content-card ol { color: var(--ink-soft); padding-left: 1.2em; }
.content-card li { margin-bottom: 0.4em; }

/* Contact card layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}
.contact-info p { font-size: 1.02rem; }
.contact-info .row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .row:last-of-type { border-bottom: none; }
.contact-info .row .icon-circle {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.contact-info .row .icon-circle svg { width: 20px; height: 20px; }
.contact-info .row strong {
  display: block;
  color: var(--burgundy-dark);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.contact-info .row .note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
.contact-cta {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.contact-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--burgundy-dark);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 10px;
}
.contact-cta .btn { margin-top: 6px; width: 100%; justify-content: center; }

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
}
.cta-final h2 { margin-bottom: 12px; }
.cta-final p { max-width: 600px; margin: 0 auto 24px; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--burgundy-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 0.93rem;
}
.site-footer a:hover { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.75); font-size: 0.93rem; }
.footer-brand .brand { color: var(--white); margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .callout, .about, .contact-grid {
    grid-template-columns: 1fr;
  }
  .callout, .about, .content-card { padding: 28px; }
  .about { text-align: center; }
  .about img { margin: 0 auto; }
  .services-grid, .steps, .trust-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-badge { left: 12px; bottom: -16px; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-link, .nav-links a.btn { width: 100%; justify-content: center; }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--burgundy-dark);
  }
  section { padding: 56px 0; }
  .services-grid, .steps, .trust-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 40px 0 64px; }
  .hero-card img { height: 280px; }
  .cta-final { padding: 40px 20px; }
  .page-hero { padding: 48px 0 32px; }
}
