:root {
  /* Palette inspirée de One Medical : marine profond, corail chaleureux, fond crème */
  --blue-900: #17213b;
  --blue-700: #24304f;
  --blue-600: #ff6b4a;
  --blue-500: #ff8563;
  --teal-500: #f2a65a;
  --teal-400: #ffcd94;
  --amber-500: #f2a65a;
  --ink: #23293a;
  --muted: #6b6459;
  --bg: #fbf6ef;
  --card: #ffffff;
  --border: #ece2d3;
  --radius: 20px;
  --shadow: 0 14px 34px -14px rgba(23, 33, 59, 0.22);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Fraunces", "Sora", "Inter", system-ui, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--muted); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--blue-900); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: #fff; font-size: 1rem;
}
.main-nav { display: flex; gap: 28px; margin-left: 12px; flex: 1; }
.main-nav a { font-weight: 600; color: var(--blue-900); font-size: .95rem; opacity: .85; }
.main-nav a:hover { opacity: 1; }
.header-actions { display: flex; gap: 10px; align-items: center; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--blue-900); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-top: 1px solid var(--border); }
.mobile-nav a { padding: 10px 4px; font-weight: 600; color: var(--blue-900); border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; margin-top: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--blue-600), var(--teal-500)); color: #fff; box-shadow: 0 8px 20px -8px rgba(255,107,74,.5); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(255,107,74,.55); }
.btn-ghost { background: transparent; color: var(--blue-900); }
.btn-ghost:hover { background: #fbeee1; }
.btn-outline { background: transparent; color: var(--blue-900); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 60px; background: radial-gradient(1200px 500px at 80% -10%, #ffe3d1 0%, transparent 60%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--teal-500); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin-bottom: 10px; }
.eyebrow.center, .center { text-align: center; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); color: var(--blue-900); }
.lead { font-size: 1.12rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.hero-trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; font-size: .88rem; color: var(--blue-900); }

.hero-visual { position: relative; min-height: 340px; }
.hero-card {
  position: absolute; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; border: 1px solid var(--border);
}
.card-a { top: 0; left: 10%; width: 78%; }
.card-b { bottom: 60px; left: 0; width: 62%; }
.card-c { bottom: 0; right: 0; width: 46%; text-align: center; background: linear-gradient(135deg, var(--blue-600), var(--teal-500)); color: #fff; }
.card-c strong { font-size: 1.4rem; }
.card-c p { color: rgba(255,255,255,.9); margin: 4px 0 0; }
.pill { display: inline-block; background: #fff1e0; color: var(--teal-500); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.avatar-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--teal-400)); flex-shrink: 0; }
.avatar-row strong { color: var(--blue-900); }
.avatar-row p { margin: 0; font-size: .85rem; }
.card-b strong { display: block; color: var(--blue-900); font-size: .85rem; }
.card-b p { margin: 4px 0 0; color: var(--blue-900); font-weight: 700; font-size: 1.05rem; }

/* Paths: Médecin vs Pharmacie */
.paths { padding: 60px 0 84px; }
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 10px; }
.path-card {
  position: relative; border-radius: 24px; padding: 38px 34px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 260px; justify-content: flex-end;
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.path-card:hover { transform: translateY(-3px); }
.path-doctor { background: linear-gradient(150deg, var(--blue-700), var(--blue-600) 60%, var(--teal-500)); color: #fff; }
.path-pharmacy { background: linear-gradient(150deg, #1f4a3d, #2f8f6e 60%, var(--teal-400)); color: #fff; }
.path-icon { font-size: 2.4rem; margin-bottom: 14px; }
.path-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.path-card p { color: rgba(255,255,255,.88); max-width: 34ch; margin-bottom: 20px; }
.path-card .btn { align-self: flex-start; background: #fff; color: var(--blue-900); font-weight: 700; }
.path-tag {
  position: absolute; top: 24px; right: 28px; font-size: .74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.18);
  padding: 5px 12px; border-radius: 999px;
}

/* Stats */
.stats { background: var(--blue-900); padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid strong { display: block; color: #fff; font-size: 1.7rem; font-weight: 800; }
.stats-grid span { color: rgba(255,255,255,.72); font-size: .85rem; }

/* Sections generic */
section { padding: 84px 0; }
.section-lead { max-width: 60ch; margin: 0 auto 40px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--blue-900); }

/* Services */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.service-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; cursor: pointer;
}
.service-card:hover { border-color: var(--blue-600); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-badge { width: 48px; height: 48px; border-radius: 12px; background: #fbeee1; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.service-card h3 { color: var(--blue-900); font-size: 1.15rem; }
.card-link { color: var(--blue-600); font-weight: 700; font-size: .92rem; }

/* Cosmétiques marketplace (cosmetiques.html) */
.shop-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.filter-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 18px;
  font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--blue-900);
}
.filter-chip.active { background: linear-gradient(135deg, var(--blue-600), var(--teal-500)); color: #fff; border-color: transparent; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
.product-card { display: block; width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; cursor: pointer; font-family: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-500); }
.product-card .btn { pointer-events: none; }
.product-img { font-size: 2.4rem; margin-bottom: 10px; }
.product-brand { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--teal-500); font-weight: 700; margin: 0 0 4px; }
.product-card h3 { font-size: 1rem; color: var(--blue-900); margin: 0 0 8px; }
.product-price { font-weight: 800; color: var(--blue-900); margin-bottom: 14px; }
.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 998;
  background: var(--blue-900); color: #fff; padding: 12px 20px; border-radius: 999px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); font-weight: 700; font-size: .9rem;
}

/* Catalogue produits + zone discrète (pharmacie.html) */
.shop-section { padding-top: 40px; }
.discreet-banner {
  max-width: 720px; margin: 24px auto 0; padding: 14px 20px; border-radius: 14px;
  background: #f3ecff; border: 1px solid #d9c8ff; color: #4a2e8f; font-weight: 600; font-size: .92rem; text-align: center;
}
.product-card.discreet { border-color: #d9c8ff; }
.product-card.discreet .product-brand { color: #7c4fe0; }

/* Pharmacy search (pharmacie.html) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.pharmacy-search { display: flex; gap: 12px; max-width: 640px; margin: 30px auto 0; }
.pharmacy-search input {
  flex: 1; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--border);
  font-family: inherit; font-size: 1rem; background: #fff;
}
.pharmacy-search input:focus { outline: 2px solid var(--blue-600); outline-offset: 1px; }
.pharmacy-results { display: grid; gap: 18px; max-width: 720px; margin: 30px auto 0; }
.pharmacy-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pharmacy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-500); }
.pharmacy-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pharmacy-card-head h3 { margin: 0; color: var(--blue-900); font-size: 1.1rem; }
.price-tag { background: #fff1e0; color: var(--teal-500); font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.stock-line, .hours-line, .address-line { margin: 6px 0; font-size: .92rem; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-ok { background: #1cb87c; }
.dot-out { background: #e0473e; }
.pharmacy-actions { display: flex; gap: 10px; margin-top: 14px; }
#search-note { text-align: center; max-width: 640px; margin: 14px auto 0; color: var(--muted); font-weight: 600; }

/* Doctors directory (medecins.html) — cartes entièrement cliquables */
.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.doctor-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-600); }
.doctor-avatar { font-size: 2.6rem; margin-bottom: 10px; }
.doctor-spec-tag {
  display: inline-block; background: #fbeee1; color: var(--blue-600); font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.doctor-card h3 { color: var(--blue-900); font-size: 1.1rem; margin-bottom: 6px; }
.doctor-note { font-size: .88rem; min-height: 3.2em; }
.doctor-meta { font-size: .82rem; font-weight: 700; color: var(--blue-900); margin-bottom: 16px; }
.doctor-card .btn { pointer-events: none; }

/* Service detail blocks (services.html) */
.service-detail {
  max-width: 760px; margin: 0 auto 64px; text-align: center;
  padding: 36px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail .icon-badge { width: 56px; height: 56px; font-size: 1.6rem; margin: 0 auto 16px; }
.service-detail h2 { color: var(--blue-900); }
.feature-list { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 8px; font-weight: 600; color: var(--blue-900); }

/* How it works */
.how { background: linear-gradient(180deg, #fbf1e6, var(--bg)); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.step { text-align: center; padding: 0 12px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500)); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step h3 { color: var(--blue-900); }

/* Booking */
.booking { background: var(--blue-900); color: #fff; }
.booking-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.booking .eyebrow { color: var(--teal-400); }
.booking h2, .booking p { color: #fff; }
.booking-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.booking-form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.booking-form h3 { color: var(--blue-900); margin-bottom: 16px; }
.booking-form label { display: block; font-weight: 700; font-size: .85rem; color: var(--blue-900); margin: 14px 0 6px; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fbfcfe; resize: vertical;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: 2px solid var(--blue-600); outline-offset: 1px; }
.booking-form button { margin-top: 22px; }
.form-note { margin-top: 12px; font-weight: 700; color: var(--teal-500); min-height: 1.2em; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.trust-item { text-align: center; padding: 24px; }
.trust-item span { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.trust-item h3 { color: var(--blue-900); font-size: 1.05rem; }

/* Testimonials */
.testimonials { background: linear-gradient(180deg, var(--bg), #fbf1e6); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testimonial { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); margin: 0; }
.testimonial p { color: var(--ink); font-style: italic; }
.testimonial cite { color: var(--blue-600); font-weight: 700; font-style: normal; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--blue-600), var(--teal-500)); color: #fff; text-align: center; }
.cta h2, .cta p { color: #fff; }
.cta-inner { max-width: 640px; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.8); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .9rem; margin: 0 0 14px; }
.footer-grid a { display: block; margin-bottom: 10px; font-size: .9rem; opacity: .85; }
.footer-grid a:hover { opacity: 1; }
.logo-light { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .82rem; text-align: center; }

/* Scroll-reveal animations (inspiré des micro-interactions One Medical) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@keyframes ml-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-card { animation: ml-float 6s ease-in-out infinite; }
.card-a { animation-delay: 0s; }
.card-b { animation-delay: .6s; }
.card-c { animation-delay: 1.2s; }

.btn { transition: transform .18s cubic-bezier(.3,1.4,.5,1), box-shadow .18s ease, background .15s ease; }
.btn:active { transform: scale(.97); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .booking-inner, .paths-grid { grid-template-columns: 1fr; }
  .cards-grid, .steps-grid, .trust-grid, .testimonial-grid, .shop-grid, .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: 300px; margin-top: 20px; }
}
@media (max-width: 720px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .steps-grid, .trust-grid, .testimonial-grid, .shop-grid, .doctors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
