/* ===========================
   Lucile Laugerette — Academic Website
   Style inspired by al-folio
   =========================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.68;
  color: #000;
  background: #fff;
}

p { margin: 0 0 1rem; }

a { color: #000; text-decoration: underline; }
a:hover { opacity: 0.6; }

/* ===========================
   NAVBAR
   =========================== */
nav.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar-container {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  color: #000;
  letter-spacing: 0.01em;
}

.navbar-brand strong {
  font-weight: 700;
}

.navbar-nav {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 28px;
}

.navbar-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: #000;
  opacity: 1;
}

/* ===========================
   MAIN CONTAINER
   =========================== */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 28px 88px;
}

/* ===========================
   HOME — PROFILE SECTION
   =========================== */
.profile {
  display: flex;
  gap: 52px;
  align-items: flex-start;
  margin-top: 12px;
}

.profile-info { flex: 1; }

.profile-info h1 {
  font-size: 1.85rem;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.contact-email {
  display: inline-block;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  margin-bottom: 22px;
}
.contact-email:hover { opacity: 0.7; }

.profile-photo {
  width: 210px;
  flex-shrink: 0;
}

.profile-photo img {
  width: 100%;
  display: block;
}

/* Social / external links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  text-decoration: none;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.35);
  padding: 3px 10px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.social-links a:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* ===========================
   SECTION TITLE
   =========================== */
h2.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 8px;
  margin: 56px 0 28px;
  color: #000;
}

/* ===========================
   PAPER ENTRIES
   =========================== */
.paper {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.paper:last-child { border-bottom: none; }

.paper-with-image {
  display: flex;
  flex-direction: row-reverse;
  gap: 28px;
  align-items: flex-start;
}

.paper-with-image .paper-content {
  flex: 1;
  min-width: 0;
}

.paper-image {
  flex: 0 0 200px;
  width: 200px;
}

.paper-image img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 640px) {
  .paper-with-image { flex-direction: column; }
  .paper-image { width: 100%; flex: none; }
  .paper-image img { width: 100%; height: 180px; }
}

.paper-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px;
  line-height: 1.45;
}

.jmp-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #000;
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 9px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.paper-coauthors {
  font-size: 0.88rem;
  color: #444;
  margin: 0 0 3px;
}

.paper-venue {
  font-size: 0.88rem;
  color: #444;
  font-style: italic;
  margin: 0 0 8px;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.paper-links a {
  font-size: 0.74rem;
  text-decoration: none;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.38);
  padding: 2px 9px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
}

.paper-links a:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* Collapsible abstract */
details.abstract { margin-top: 9px; }

details.abstract summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: #888;
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

details.abstract summary::-webkit-details-marker { display: none; }

details.abstract summary::before {
  content: "▸";
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.2s;
}

details.abstract[open] summary::before { transform: rotate(90deg); }

details.abstract summary:hover { color: #000; }

.abstract-body {
  font-size: 0.88rem;
  color: #333;
  line-height: 1.68;
  margin-top: 10px;
  padding: 13px 16px;
  background: #f7f7f7;
  border-left: 3px solid rgba(0, 0, 0, 0.12);
}

/* ===========================
   TEACHING PAGE
   =========================== */
.teaching-year {
  font-size: 1rem;
  margin: 24px 0 4px;
}

.teaching-list {
  list-style: disc;
  padding-left: 1.6em;
  margin: 0 0 4px;
}

.teaching-list li {
  font-size: 1rem;
  color: #333;
  margin-bottom: 4px;
}

.teaching-entry {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.teaching-entry:last-child { border-bottom: none; }

.teaching-entry h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.teaching-entry .course-meta {
  font-size: 0.88rem;
  color: #555;
  margin: 0;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  text-align: center;
  padding: 24px;
  font-size: 0.78rem;
  color: #c0c0c0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-top: 48px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 640px) {
  .profile { flex-direction: column-reverse; }
  .profile-photo { width: 150px; }
  main { padding: 80px 20px 64px; }
  .navbar-container { padding: 0 18px; }
  .navbar-nav { gap: 18px; }
}
