/* ============================================
   Pharmacie Saint Nicolas Granville - Style CSS
   Coastal Normandy Pharmacy
   ============================================ */

:root {
  --navy: #0a1628;
  --navy-mid: #132240;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #dbeafe;
  --light: #f1f5f9;
  --light-mid: #e2e8f0;
  --text-dark: #0f172a;
  --text-mid: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --shadow: 0 4px 20px rgba(10,22,40,0.12);
  --shadow-lg: 0 8px 40px rgba(10,22,40,0.18);
  --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: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--light);
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-weight: 700; line-height: 1.3;
  color: var(--navy);
}
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.05rem; }
p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy); }

.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(--navy);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.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: rgba(241,245,249,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
nav a:hover, nav a.active {
  background: var(--blue);
  color: var(--white);
}
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--light); 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,22,40,0.92) 0%, rgba(10,22,40,0.86) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 60px 24px;
  color: var(--light);
}
.hero-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-content h1 {
  color: var(--white); max-width: 680px;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 1.1rem; max-width: 560px;
  color: rgba(241,245,249,0.88);
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  background: var(--accent-dark); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}
.btn-outline {
  background: transparent; color: var(--light);
  border: 2px solid rgba(241,245,249,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--light); color: var(--white);
}
.btn-secondary {
  background: var(--navy); color: var(--light);
}
.btn-secondary:hover {
  background: var(--navy-mid); color: var(--white);
  transform: translateY(-2px);
}

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

.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: 56px; height: 3px;
  background: linear-gradient(to right, var(--blue), var(--accent));
  margin: 16px auto 0; border-radius: 2px;
}

/* ---- Services ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-mid);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(to right, var(--blue), var(--accent));
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--blue-pale);
}
.service-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 1.5rem;
}
.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p { color: var(--text-mid); font-size: 0.92rem; margin: 0; }

/* ---- Two-col ---- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; 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: 18px; }
.two-col-text ul { list-style: none; margin-bottom: 24px; }
.two-col-text ul li { padding: 8px 0 8px 24px; position: relative; color: var(--text-mid); }
.two-col-text ul li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ---- Banner ---- */
.banner-section {
  position: relative;
  background-image: url('/images/vue-granville.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,22,40,0.88);
}
.banner-content { position: relative; z-index: 1; color: var(--light); }
.banner-content h2 {
  color: var(--white); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px;
}
.banner-content p { max-width: 600px; margin: 0 auto 28px; opacity: 0.88; }

/* ---- CTA Section ---- */
.cta-section { background: var(--light-mid); }
.cta-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; 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 h2 { margin-bottom: 16px; }
.cta-text p { color: var(--text-mid); margin-bottom: 18px; }
.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(--blue);
}
.cta-feature-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.cta-feature-text strong { display: block; color: var(--navy); font-size: 0.9rem; }
.cta-feature-text span { font-size: 0.85rem; color: var(--text-light); }

/* ---- Client Context Block ---- */
.context-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  margin: 48px 0;
}
.context-block h3 { color: var(--navy); margin-bottom: 16px; }
.context-block p { color: var(--text-mid); }
.context-block a { color: var(--blue); font-weight: 600; }
.context-block a:hover { color: var(--navy); }

/* ---- Blog ---- */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.blog-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--light-mid);
}
.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(--blue); color: var(--white);
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.blog-card-body { padding: 22px; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); }
.blog-card-body p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 14px; }
.blog-card-link { font-size: 0.85rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }
.blog-card-link:hover { color: var(--navy); }

/* ---- Article ---- */
.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,22,40,0.72), rgba(10,22,40,0.55)); }
.article-hero-content { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; padding: 40px; color: var(--light); }
.article-cat {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 5px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
}
.article-hero-content h1 { color: var(--white); 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(--light-mid); }
.article-body { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.article-body h2 { color: var(--navy); 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(--blue); font-weight: 600; }
.article-body a:hover { color: var(--navy); }
.article-cta { background: var(--light); border-radius: var(--radius-lg); padding: 32px; margin: 32px 0; border-left: 4px solid var(--blue); }
.article-cta h3 { margin-bottom: 12px; }
.breadcrumb { background: var(--light-mid); padding: 12px 0; }
.breadcrumb nav { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--text-light); }

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

/* ---- Stats ---- */
.stats-bar { background: var(--navy); 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(--accent); }
.stat-item .stat-label { color: rgba(241,245,249,0.78); font-size: 0.85rem; }

/* ---- Testimonials ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); border-top: 3px solid var(--blue); }
.testimonial-stars { color: #f59e0b; margin-bottom: 12px; }
.testimonial-text { color: var(--text-mid); font-style: italic; margin-bottom: 14px; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.testimonial-place { font-size: 0.8rem; color: var(--text-light); }

/* ---- Page Header ---- */
.page-header { background: var(--navy); padding: 60px 0; text-align: center; }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(241,245,249,0.82); 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: 18px; }
.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(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-info-item h4 { color: var(--navy); 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: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--light-mid); border-radius: var(--radius); font-size: 0.95rem; color: var(--text-dark); background: var(--light); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); 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(--navy); color: var(--light); 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(241,245,249,0.65); font-size: 0.9rem; }
.footer-col h4 { color: var(--accent); font-size: 0.88rem; 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(241,245,249,0.7); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--blue-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(241,245,249,0.45); font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(241,245,249,0.45); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--blue-light); }

/* ---- Sitemap ---- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.sitemap-block h3 { color: var(--navy); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); }
.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(--blue); }

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

/* ---- Tags / TOC ---- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag { background: var(--light-mid); color: var(--text-mid); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; }
.toc { background: var(--light); border-radius: var(--radius); padding: 24px 28px; margin: 28px 0; }
.toc h4 { color: var(--navy); margin-bottom: 12px; }
.toc ul { list-style: none; }
.toc ul li { padding: 4px 0; }
.toc ul li a { color: var(--blue); font-size: 0.9rem; }

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

/* ---- Accordion ---- */
.accordion { border: 1px solid var(--light-mid); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--light-mid); }
.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: 600; color: var(--navy); transition: var(--transition); }
.accordion-header:hover { background: var(--light); }
.accordion-body { padding: 0 24px 18px; color: var(--text-mid); font-size: 0.95rem; }

/* ---- Delivery specific ---- */
.delivery-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; }
.delivery-step { text-align: center; padding: 28px 20px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.delivery-step h4 { color: var(--navy); margin-bottom: 8px; }
.delivery-step p { color: var(--text-mid); font-size: 0.9rem; margin: 0; }

/* ---- 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(--navy); 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; }
  .context-block { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
