/* =====================================================
   Pharmacie du Stade Parc — style.css
   Domain: pharmacie-du-stade-parc.fr
   Colors: Dark green #0a3d2a | Emerald #10b981 | Light #ecfdf5
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #1a2e25; background: #fff; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: #10b981; text-decoration: none; transition: color .2s; }
a:hover { color: #0a3d2a; }
ul { list-style: none; }

/* ---- Variables ---- */
:root {
  --dark: #0a3d2a;
  --primary: #10b981;
  --light: #ecfdf5;
  --text: #1a2e25;
  --muted: #4b7a63;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(10,61,42,.12);
  --transition: .25s ease;
}

/* ---- Utility ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.btn { display: inline-block; padding: .75rem 1.8rem; border-radius: 6px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background var(--transition), color var(--transition), transform var(--transition); }
.btn-primary { background: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.btn-primary:hover { background: #059669; border-color: #059669; color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--dark); border: 2px solid var(--white); }
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.text-center { text-align: center; }
.tag { display: inline-block; background: var(--light); color: var(--primary); font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .75rem; }

/* ---- Header / Nav ---- */
header { background: var(--dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo img { height: 48px; width: auto; }
nav ul { display: flex; gap: 2rem; }
nav a { color: #d1fae5; font-size: .95rem; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; transition: border-color var(--transition), color var(--transition); }
nav a:hover, nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-cta { background: var(--primary); color: var(--white) !important; padding: .4rem 1.1rem !important; border-radius: 6px; border-bottom: none !important; }
.nav-cta:hover { background: #059669 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(rgba(10,61,42,.88), rgba(10,61,42,.92)), url('/images/hero-pharmacie.jpg') center/cover no-repeat;
  min-height: 600px;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(16,185,129,.2); color: #6ee7b7; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem 1rem; border-radius: 20px; border: 1px solid rgba(16,185,129,.35); margin-bottom: 1.5rem; }
.hero h1 { font-size: 3rem; font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.15rem; color: #a7f3d0; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { color: var(--white); }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.hero-stat span { font-size: .85rem; color: #a7f3d0; }

/* ---- Services Grid ---- */
.services { padding: 80px 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.service-card { background: var(--light); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; border: 2px solid transparent; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); }
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { width: 60px; height: 60px; background: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.service-icon svg { width: 28px; height: 28px; fill: var(--primary); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--muted); }

/* ---- Two-col sections ---- */
.two-col { padding: 80px 0; }
.two-col-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col-inner.reverse { direction: rtl; }
.two-col-inner.reverse > * { direction: ltr; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.two-col-text h2 { font-size: 2rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; line-height: 1.3; }
.two-col-text p { color: var(--muted); margin-bottom: 1rem; }
.two-col-text ul { margin: 1rem 0 1.5rem; }
.two-col-text ul li { padding: .4rem 0 .4rem 1.5rem; position: relative; color: var(--text); }
.two-col-text ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.bg-light { background: var(--light); }

/* ---- Banner (CSS bg) ---- */
.banner {
  background: linear-gradient(rgba(10,61,42,.87), rgba(10,61,42,.87)), url('/images/enseigne-pharmacie.jpg') center/cover no-repeat;
  padding: 70px 24px;
  text-align: center;
}
.banner h2 { font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.banner p { color: #a7f3d0; font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---- Blog preview ---- */
.blog-preview { padding: 80px 0; background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.blog-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #d1fae5; transition: transform var(--transition), box-shadow var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(10,61,42,.16); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-body .tag { margin-bottom: .6rem; }
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; line-height: 1.4; }
.blog-card-body p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.blog-card-body a.read-more { font-size: .9rem; font-weight: 600; color: var(--primary); }
.blog-card-body a.read-more:hover { color: var(--dark); }

/* ---- Testimonials ---- */
.testimonials { padding: 80px 0; background: var(--dark); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-sub { color: #a7f3d0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial-card { background: rgba(255,255,255,.07); border: 1px solid rgba(16,185,129,.25); border-radius: var(--radius); padding: 1.75rem; }
.stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: .75rem; }
.testimonial-card p { color: #d1fae5; font-size: .95rem; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { color: #6ee7b7; font-weight: 700; font-size: .9rem; }

/* ---- FAQ ---- */
.faq { padding: 80px 0; background: var(--light); }
.faq-list { max-width: 800px; margin: 2.5rem auto 0; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid #bbf7d0; overflow: hidden; }
.faq-question { padding: 1.25rem 1.5rem; font-weight: 700; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--muted); font-size: .95rem; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ---- CTA Banner ---- */
.cta-section { padding: 70px 24px; background: var(--primary); text-align: center; }
.cta-section h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: #d1fae5; font-size: 1.05rem; margin-bottom: 2rem; }

/* ---- Contact ---- */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-form { background: var(--light); border-radius: var(--radius); padding: 2.5rem; }
.contact-form h2 { color: var(--dark); font-size: 1.6rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; color: var(--dark); font-size: .9rem; margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .75rem 1rem; border: 1.5px solid #bbf7d0; border-radius: 6px; font-size: .95rem; background: var(--white); color: var(--text); transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-info h2 { color: var(--dark); font-size: 1.6rem; margin-bottom: 1.5rem; }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.info-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-icon svg { width: 20px; height: 20px; fill: var(--white); }
.info-item h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.info-item p { font-size: .9rem; color: var(--muted); }

/* ---- Footer ---- */
footer { background: var(--dark); color: #d1fae5; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { color: #a7f3d0; font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { color: #a7f3d0; font-size: .9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .85rem; color: #6ee7b7; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #6ee7b7; font-size: .85rem; }
.footer-links a:hover { color: var(--primary); }

/* ---- Page hero (inner pages) ---- */
.page-hero { background: var(--dark); padding: 60px 24px; text-align: center; }
.page-hero h1 { font-size: 2.4rem; font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: #a7f3d0; font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; font-size: .85rem; }
.breadcrumb a { color: #6ee7b7; }
.breadcrumb span { color: #a7f3d0; }

/* ---- Article page ---- */
.article-hero { background: var(--dark); padding: 60px 24px; text-align: center; }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; padding: 60px 0; }
.article-content h2 { font-size: 1.6rem; color: var(--dark); margin: 2rem 0 .75rem; }
.article-content h3 { font-size: 1.2rem; color: var(--dark); margin: 1.5rem 0 .5rem; }
.article-content p { color: var(--muted); margin-bottom: 1rem; font-size: 1rem; }
.article-content ul { margin: .5rem 0 1rem 1.5rem; list-style: disc; }
.article-content ul li { color: var(--muted); margin-bottom: .4rem; }
.article-content a { color: var(--primary); font-weight: 600; }
.article-content a:hover { color: var(--dark); }
.article-meta { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.article-meta span { font-size: .85rem; color: var(--muted); }
.article-mid-img { width: 100%; border-radius: var(--radius); margin: 2rem 0; box-shadow: var(--shadow); }
.sidebar { position: sticky; top: 90px; }
.sidebar-widget { background: var(--light); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-widget h3 { color: var(--dark); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; border-bottom: 2px solid var(--primary); padding-bottom: .5rem; }
.sidebar-widget ul li { margin-bottom: .6rem; }
.sidebar-widget ul li a { color: var(--muted); font-size: .9rem; }
.sidebar-widget ul li a:hover { color: var(--primary); }
.sidebar-cta { background: var(--dark); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.sidebar-cta h3 { color: var(--white); margin-bottom: .75rem; }
.sidebar-cta p { color: #a7f3d0; font-size: .9rem; margin-bottom: 1.25rem; }

/* ---- Blog listing ---- */
.blog-listing { padding: 60px 0; }
.blog-listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.blog-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; background: var(--light); border-radius: var(--radius); padding: 2rem; margin-bottom: 1rem; }
.blog-featured img { border-radius: 8px; width: 100%; height: 280px; object-fit: cover; }
.blog-featured .tag { margin-bottom: .6rem; }
.blog-featured h2 { font-size: 1.6rem; color: var(--dark); margin-bottom: .75rem; }
.blog-featured p { color: var(--muted); margin-bottom: 1.25rem; }

/* ---- Products grid ---- */
.products { padding: 60px 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.product-card { background: var(--white); border: 1.5px solid #d1fae5; border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.product-card h3 { font-size: 1rem; color: var(--dark); font-weight: 700; margin-bottom: .5rem; }
.product-card p { font-size: .88rem; color: var(--muted); }

/* ---- 404 ---- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-page h2 { font-size: 1.8rem; color: var(--dark); margin: 1rem 0; }
.error-page p { color: var(--muted); margin-bottom: 2rem; }

/* ---- Sitemap ---- */
.sitemap-section { padding: 60px 0; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 2rem; }
.sitemap-col h3 { color: var(--dark); font-size: 1.05rem; font-weight: 700; border-left: 4px solid var(--primary); padding-left: .75rem; margin-bottom: 1rem; }
.sitemap-col ul li { margin-bottom: .5rem; }
.sitemap-col ul li a { color: var(--muted); font-size: .9rem; }
.sitemap-col ul li a:hover { color: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .two-col-inner, .contact-grid, .footer-grid, .blog-featured { grid-template-columns: 1fr; gap: 2rem; }
  .two-col-inner.reverse { direction: ltr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hero h1 { font-size: 2.1rem; }
  .section-title { font-size: 1.6rem; }
  nav ul { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); flex-direction: column; gap: 0; padding: 1rem 0; }
  nav ul.open { display: flex; }
  nav ul li a { display: block; padding: .75rem 1.5rem; border-bottom: none !important; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .blog-featured { grid-template-columns: 1fr; }
}
