/* ============================================================
   Pharmacie Saint Gerard — style.css
   Design: Dark green #0d2818 | Green #16a34a | Cream #f0fdf4
   ============================================================ */

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

:root {
  --dark: #0d2818;
  --green: #16a34a;
  --green-light: #22c55e;
  --green-dark: #0f5c2e;
  --cream: #f0fdf4;
  --cream-dark: #dcfce7;
  --white: #ffffff;
  --text: #1c1917;
  --text-light: #57534e;
  --border: #d1fae5;
  --shadow: rgba(13, 40, 24, 0.15);
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }

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

/* ---- HEADER ---- */
.site-header {
  background: var(--dark);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1200px; margin: 0 auto;
}
.logo img { height: 52px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: var(--cream); padding: 8px 16px; border-radius: 6px;
  font-size: 0.92rem; font-weight: 500; transition: background 0.2s, color 0.2s;
  display: block;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--green); color: var(--white);
}
.nav-cta {
  background: var(--green) !important; color: var(--white) !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); margin: 5px 0; transition: all 0.3s;
}

/* ---- HERO (CSS bg) ---- */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center;
  background: url('/images/hero-pharmacie.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(13, 40, 24, 0.88);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 80px 20px;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: var(--green); color: var(--white);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 20px;
  color: var(--white);
}
.hero-content h1 span { color: var(--green-light); }
.hero-content p {
  font-size: 1.18rem; color: rgba(255,255,255,0.88);
  max-width: 620px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px;
  border-radius: 8px; font-size: 1rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }

/* ---- SECTION COMMONS ---- */
section { padding: 80px 0; }
.section-label {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.25;
}
.section-sub { font-size: 1.05rem; color: var(--text-light); max-width: 600px; margin-bottom: 50px; }
.section-bg { background: var(--cream); }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.service-card {
  background: var(--white); border-radius: 14px;
  padding: 32px 26px; box-shadow: 0 2px 14px var(--shadow);
  border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--shadow); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--cream-dark); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-card p { font-size: 0.93rem; color: var(--text-light); }

/* ---- 2-COL SECTIONS ---- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col-img { border-radius: 18px; overflow: hidden; box-shadow: 0 8px 32px var(--shadow); }
.two-col-img img { width: 100%; height: 420px; object-fit: cover; }
.two-col-text .section-title { margin-bottom: 16px; }
.two-col-text p { color: var(--text-light); margin-bottom: 20px; }
.check-list { list-style: none; margin: 18px 0 28px; }
.check-list li { padding: 6px 0; color: var(--text-light); }
.check-list li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ---- BANNER (CSS bg) ---- */
.banner-section {
  position: relative; padding: 80px 0;
  background: url('/images/enseigne-pharmacie.jpg') center/cover no-repeat;
}
.banner-overlay {
  position: absolute; inset: 0; background: rgba(13, 40, 24, 0.90);
}
.banner-content {
  position: relative; z-index: 1; text-align: center;
  color: var(--white);
}
.banner-content h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.banner-content p { font-size: 1.1rem; opacity: 0.88; max-width: 600px; margin: 0 auto 32px; }

/* ---- BLOG GRID ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card {
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 14px var(--shadow); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--shadow); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px; }
.blog-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--green); background: var(--cream-dark);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.35; }
.blog-card-body p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 14px; }
.blog-date { font-size: 0.78rem; color: var(--text-light); }
.read-more { font-size: 0.88rem; font-weight: 600; color: var(--green); }
.read-more:hover { color: var(--green-dark); }

/* ---- ARTICLE PAGE ---- */
.article-hero {
  background: var(--dark); padding: 60px 0 40px; color: var(--white);
}
.article-hero .section-label { color: var(--green-light); }
.article-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.article-meta { font-size: 0.88rem; opacity: 0.75; }
.article-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; margin: 40px 0; }
.article-body { max-width: 800px; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 36px 0 14px; }
.article-body h3 { font-size: 1.18rem; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.article-body p { color: var(--text-light); margin-bottom: 18px; }
.article-body ul { list-style: disc; padding-left: 22px; color: var(--text-light); margin-bottom: 18px; }
.article-body ul li { margin-bottom: 6px; }
.article-body a { color: var(--green); font-weight: 600; }
.article-body a:hover { color: var(--green-dark); }

/* ---- BLOG INDEX ---- */
.blog-header { background: var(--dark); padding: 60px 0; color: var(--white); }
.blog-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; }
.blog-header p { opacity: 0.8; margin-top: 10px; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 20px; }
.contact-info p { color: var(--text-light); margin-bottom: 16px; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.info-icon {
  width: 44px; height: 44px; background: var(--cream-dark);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.info-item-text strong { display: block; font-size: 0.88rem; color: var(--dark); font-weight: 700; }
.info-item-text span { font-size: 0.88rem; color: var(--text-light); }
.contact-form { background: var(--cream); padding: 36px; border-radius: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--font-main); font-size: 0.95rem;
  background: var(--white); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ---- PAGE HEADERS ---- */
.page-header {
  background: var(--dark); padding: 60px 0; color: var(--white);
  border-bottom: 3px solid var(--green);
}
.page-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.page-header p { opacity: 0.8; max-width: 640px; }
.breadcrumb { font-size: 0.82rem; opacity: 0.65; margin-bottom: 14px; }
.breadcrumb a { color: var(--cream); }

/* ---- PRODUCTS GRID ---- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card {
  background: var(--white); border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 12px var(--shadow); border: 1px solid var(--border);
  text-align: center; transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-3px); }
.product-icon { font-size: 2.4rem; margin-bottom: 14px; }
.product-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.product-card p { font-size: 0.85rem; color: var(--text-light); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.faq-item p { color: var(--text-light); font-size: 0.95rem; }

/* ---- SITEMAP ---- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.sitemap-col h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; border-bottom: 2px solid var(--green); padding-bottom: 8px; }
.sitemap-col ul { list-style: none; }
.sitemap-col ul li { margin-bottom: 8px; }
.sitemap-col ul li a { font-size: 0.9rem; color: var(--text-light); }
.sitemap-col ul li a:hover { color: var(--green); }

/* ---- 404 ---- */
.error-page { text-align: center; padding: 120px 20px; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--green); line-height: 1; }
.error-page h2 { font-size: 1.8rem; font-weight: 700; color: var(--dark); margin: 16px 0; }
.error-page p { color: var(--text-light); max-width: 480px; margin: 0 auto 32px; }

/* ---- FOOTER ---- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.86rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-bottom {
  text-align: center; padding: 20px; font-size: 0.8rem;
  color: rgba(255,255,255,0.45); border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 16px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .hero { min-height: 480px; }
  .hero-content { padding: 60px 16px; }
  .blog-grid { grid-template-columns: 1fr; }
}
