/* Dr Villard — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --accent: #1a365d;
  --accent-light: #2a4a7f;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #fff;
  --bg-subtle: #f8f9fa;
  --border: #e2e8f0;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* Language toggle */
[lang="en"] { display: none !important; }
body.en [lang="en"] { display: revert !important; }
body.en a[lang="en"] { display: inline-flex !important; }
body.en [lang="fr"] { display: none !important; }

/* Fade transition */
.lang-fade { transition: opacity 0.3s ease; }
body.lang-switching .lang-fade { opacity: 0; }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}

nav .nav-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

nav .nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none;
}

nav .nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

nav .nav-links a:hover { color: var(--accent); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 500;
}

.lang-toggle button {
  background: none; border: none; cursor: pointer;
  padding: 0.3rem 0.6rem;
  color: var(--text-light);
  transition: all 0.2s;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

/* Sections */
section { padding: 5rem 2rem; }
.container { max-width: 1300px; margin: 0 auto; }

h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

/* Hero */
.hero {
  padding-top: 6rem;
  padding-bottom: 2rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-content { 
  max-width: 460px; 
  text-align: center;
}

.hero-photo {
  position: relative;
  right: -2rem;
  margin-left: -2rem;
}
.hero-photo img {
  width: calc(100% + 4rem);
  max-width: none;
  border-radius: 10px;
  filter: grayscale(100%) contrast(1.1);
  box-shadow: -10px 20px 60px rgba(0,0,0,0.15);
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26,54,93,0.3);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.hero-subtitle,
.hero-institution {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

.hero-announcement {
  margin-top: 1.3rem;
  padding: 0.75rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(26,54,93,0.2);
}

.hero-locations {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.1em;
}

.hero-tagline {
  margin-top: 1.3rem;
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* Expertise cards */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.expertise-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.expertise-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(26,54,93,0.08);
}

.expertise-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.expertise-card p { font-size: 0.88rem; color: var(--text-light); }

/* Timeline */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute; left: 5px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: 0.35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 0.2rem;
}

/* Publications */
.pub-list { list-style: none; }
.pub-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:last-child { border-bottom: none; }

.pub-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  float: left;
  margin-right: 1rem;
  line-height: 1;
  margin-top: 0.2rem;
}

.pub-text { font-size: 0.9rem; color: var(--text); }
.pub-text a { color: var(--accent); text-decoration: none; }
.pub-text a:hover { text-decoration: underline; }
.pub-total {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Awards */
.awards-list { list-style: none; }
.award-item {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.award-item:last-child { border-bottom: none; }
.award-year {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  min-width: 3.5rem;
}
.award-desc { font-size: 0.95rem; }

/* Societies */
.societies {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-align: center;
}

/* Contact */
.contact-info {
  text-align: center;
  font-size: 1rem;
}
.contact-info a {
  color: var(--accent);
  text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }
.contact-info p { margin-bottom: 0.5rem; }

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

/* Placeholder photo */
.photo-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 5rem;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* Section alt bg */
.section-alt { background: var(--bg-subtle); }

/* Hero contact */
.hero-contact {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.contact-item svg {
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
}

/* Responsive */
/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transition: all 0.3s;
}
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 9px; }
.nav-hamburger span:nth-child(3) { top: 18px; }
.nav-hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  nav { padding: 0 1.2rem; height: 54px; }
  nav .nav-brand { font-size: 1rem; }
  .nav-hamburger { display: block; }
  nav .nav-links {
    display: none;
    position: absolute; top: 54px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 0;
  }
  nav .nav-links.open { display: flex; }
  nav .nav-links li { padding: 0.7rem 0; border-bottom: 1px solid #f0f0f0; }
  nav .nav-links li:last-child { border-bottom: none; padding-top: 1rem; }
  nav .nav-links a { font-size: 0.9rem; letter-spacing: 0; text-transform: none; }

  section { padding: 3rem 1.2rem; }

  /* Hero: photo first, full width */
  .hero { min-height: auto; padding-top: 4rem; padding-bottom: 1.5rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-photo { order: -1; right: 0; margin-left: 0; margin: 0 -1.2rem; }
  .hero-photo img { width: 100%; border-radius: 0; box-shadow: none; }
  h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-institution { font-size: 0.85rem; }
  .hero-tagline { font-size: 0.95rem; margin-top: 1rem; }
  .hero-buttons { justify-content: center; }
  .btn-primary, .btn-outline { padding: 11px 22px; font-size: 0.85rem; }

  /* Cards */
  .expertise-grid { grid-template-columns: 1fr; }
  .container { max-width: 100%; }

  /* Timeline */
  .timeline { padding-left: 2rem; }
  .timeline-item::before { left: -2rem; }
  .timeline::before { left: 4px; }

  /* Contact */
  .contact-info { text-align: center; }
}

@media (max-width: 480px) {
  nav .nav-links a { font-size: 0.6rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }
  h1 { font-size: 1.7rem; }
}

/* Landing page */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.landing h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 3rem;
}

.landing-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  min-width: 280px;
  transition: all 0.3s;
}

.landing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(26,54,93,0.1);
  transform: translateY(-2px);
}

.landing-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.landing-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.landing .lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
}

/* Privacy modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-content {
  background: #fff; border-radius: 12px; padding: 2.5rem;
  max-width: 700px; width: 100%; max-height: 85vh; overflow-y: auto;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-content h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.modal-content h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.modal-content p { font-size: 0.9rem; line-height: 1.7; color: var(--text); }
.modal-content a { color: var(--accent); }
.modal-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; font-size: 1.8rem; cursor: pointer;
  color: var(--text-light); transition: color 0.2s;
}
.modal-close:hover { color: var(--accent); }
.footer-legal { margin-top: 0.5rem; }
.footer-legal a { color: var(--text-light); font-size: 0.8rem; text-decoration: underline; }
