/* ==========================================================
   OFOORNO — Vitrine
   Charte : Stone #2B2016, Ember #E8823A, Bronze #6B4F2B,
            Cream #FEFAF3, Sand #F4ECDD
   ========================================================== */

:root {
  --stone: #2B2016;
  --ember: #E8823A;
  --ember-dark: #D9602A;
  --bronze: #6B4F2B;
  --cream: #FEFAF3;
  --sand: #F4ECDD;
  --line: #E8DDC8;
  --muted: #8A7A68;
  --success: #2E7D32;
  --danger: #C62828;
  --shadow: 0 6px 24px rgba(43,32,22,.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--stone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ember-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: 'Montserrat', system-ui, sans-serif; letter-spacing: -.02em; line-height: 1.15; color: var(--stone); }
h1 { font-size: clamp(36px, 5.5vw, 60px); margin: 0 0 16px; }
h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 14px; }
h3 { font-size: clamp(20px, 2vw, 24px); margin: 0 0 10px; }
p { margin: 0 0 16px; color: #4a3f33; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254,250,243,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 22px; color: var(--stone); }
.brand .dot { color: var(--ember); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--stone); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ember-dark); text-decoration: none; }
.nav-cta { background: var(--ember); color: #fff !important; padding: 10px 20px; border-radius: 8px; font-weight: 600; }
.nav-cta:hover { background: var(--ember-dark); text-decoration: none; }
.nav-burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--stone); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 16px; cursor: pointer; border: 0; transition: .15s; text-align: center; }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--stone); border: 2px solid var(--stone); }
.btn-ghost:hover { background: var(--stone); color: #fff; text-decoration: none; }
.btn-lg { padding: 18px 36px; font-size: 18px; }

/* ── HERO ─────────────────────────────────────────────── */
.hero { padding: 80px 0 64px; text-align: center; background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); }
.hero h1 { max-width: 820px; margin: 0 auto 20px; }
.hero .lead { font-size: clamp(18px, 2vw, 22px); color: var(--bronze); max-width: 640px; margin: 0 auto 36px; }
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .visual { margin-top: 56px; max-width: 920px; margin-left: auto; margin-right: auto; }
.hero .visual img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

/* ── SECTIONS ─────────────────────────────────────────── */
section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--stone); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: #d8cdb8; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title p { color: var(--muted); }

/* ── FEATURES GRID ────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; transition: .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico { width: 48px; height: 48px; background: var(--sand); color: var(--ember-dark); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature h3 { font-size: 19px; margin: 0 0 8px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }

/* ── PRICING ──────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.plan { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 36px 28px; position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--ember); box-shadow: var(--shadow); transform: scale(1.03); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ember); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { margin: 0 0 4px; }
.plan .price { font-family: 'Montserrat', sans-serif; font-size: 44px; font-weight: 700; color: var(--stone); margin: 18px 0 4px; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 400; }
.plan .desc { color: var(--muted); font-size: 14px; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0; flex: 1; }
.plan li { padding: 9px 0 9px 28px; position: relative; font-size: 15px; border-bottom: 1px solid var(--line); }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ember); font-weight: 700; }
.plan li.no::before { content: '—'; color: var(--muted); }

/* ── FORM ─────────────────────────────────────────────── */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--stone); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ember); }
.field .help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-msg { padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.form-msg.error { background: #FEEAEA; color: var(--danger); border: 1px solid #F5C6C6; }
.form-msg.success { background: #E8F5E9; color: var(--success); border: 1px solid #C8E6C9; }

/* ── DEMO BANNER ──────────────────────────────────────── */
.demo-banner { background: linear-gradient(135deg, var(--stone) 0%, var(--bronze) 100%); color: var(--cream); padding: 56px 0; text-align: center; }
.demo-banner h2 { color: var(--cream); }
.demo-banner p { color: #d8cdb8; max-width: 560px; margin: 0 auto 24px; }

/* ── FOOTER ───────────────────────────────────────────── */
footer { background: var(--stone); color: #c8b8a3; padding: 56px 0 32px; }
footer h4 { color: var(--cream); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #c8b8a3; font-size: 14px; }
footer a:hover { color: var(--ember); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-bottom { border-top: 1px solid #4a3a2a; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ── LEGAL PAGES ──────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 24px; margin-top: 32px; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 24px; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 68px; right: 0; left: 0; background: var(--cream); flex-direction: column; gap: 0; padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-links a:last-child { border: 0; }
  .nav-burger { display: block; }
  .grid-3, .grid-2, .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section, .hero { padding: 48px 0; }
}
