@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Nuances Institutionnelles & Métrologie de l'Air */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --border-hairline: #e2e8f0;
  --border-focus: #0f172a;
  --border-accent: #0284c7;
  
  --text-primary: #090d16;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-light: #94a3b8;
  
  --navy-deep: #0a1128;
  --navy-accent: #0f52ba;
  --brand-cyan: #0284c7;
  --brand-cyan-light: #e0f2fe;
  
  --accent-emerald: #047857;
  --accent-emerald-bg: #ecfdf5;
  --accent-amber: #b45309;
  --accent-amber-bg: #fffbeb;
  --accent-rose: #be123c;
  --accent-rose-bg: #fff1f2;
  
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

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

/* ==========================================================================
   1. TOPBAR & HEADER INSTITUTIONNEL HAUT DE GAMME
   ========================================================================== */
.top-announcement-bar {
  background: var(--navy-deep);
  color: #94a3b8;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-badge {
  color: #38bdf8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-date {
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--navy-deep);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.brand-logo:hover .logo-mark {
  transform: scale(1.03);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy-deep);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-top: 2px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 600;
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--navy-deep);
}

.nav-link.active {
  color: var(--navy-deep);
  font-weight: 700;
}

.nav-action-btn {
  background: var(--navy-deep);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  margin-left: 28px;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.nav-action-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.2);
}

/* ==========================================================================
   2. HERO OBSERVATOIRE SCIENTIFIQUE (NON IA)
   ========================================================================== */
.hero-editorial {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-hairline);
}

.hero-editorial-head {
  max-width: 880px;
  margin-bottom: 36px;
}

.hero-editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  background: var(--brand-cyan-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.hero-editorial-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin-bottom: 18px;
}

.hero-editorial-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 780px;
}

/* Ruban de Métrologie */
.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  background-color: var(--border-hairline);
}

.ribbon-cell {
  background: #ffffff;
  padding: 20px 24px;
}

.ribbon-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.ribbon-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.2;
}

.ribbon-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   3. FILTRES & BARRE DE TRI MÉTIER
   ========================================================================== */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  margin: 36px 0 28px;
  box-shadow: var(--shadow-subtle);
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn-pill {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn-pill:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.filter-btn-pill.active {
  background: var(--navy-deep);
  color: #ffffff;
  border-color: var(--navy-deep);
}

.filter-status-note {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   4. CONSOLE MÉTROLOGIQUE CLEAN AIR (ARCHITECTURE PROPRE À AÉROCLIMAT)
   ========================================================================== */
.aero-climate-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--brand-cyan);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aero-climate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
}

.aero-top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.aero-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.aero-rank-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--navy-deep);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.aero-category-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.aero-price-pill {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-deep);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: 9999px;
}

.aero-card-head {
  margin-bottom: 20px;
}

.aero-device-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.25;
  margin-bottom: 8px;
}

.aero-lead-verdict {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.aero-id-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.aero-id-bar strong {
  color: var(--navy-deep);
}

.aero-id-bar code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0369a1;
}

.norm-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Grille des 4 Cadrans Métrologiques */
.aero-metrology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.metrology-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: all 0.15s ease;
}

.metrology-box:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.metro-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.metro-val-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.metro-icon {
  font-size: 1rem;
}

.metro-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
}

/* Bandeau de Feedback de Laboratoire */
.aero-feedback-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #fafaf9;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
  border-left: 3px solid #cbd5e1;
}

.af-item {
  font-size: 0.88rem;
  line-height: 1.5;
}

.af-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-deep);
  margin-bottom: 4px;
}

.af-item p {
  color: var(--text-secondary);
  margin: 0;
}

/* Actions et Stock */
.aero-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.aero-live-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.pulse-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.aero-cta-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-aero-secondary {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-deep);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: all 0.15s ease;
}

.btn-aero-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-aero-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy-deep);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.btn-aero-cta:hover {
  background: var(--brand-cyan);
  transform: translateY(-1px);
}

@media (max-width: 840px) {
  .aero-metrology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .aero-feedback-strip {
    grid-template-columns: 1fr;
  }
  .aero-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .aero-cta-cluster {
    flex-direction: column;
  }
  .btn-aero-cta, .btn-aero-secondary {
    text-align: center;
  }
}

/* ==========================================================================
   5. GRAND TABLEAU COMPARATIF D'INGÉNIERIE
   ========================================================================== */
.table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.spec-table th {
  background: var(--bg-subtle);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.spec-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background: #fafafa;
}

.table-device-name {
  font-weight: 700;
  color: var(--navy-deep);
  text-decoration: none;
}

.table-device-name:hover {
  color: var(--brand-cyan);
}

/* ==========================================================================
   6. CONSOLE DE DIMENSIONNEMENT AÉRAULIQUE
   ========================================================================== */
.calculator-box {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.calc-field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

.calc-select:focus, .calc-input:focus {
  outline: none;
  border-color: var(--navy-deep);
  background: #ffffff;
}

/* ==========================================================================
   7. DOSSIERS & GUIDES TECHNIQUES (TYPE REVUE)
   ========================================================================== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.guide-article-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.guide-article-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.guide-read-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.guide-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.35;
  margin-bottom: 8px;
}

.guide-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.guide-card-action {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-cyan);
}

/* ==========================================================================
   8. FOOTER INSTITUTIONNEL & TRANSPARENCE OBLIGATOIRE
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: #94a3b8;
  padding: 56px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-disclosure-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-bar a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-bottom-bar a:hover {
  color: #ffffff;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN MOBILE
   ========================================================================== */
@media (max-width: 900px) {
  .tech-spec-row {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  
  .spec-metrics-strip {
    grid-template-columns: 1fr 1fr;
  }
  
  .spec-usage-block {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none; /* Mobile menu simplifié */
  }
}
