/* ============================================================
   LUMINA AI — DESIGN SYSTEM
   Police : Figtree (titres) + DM Sans (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- Variables ---- */
:root {
  --font-heading: 'Figtree', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --ink: #0a0a0f;
  --ink-muted: #5a5a72;
  --ink-light: #9898b0;
  --surface: #ffffff;
  --surface-2: #f5f5fa;
  --surface-3: #ebebf5;
  --border: #e2e2ee;
  --accent: #5b5ef6;
  --accent-dark: #3d3fcf;
  --accent-soft: #ededff;
  --accent-2: #0fd4a5;
  --badge-best: #f59e0b;
  --badge-new: #10b981;
  --badge-api: #6366f1;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --nav-h: 68px;
  --max-w: 1200px;
  --transition: .18s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, .heading {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.display-xl { font-size: clamp(2.4rem, 5vw, 4rem); }
.display-lg { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.display-md { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.text-muted { color: var(--ink-muted); }
.text-light { color: var(--ink-light); }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex; align-items: center;
}

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -.04em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-logo em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 6px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-muted);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: white;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(91,94,246,.3); }
.btn-ghost {
  background: transparent; color: var(--ink-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-best { background: #fef3c7; color: #b45309; }
.badge-new { background: #d1fae5; color: #065f46; }
.badge-api { background: var(--accent-soft); color: var(--accent-dark); }
.badge-sector { background: var(--surface-2); color: var(--ink-muted); font-size: 11px; }

/* ---- Tool Card ---- */
.tool-card {
  display: flex; flex-direction: column; gap: 0;
  cursor: pointer;
}
.tool-card-header {
  padding: 20px 20px 14px;
  display: flex; align-items: flex-start; gap: 14px;
}
.tool-logo {
  width: 48px; height: 48px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.tool-meta { flex: 1; min-width: 0; }
.tool-name {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tool-tagline {
  font-size: 13px; color: var(--ink-muted);
  margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-card-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tool-price {
  font-size: 12px; font-weight: 600; color: var(--ink-muted);
}
.tool-score {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.tool-score svg { color: #f59e0b; }
.tool-tags { padding: 0 20px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tag {
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 99px;
  background: var(--surface-2); color: var(--ink-muted);
}

/* ---- Blog Card ---- */
.blog-card { cursor: pointer; }
.blog-card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.blog-card-body { padding: 20px; }
.blog-card-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 8px;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 16px; line-height: 1.25;
  margin-bottom: 8px;
}
.blog-card-meta { font-size: 12px; color: var(--ink-muted); display: flex; gap: 12px; }

/* ---- Hero Section ---- */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, #eeeeff 0%, transparent 70%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 99px; padding: 5px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { max-width: 760px; margin: 0 auto 20px; }
.hero .sub { font-size: 17px; color: var(--ink-muted); max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; align-items: center; gap: 12px; justify-content: center; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-top: 56px;
  padding-top: 48px; border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 900; color: var(--ink);
}
.hero-stat-label { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }

/* ---- Sector Pill Nav ---- */
.sector-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.sector-pill {
  padding: 7px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--ink-muted);
  transition: all var(--transition);
}
.sector-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.sector-pill.active { background: var(--accent); color: white; border-color: var(--accent); }
.sector-pill-count {
  background: rgba(255,255,255,.25); color: inherit;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 99px;
  margin-left: 4px;
}

/* ---- Page Header (sector/blog) ---- */
.page-header {
  padding: calc(var(--nav-h) + 56px) 0 48px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 12px; }
.page-header .sub { font-size: 16px; color: var(--ink-muted); max-width: 600px; }

/* ---- Filters Bar ---- */
.filters-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-h); z-index: 80;
  padding: 16px 0;
}
.filters-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-label { font-size: 12px; font-weight: 600; color: var(--ink-muted); }

/* ---- Article Detail ---- */
.article-header {
  padding: calc(var(--nav-h) + 48px) 0 0;
}
.article-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 16px;
}
.article-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1; margin-bottom: 24px;
}
.article-author {
  display: flex; align-items: center; gap: 12px; margin-bottom: 40px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}
.author-name { font-weight: 600; font-size: 14px; }
.author-role { font-size: 12px; color: var(--ink-muted); }
.article-cover { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 48px; }
.article-body { max-width: 720px; }
.article-body p { margin-bottom: 20px; font-size: 16px; line-height: 1.75; }
.article-body h2 {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem;
  margin: 36px 0 16px;
}
.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 20px 28px; margin: 36px 0;
  background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); line-height: 1.4; margin-bottom: 8px !important;
}
.pull-quote cite { font-size: 13px; color: var(--ink-muted); font-style: normal; }

/* ---- Tool Detail ---- */
.tool-hero {
  padding: calc(var(--nav-h) + 48px) 0 48px;
  border-bottom: 1px solid var(--border);
}
.tool-hero-inner { display: flex; gap: 48px; align-items: flex-start; }
.tool-hero-logo { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.tool-hero-content { flex: 1; }
.tool-hero-name { font-size: 2rem; margin-bottom: 8px; }
.tool-hero-tagline { font-size: 16px; color: var(--ink-muted); margin-bottom: 20px; }
.tool-hero-badges { display: flex; gap: 8px; margin-bottom: 24px; }
.tool-hero-actions { display: flex; gap: 12px; }

/* ---- Newsletter ---- */
.newsletter {
  background: var(--ink);
  color: white;
  padding: 64px 0; text-align: center;
}
.newsletter h2 { font-family: var(--font-heading); font-weight: 900; font-size: 1.8rem; margin-bottom: 8px; }
.newsletter p { color: #9898b0; margin-bottom: 28px; font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 12px 18px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: white; font: inherit; font-size: 14px;
}
.newsletter-form input::placeholder { color: #6b6b88; }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form .btn-primary { flex-shrink: 0; }

/* ---- Footer ---- */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; margin-bottom: 10px; }
.footer-logo em { font-style: normal; color: var(--accent); }
.footer-tagline { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
.footer-col-title { font-family: var(--font-heading); font-weight: 700; font-size: 13px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-link {
  display: block; font-size: 13px; color: var(--ink-muted);
  padding: 4px 0; transition: color var(--transition);
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-light);
}

/* ---- Contact Form ---- */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; }
.form-input, .form-textarea, .form-select {
  padding: 11px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--border); font: inherit; font-size: 14px;
  transition: border-color var(--transition);
  background: var(--surface);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--accent);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ---- Hamburger / Mobile ---- */
.hamburger { display: none; padding: 8px; }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 99; box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: block; }
.mobile-nav-link {
  display: block; padding: 12px 0; font-size: 16px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--border);
  text-align: left; width: 100%;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center; padding: 80px 24px;
  color: var(--ink-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }

/* ---- Page: Static (CGV, Qui sommes-nous) ---- */
.static-page {
  padding: calc(var(--nav-h) + 56px) 0 80px;
}
.static-page .prose { max-width: 720px; }
.static-page .prose h2 { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; margin: 36px 0 12px; }
.static-page .prose p { margin-bottom: 16px; line-height: 1.75; color: var(--ink-muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-hero-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 48px 0; }
}

/* ---- Utility ---- */
.divider { height: 1px; background: var(--border); margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; color: var(--ink-muted); background: var(--surface-2); padding: 4px 12px; border-radius: 99px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
