/* ===== src/tokens.css =====
   Design tokens & styles globaux — Maison Sereine
   Palette : vert sapin (primary), terracotta doux (accent), crème
   Type    : DM Serif Display (titres) + Inter (texte) + JetBrains Mono (mono)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Couleurs — fond */
  --bg:           #F6F4EF;   /* crème principal */
  --bg-2:         #EFEBE2;   /* crème un peu plus saturé pour zones */
  --surface:      #FFFFFF;   /* cartes */
  --line:         #E2DCD0;   /* bordures fines */

  /* Couleurs — encre */
  --ink:          #1B2A22;   /* texte principal — vert très foncé */
  --ink-2:        #4A5C52;   /* texte secondaire */
  --ink-3:        #8A9890;   /* tertiaire / labels */

  /* Couleurs — primaire (vert sapin) */
  --primary:      #2E4A3A;
  --primary-2:    #1F3328;
  --primary-soft: #DCE6DF;

  /* Couleurs — accent (terracotta doux) */
  --accent:       #C2693E;
  --accent-2:     #A65530;
  --accent-soft:  #F4E5DC;

  /* Couleurs — sémantique */
  --success:      #2F7A4F;
  --warning:      #C68A2E;
  --danger:       #B94B3A;

  /* Type */
  --font-display: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Menlo', monospace;

  /* Ombres */
  --shadow-1: 0 1px 2px rgba(27, 42, 34, 0.04), 0 2px 8px rgba(27, 42, 34, 0.04);
  --shadow-2: 0 12px 32px rgba(27, 42, 34, 0.10), 0 2px 8px rgba(27, 42, 34, 0.06);
  --shadow-3: 0 24px 60px rgba(27, 42, 34, 0.16);

  /* Rayons */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Layout */
  --container-w: 1200px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
p  { margin: 0; line-height: 1.55; text-wrap: pretty; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}
.row { display: flex; align-items: center; gap: 8px; }
.hr { border: 0; height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-2); }

.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover { background: var(--primary-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }

.btn-link {
  background: transparent;
  color: var(--primary);
  padding: 6px 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Placeholder image ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ---------- Cartes & surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.is-open {
  border-color: var(--primary);
  box-shadow: var(--shadow-1);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--ink);
}
.faq-trigger-text { display: flex; flex-direction: column; gap: 6px; }
.faq-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.faq-q {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}
.faq-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-bar {
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-bar-h { width: 14px; height: 2px; }
.faq-bar-v { width: 2px; height: 14px; }
.faq-item.is-open .faq-bar-v { transform: scaleY(0); opacity: 0; }
.faq-panel-inner {
  padding: 0 26px 24px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  display: grid;
  gap: 12px;
}
.faq-panel-inner p { margin: 0; }

@media (max-width: 960px) {
  .hero-text-col {
    padding-top: 72px !important;
    padding-bottom: 88px !important;
    min-height: min(640px, 88vh);
    align-items: flex-end !important;
  }
  .hero-text-col h1 { font-size: clamp(32px, 8vw, 40px) !important; }
}

@media (min-width: 961px) {
  .hero-text-col {
    max-width: 58%;
    min-height: min(720px, 92vh);
  }
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 35%;
  display: block;
  z-index: 0;
}

.hero-bg-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.32) 28%, rgba(0,0,0,0.10) 52%, rgba(0,0,0,0) 72%);
}

/* ---------- Hero visual responsive ---------- */
@media (max-width: 960px) {
  .container > [style*="grid-template-columns: 1.1fr 1fr"],
  .container > [style*="grid-template-columns: 1fr 1.4fr"],
  .container > [style*="grid-template-columns: 1fr 1.15fr"],
  .container > [style*="grid-template-columns: 1.2fr 1fr"],
  .container > [style*="grid-template-columns: 1fr 1.2fr"],
  .container > [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .tiers-grid { grid-template-columns: 1fr !important; }
  h1 { font-size: 40px !important; }
}

/* ---------- Scrollbar discrète ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ---------- Sélection ---------- */
::selection { background: var(--accent-soft); color: var(--ink); }

/* ============================================================
   Navigation (header)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--primary); }
.brand span { white-space: nowrap; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-phone {
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--primary) !important; }
.nav-cta { font-size: 14px; padding: 10px 18px; }

/* Hamburger (caché desktop) */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  position: relative;
}
.hb-line {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.hb-line:nth-child(1) { top: 13px; }
.hb-line:nth-child(2) { top: 19px; }
.hb-line:nth-child(3) { top: 25px; }
.hb-line.is-open-1 { top: 19px; transform: rotate(45deg); }
.hb-line.is-open-2 { opacity: 0; }
.hb-line.is-open-3 { top: 19px; transform: rotate(-45deg); }

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding-top: 72px;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: calc(100vh - 72px);
}
.mobile-menu-inner ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mobile-menu-inner li { border-bottom: 1px solid var(--line); }
.mobile-menu-inner a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  transition: color 0.15s ease, padding 0.15s ease;
}
.mobile-menu-inner a:hover { color: var(--primary); padding-left: 12px; }
.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.mobile-call { justify-content: center; }

/* ============================================================
   Chips
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.4;
}

/* ============================================================
   Tiers grid (3 paliers)
   ============================================================ */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* ============================================================
   Footer
   ============================================================ */
.footer-inner {
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-grid .brand { color: #fff; font-family: var(--font-display); font-size: 20px; display: inline-flex; align-items: center; gap: 10px; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #BCCCC3;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-phone, .nav-cta { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
