body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
}

header {
  background-color: #1e3a8a;
  color: white;
  padding: 20px;
  text-align: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
  border: 3px solid white;
}

.header-text h1 {
  margin: 0;
}


nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  position: absolute;
  right: 25px;
  top: 15px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Hamburger → Cross animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    text-align: center;
    background-color: #1e3a8a;
    width: 100%;
    padding: 15px 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 12px 0;
    font-size: 18px;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

main {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  background-color: white;
  border-radius: 10px;
  margin-top: 20px;
}

.content-section {
  display: none;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  text-align: justify;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #fdfdfd;
  color: #333;
}

.content-section:not(.hidden) {
  display: block;
}

.resume-photo {
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hidden {
  display: none;
}

.bracketed {
  list-style-type: none;
  counter-reset: ref;
  padding-left: 0;
}
.bracketed li {
  counter-increment: ref;
  margin-bottom: 5px;
}

.bracketed li::before {
  content: "[" counter(ref) "] ";
  font-weight: bold;
}

/* === bio Styling === */
.bio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.bio-text {
  flex: 2 1 400px;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.bio-image {
  flex: 1 1 400px;
  text-align: center;
}

.bio-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .bio-container {
    flex-direction: column;
    align-items: center;
  }

  .bio-text {
    text-align: justify;
  }
}


/* === Table Styling (Cours) === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

thead {
  background-color: #1e3a8a;
  color: white;
}

th, td {
  padding: 12px 16px;
  text-align: left;
}

tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

tbody tr:hover {
  background-color: #e0e7ff;
  transition: background-color 0.3s ease;
}

th {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 15px;
  border-bottom: 2px solid #1e3a8a;
}

td {
  border-bottom: 1px solid #e5e7eb;
  color: #333;
}

caption {
  caption-side: top;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: left;
  color: #1e3a8a;
}

/* Responsive Design */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 10px;
  }

  td {
    text-align: right;
    padding: 8px 10px;
    border-bottom: none;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #1e3a8a;
  }
}

/* === Publications Section === */
.content-section h2, .content-section h3 {
  color: #1e3a8a;
  margin-top: 25px;
}

ul.bracketed {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px 0;
}

ul.bracketed li {
  background: #f9fafb;
  margin-bottom: 10px;
  padding: 12px 16px;
  border-left: 4px solid #1e3a8a;
  border-radius: 6px;
  transition: all 0.3s ease;
}

ul.bracketed li:hover {
  background: #e0e7ff;
  transform: translateX(4px);
}

ul.bracketed em {
  color: #374151;
  font-style: italic;
}

ul.bracketed strong {
  color: #111827;
}

.project-card {
  background-color: #fafafa;
  border-left: 5px solid #1e3a8a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.toggle-icon {
  font-size: 22px;
  font-weight: bold;
  color: #1e3a8a;
  transition: transform 0.2s ease;
}

.project-link {
  color: #1e3a8a;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.project-link:hover {
  color: #374bbf;
  text-decoration: underline;
}


.project-image {
  margin-top: 15px;
  text-align: center;
}

.project-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease;
}

.hidden {
  display: none;
}


.cv-button {
  display: inline-block;
  background-color: #1e3a8a;
  color: white;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cv-button:hover {
  background-color: #374bbf;
  transform: translateY(-2px);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.contact-card {
  flex: 1 1 300px;
  background-color: #f9fafb;
  border-left: 5px solid #1e3a8a;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-icon {
  font-size: 24px;
}

.contact-card a {
  color: #1e3a8a;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #374bbf;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}

