/* ── Mingo — Guide des modèles : CSS partagé ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0f0f0f;
  --surface:      #141414;
  --surface2:     #1e1e1e;
  --border:       rgba(255,255,255,0.08);
  --text:         #e5e7eb;
  --muted:        #9ca3af;
  --accent:       #4A62BF;
  --accent-light: #7a92e8;
  --green:        #10b981;
  --orange:       #f59e0b;
  --blue:         #3b82f6;
  --red:          #ef4444;
  --teal:         #14b8a6;
  --radius:       12px;
  --radius-sm:    8px;
}
html[data-theme="light"] {
  --bg:       #f9fafb;
  --surface:  #ffffff;
  --surface2: #f3f4f6;
  --border:   rgba(0,0,0,0.08);
  --text:     #111827;
  --muted:    #6b7280;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .88em;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--accent-light);
}

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

/* ── Navbar (identique à index.html) ───────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: rgba(15,15,15,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] nav.site-nav { background: rgba(255,255,255,0.92); }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { width: 150px; height: auto; display: block; filter: brightness(1.4) saturate(1.2); will-change: filter; transform: translateZ(0); }
html[data-theme="light"] .nav-logo img { filter: brightness(0.95) saturate(1.1); }

.nav-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 5px 10px; border-radius: 6px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
html[data-theme="light"] .nav-link:hover { background: rgba(0,0,0,0.04); }
.nav-link.active { color: var(--accent-light); }

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

.lang-toggle {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 100px; padding: 2px; gap: 2px;
}
html[data-theme="light"] .lang-toggle { background: rgba(0,0,0,0.04); }
.lang-btn {
  padding: 4px 10px; background: none; border: none; border-radius: 100px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: inherit; letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
}
.lang-btn.active { background: var(--accent); color: #fff; }
.lang-btn:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.06); }
html[data-theme="light"] .lang-btn:not(.active):hover { background: rgba(0,0,0,0.06); }

.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; color: var(--muted);
  flex-shrink: 0; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
html[data-theme="light"] .theme-btn { background: rgba(0,0,0,0.05); }
.theme-btn .icon-moon { display: block; }
.theme-btn .icon-sun  { display: none; }
html[data-theme="light"] .theme-btn .icon-moon { display: none; }
html[data-theme="light"] .theme-btn .icon-sun  { display: block; }

/* offset content below fixed nav */
body { padding-top: 60px; }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb-nav { padding: 14px 0; border-bottom: 1px solid var(--border); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb li:last-child { color: var(--text); }

/* ── Model Hero ─────────────────────────────────────────────────────────── */
.model-hero { padding: 52px 0 36px; }
.model-hero__header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

h1.model-name { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; }
.model-api-id { margin-bottom: 12px; }
.model-tagline { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin-bottom: 18px; }

/* Provider badges — neutral pill + logo image injected by JS */
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}
.provider-badge .provider-logo-img {
  height: 18px;
  width: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Tier badges */
.tier-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tier {
  font-size: .75rem; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; letter-spacing: .3px;
}
.tier-free  { background: rgba(74,98,191,.06);  color: var(--muted);        border: 1px solid rgba(74,98,191,.15); }
.tier-basic { background: rgba(74,98,191,.12);  color: var(--accent-light); border: 1px solid rgba(74,98,191,.25); }
.tier-pro   { background: rgba(74,98,191,.22);  color: #fff;                border: 1px solid rgba(74,98,191,.45); }

/* Category tags */
.category-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tag {
  font-size: .8rem; padding: 4px 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; color: var(--muted);
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 40px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 22px; }
.section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; color: var(--muted); }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th {
  text-align: left; padding: 12px 16px;
  background: var(--surface); font-size: .82rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); width: 38%;
}
.specs-table td { padding: 12px 16px; font-size: .93rem; }
.specs-table tr:hover td, .specs-table tr:hover th { background: var(--surface2); }
.spec-yes { color: var(--green); font-weight: 600; }
.spec-no  { color: var(--muted); }

/* Description */
.description-text { font-size: 1rem; color: var(--text); line-height: 1.75; max-width: 720px; }

/* Use cases */
.usecases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.usecase-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.usecase-card svg { width: 20px; height: 20px; color: var(--accent-light); margin-bottom: 8px; }
.usecase-card h4 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.usecase-card p  { font-size: .85rem; color: var(--muted); }

/* Pricing */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center;
}
.pricing-card .price-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.pricing-card .price-value { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.pricing-card .price-unit  { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* Strengths */
.strengths-list { display: flex; flex-wrap: wrap; gap: 8px; }
.strength-tag {
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2);
  color: #34d399; font-size: .83rem; padding: 5px 13px; border-radius: 20px;
}

/* Related models */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  transition: border-color .2s, transform .2s;
  display: block;
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card .r-name  { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.related-card .r-tier  { font-size: .78rem; color: var(--muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: .97rem; margin-bottom: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { font-size: .92rem; color: var(--muted); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }

/* CTA */
.model-cta { padding: 56px 0; text-align: center; }
.model-cta h2 { font-size: 1.6rem; margin-bottom: 12px; }
.model-cta p  { color: var(--muted); margin-bottom: 28px; }
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #4A62BF, #3a57e8);
  color: #fff; font-weight: 700; padding: 14px 32px;
  border-radius: var(--radius); font-size: 1rem;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-2px); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 36px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo-link { display: block; text-decoration: none; }
.footer-logo-link img { width: 90px; height: auto; filter: brightness(1.4) saturate(1.2); display: block; will-change: filter; transform: translateZ(0); }
html[data-theme="light"] .footer-logo-link img { filter: brightness(0.85) saturate(1.1); }
.footer-tagline { display: none; }
.footer-copy { font-size: 11px; color: var(--muted); }
.footer-cols { display: flex; align-items: center; flex-wrap: wrap; }
.footer-col { display: contents; }
.footer-col-title { display: none; }
.footer-link { font-size: 12px; color: var(--muted); text-decoration: none; padding: 2px 8px; transition: color 0.15s; }
.footer-link:hover { color: var(--accent-light); }
.footer-sep { display: none; }
.footer-lang { display: flex; align-items: center; }
.footer-lang-select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, color 0.15s;
}
.footer-lang-select:hover, .footer-lang-select:focus { border-color: var(--accent); color: var(--text); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-center { display: none; }
  .specs-table th { width: 44%; }
  .usecases-grid, .pricing-cards, .related-grid { grid-template-columns: 1fr 1fr; }
  .breadcrumb { font-size: .78rem; gap: 4px; }
  .model-hero { padding: 36px 0 24px; }
}
@media (max-width: 480px) {
  .specs-table th, .specs-table td { padding: 10px 12px; font-size: .85rem; }
  .specs-table th { width: 48%; }
  h1.model-name { font-size: 1.6rem; }
  .search-input { font-size: 16px; }
  .model-hero__header { gap: 8px; }
  .section h2 { font-size: 1.2rem; }
}
@media (max-width: 400px) {
  .usecases-grid, .pricing-cards, .related-grid { grid-template-columns: 1fr; }
  .breadcrumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
}
