/* ═══════════════════════════════════════════
   GEEMSAD — Shared Stylesheet
   Playfair Display + DM Sans
   ═══════════════════════════════════════════ */

/* TOKENS */
:root {
  --bg:        #F7F5F0;
  --white:     #FFFFFF;
  --ink:       #111010;
  --ink-mid:   #4A4642;
  --ink-sub:   #706A64;
  --ink-mute:  #9A9490;
  --border:    #DEDAD4;
  --border2:   #C8C4BE;
  --gold:      #C4A24A;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --mono:      'DM Mono', monospace;
  --r:         4px;
  --max:       1100px;
  --section-y: 88px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─ NAV ─ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,240,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-brand { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 13px; color: var(--ink-sub); letter-spacing: 0.02em; transition: color 0.15s; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 500; }
.nav-cta {
  font-size: 13px; font-weight: 500;
  background: var(--ink); color: var(--white);
  padding: 8px 18px; border-radius: var(--r);
  letter-spacing: 0.03em;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.82; }
.nav-mobile-btn { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; }
.nav-mobile-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }
.mobile-menu { display: none; }

/* ─ CONTAINERS ─ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-y) 0; }
.section-sm { padding: 56px 0; }

/* ─ LABELS ─ */
.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); display: block; margin-bottom: 16px;
}
.eyebrow-gold { color: var(--gold); }

/* ─ HEADINGS ─ */
.h1 { font-family: var(--serif); font-size: clamp(36px, 5.5vw, 58px); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
.h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 400; line-height: 1.12; }
.h3 { font-family: var(--serif); font-size: clamp(20px, 2.5vw, 26px); font-weight: 400; }
.italic { font-style: italic; }
.gold-underline { position: relative; display: inline-block; }
.gold-underline::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--gold); }

/* ─ DIVIDERS ─ */
.rule { border: none; border-top: 1px solid var(--border); }
.rule-dark { border: none; border-top: 1px solid var(--ink); }

/* ─ BUTTONS ─ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  padding: 13px 26px; border-radius: var(--r);
  transition: opacity 0.15s, transform 0.15s; cursor: pointer;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ─ HERO ─ */
.hero { padding: 80px 0 72px; }
.hero-inner { max-width: 680px; }
.hero-sub { font-size: 16px; color: var(--ink-mid); max-width: 520px; margin-top: 20px; margin-bottom: 36px; line-height: 1.75; }
.hero-proofs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 36px; }
.hero-proof { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-sub); }
.proof-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }

/* ─ GRID ─ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ─ CARDS ─ */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.card-dark { background: var(--ink); color: var(--white); border: 1px solid var(--ink); border-radius: 8px; padding: 28px; }
.card-num { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.1em; margin-bottom: 12px; }
.card-dark .card-num { color: rgba(255,255,255,0.3); }
.card-title { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.card-body { font-size: 14px; color: var(--ink-sub); line-height: 1.65; }
.card-dark .card-body { color: rgba(255,255,255,0.55); }
.card-price { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-top: 16px; }
.card-dark .card-price { color: var(--white); }
.card-price-sub { font-size: 12px; color: var(--ink-mute); margin-top: 3px; }
.card-dark .card-price-sub { color: rgba(255,255,255,0.35); }

/* ─ SERVICE POLES STRIP ─ */
.poles-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(4,1fr); }
.pole-cell { padding: 20px 24px; border-right: 1px solid var(--border); }
.pole-cell:last-child { border-right: none; }
.pole-cell-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 5px; }
.pole-cell-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.pole-cell-price { font-size: 12px; color: var(--ink-sub); margin-top: 2px; }

/* ─ PRICING TABLE ─ */
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); padding: 0 0 10px; text-align: left; border-bottom: 1px solid var(--ink); font-weight: 400; }
.pricing-table th:not(:first-child) { text-align: right; }
.pricing-table td { padding: 14px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .td-name { font-size: 14px; font-weight: 500; }
.pricing-table .td-desc { font-size: 12px; color: var(--ink-sub); margin-top: 3px; }
.pricing-table .td-price { font-size: 15px; font-weight: 500; text-align: right; }
.pricing-table .td-price-sub { font-size: 11px; color: var(--ink-mute); text-align: right; margin-top: 2px; }

/* ─ GUARANTEE SECTION ─ */
.guarantee-section { background: var(--ink); padding: 72px 0; text-align: center; }
.guarantee-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; display: block; }
.guarantee-headline { font-family: var(--serif); font-size: clamp(28px,5vw,44px); font-weight: 400; letter-spacing: 0.04em; color: var(--white); margin-bottom: 16px; }
.guarantee-sub { font-size: 15px; color: rgba(255,255,255,0.45); max-width: 440px; margin: 0 auto; line-height: 1.75; }

/* ─ FOOTER ─ */
.footer { padding: 28px 40px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 14px; color: var(--ink-sub); }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 12px; color: var(--ink-mute); transition: color 0.15s; letter-spacing: 0.03em; }
.footer-link:hover { color: var(--ink); }

/* ─ FORM ─ */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.form-inner { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-sub); }
.field-label .req { color: var(--ink-mute); font-weight: 400; }
.field-input, .field-select, .field-textarea {
  width: 100%; padding: 10px 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  transition: border-color 0.15s; -webkit-appearance: none; appearance: none;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--ink); background: var(--white); outline: none; }
.field-input::placeholder, .field-textarea::placeholder { color: var(--ink-mute); }
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239A9490' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer;
}
.field-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.field-group-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-section-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 2px 0; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkbox-item { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 9px 11px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); transition: border-color 0.15s, background 0.15s; user-select: none; }
.checkbox-item:hover { border-color: var(--border2); }
.checkbox-item input[type="checkbox"] { width: 15px; height: 15px; border: 1.5px solid var(--border2); border-radius: 3px; background: var(--white); cursor: pointer; flex-shrink: 0; position: relative; -webkit-appearance: none; appearance: none; transition: all 0.15s; }
.checkbox-item input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
.checkbox-item input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 3px; top: 1px; width: 5px; height: 8px; border: 2px solid white; border-top: none; border-left: none; transform: rotate(45deg); }
.checkbox-item input:checked ~ .cb-label { color: var(--ink); font-weight: 500; }
.cb-label { font-size: 13px; color: var(--ink-mid); line-height: 1.3; }
.checkbox-item.is-checked { border-color: var(--ink); background: var(--white); }
.form-footer-bar { background: var(--bg); border-top: 1px solid var(--border); padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-footer-note { font-size: 12px; color: var(--ink-mute); line-height: 1.5; }
.submit-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; padding: 13px 26px; border-radius: var(--r); cursor: pointer; transition: opacity 0.15s; white-space: nowrap; border: none; font-family: var(--sans); }
.submit-btn:hover { opacity: 0.85; }
.submit-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ─ BADGE ─ */
.badge { display: inline-block; font-size: 11px; color: var(--ink-sub); background: var(--white); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; }

/* ─ RESPONSIVE ─ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .poles-strip { grid-template-columns: 1fr 1fr; }
  .pole-cell { border-bottom: 1px solid var(--border); }
  .pole-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .pole-cell:nth-child(even) { border-right: none; }
  .pole-cell:nth-child(3), .pole-cell:nth-child(4) { border-bottom: none; }
}
@media (max-width: 768px) {
  :root { --section-y: 56px; }
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .mobile-menu { display: none; position: fixed; inset: 58px 0 0 0; background: var(--bg); border-top: 1px solid var(--border); z-index: 99; padding: 24px 24px; flex-direction: column; gap: 4px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { display: block; padding: 12px 0; font-size: 15px; color: var(--ink-sub); border-bottom: 1px solid var(--border); }
  .mobile-menu a:last-child { border-bottom: none; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .field-group-2 { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .form-inner { padding: 20px; }
  .form-footer-bar { padding: 16px 20px; }
  .submit-btn { width: 100%; justify-content: center; }
  .footer { padding: 20px; flex-direction: column; align-items: flex-start; }
}
/* ─ MOBILE FINESSE (≤768px) — corrige les grilles inline du HTML ─ */
@media (max-width: 768px) {
  /* Typo hero plus contenue */
  .h1 { font-size: clamp(30px, 9vw, 40px); }
  .h2 { font-size: clamp(24px, 7vw, 32px); }
  .hero { padding: 48px 0 44px; }
  .hero-sub { font-size: 15px; }

  /* Toutes les grilles 2-colonnes inline passent à 1 colonne */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* L'Atelier Total (accueil + services) empilé proprement */
  .total-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .total-box { padding: 24px !important; }

  /* Boutons hero en pleine largeur, empilés */
  .hero .btn, .section-sm .btn { width: 100%; justify-content: center; }
  .hero div[style*="display:flex"] { flex-direction: column; }

  /* Cartes engagement : espace vertical correct */
  .section .grid-3 > div { padding-bottom: 4px; }

  /* CTA guarantee bouton pleine largeur */
  .guarantee-section .btn { width: 100%; justify-content: center; }

  /* Footer liens : wrap propre */
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

/* ─ TÉLÉPHONES ÉTROITS (≤420px) — densité ajustée ─ */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .nav { padding: 0 16px; height: 54px; }
  .nav-brand { font-size: 16px; }
  .mobile-menu { inset: 54px 0 0 0; }
  .h1 { font-size: 28px; line-height: 1.12; }
  .eyebrow { font-size: 10px; letter-spacing: 0.14em; }

  /* Pôles en 1 seule colonne sous 420px */
  .poles-strip { grid-template-columns: 1fr; }
  .pole-cell { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .pole-cell:last-child { border-bottom: none !important; }

  /* Tiers tarifaires : 1 colonne, lisibles */
  .tier-grid { grid-template-columns: 1fr !important; }

  /* Formulaire : padding réduit, champs confortables au pouce */
  .form-inner { padding: 18px; gap: 16px; }
  .field-input, .field-select, .field-textarea { padding: 12px; font-size: 16px; } /* 16px = pas de zoom auto iOS */
  .checkbox-item { padding: 11px 12px; }

  /* Sidebar planifier : ordre logique sur mobile */
  .sidebar-title { font-size: 24px; }
}

/* ─ iOS : empêche le zoom auto sur focus des champs ─ */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
