@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #17242b;
  --ink-soft: #2e4149;
  --paper: #f6f4ef;
  --paper-raised: #ffffff;
  --brass: #b8874d;
  --brass-deep: #93662f;
  --line: #dcd6c8;
  --success: #3f7d5c;
  --danger: #a4483a;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em 0;
  color: var(--ink);
}

a { color: var(--brass-deep); text-decoration: none; }
a:focus-visible, button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

.muted { color: #6b6b6b; font-size: 0.9rem; }

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Boutons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.button:active { transform: translateY(1px); }

.button.brass { background: var(--brass); color: #fff; }
.button.brass:hover { background: var(--brass-deep); }

.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--paper-raised); border-color: var(--ink); }

.button.ghost { background: transparent; color: var(--ink-soft); }
.button.ghost:hover { color: var(--ink); }

.button.block { width: 100%; }

.inline-link { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--ink); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--brass);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a { color: var(--ink-soft); position: relative; padding: 0.2rem 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brass);
  border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links a { padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ---------- Page header (pages interieures) ---------- */
.page-header { padding: 3.2rem 0 2.6rem; border-bottom: 1px solid var(--line); background: var(--paper-raised); }
.page-header .eyebrow { margin-bottom: 0.7rem; }
.page-header h1 { font-size: 2.1rem; max-width: 42ch; }
.page-header p { color: var(--ink-soft); max-width: 60ch; font-size: 1.02rem; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 5rem; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brass-deep);
  margin: 0 0 0.9rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.hero .lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1rem; font-size: 0.85rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .hero-visual { order: -1; }
}

/* ---------- Hero visual (mockup de documents) ---------- */
.hero-visual { display: flex; justify-content: center; }

.doc-stack {
  position: relative;
  width: 260px;
  height: 320px;
}

.doc-card {
  position: absolute;
  width: 220px;
  height: 290px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 40px -24px rgba(23, 36, 43, 0.35);
  padding: 1.1rem;
  transition: transform 0.4s ease;
}

.doc-stack:hover .doc-card-back { transform: rotate(-13deg) translateY(4px); }
.doc-stack:hover .doc-card-mid { transform: rotate(8deg) translateY(2px); }
.doc-stack:hover .doc-card-front { transform: translateY(-6px); }

.doc-card-back { top: 26px; left: 0; transform: rotate(-9deg); opacity: 0.75; }
.doc-card-mid { top: 12px; left: 20px; transform: rotate(5deg); opacity: 0.9; }
.doc-card-front { top: 0; left: 8px; }

.doc-card-bar { width: 46px; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 1rem; }
.doc-card-bar.brass-bar { background: var(--brass); }

.doc-card-line { height: 7px; border-radius: 3px; background: var(--line); margin-bottom: 0.55rem; }
.doc-card-line.short { width: 60%; }

.doc-card-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.doc-card-badge { width: 16px; height: 16px; border-radius: 4px; background: var(--brass); transform: rotate(45deg); flex-shrink: 0; }
.doc-card-title { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }

.doc-card-flyer {
  background-size: cover;
  background-position: center;
  padding: 0;
  overflow: hidden;
}
.doc-card-flyer-overlay {
  position: absolute;
  inset: 0;
  background: #17242b;
  opacity: 0.62;
}
.doc-card-flyer-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.1rem 1rem;
  gap: 0.4rem;
  color: #fff;
  text-align: center;
}
.doc-card-flyer-accent { width: 26px; height: 2px; background: var(--brass); margin-bottom: 0.2rem; }
.doc-card-flyer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.doc-card-flyer-tagline { font-style: italic; color: var(--brass); font-size: 0.72rem; }
.doc-card-flyer-badges { display: flex; gap: 0.4rem; margin: 0.2rem 0; }
.doc-card-flyer-badges span {
  border: 1px solid var(--brass);
  color: var(--brass);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.62rem;
}
.doc-card-flyer-cta {
  width: 100%;
  background: var(--brass);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.doc-card-flyer-cta .doc-card-qr {
  margin-top: 0;
  width: 28px;
  height: 28px;
  background-color: #fff;
  padding: 2px;
}

.doc-card-qr {
  border-radius: 4px;
  display: block;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding: 3rem 0; }

.section-title { font-size: 1.9rem; text-align: center; }
.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 3rem;
  font-size: 1.02rem;
}

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.feature-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(23,36,43,0.35); }

.feature-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(184, 135, 77, 0.14);
  color: var(--brass-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

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

/* ---------- Audience cards (particuliers / conciergeries) ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.audience-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(23,36,43,0.35); }
.audience-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--brass); color: var(--brass-deep); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.1rem; }
.audience-card ul { padding-left: 1.1rem; color: var(--ink-soft); margin: 0.9rem 0 1.3rem; font-size: 0.94rem; }
.audience-card li { margin-bottom: 0.4rem; }

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

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.step-number {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--brass); color: var(--brass-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; margin-bottom: 1rem;
}

.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

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

/* ---------- Conciergeries checklist ---------- */
.conciergeries-inner { max-width: 720px; }

.checklist-visual { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.8rem; }
.checklist-visual li { position: relative; padding-left: 1.7rem; font-weight: 500; color: var(--ink-soft); }
.checklist-visual li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brass); color: #fff; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Comparatif ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-raised); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
.compare-table th, .compare-table td { padding: 0.9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table th { font-family: var(--font-display); font-weight: 600; font-size: 1rem; background: var(--paper); }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-col-brand { color: var(--brass-deep); }
.compare-yes { color: var(--success); font-weight: 700; }
.compare-no { color: #a3a3a3; }

/* ---------- Securite ---------- */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.security-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.6rem; }
.security-card h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 0.6rem; }
.security-card .security-icon { color: var(--brass-deep); font-size: 1.1rem; }
.security-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
@media (max-width: 780px) { .security-grid { grid-template-columns: 1fr; } }

/* ---------- Galerie de templates ---------- */
.template-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.template-gallery-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.template-gallery-card:hover { transform: translateY(-5px); box-shadow: 0 20px 34px -22px rgba(23,36,43,0.4); }
.template-preview { position: relative; width: 100%; aspect-ratio: 595 / 842; overflow: hidden; }
.template-gallery-body { padding: 1.1rem 1.3rem 1.4rem; }
.template-gallery-body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.template-gallery-body p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

@media (max-width: 900px) { .template-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .template-gallery-grid { grid-template-columns: 1fr; } }

.tmpl-line { height: 3px; border-radius: 1px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.pricing-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.pricing-card.is-highlight { border-color: var(--brass); box-shadow: 0 18px 34px -24px rgba(184,135,77,0.55); }
.pricing-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.pricing-amount { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; margin-bottom: 0.4rem; }
.pricing-amount .muted { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; }
.pricing-tagline { color: var(--brass-deep); font-weight: 600; font-size: 0.85rem; margin-bottom: 1rem; }

/* ---------- Formulaire de devis ---------- */
.quote-form {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
}
.quote-form .field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.quote-form label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.quote-form input, .quote-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.quote-form input:focus, .quote-form textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

/* ---------- Calculateur conciergerie ---------- */
.calculator-card {
  max-width: 560px;
  margin: 3rem auto 0;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
}
.calculator-slider-row { margin: 1.4rem 0; }
.calculator-slider-row label { display: block; margin-bottom: 0.6rem; }
.calculator-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--brass);
}
.calculator-count {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brass-deep);
}
.calculator-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.4rem;
}
.calculator-result-item { display: flex; flex-direction: column; gap: 0.2rem; text-align: center; }
.calculator-result-label { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.calculator-result-value { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.55rem; }
.pricing-card li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: 0.92rem; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pricing-card .button { margin-top: auto; }

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

/* ---------- CTA ---------- */
.cta-section { text-align: center; }
.cta-inner p { color: var(--ink-soft); margin-bottom: 1.8rem; font-size: 1.05rem; }

/* ---------- Contact / A propos ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.info-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem 1.8rem; }
.info-card dt { font-weight: 600; color: var(--ink-soft); font-size: 0.82rem; margin-top: 0.9rem; }
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: 0.15rem 0 0; }
@media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Contenu legal ---------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 3rem 0 5rem; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 0.96rem; }
.legal-content ul { padding-left: 1.3rem; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; }
.legal-content th { background: var(--paper-raised); }
.legal-update { font-size: 0.82rem; color: #8a8a8a; margin-top: -0.6rem; }

/* ---------- Code promo ---------- */
.card-code {
  background: var(--paper-raised);
  border: 2px dashed var(--brass);
  border-radius: 14px;
  padding: 2rem;
}
.promo-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--brass-deep);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; background: var(--paper-raised); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.2rem; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ink); }
.footer-about p { color: var(--ink-soft); font-size: 0.9rem; max-width: 32ch; margin: 0.9rem 0 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
