/* ===== Kit Vintage Premium (Playfair + Inter, tokens clé en main) ===== */
:root {
  /* Typography */
  --font-display: "Playfair Display", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Colors (Vintage Premium) */
  --bg: #F6F1E8;
  --surface: #FFFFFF;
  --surface2: #FBF7F0;
  --text: #141414;
  --muted: #4B4B4B;
  --border: #E7DED2;

  /* Sport-chic accents */
  --accent: #A8663B;
  --ink: #0E1B2A;

  /* Radius & shadow */
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-soft: 0 14px 40px rgba(0,0,0,0.10);

  /* Spacing */
  --container: 1120px;

  /* Aliases pour compatibilité existante */
  --font-serif: var(--font-display);
  --font-sans: var(--font-body);
  --text-secondary: var(--muted);
  --text-muted: var(--muted);
  --bg-card: var(--surface);
  --bg-elevated: var(--surface2);
  --btn-primary: var(--accent);
  --btn-primary-hover: #8f5730;
  --radius: 14px;
  --radius-lg: var(--r-lg);
  --success: #2d7a4f;
  --star: #e6b422;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--btn-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  color: #fff;
}

.btn-outline {
  background: var(--bg);
  border-color: var(--text);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--btn-primary);
  color: var(--btn-primary);
  background: var(--bg);
}

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(253, 248, 237, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 600;
}

.logo span {
  color: var(--text-secondary);
  font-weight: 500;
}

.logo-img {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
}

.logo-img-footer {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text-secondary);
}

.nav-links .btn {
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(251, 245, 233, 0.9) 0%, transparent 50%),
    var(--bg);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.stat strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.35rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.phone-mockup {
  width: 280px;
  height: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 12px 40px -8px rgba(75, 60, 53, 0.15);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mockup-placeholder span:first-child {
  font-size: 2.5rem;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 1.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  max-width: 100%;
  color: var(--text);
  line-height: 1.3;
  hyphens: none;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: none;
  margin-bottom: 2.5rem;
}

/* ===== Catégories ===== */
.categories {
  background: var(--bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.35;
  hyphens: none;
}

.category-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== Pour les marchands ===== */
.marchands {
  background: var(--bg-card);
}

.marchands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.marchand-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.marchand-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.marchand-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.marchand-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  hyphens: none;
}

.marchand-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Features ===== */
.features {
  background: var(--bg);
}

.features .section-title,
.how-it-works .section-title {
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  hyphens: none;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== How it works ===== */
.how-it-works .steps {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem 0.5rem;
}

.step {
  flex: 1 1 200px;
  max-width: 260px;
  text-align: center;
  padding: 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 1.25rem;
}

@media (max-width: 700px) {
  .step-arrow {
    display: none;
  }
}

/* ===== CTA ===== */
.cta-section {
  padding: 4rem 1.5rem;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px -4px rgba(75, 60, 53, 0.08);
}

.cta-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand .logo-tag {
  vertical-align: middle;
  margin-left: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--btn-primary);
}

.footer-sublabel {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 0.15rem;
  opacity: 0.9;
}

.footer-sublabel:first-of-type {
  margin-top: 0;
}

.footer-bottom {
  padding: 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px -8px rgba(75, 60, 53, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .phone-mockup {
    width: 240px;
    height: 440px;
  }
}
