/* ===== CLINIQUE.CSS — Université · Section Médecine ===== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --white:        #f9faf8;
  --off-white:    #f0f2ed;
  --bg-card:      #ffffff;
  --sage:         #4a7c59;
  --sage-light:   #6a9c77;
  --sage-pale:    #e8f0eb;
  --sage-dark:    #2d5038;
  --teal:         #2a7f7f;
  --warm-gray:    #6b7280;
  --text-dark:    #1a1f1c;
  --text-body:    #374151;
  --text-light:   #9ca3af;
  --border:       #dde3dd;
  --accent-red:   #c0392b;
  --accent-amber: #d97706;
  --accent-green: #15803d;
  --shadow-sm:    0 1px 3px rgba(74,124,89,0.08);
  --shadow-md:    0 4px 20px rgba(74,124,89,0.12);
  --shadow-lg:    0 12px 40px rgba(74,124,89,0.16);
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }

/* ── TEXTURE overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--teal));
  width: 0%;
  z-index: 200;
  transition: width 0.1s;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: rgba(249, 250, 248, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--sage);
  border-radius: 8px;
  display: grid; place-items: center;
  color: white;
  font-size: 1rem;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--sage); }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--sage);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--sage-dark); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 3rem 4rem;
  overflow: hidden;
  z-index: 1;
}

.hero-right-bg {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 48%;
  background: linear-gradient(135deg, var(--sage-pale) 0%, #d4e8d8 100%);
  z-index: -1;
}

.hero-left {}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  background: var(--sage-pale);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--sage);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero-lead {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex; gap: 1rem; align-items: center;
}

.btn-primary {
  background: var(--sage);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--sage);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s;
}
.btn-ghost:hover { gap: 0.7rem; }
.btn-ghost::after { content: '→'; }

/* ── HERO VISUAL PANEL ── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.clinic-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(74,124,89,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.clinic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.clinic-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.clinic-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}
.clinic-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-open { background: #d1fae5; color: #065f46; }
.badge-full { background: #fee2e2; color: #991b1b; }
.badge-info { background: var(--sage-pale); color: var(--sage-dark); }

/* ── SECTION LAYOUT ── */
.section-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-lead {
  font-size: 0.95rem;
  color: var(--warm-gray);
  max-width: 580px;
  line-height: 1.8;
  margin-top: 1rem;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: var(--sage-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--sage-pale);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.service-desc {
  font-size: 0.87rem;
  color: var(--warm-gray);
  line-height: 1.7;
}
.service-meta {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--sage);
  letter-spacing: 0.08em;
}

/* ── SPLIT SECTION ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-content {}
.split-visual {
  background: var(--sage-pale);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(74,124,89,0.15);
}

/* ── PROCESS STEPS ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.5s, transform 0.5s;
}
.step.visible { opacity: 1; transform: translateX(0); }

.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid; place-items: center;
}
.step-content {}
.step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.step-desc {
  font-size: 0.85rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ── STAFF LIST ── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.staff-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.staff-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.staff-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--sage-pale);
  display: grid; place-items: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  border: 2px solid rgba(74,124,89,0.2);
}
.staff-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.staff-role {
  font-size: 0.78rem;
  color: var(--sage);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}
.staff-spec {
  font-size: 0.82rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ── STATS ROW ── */
.stats-band {
  background: var(--sage-dark);
  color: white;
  padding: 4rem 3rem;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.band-stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #b3d9be;
  line-height: 1;
}
.band-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* ── ACCORDEON / FAQ ── */
.accordion {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2rem;
}
.acc-item {
  border-bottom: 1px solid var(--border);
}
.acc-item:last-child { border-bottom: none; }

.acc-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: background 0.2s;
}
.acc-header:hover { background: var(--sage-pale); }

.acc-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--sage);
  display: grid; place-items: center;
  font-size: 1rem;
  transition: transform 0.3s, background 0.2s;
  flex-shrink: 0;
}
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--sage); color: white; }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 1.8;
}
.acc-item.open .acc-body {
  max-height: 400px;
  padding: 0 1.5rem 1.2rem;
}

/* ── TIMELINE HORIZONTAL ── */
.h-timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-top: 2.5rem;
}
.h-tl-item {
  flex: 1;
  min-width: 160px;
  padding: 1.5rem;
  border-left: 2px solid var(--border);
  position: relative;
}
.h-tl-item:first-child { border-left: none; }
.h-tl-item::before {
  content: '';
  position: absolute;
  top: -1px; left: -6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--sage);
}
.h-tl-item:first-child::before { left: 0; }

.h-tl-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sage);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.h-tl-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.h-tl-desc {
  font-size: 0.8rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ── ALERT BOX ── */
.alert-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid var(--accent-amber);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  display: flex; gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.alert-box-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.alert-box-text { font-size: 0.87rem; color: #92400e; line-height: 1.7; }
.alert-box-text strong { font-weight: 700; color: #78350f; }

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
thead { background: var(--sage-pale); }
th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(74,124,89,0.06);
  color: var(--text-body);
}
tr:hover td { background: var(--sage-pale); }
tr:last-child td { border-bottom: none; }

/* ── FOOTER ── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.5);
  padding: 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}
.footer-copy {
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 6rem; }
  .hero-right-bg { display: none; }
  .hero-visual { display: none; }
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .section-wrap { padding: 3rem 1.2rem; }
}

@media (max-width: 600px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  footer { padding: 2rem 1.2rem; }
}
