/* =========================================================
   Dr Jihad Abbou — Gynécologue Obstétricien à Fès
   Design : médical premium, féminin, chaleureux
   ========================================================= */

:root {
  --green: #2D656A;
  --green-dark: #1f4a4e;
  --green-light: #e8f1f2;
  --blue: #A2D2DF;
  --blue-light: #eaf5f9;
  --gray: #7C7B7C;
  --gray-light: #f5f5f6;
  --text: #1f2a2c;
  --text-soft: #5a6063;
  --white: #ffffff;
  --bg: #fbfaf8;
  --gold: #c9a96a;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(45, 101, 106, 0.06);
  --shadow: 0 8px 30px rgba(45, 101, 106, 0.08);
  --shadow-lg: 0 20px 60px rgba(45, 101, 106, 0.12);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -0.03em; font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { color: var(--text-soft); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 101, 106, 0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: var(--max); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 500;
  color: var(--green); letter-spacing: -0.01em;
}
.brand-mark {
  height: 48px; width: auto; display: block;
  object-fit: contain;
}
.brand-text small { display: block; font-family: 'Manrope', sans-serif; font-size: .72rem; font-weight: 500; color: var(--text-soft); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: white !important; padding: .65rem 1.25rem;
  border-radius: 999px; font-weight: 500; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.lang-switch { font-size: .85rem; color: var(--gray); display: flex; gap: .5rem; align-items: center; }
.lang-switch a.active { color: var(--green); font-weight: 600; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--green); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 6rem;
  background:
    radial-gradient(1100px 500px at 90% -10%, var(--blue-light) 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 100%, var(--green-light) 0%, transparent 65%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: white; border: 1px solid rgba(45, 101, 106, 0.12);
  padding: .5rem 1rem; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--green); margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--green); }
.hero-lead { font-size: 1.15rem; line-height: 1.7; margin-bottom: 2.25rem; max-width: 540px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  cursor: pointer; border: 0; white-space: nowrap;
}
.btn-primary { background: var(--green); color: white !important; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: white; color: var(--green) !important; border: 1.5px solid var(--green); }
.btn-secondary:hover { background: var(--green); color: white !important; }
.btn-whatsapp { background: #25D366; color: white !important; }
.btn-whatsapp:hover { background: #1ebe57; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.hero-visual { position: relative; }
.hero-card {
  background: white; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-lg); position: relative;
  border: 1px solid rgba(255, 255, 255, .8);
}
.hero-portrait {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
  display: grid; place-items: center; color: var(--green);
  font-family: 'Fraunces', serif; font-size: 5rem; font-weight: 700;
  margin-bottom: 1.25rem; overflow: hidden;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-name { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.hero-card-title { font-size: .92rem; color: var(--text-soft); margin-bottom: 1rem; }
.hero-card-meta { display: flex; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-light); font-size: .85rem; color: var(--text-soft); }
.hero-card-meta strong { color: var(--green); display: block; font-size: 1.1rem; font-family: 'Fraunces', serif; }

.hero-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: white; padding: .85rem 1.15rem; border-radius: 14px;
  box-shadow: var(--shadow); display: flex; gap: .65rem; align-items: center;
  font-size: .9rem; font-weight: 500;
}
.hero-badge .stars { color: #f59e0b; letter-spacing: 2px; }

/* ---------- SECTIONS ---------- */
section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-eyebrow {
  display: inline-block; color: var(--green); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em; margin-bottom: .8rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; }

/* About */
.about { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; }
.about-image {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  aspect-ratio: 4/5; display: grid; place-items: center;
  color: var(--green); font-family: 'Fraunces', serif; font-size: 4rem;
  box-shadow: var(--shadow);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1.25rem; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--gray-light); }
.stat-num { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--green); font-weight: 700; }
.stat-label { font-size: .85rem; color: var(--text-soft); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card {
  background: white; padding: 2rem 1.75rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  border: 1px solid rgba(45, 101, 106, 0.05); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-light); color: var(--green);
  display: grid; place-items: center; margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .6rem; font-family: 'Manrope', sans-serif; font-weight: 600; }
.service-card p { font-size: .92rem; line-height: 1.6; }

/* Trust */
.trust { background: linear-gradient(180deg, var(--bg) 0%, var(--green-light) 100%); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.trust-item { text-align: center; padding: 1.5rem; }
.trust-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: white; color: var(--green); display: grid; place-items: center;
  margin: 0 auto 1.25rem; box-shadow: var(--shadow);
}
.trust-icon svg { width: 30px; height: 30px; }
.trust-item h3 { font-size: 1.1rem; margin-bottom: .6rem; font-family: 'Manrope', sans-serif; font-weight: 600; }
.trust-item p { font-size: .92rem; }

/* Reviews */
.reviews-summary {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.review-score { text-align: center; }
.review-score .num { font-family: 'Fraunces', serif; font-size: 3.5rem; color: var(--green); font-weight: 700; line-height: 1; }
.review-score .stars { color: #f59e0b; font-size: 1.3rem; letter-spacing: 4px; margin: .35rem 0; }
.review-score .count { font-size: .9rem; color: var(--text-soft); }
.google-logo { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.review-card {
  background: white; padding: 1.75rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  border: 1px solid rgba(45, 101, 106, 0.06);
}
.review-stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: .85rem; font-size: .95rem; }
.review-text { font-style: italic; color: var(--text); margin-bottom: 1.25rem; flex: 1; line-height: 1.65; font-size: .95rem; }
.review-author { display: flex; align-items: center; gap: .85rem; padding-top: 1rem; border-top: 1px solid var(--gray-light); }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white; display: grid; place-items: center; font-weight: 600;
}
.review-author-name { font-weight: 600; font-size: .92rem; color: var(--text); }
.review-author-date { font-size: .8rem; color: var(--text-soft); }

/* FAQ */
.faq { background: white; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-light); border-radius: var(--radius);
  margin-bottom: .85rem; overflow: hidden; background: var(--bg);
  transition: box-shadow .2s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  list-style: none; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--green); font-size: 1.5rem; font-weight: 300;
  transition: transform .3s var(--ease); flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-soft); line-height: 1.7; }

/* Contact */
.contact { background: var(--green); color: white; position: relative; overflow: hidden; }
.contact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 90% 0%, rgba(162, 210, 223, 0.2) 0%, transparent 60%);
  pointer-events: none;
}
.contact .section-header h2, .contact .section-header p { color: white; }
.contact .section-header p { opacity: .9; }
.contact .section-eyebrow { color: var(--blue); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; position: relative; z-index: 1; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.12); display: grid; place-items: center;
  color: white; flex-shrink: 0;
}
.contact-item-icon svg { width: 22px; height: 22px; }
.contact-item h4 { color: white; font-size: .95rem; margin-bottom: .25rem; font-family: 'Manrope', sans-serif; font-weight: 600; }
.contact-item p, .contact-item a { color: rgba(255, 255, 255, 0.85); font-size: .92rem; line-height: 1.6; }
.contact-item a:hover { color: white; }
.contact-map {
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255, 255, 255, 0.08); aspect-ratio: 4/3; min-height: 380px;
  box-shadow: var(--shadow-lg);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.footer { background: #1a3438; color: rgba(255, 255, 255, 0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer h4 { color: white; font-size: 1rem; margin-bottom: 1.25rem; font-family: 'Manrope', sans-serif; font-weight: 600; }
.footer p, .footer li { font-size: .9rem; line-height: 1.8; }
.footer ul { list-style: none; }
.footer a { color: rgba(255, 255, 255, 0.7); }
.footer a:hover { color: white; }
.footer-brand { color: white; font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center; color: white; transition: background .2s var(--ease);
}
.footer-social a:hover { background: var(--green); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: .82rem; color: rgba(255, 255, 255, 0.5);
}

/* Floating buttons */
.float-wa, .float-call {
  position: fixed; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: white !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); transition: transform .25s var(--ease);
}
.float-wa { background: #25D366; bottom: 1.5rem; right: 1.5rem; }
.float-call { background: var(--green); bottom: 1.5rem; right: 6.25rem; display: none; }
.float-wa:hover, .float-call:hover { transform: scale(1.08); color: white !important; }
.float-wa svg, .float-call svg { width: 28px; height: 28px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero { padding: 3rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { max-width: 380px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 1.5rem; box-shadow: var(--shadow);
    align-items: flex-start;
  }
  .menu-toggle { display: block; }
  .float-call { display: grid; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { width: 100%; flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .reviews-summary { gap: 1rem; }
  .review-score .num { font-size: 2.8rem; }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] body { font-family: 'Tajawal', 'Manrope', sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: 'Amiri', 'Tajawal', Georgia, serif;
}
[dir="rtl"] .hero-eyebrow .dot { box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }
[dir="rtl"] .float-wa { right: auto; left: 1.5rem; }
[dir="rtl"] .float-call { right: auto; left: 6.25rem; }
[dir="rtl"] .service-card::before { transform-origin: right; }
[dir="rtl"] .faq-item summary { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .stat-num, [dir="rtl"] .review-score .num { font-family: 'Amiri', serif; }
