/* ============================================
   Pharmacie Aillaud Manosque - Style CSS
   Provençal Boutique Pharmacy
   ============================================ */

:root {
  --dark-green: #0a3d2a;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #34d399;
  --cream: #faf5eb;
  --cream-dark: #f0e8d0;
  --gold: #d4a843;
  --gold-light: #e8c66b;
  --text-dark: #1a2e1a;
  --text-mid: #3d5a3d;
  --text-light: #6b8f6b;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(10,61,42,0.15);
  --shadow-lg: 0 8px 40px rgba(10,61,42,0.2);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-green);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
a { color: var(--emerald-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--dark-green); }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
header {
  background: var(--dark-green);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: 1200px; margin: 0 auto; height: 72px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-wrap img { height: 48px; width: auto; }

nav { display: flex; gap: 4px; }
nav a {
  color: var(--cream);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
nav a:hover, nav a.active {
  background: var(--emerald);
  color: var(--white);
}

.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--cream); font-size: 1.5rem; padding: 8px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background-image: url('/images/hero-pharmacie.jpg');
  background-size: cover; background-position: center;
  min-height: 85vh;
  display: flex; align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,61,42,0.92) 0%, rgba(10,61,42,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 60px 24px;
  color: var(--cream);
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark-green);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-content h1 {
  color: var(--cream);
  max-width: 680px;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 1.15rem;
  max-width: 560px;
  color: rgba(250,245,235,0.9);
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; font-family: 'Georgia', serif;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(16,185,129,0.4);
}
.btn-primary:hover {
  background: var(--emerald-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark-green);
}
.btn-secondary {
  background: var(--dark-green);
  color: var(--cream);
}
.btn-secondary:hover {
  background: var(--text-dark);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ---- Section Spacing ---- */
section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--dark-green); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-mid); max-width: 560px; margin: 0 auto; }
.section-header .divider {
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--emerald), var(--gold));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 40px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16,185,129,0.1);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--emerald), var(--gold));
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald);
}
.service-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-green), var(--emerald));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}
.service-card h3 { color: var(--dark-green); margin-bottom: 12px; }
.service-card p { color: var(--text-mid); font-size: 0.95rem; margin: 0; }

/* ---- Two-col layout ---- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.two-col-img img {
  width: 100%; height: 400px;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.two-col-img:hover img { transform: scale(1.03); }
.two-col-text h2 { margin-bottom: 16px; }
.two-col-text p { color: var(--text-mid); margin-bottom: 20px; }
.two-col-text ul { list-style: none; margin-bottom: 24px; }
.two-col-text ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-mid);
}
.two-col-text ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* ---- Banner Section ---- */
.banner-section {
  position: relative;
  background-image: url('/images/vue-manosque.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: rgba(10,61,42,0.87);
}
.banner-content {
  position: relative; z-index: 1;
  color: var(--cream);
}
.banner-content h2 {
  color: var(--cream);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}
.banner-content p { max-width: 600px; margin: 0 auto 28px; opacity: 0.9; }

/* ---- CTA Two-col ---- */
.cta-section { background: var(--cream-dark); }
.cta-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.cta-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-img img { width: 100%; height: 380px; object-fit: cover; display: block; }
.cta-text { padding: 20px 0; }
.cta-text h2 { margin-bottom: 16px; }
.cta-text p { color: var(--text-mid); margin-bottom: 20px; }
.cta-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.cta-feature {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 3px solid var(--emerald);
}
.cta-feature-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.cta-feature-text strong { display: block; color: var(--dark-green); font-size: 0.9rem; }
.cta-feature-text span { font-size: 0.85rem; color: var(--text-light); }

/* ---- Blog Grid ---- */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(10,61,42,0.08);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  position: relative; overflow: hidden; height: 200px;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--emerald);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.blog-card-body { padding: 24px; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--dark-green); }
.blog-card-body p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 16px; }
.blog-card-link {
  font-size: 0.85rem; font-weight: 700;
  color: var(--emerald-dark);
  display: inline-flex; align-items: center; gap: 4px;
}
.blog-card-link:hover { color: var(--dark-green); }

/* ---- Article Page ---- */
.article-hero {
  position: relative;
  height: 420px;
  background-size: cover; background-position: center;
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,61,42,0.7), rgba(10,61,42,0.5));
}
.article-hero-content {
  position: relative; z-index: 1;
  height: 100%; display: flex; align-items: flex-end;
  padding: 40px;
  color: var(--cream);
}
.article-cat {
  display: inline-block;
  background: var(--emerald);
  color: var(--white);
  padding: 5px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  margin-bottom: 12px;
}
.article-hero-content h1 {
  color: var(--cream);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 800px;
}
.article-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-light);
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 2px solid var(--cream-dark);
}
.article-body {
  max-width: 800px; margin: 0 auto;
  padding: 48px 24px;
}
.article-body h2 { color: var(--dark-green); margin: 32px 0 16px; }
.article-body h3 { color: var(--text-mid); margin: 24px 0 12px; }
.article-body p { color: var(--text-mid); }
.article-body ul, .article-body ol { margin: 0 0 1rem 1.5rem; color: var(--text-mid); }
.article-body li { margin-bottom: 8px; }
.article-body img {
  width: 100%; border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.article-body a { color: var(--emerald-dark); font-weight: 600; }
.article-body a:hover { color: var(--dark-green); }
.article-cta {
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  border-left: 4px solid var(--emerald);
}
.article-cta h3 { margin-bottom: 12px; }
.breadcrumb {
  background: var(--cream-dark);
  padding: 12px 0;
}
.breadcrumb nav { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; }
.breadcrumb a { color: var(--emerald-dark); }
.breadcrumb span { color: var(--text-light); }

/* ---- Info Cards ---- */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.info-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(250,245,235,0.2);
  border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
}
.info-card .icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 { color: var(--cream); font-size: 1rem; margin-bottom: 8px; }
.info-card p { color: rgba(250,245,235,0.8); font-size: 0.9rem; margin: 0; }

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--dark-green);
  padding: 40px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; text-align: center;
}
.stat-item .stat-number {
  font-size: 2.2rem; font-weight: 700;
  color: var(--gold); font-family: 'Georgia', serif;
}
.stat-item .stat-label { color: var(--cream); font-size: 0.85rem; opacity: 0.85; }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.testimonial-stars { color: var(--gold); margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-text { color: var(--text-mid); font-style: italic; margin-bottom: 16px; }
.testimonial-author { font-weight: 700; color: var(--dark-green); font-size: 0.9rem; }
.testimonial-place { font-size: 0.8rem; color: var(--text-light); }

/* ---- Page Header (inner pages) ---- */
.page-header {
  background: var(--dark-green);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: var(--cream); margin-bottom: 12px; }
.page-header p { color: rgba(250,245,235,0.85); max-width: 560px; margin: 0 auto; }

/* ---- Contact ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
}
.contact-info-block {
  display: flex; flex-direction: column; gap: 20px;
}
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-info-item .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--dark-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-info-item h4 { color: var(--dark-green); margin-bottom: 4px; }
.contact-info-item p { color: var(--text-mid); font-size: 0.9rem; margin: 0; }
.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 0.9rem; font-weight: 700; color: var(--dark-green);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--emerald);
  background: var(--white);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Footer ---- */
footer {
  background: var(--text-dark);
  color: var(--cream);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: rgba(250,245,235,0.7); font-size: 0.9rem; }
.footer-col h4 {
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(250,245,235,0.75); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--emerald-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: rgba(250,245,235,0.5); font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(250,245,235,0.5); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--emerald-light); }

/* ---- Sitemap ---- */
.sitemap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.sitemap-block h3 { color: var(--dark-green); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--emerald); }
.sitemap-block ul { list-style: none; }
.sitemap-block ul li { padding: 6px 0; }
.sitemap-block ul li a { color: var(--text-mid); font-size: 0.95rem; }
.sitemap-block ul li a:hover { color: var(--emerald-dark); }

/* ---- 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: 700; color: var(--emerald); opacity: 0.3; line-height: 1; }
.error-page h2 { margin-bottom: 16px; }
.error-page p { color: var(--text-mid); margin-bottom: 28px; }

/* ---- Tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag {
  background: var(--cream-dark);
  color: var(--text-mid);
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
}

/* ---- Table of Contents ---- */
.toc {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}
.toc h4 { color: var(--dark-green); margin-bottom: 12px; }
.toc ul { list-style: none; }
.toc ul li { padding: 4px 0; }
.toc ul li a { color: var(--emerald-dark); font-size: 0.9rem; }

/* ---- Related Articles ---- */
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* ---- Accordion ---- */
.accordion { border: 1px solid var(--cream-dark); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--cream-dark); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; background: var(--white);
  font-weight: 700; color: var(--dark-green);
  transition: var(--transition);
}
.accordion-header:hover { background: var(--cream); }
.accordion-body { padding: 0 24px 18px; color: var(--text-mid); font-size: 0.95rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .two-col, .cta-two-col, .contact-grid { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--dark-green); padding: 16px; gap: 4px; }
  nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { min-height: 65vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
