/* ═══════════════════════════════════════════════════════════════
   style.css — Pharmacie Catherine Hardy
   ═══════════════════════════════════════════════════════════════ */

:root {
  --blue-deep:  var(--theme-dark,  #1a4a7a);
  --blue-mid:   var(--theme-color, #2563a8);
  --blue-light: var(--theme-light, #5b9bd5);
  --blue-pale:  #e8f1fb;
  --green:      var(--theme-green, #5ba85a);
  --white:      #ffffff;
  --gray-light: #f4f7fc;
  --gray-text:  #4a5568;
  --shadow:     0 8px 32px rgba(26,74,122,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--blue-deep);
  background: #fff;
  overflow-x: hidden;
}

/* ── NAV ───────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,74,122,0.97);
  backdrop-filter: blur(10px);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; transform: rotate(90deg); }
.nav-logo-text { color: white; font-family: 'Playfair Display', serif; font-size: 1.1rem; line-height: 1.2; }
.nav-logo-text span { display: block; font-size: 0.7rem; font-family: 'DM Sans', sans-serif; font-weight: 300; opacity: 0.8; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.88rem; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: all 0.2s; }
.nav-links a:hover { color: white; background: rgba(255,255,255,0.15); }
.nav-cta { background: var(--green) !important; color: white !important; border-radius: 6px; }
.nav-cta:hover { background: #4a9449 !important; }

/* ── HERO ──────────────────────────────────────────────────────── */
.hero { margin-top: 70px; position: relative; height: 90vh; min-height: 600px; overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; filter: brightness(0.45); animation: zoomOut 8s ease-out forwards; }
@keyframes zoomOut { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,74,122,0.7) 0%, rgba(37,99,168,0.3) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 80px; max-width: 750px; animation: fadeUp 1s ease 0.3s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge { display: inline-block; background: var(--green); color: white; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 16px; border-radius: 20px; margin-bottom: 24px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.6rem); color: white; line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #7ec8e3; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; max-width: 520px; font-weight: 300; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-mid); color: white; text-decoration: none; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.25s; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,74,122,0.35); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: white; text-decoration: none; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; border: 2px solid rgba(255,255,255,0.6); transition: all 0.25s; }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: white; transform: translateY(-2px); }
.btn-green { background: var(--green) !important; border-color: var(--green) !important; }
.btn-green:hover { background: #4a9449 !important; border-color: #4a9449 !important; }

/* ── INFO BAR ──────────────────────────────────────────────────── */
.info-bar { background: var(--blue-deep); display: flex; justify-content: center; flex-wrap: wrap; }
.info-item { display: flex; align-items: center; gap: 10px; padding: 16px 32px; color: rgba(255,255,255,0.85); font-size: 0.88rem; border-right: 1px solid rgba(255,255,255,0.12); transition: background 0.2s; text-decoration: none; }
.info-item:last-child { border-right: none; }
.info-item:hover { background: rgba(255,255,255,0.08); color: white; }

/* ── SECTIONS ──────────────────────────────────────────────────── */
section { padding: 90px 40px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; color: var(--blue-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--blue-deep); line-height: 1.2; }
.section-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--blue-mid), var(--green)); margin: 16px auto 0; border-radius: 2px; }

/* ── SERVICES ──────────────────────────────────────────────────── */
#services { background: var(--gray-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.service-card { background: white; border-radius: 16px; padding: 36px 28px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s; border: 2px solid transparent; }
.service-card:hover { transform: translateY(-6px); border-color: var(--blue-light); box-shadow: 0 16px 48px rgba(26,74,122,0.18); }
.service-icon { font-size: 2.8rem; margin-bottom: 18px; display: block; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--blue-deep); margin-bottom: 10px; }
.service-card p { color: var(--gray-text); font-size: 0.9rem; line-height: 1.6; }

/* ── GALERIE ───────────────────────────────────────────────────── */
#pharmacie { background: white; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 300px 300px; gap: 16px; max-width: 1100px; margin: 0 auto; border-radius: 16px; overflow: hidden; }
.gallery-item { overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,74,122,0.5) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 20px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: white; font-weight: 600; font-size: 0.9rem; }

/* ── VACCINATION ───────────────────────────────────────────────── */
#vaccination { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%); padding: 90px 40px; }
.vaccination-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.vaccination-img { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; }
.vaccination-img img { width: 100%; height: 420px; object-fit: cover; display: block; }
.vaccination-badge { position: absolute; top: 20px; left: 20px; background: var(--green); color: white; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; }
.vaccination-content .section-label { color: #7ec8e3; }
.vaccination-content .section-title { color: white; text-align: left; }
.vaccination-content .section-line { margin: 16px 0; }
.vaccination-content p { color: rgba(255,255,255,0.82); font-size: 1rem; line-height: 1.75; margin-bottom: 28px; }
.vacc-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.vacc-feature { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.vacc-feature::before { content: '✓'; width: 24px; height: 24px; background: var(--green); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

/* ── ÉQUIPE ────────────────────────────────────────────────────── */
#equipe { background: var(--gray-light); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1000px; margin: 0 auto; }
.team-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.team-card:hover { transform: translateY(-8px); box-shadow: 0 20px 56px rgba(26,74,122,0.2); }
.team-img { height: 300px; overflow: hidden; }
.team-group .team-img { height: auto; overflow: hidden; }
.team-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s; }
.team-group .team-img img { width: 100%; height: auto; object-fit: unset; display: block; transition: transform 0.5s; }
.team-card:hover .team-img img { transform: scale(1.05); }
.team-info { padding: 24px; border-top: 3px solid var(--blue-light); }
.team-info h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--blue-deep); margin-bottom: 4px; }
.team-info .role { color: var(--blue-light); font-size: 0.83rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.team-group { grid-column: 1 / -1; }

/* ── HORAIRES ──────────────────────────────────────────────────── */
#horaires { background: white; }
.horaires-wrapper { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.horaires-table { background: var(--gray-light); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.horaires-header { background: var(--blue-deep); color: white; padding: 20px 28px; font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.horaire-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; border-bottom: 1px solid rgba(26,74,122,0.08); transition: background 0.2s; }
.horaire-row:last-child { border-bottom: none; }
.horaire-row:hover { background: var(--blue-pale); }
.horaire-row.today { background: var(--blue-pale); font-weight: 600; }
.horaire-row.today .jour { color: var(--blue-mid); }
.horaire-row.closed .heures { color: #e53e3e; }
.jour { font-weight: 500; color: var(--blue-deep); min-width: 100px; }
.heures { color: var(--gray-text); font-size: 0.9rem; text-align: right; }
.horaires-map { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.horaires-map iframe { width: 100%; height: 320px; border: none; display: block; }
.map-info { background: var(--blue-deep); color: white; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.map-info a { color: white; text-decoration: none; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.map-info a:hover { color: #7ec8e3; }

/* ── PHARMACIE DE GARDE ────────────────────────────────────────── */
#garde { background: linear-gradient(135deg, var(--blue-pale) 0%, #dceefb 100%); padding: 70px 40px; text-align: center; }
.garde-inner { max-width: 600px; margin: 0 auto; }
.garde-inner p { color: var(--gray-text); font-size: 1rem; line-height: 1.7; margin: 16px 0 32px; }

/* ── MARQUES ───────────────────────────────────────────────────── */
#marques { background: var(--gray-light); padding: 60px 40px; }
.brands-grid { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 900px; margin: 0 auto; }
.brand-pill { background: white; border: 2px solid var(--blue-pale); border-radius: 30px; padding: 10px 24px; font-weight: 600; font-size: 0.9rem; color: var(--blue-deep); letter-spacing: 0.04em; transition: all 0.2s; }
.brand-pill:hover { border-color: var(--blue-light); background: var(--blue-pale); transform: translateY(-2px); }

/* ── ARTICLES ──────────────────────────────────────────────────── */
#articles { background: white; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; }
.article-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid rgba(26,74,122,0.08); }
.article-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(26,74,122,0.18); }
.article-img { height: 200px; overflow: hidden; background: var(--blue-pale); }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 24px; }
.article-date { color: var(--blue-light); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.article-body h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--blue-deep); margin-bottom: 10px; }
.article-body p { color: var(--gray-text); font-size: 0.9rem; line-height: 1.6; }

/* ── CONTACT ───────────────────────────────────────────────────── */
#contact { background: var(--blue-deep); padding: 70px 40px; text-align: center; }
#contact .section-label { color: #7ec8e3; }
#contact .section-title { color: white; }
.contact-cards { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 48px; max-width: 900px; margin-left: auto; margin-right: auto; }
.contact-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 32px 36px; text-align: center; flex: 1; min-width: 200px; transition: all 0.3s; text-decoration: none; color: white; }
.contact-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }
.contact-card .icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.contact-card h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #7ec8e3; margin-bottom: 8px; }
.contact-card p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

/* ── FOOTER ────────────────────────────────────────────────────── */
footer { background: #0f2d50; color: rgba(255,255,255,0.6); text-align: center; padding: 24px 40px; font-size: 0.82rem; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: white; }

/* ── ANIMATIONS ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .hero-content { padding: 0 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .vaccination-inner { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .team-group { grid-column: auto; }
  .horaires-wrapper { grid-template-columns: 1fr; }
  section { padding: 60px 20px; }
}
