@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Azeret+Mono:wght@400;600;700&family=Lexend:wght@500;600;700;800&display=swap');

:root {
  --primary: #0369a1;
  --primary-light: #0284c7;
  --accent: #0891b2;
  --accent-light: #06b6d4;
  --teal: #059669;
  --surface: #ffffff;
  --surface-alt: #f0f9ff;
  --border: #e0f2fe;
  --border-strong: #bae6fd;
  --text: #0c4a6e;
  --text-muted: #334155;
  --text-dim: #64748b;
  --font-heading: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Albert Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Azeret Mono', monospace;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(3, 105, 161, 0.06);
  --shadow-md: 0 4px 14px rgba(3, 105, 161, 0.10);
  --shadow-lg: 0 12px 32px rgba(3, 105, 161, 0.15);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--surface-alt);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

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

/* TOPBAR INSTITUTIONNELLE */
.topbar {
  background: var(--primary);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-light);
  font-weight: 600;
}

.topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* HEADER */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-monogram {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.5px;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.5px;
  color: var(--primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

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

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.90rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 9999px;
  margin-left: 28px;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.main-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.35);
  color: #ffffff !important;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-lbl {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* CONSOLE DE DIAGNOSTIC DURETÉ */
.console-section {
  padding: 56px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-badge {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.water-calculator-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.calc-control {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9375rem;
  display: flex;
  justify-content: space-between;
}

.calc-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.calc-feedback-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.calc-verdict-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.calc-verdict-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FICHES DE PRESCRIPTION HORIZONTALES */
.prescriptions-section {
  padding: 64px 0;
}

.prescriptions-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.prescription-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prescription-sheet:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sheet-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}

.sheet-brand-cat {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sheet-price-tag {
  background: rgba(11, 37, 69, 0.05);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.metric-cell {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
}

.sheet-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
}

.sheet-editorial {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.editorial-summary {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.6;
}

.buyer-quote {
  font-size: 0.875rem;
  background: #f1f5f9;
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.sheet-action-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.btn-cta-amazon {
  background: var(--primary);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  font-size: 0.9375rem;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: var(--shadow-sm);
}

.btn-cta-amazon:hover {
  background: var(--primary-light);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-detail-link {
  font-size: 0.875rem;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
}

/* GRAND TABLEAU COMPARATIF D'INGÉNIERIE */
.table-section {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

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

.spec-table th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 16px;
  letter-spacing: 0.5px;
}

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

.spec-table tr:hover td {
  background: var(--surface-alt);
}

.spec-table td strong {
  color: var(--text);
}

/* GUIDES & FAQ */
.guides-section {
  padding: 64px 0;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.guide-card h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.guide-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* FOOTER */
.site-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 48px 0 24px;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.9375rem;
  margin-bottom: 14px;
  font-family: var(--font-heading);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #94a3b8;
  transition: color 0.2s;
}

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

.footer-disclaimer-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.footer-bottom-bar {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

/* BREADCRUMB */
.breadcrumb-nav {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.breadcrumb-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.breadcrumb-nav span {
  color: var(--text);
  font-weight: 600;
}

/* ENRICHED SECTIONS */
.enriched-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.enriched-title {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cost-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 18px;
  color: #166534;
}

.cost-highlight {
  font-size: 1.2rem;
  font-weight: 800;
  color: #15803d;
}

.annoyance-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 18px;
}

.annoyance-box ul {
  padding-left: 20px;
  margin-top: 8px;
}

.annoyance-box li {
  margin-bottom: 6px;
  color: #92400e;
  font-size: 0.9rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.step-header {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq-q {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.faq-a {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid,
  .calc-grid,
  .sheet-body-grid,
  .footer-grid,
  .guides-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 2.125rem;
  }
}

