/* ══════════════════════════════════════════
   MEDITEC — Feuille de style partagée
   ══════════════════════════════════════════ */

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

:root {
  --navy:       #0D2B4E;
  --navy-light: #163B66;
  --teal:       #1B8A74;
  --teal-light: #22A88E;
  --teal-pale:  #E6F5F2;
  --sky:        #EBF4FB;
  --white:      #ffffff;
  --gray-50:    #F8F9FB;
  --gray-100:   #EEF0F3;
  --gray-200:   #D4D8E0;
  --gray-400:   #8892A0;
  --gray-600:   #525E6D;
  --gray-900:   #151C24;
  --gold:       #C89A3A;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 32px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(13,43,78,0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 80px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 54px; width: auto; object-fit: contain; }
.logo-name { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--navy); letter-spacing: 0.02em; line-height: 1.2; display: block; }
.logo-tagline { font-size: 12px; color: var(--teal); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--gray-600);
  text-decoration: none; padding: 6px 10px; border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--navy); background: var(--gray-50); }
.nav-links a.active { color: var(--teal); font-weight: 600; }
.nav-cta {
  background: var(--teal) !important; color: var(--white) !important;
  padding: 9px 18px !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal-light) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: 0.3s; border-radius: 2px; }

/* ── PAGE HERO (catégories) ── */
.page-hero {
  padding: 140px 24px 70px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(27,138,116,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-cat {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(27,138,116,0.2); border: 1px solid rgba(27,138,116,0.4);
  color: #5ECFB8; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 52px); color: var(--white); line-height: 1.15; margin-bottom: 16px;
}
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 560px; line-height: 1.7; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-100); padding: 12px 24px;
}
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gray-400); }

/* ── SECTION ── */
.section { padding: 70px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section-tag::before { content: ''; display: block; width: 20px; height: 2px; background: var(--teal); }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(26px, 3vw, 38px); color: var(--navy); line-height: 1.2; margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--gray-600); max-width: 560px; line-height: 1.7; margin-bottom: 40px; }

/* ── PRODUCT GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13,43,78,0.10);
  border-color: var(--gray-200);
}
.product-img {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--teal-pale) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-img-icon { width: 80px; height: 80px; opacity: 0.25; }
.product-badge-top {
  position: absolute; top: 12px; left: 12px;
  background: var(--teal); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.product-badge-top.red { background: #C0392B; }
.product-badge-top.gold { background: var(--gold); }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-ref { font-size: 10px; color: var(--gray-400); letter-spacing: 0.06em; margin-bottom: 6px; }
.product-name { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.product-brand { font-size: 12px; font-weight: 600; color: var(--teal); margin-bottom: 8px; }
.product-desc { font-size: 13px; color: var(--gray-600); line-height: 1.55; flex: 1; margin-bottom: 14px; }
.product-specs { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.product-spec { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-600); }
.product-spec::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.product-price { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--navy); }
.product-price small { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--gray-400); font-weight: 400; display: block; }
.product-action {
  font-size: 12px; font-weight: 600; color: var(--teal);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
  padding: 7px 12px; border: 1.5px solid var(--teal);
  border-radius: var(--r-sm); transition: background 0.2s, color 0.2s;
}
.product-action:hover { background: var(--teal); color: var(--white); }

/* ── SUBSECTION TITLE ── */
.subsection { margin-bottom: 48px; }
.subsection-title {
  font-family: 'DM Serif Display', serif; font-size: 24px;
  color: var(--navy); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--teal-pale);
  display: flex; align-items: center; gap: 12px;
}
.subsection-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--teal-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.subsection-icon svg { width: 18px; height: 18px; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--navy); padding: 60px 24px; text-align: center;
}
.cta-band h2 { font-family: 'DM Serif Display', serif; font-size: 32px; color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.65); font-size: 16px; margin-bottom: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white); text-decoration: none;
  padding: 14px 28px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--gray-900); color: rgba(255,255,255,0.6); padding: 50px 24px 28px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-logo-name { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--white); display: block; }
.footer-logo-tag { font-size: 10px; color: rgba(27,138,116,0.8); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 12px;
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; background: var(--teal); color: var(--white);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(27,138,116,0.35);
  transition: opacity 0.3s, transform 0.3s; opacity: 0; transform: translateY(10px); z-index: 50;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--teal-light); transform: translateY(-2px); }
.scroll-top svg { width: 18px; height: 18px; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.d1 { transition-delay: 0.08s; }
.fade-in.d2 { transition-delay: 0.16s; }
.fade-in.d3 { transition-delay: 0.24s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 70px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--gray-100); padding: 16px 20px; gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 50px 16px; }
}
