/* ==========================================================================
   Wachem Guest House — Design System v2
   Direction : hospitalité éditoriale — chaleur Airbnb, clarté Stripe.
   Tokens : échelle 4/8, 2 familles typo, neutres teintés sable, ombres brunes.
   ========================================================================== */

:root {
  /* Couleur de marque (caramel/brun) */
  --brand-500: #B08350;
  --brand-600: #96683B;
  --brand-700: #7C5430;
  --brand-900: #3B2D1D;

  /* Neutres teintés sable */
  --sand-50: #FAF7F1;
  --sand-100: #F3EDE1;
  --sand-200: #EAE1D0;
  --sand-300: #D9CCB5;
  --ink-500: #77694F;
  --ink-700: #4E4232;
  --ink-900: #2C2318;

  --surface: #FFFFFF;
  --cream: #FFFDF8;

  /* Sémantiques */
  --success: #3E7A4E;
  --success-bg: #EDF4EE;
  --danger: #B3402F;
  --danger-bg: #F9EDEA;
  --gold: #C98A2B;

  /* Espacement (échelle 4/8) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px;

  /* Rayons : externe = interne + padding */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  /* Ombres teintées brun */
  --shadow-sm: 0 1px 2px rgba(59, 45, 29, 0.06), 0 1px 3px rgba(59, 45, 29, 0.08);
  --shadow-md: 0 4px 12px rgba(59, 45, 29, 0.08), 0 2px 4px rgba(59, 45, 29, 0.05);
  --shadow-lg: 0 16px 40px rgba(59, 45, 29, 0.14), 0 4px 12px rgba(59, 45, 29, 0.06);

  /* Typo */
  --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(36px, 5.5vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; font-family: var(--font-ui); font-weight: 700; letter-spacing: 0; }

p  { max-width: 68ch; }

a { color: var(--brand-600); }

strong { color: var(--ink-900); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}

.lead { font-size: 18px; color: var(--ink-500); }

.section { padding: var(--s-24) 0; }
.section-alt { background: var(--sand-100); }
.section-white { background: var(--surface); }

.section-head { max-width: 640px; margin-bottom: var(--s-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: var(--s-3); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--brand-900); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: var(--surface); color: var(--ink-900); border: 1px solid var(--sand-300); }
.btn-secondary:hover { border-color: var(--brand-500); color: var(--brand-700); transform: translateY(-1px); }

.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--brand-600);
  text-decoration: none;
  margin-top: var(--s-4);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover { color: var(--brand-700); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-200);
}
.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--s-3) var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand img { height: 44px; width: auto; border-radius: var(--r-sm); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-900);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  list-style: none;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--brand-600); }
.nav-links .btn { padding: 10px 22px; font-size: 15px; }

.menu-toggle, .menu-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-900);
  padding: var(--s-2);
}
.menu-toggle svg, .menu-close svg { width: 26px; height: 26px; }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 35, 24, 0.4);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu-overlay.active { display: block; opacity: 1; }

/* --------------------------------------------------------------------------
   Hero (index)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(32, 24, 14, 0.82) 0%, rgba(32, 24, 14, 0.55) 45%, rgba(32, 24, 14, 0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: var(--s-24) 0;
}
.hero .eyebrow { color: #E8CFA8; }
.hero .eyebrow::before { background: #E8CFA8; }
.hero h1 { color: var(--cream); margin-bottom: var(--s-6); }
.hero p {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 253, 248, 0.88);
  margin-bottom: var(--s-8);
}
.hero-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero .btn-secondary { background: rgba(255, 253, 248, 0.12); color: var(--cream); border-color: rgba(255, 253, 248, 0.4); }
.hero .btn-secondary:hover { background: rgba(255, 253, 248, 0.2); color: var(--cream); }

/* Hero des sous-pages */
.hero-sub {
  background: linear-gradient(160deg, var(--brand-900) 0%, #57432A 100%);
  color: var(--cream);
  padding: var(--s-16) 0;
}
.hero-sub .eyebrow { color: #E8CFA8; }
.hero-sub .eyebrow::before { background: #E8CFA8; }
.hero-sub h1 { color: var(--cream); font-size: clamp(32px, 4.5vw, 48px); margin-bottom: var(--s-4); }
.hero-sub p { font-size: 18px; color: rgba(255, 253, 248, 0.85); }

/* --------------------------------------------------------------------------
   Barre de confiance (stats)
   -------------------------------------------------------------------------- */
.stats-band { background: var(--surface); border-bottom: 1px solid var(--sand-200); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  padding: var(--s-12) 0;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 600;
  color: var(--brand-700);
  line-height: 1.1;
}
.stat-label { font-size: 14px; font-weight: 600; color: var(--ink-500); margin-top: var(--s-2); }

/* --------------------------------------------------------------------------
   Cartes & grilles
   -------------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }

.card {
  background: var(--surface);
  border: 1px solid var(--sand-200);
  border-radius: var(--r);
  padding: var(--s-8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: var(--s-4) 0 var(--s-2); }
.card p { font-size: 15px; }
.card p + p { margin-top: var(--s-2); }

.icon-chip {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--sand-100);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-chip svg { width: 24px; height: 24px; }

.card-highlight {
  background: var(--brand-900);
  border-color: var(--brand-900);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s-6);
}
.card-highlight p {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}

.badge-plus {
  display: inline-block;
  margin-top: var(--s-4);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Services (rangées image + texte)
   -------------------------------------------------------------------------- */
.feature-rows { display: flex; flex-direction: column; gap: var(--s-16); }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: var(--s-4) 0 var(--s-3);
}
.feature-body p { font-size: 16px; }

/* --------------------------------------------------------------------------
   Étapes
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--sand-200);
  border-radius: var(--r);
  padding: var(--s-8);
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--brand-900);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { font-size: 15px; }

/* Grille process des sous-pages (4/6/8 étapes) */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.process-grid .step { padding: var(--s-6); }
.process-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.process-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* --------------------------------------------------------------------------
   Calculateur
   -------------------------------------------------------------------------- */
.calculator {
  background: var(--surface);
  border: 1px solid var(--sand-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  margin: 0 auto;
}
.calculator-form { padding: var(--s-12); display: flex; flex-direction: column; gap: var(--s-6); }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-900);
  margin-bottom: var(--s-2);
}
.form-group select,
.form-group input {
  width: 100%;
  padding: 14px var(--s-4);
  border: 1px solid var(--sand-300);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink-900);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(150, 104, 59, 0.15);
}

.calc-result {
  background: var(--brand-900);
  color: var(--cream);
  padding: var(--s-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-4);
}
.calc-result h3 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  font-size: 15px;
  color: rgba(255, 253, 248, 0.75);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
}
.result-row strong { color: var(--cream); font-size: 17px; white-space: nowrap; }
.result-row.total { border-bottom: none; padding-top: var(--s-2); font-size: 16px; color: #E8CFA8; }
.result-row.total strong { font-family: var(--font-display); font-size: 30px; color: #E8CFA8; }
.calc-placeholder { font-size: 15px; color: rgba(255, 253, 248, 0.7); }

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.property-card {
  background: var(--surface);
  border: 1px solid var(--sand-200);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.property-card img { width: 100%; height: 260px; object-fit: cover; }
.property-info { padding: var(--s-8); }
.property-info h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: var(--s-2); }
.property-info > p { font-size: 15px; margin-bottom: var(--s-6); }
.property-stats { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pstat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand-100);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700);
}
.pstat svg { width: 14px; height: 14px; color: var(--brand-600); }

/* --------------------------------------------------------------------------
   Témoignages (carrousel scroll-snap)
   -------------------------------------------------------------------------- */
.testimonials-wrapper { position: relative; }
.testimonials-track {
  display: flex;
  gap: var(--s-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--s-2) var(--s-1) var(--s-6);
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 min(360px, 85vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--sand-200);
  border-radius: var(--r);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.testimonial-header { display: flex; align-items: center; gap: var(--s-3); }
.testimonial-photo {
  width: 48px; height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--sand-200);
}
.avatar-fallback {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--brand-700);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex: none;
}
.testimonial-author h4 { font-family: var(--font-ui); font-size: 16px; font-weight: 700; }
.stars { display: flex; gap: 2px; margin-top: 2px; }
.stars svg { width: 14px; height: 14px; color: var(--gold); fill: var(--gold); }
.testimonial-text { font-size: 15px; flex: 1; }
.testimonial-date { font-size: 13px; color: var(--ink-500); }

.carousel-nav { display: flex; gap: var(--s-3); justify-content: center; margin-top: var(--s-4); }
.carousel-arrow {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--sand-300);
  background: var(--surface);
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover { border-color: var(--brand-600); color: var(--brand-600); transform: translateY(-1px); }
.carousel-arrow svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-16);
  align-items: start;
}
.contact-aside h2 { margin-bottom: var(--s-4); }
.contact-aside .lead { margin-bottom: var(--s-8); }
.contact-line {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
  margin-bottom: var(--s-4);
}
.contact-line .icon-chip { width: 40px; height: 40px; }
.contact-line .icon-chip svg { width: 20px; height: 20px; }
.contact-line:hover { color: var(--brand-700); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--sand-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.contact-form .form-group.full { grid-column: 1 / -1; }
.contact-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 14px var(--s-4);
  border: 1px solid var(--sand-300);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink-900);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(150, 104, 59, 0.15);
}
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }

/* --------------------------------------------------------------------------
   Listes riches (sous-pages)
   -------------------------------------------------------------------------- */
.check-list, .pain-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.check-list li, .pain-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: 16px;
}
.check-list svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 3px; }
.pain-list svg { width: 20px; height: 20px; color: var(--danger); flex: none; margin-top: 3px; }

.pain-box {
  background: var(--surface);
  border: 1px solid var(--sand-200);
  border-left: 4px solid var(--danger);
  border-radius: var(--r);
  padding: var(--s-8);
}
.pain-box h2 { font-size: 24px; margin-bottom: var(--s-6); }

.note-box {
  background: var(--sand-100);
  border-radius: var(--r);
  padding: var(--s-8);
  border-left: 4px solid var(--brand-500);
}
.note-box h2 { font-size: 24px; margin-bottom: var(--s-4); }

.emergency-box {
  background: var(--brand-900);
  color: var(--cream);
  border-radius: var(--r);
  padding: var(--s-8);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.emergency-box .icon-chip { background: rgba(255, 253, 248, 0.12); color: #E8CFA8; flex: none; }
.emergency-box h3 { font-family: var(--font-display); color: var(--cream); font-size: 22px; margin-bottom: var(--s-1); }
.emergency-box p { color: rgba(255, 253, 248, 0.85); font-size: 15px; }

/* Comparaison photos amateur / pro */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.comparison-card {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--sand-200);
  background: var(--surface);
}
.comparison-header {
  padding: var(--s-4) var(--s-6);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.comparison-header svg { width: 18px; height: 18px; }
.bad-header { background: var(--danger-bg); color: var(--danger); }
.good-header { background: var(--success-bg); color: var(--success); }
.comparison-card img { width: 100%; height: 240px; object-fit: cover; }
.comparison-footer { padding: var(--s-6); }

/* Section CTA finale des sous-pages */
.cta-banner {
  background: linear-gradient(160deg, var(--brand-900) 0%, #57432A 100%);
  border-radius: var(--r-lg);
  padding: var(--s-16) var(--s-8);
  text-align: center;
  color: var(--cream);
}
.cta-banner h2 { color: var(--cream); margin-bottom: var(--s-3); }
.cta-banner p { color: rgba(255, 253, 248, 0.85); margin: 0 auto var(--s-8); }
.cta-banner .btn-primary { background: var(--cream); color: var(--brand-900); }
.cta-banner .btn-primary:hover { background: #FFFFFF; }
.cta-banner .btn-secondary { background: transparent; color: var(--cream); border-color: rgba(255, 253, 248, 0.4); }
.cta-banner .btn-secondary:hover { background: rgba(255, 253, 248, 0.12); color: var(--cream); }
.cta-actions { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-900);
  color: rgba(255, 253, 248, 0.75);
  padding: var(--s-16) 0 var(--s-8);
  margin-top: var(--s-24);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-12);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid rgba(255, 253, 248, 0.12);
}
.footer-brand h3 { font-family: var(--font-display); color: var(--cream); font-size: 22px; margin-bottom: var(--s-3); }
.footer-brand p { font-size: 15px; max-width: 36ch; }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8CFA8;
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { color: rgba(255, 253, 248, 0.75); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { padding-top: var(--s-8); font-size: 13px; text-align: center; color: rgba(255, 253, 248, 0.5); }

/* --------------------------------------------------------------------------
   Animations d'apparition
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .section { padding: var(--s-16) 0; }
  .grid-3, .process-grid, .process-grid.cols-4, .process-grid.cols-5, .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: var(--s-8); }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .calculator { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .process-grid, .process-grid.cols-4, .process-grid.cols-5, .steps, .comparison-grid { grid-template-columns: 1fr; }
  .stats-grid, .stats-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-4); }
  .hero { min-height: 540px; }
  .contact-form { grid-template-columns: 1fr; padding: var(--s-6); }
  .calculator-form, .calc-result { padding: var(--s-8); }
  .footer-grid { grid-template-columns: 1fr; }

  .menu-toggle { display: block; }
  .menu-close { display: block; position: absolute; top: var(--s-4); right: var(--s-4); }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--sand-50);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--s-24) var(--s-8) var(--s-8);
    gap: var(--s-6);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 1002;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active { transform: translateX(0); visibility: visible; transition: transform 0.3s ease, visibility 0s; }
  .nav-links a:not(.btn) { font-size: 18px; }
}
