/* ============================================================
   DR. LARESS — Parapharmacie en ligne
   Design system premium · blanc médical, bleu santé, or
   ============================================================ */

:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-alt: #eef4fa;
  --accent: #0b6bcb;
  --accent-light: #3b9ae0;
  --accent-dark: #084d8f;
  --accent-glow: rgba(11, 107, 203, 0.14);
  --text: #10233b;
  --text-muted: #5b6b80;
  --text-light: #8494a7;
  --border: rgba(15, 40, 70, 0.08);
  --border-strong: rgba(15, 40, 70, 0.14);
  --gold: #c9a24b;
  --gold-light: rgba(201, 162, 75, 0.14);
  --success: #12a15f;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(16, 35, 59, 0.05);
  --shadow-sm: 0 2px 8px rgba(16, 35, 59, 0.06);
  --shadow-md: 0 8px 28px rgba(16, 35, 59, 0.09);
  --shadow-lg: 0 18px 48px rgba(16, 35, 59, 0.13);
  --shadow-accent: 0 10px 30px rgba(11, 107, 203, 0.22);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-full);
  font-size: 0.94rem; font-weight: 600; line-height: 1;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff; box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11, 107, 203, 0.3); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.75); color: var(--text);
  border: 1px solid var(--border-strong); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }

.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; font-size: 1rem; font-weight: 700;
  box-shadow: var(--shadow-accent);
}
.logo-text em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 0.94rem; font-weight: 500; color: var(--text-muted);
  position: relative; transition: color var(--transition-fast);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 84px;
  background: linear-gradient(160deg, #ffffff 0%, #eef5fc 45%, #e4eefb 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; }
.hero-glow-1 { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, #bcdcfb, transparent 70%); }
.hero-glow-2 { width: 420px; height: 420px; bottom: -200px; left: -140px; background: radial-gradient(circle, #d7e7fb, transparent 70%); }

.hero-inner { position: relative; z-index: 2; max-width: 860px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--accent-dark);
  box-shadow: var(--shadow-xs); margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(18, 161, 95, 0.18); }

.hero-title { font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.hero-title .line { display: block; }
.hero-title .accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle { margin-top: 22px; font-size: 1.08rem; color: var(--text-muted); max-width: 620px; }

.hero-stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.stat-label { margin-top: 6px; font-size: 0.82rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }

.hero-features { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-feature {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--border);
  font-size: 0.86rem; font-weight: 500; color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}
.hero-feature-icon { font-size: 1rem; }

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px;
}
.scroll-indicator span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; border-radius: 3px; background: var(--accent);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%, 100% { opacity: 0.25; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 9px); } }

/* ============ RECHERCHE ============ */
.search-section { margin-top: -34px; position: relative; z-index: 5; }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 6px 10px 6px 22px;
  box-shadow: var(--shadow-md); max-width: 720px; margin: 0 auto;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 12px 34px rgba(11, 107, 203, 0.16); }
.search-icon { width: 20px; height: 20px; color: var(--text-light); flex-shrink: 0; }
.search-bar input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 1rem; color: var(--text); padding: 10px 0;
}
.search-bar input::placeholder { color: var(--text-light); }

/* ============ SECTIONS ============ */
.section-head { text-align: center; margin-bottom: 44px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -0.025em; }
.section-subtitle { margin-top: 10px; color: var(--text-muted); font-size: 1rem; }

.categories-section { padding: 84px 0 40px; }
.products-section { padding: 60px 0 90px; }
.about-section { padding: 84px 0; background: linear-gradient(180deg, transparent, #eef4fa 120%); }

/* ============ CATÉGORIES ============ */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 24px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-xs); cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(11, 107, 203, 0.3); }
.category-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent-glow), #fff);
  border: 1px solid var(--border);
}
.category-label { font-size: 1rem; font-weight: 700; color: var(--text); }
.category-count { font-size: 0.82rem; color: var(--text-light); }

/* ============ FILTRES ============ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  padding: 10px 20px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  transition: all var(--transition-fast);
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-accent);
}

/* ============ PRODUITS ============ */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(11, 107, 203, 0.28); }

.product-img {
  position: relative; aspect-ratio: 1 / 1; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform var(--transition); }
.product-card:hover .product-img img { transform: scale(1.05); }

.product-info { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.product-category {
  align-self: flex-start; padding: 5px 11px; border-radius: var(--radius-full);
  background: var(--surface-alt); color: var(--accent-dark);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}
.product-info h3 {
  font-size: 0.95rem; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 6px; }
.stars { color: #f5a623; font-size: 0.86rem; letter-spacing: 1px; }
.rating-value { font-size: 0.8rem; color: var(--text-light); font-weight: 600; }
.product-price { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-dark); }
.btn-product {
  margin-top: auto; padding: 11px 16px; font-size: 0.88rem;
  background: var(--surface-alt); color: var(--accent-dark);
  border: 1px solid transparent;
}
.btn-product:hover { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; box-shadow: var(--shadow-accent); }

/* ============ ÉTAT VIDE ============ */
.empty-state {
  text-align: center; padding: 64px 24px;
  background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--radius); margin-top: 10px;
}
.empty-icon { font-size: 2.4rem; margin-bottom: 14px; }
.empty-state p { color: var(--text-muted); margin-bottom: 22px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.92rem; font-weight: 600; color: var(--text-muted);
  transition: all var(--transition-fast);
}
.page-btn:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.page-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-accent);
}
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ============ À PROPOS ============ */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.about-card {
  padding: 30px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 15px; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-glow), #fff);
  border: 1px solid var(--border); margin-bottom: 18px;
}
.about-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.about-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

.about-note {
  margin-top: 34px; padding: 20px 26px; border-radius: var(--radius);
  background: var(--gold-light); border: 1px solid rgba(201, 162, 75, 0.3);
}
.about-note p { font-size: 0.86rem; color: #7a6335; line-height: 1.6; }

/* ============ FOOTER ============ */
.site-footer { background: #0d1f33; color: #c3d1e2; padding: 60px 0 30px; margin-top: 0; }
.footer-content {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; color: #8fa3bb; max-width: 340px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 0.92rem; color: #b8c7da; transition: color var(--transition-fast); }
.footer-links a:hover { color: #fff; }

.footer-disclosure { padding: 26px 0; }
.footer-disclosure p { font-size: 0.82rem; color: #8095ad; line-height: 1.65; }

.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom p { font-size: 0.8rem; color: #6b829c; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .categories-grid, .products-grid, .about-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--border); padding: 10px 24px 18px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-cta { display: none; }
  .categories-grid, .products-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 72px 0 64px; }
  .hero-stats { gap: 26px; }
}
@media (max-width: 520px) {
  .categories-grid, .products-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.7rem; }
  .container { padding: 0 18px; }
}
