/* ═══════════════════════════════════════════════════════════
   MURPHY CONSEIL — Design System V3
   Palette crème éditoriale, serif titles, accent vert forêt
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors — Warm cream editorial */
  --bg:          #FAF8F5;
  --bg-alt:      #F0EDE8;
  --bg-card:     #FFFFFF;
  --bg-elevated: #F5F2ED;
  --surface:     #EBE7E2;

  --text:        #1A1A1A;
  --text-muted:  #5C574F;
  --text-light:  #8A857E;

  --accent:      #3D6B4A;
  --accent-hover:#2E5639;
  --accent-light:rgba(61, 107, 74, 0.1);

  --border:      #E8E4DF;
  --border-light:#D9D5CF;

  --tag-green:     #E8F5EC;
  --tag-green-t:   #2D6A3E;
  --tag-amber:     #FEF5E0;
  --tag-amber-t:   #946B00;
  --tag-purple:    #F0E6F6;
  --tag-purple-t:  #6B2FA0;

  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: 96px 24px;
  --max-width: 1120px;
  --radius: 12px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

img { max-width: 100%; display: block; }

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

.section {
  padding: var(--section-pad);
}
.section--alt {
  background: var(--bg-alt);
}
.section--hero {
  padding-top: 160px;
  padding-bottom: 80px;
}

.label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.label--accent {
  color: var(--accent);
}

/* ─── TYPOGRAPHY ───────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
}

.text-large {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
}

.text-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.text-small {
  font-size: 14px;
  color: var(--text-light);
}

/* ─── NAVBAR ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.3s ease;
}
.nav--scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav__link:hover,
.nav__link--active {
  color: var(--text);
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav__cta:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

/* Language toggle */
.nav__lang {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}
.nav__lang:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--text);
  color: #FFFFFF;
}
.btn--primary:hover {
  opacity: 0.9;
  color: #FFFFFF;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}
.btn--secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn--accent {
  background: var(--accent);
  color: white;
}
.btn--accent:hover {
  background: var(--accent-hover);
  color: white;
}

.btn--ghost {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  font-size: 15px;
}
.btn--ghost:hover {
  color: var(--accent-hover);
}

.btn--dark {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--dark:hover {
  border-color: var(--text-light);
  color: var(--text);
}

.btn--small {
  font-size: 14px;
  padding: 10px 20px;
}

/* ─── CARDS ────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.25s ease;
}

.card--hover:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.card--bordered-left {
  border-left-width: 3px;
}
.card--green  { border-left-color: var(--tag-green-t); }
.card--amber  { border-left-color: var(--tag-amber-t); }
.card--purple { border-left-color: var(--tag-purple-t); }

.card__icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.card__title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── TAGS ─────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tag--green  { background: var(--tag-green);  color: var(--tag-green-t); }
.tag--amber  { background: var(--tag-amber);  color: var(--tag-amber-t); }
.tag--purple { background: var(--tag-purple); color: var(--tag-purple-t); }

/* ─── GRID ─────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ─── PUBLICATION LIST ─────────────────────────────────── */
.pub {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.pub__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.pub__title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.pub__venue {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.pub__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── PROCESS STEPS ────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.step {
  text-align: center;
}

.step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step__title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── MISSION CARDS ────────────────────────────────────── */
.mission {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.mission__body h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mission__body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── CHECK LIST ───────────────────────────────────────── */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.checklist__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

/* ─── NEWSLETTER FORM ──────────────────────────────────── */
.newsletter {
  display: flex;
  gap: 12px;
  max-width: 440px;
}

.newsletter input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter input::placeholder {
  color: var(--text-light);
}
.newsletter input:focus {
  border-color: var(--accent);
}

/* ─── CALLOUT ──────────────────────────────────────────── */
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.callout--accent {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ─── PIPELINE ─────────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.pipeline__step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.pipeline__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-sans);
  margin-bottom: 8px;
  opacity: 0.2;
}

.pipeline__title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ─── CONTACT ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
  padding: 8px 0;
  text-decoration: none;
}
.contact-links a:hover {
  color: var(--text);
}

.booking-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.booking-placeholder__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* ─── BOOKING FORM ───────────────────────────────────────── */
.booking-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group .required {
  color: #DC2626;
}

.form-group .optional {
  color: var(--text-light);
  font-weight: 400;
  font-size: 13px;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-status {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.form-status--success {
  background: var(--tag-green);
  color: var(--tag-green-t);
}

.form-status--error {
  background: #FEF2F2;
  color: #DC2626;
}

/* ─── ENGAGEMENTS BAR ──────────────────────────────────── */
.engagements {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.engagements__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.engagements__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── SOCIAL PROOF BAR ─────────────────────────────────── */
.proof {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof__logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.proof__logos span {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* ─── PHILOSOPHY CARDS ─────────────────────────────────── */
.philo {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.philo__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── THREE HEADS (Cerberus) ───────────────────────────── */
.head {
  border-top: 3px solid;
}
.head--red    { border-top-color: #DC2626; }
.head--blue   { border-top-color: #2563EB; }
.head--purple { border-top-color: #7C3AED; }

/* ─── FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.footer__sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-light);
}

/* ─── BACK LINK ────────────────────────────────────────── */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
}
.back:hover {
  color: var(--text);
}

/* ─── SVG ICONS ────────────────────────────────────────── */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--large {
  width: 28px;
  height: 28px;
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 20px;
  }

  .section--hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter {
    flex-direction: column;
  }

  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .proof__logos {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ─── ANIMATIONS ───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.3s; }
