/* ============================================================
   HORLOGERIE FRANÇAISE — Design premium 2025
   Fonts: Outfit (headings) + Inter (body) via Google Fonts
   ============================================================ */

/* ── Custom properties ── */
:root {
  --bg:          #ffffff;
  --bg-subtle:   #fdf9f0;
  --surface:     #ffffff;
  --border:      #e8dfc8;
  --text:        #1a1208;
  --text-muted:  #6b6040;
  --text-light:  #9c8e6a;

  --primary:     #b8860b;
  --primary-dk:  #8B6914;
  --accent:      #c0392b;
  --gold:        #d4af37;
  --success:     #27ae60;
  --danger:      #c0392b;

  --grad-hero:   linear-gradient(135deg, #0d0a04 0%, #1a1208 50%, #0f0c06 100%);
  --grad-primary: linear-gradient(135deg, #b8860b, #d4af37);
  --grad-gold:    linear-gradient(135deg, #d4af37, #b8860b);
  --grad-green:   linear-gradient(135deg, #27ae60, #2ecc71);
  --grad-card:    linear-gradient(145deg, rgba(184,134,11,.04), rgba(212,175,55,.04));

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(184,134,11,.08);
  --shadow-md:  0 8px 32px rgba(184,134,11,.12);
  --shadow-lg:  0 20px 60px rgba(184,134,11,.16);
  --shadow-glow:0 0 40px rgba(212,175,55,.25);

  --transition: 0.28s cubic-bezier(.4,0,.2,1);
  --font-head:  'Outfit', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; }
img  { max-width: 100%; display: block; }
a    { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }

/* ── Layout ── */
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
main { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
section { margin-bottom: 56px; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,10,4,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,55,.15);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  color: var(--gold); letter-spacing: -.01em;
}
nav { display: flex; gap: 4px; }
nav a {
  color: rgba(255,255,255,.75); font-size: .875rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
nav a:hover, nav a.active { color: var(--gold); background: rgba(212,175,55,.1); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero);
  padding: 100px 24px 80px; text-align: center;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px),
                    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2rem,5vw,3.25rem);
  font-weight: 800; line-height: 1.15; color: #fff; margin-bottom: 20px;
}
.hero h1 span { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-block; background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.3); color: var(--gold);
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}

/* ── Stats strip ── */
.stats-strip { background: var(--bg-subtle); border-bottom: 1px solid var(--border); padding: 24px; }
.stats-inner { max-width: 860px; margin: 0 auto; display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { display: block; font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat-label  { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9rem; border-radius: var(--radius-md);
  padding: 12px 24px; cursor: pointer; transition: all var(--transition); border: none;
}
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid rgba(212,175,55,.4); }
.btn-outline:hover { border-color: var(--gold); background: rgba(212,175,55,.08); color: var(--gold); }
.btn-sm { padding: 8px 16px; font-size: .825rem; }

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; margin: 28px 0; }
.card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-thumb img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1rem; margin-bottom: 6px; }

/* ── Typography ── */
h2 { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; margin: 40px 0 16px; color: var(--text); }
h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; margin: 28px 0 12px; }
p  { margin-bottom: 16px; }
h2.decorated::before { content: ''; display: block; width: 40px; height: 3px; background: var(--grad-primary); border-radius: 2px; margin-bottom: 10px; }

/* ── TOC ── */
.toc { background: var(--bg-subtle); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius-md); padding: 20px 24px; margin: 32px 0; }
.toc-title { font-weight: 700; margin-bottom: 12px; font-family: var(--font-head); }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: .9rem; }
.toc a { color: var(--primary); }
.toc a:hover { color: var(--primary-dk); }

/* ── Highlight ── */
.highlight { background: linear-gradient(135deg, rgba(184,134,11,.06), rgba(212,175,55,.06)); border: 1px solid rgba(212,175,55,.2); border-radius: var(--radius-md); padding: 20px 24px; margin: 20px 0; }

/* ── List check ── */
.list-check { list-style: none; padding: 0; }
.list-check li { padding: 8px 0 8px 32px; position: relative; font-size: .95rem; border-bottom: 1px solid var(--border); }
.list-check li:last-child { border-bottom: none; }
.list-check li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ── Steps ── */
.steps { counter-reset: step; }
.steps .step { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.step-num { counter-increment: step; min-width: 40px; height: 40px; background: var(--grad-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); flex-shrink: 0; }
.step-num::before { content: counter(step); }

/* ── FAQ ── */
.faq { margin: 28px 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-q { font-weight: 600; padding: 16px 20px; background: var(--bg-subtle); cursor: pointer; font-size: .95rem; }
.faq-a { padding: 16px 20px; font-size: .9rem; color: var(--text-muted); border-top: 1px solid var(--border); }

/* ── Compare table ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.compare-table th { background: var(--grad-hero); color: var(--gold); padding: 12px 16px; text-align: left; font-weight: 600; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare-table tr:nth-child(even) td { background: var(--bg-subtle); }

/* ── Affiliate box ── */
.affiliate-box { background: var(--bg-subtle); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin: 28px 0; }
.affiliate-box.green { border-color: rgba(39,174,96,.3); background: rgba(39,174,96,.04); }

/* ── Ad slot ── */
.ad-slot { background: #f5f0e8; border: 1px dashed #c9a84c; border-radius: var(--radius-md); padding: 20px; text-align: center; color: var(--text-muted); font-size: .8rem; min-height: 90px; display: flex; align-items: center; justify-content: center; margin: 28px 0; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }

/* ── Section eyebrow ── */
.section-eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }

/* ── Tags ── */
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; margin-bottom: 8px; }
.tag-free { background: rgba(39,174,96,.1); color: var(--success); }
.tag-premium { background: rgba(184,134,11,.1); color: var(--primary); }

/* ── Footer ── */
footer { background: var(--grad-hero); color: rgba(255,255,255,.6); text-align: center; padding: 32px 24px; font-size: .85rem; border-top: 1px solid rgba(212,175,55,.1); }
footer a { color: rgba(212,175,55,.8); }
footer a:hover { color: var(--gold); }

/* ── Blog cards ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; margin: 32px 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 64px 20px 48px; }
  nav a span { display: none; }
  .stats-inner { gap: 20px; }
  .card-grid { grid-template-columns: 1fr; }
}
