*, *::before, *::after {
  box-sizing: border-box;
}
    
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0a1a2f, #152f45);
  color: #e1e8f0;
  line-height: 1.7;
  font-size: 18px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #4ba3ff;
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover, a:focus {
  color: #82c7ff;
  text-decoration: underline;
  outline: none;
}

header {
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
}

.profile-pic {
  border-radius: 50%;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 4px solid #3a8dde;
  box-shadow: 0 0 18px rgba(58, 141, 222, 0.5);
  margin-right: 2.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(58, 141, 222, 0.8);
}

header div h1 {
  font-size: 3rem;
  margin: 0 0 0.25rem 0;
  color: #cde6ff;
  font-weight: 600;
  letter-spacing: 0.03em;
}
header div h2 {
  font-size: 1.4rem;
  color: #a2c9f9;
  font-weight: 300;
  margin: 0 0 1rem 0;
  max-width: 600px;
}

.social-links a {
  margin-right: 1.5rem;
  font-size: 1.2rem;
  color: #6fb1ff;
  font-weight: 500;
}
.social-links a:last-child {
  margin-right: 0;
}
.social-links a:hover {
  color: #9cd3ff;
}

main {
  max-width: 900px;
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
}

section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 5px 20px rgba(15, 52, 94, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    
h3 {
  color: #9ecbff;
  font-weight: 600;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.3rem;
  border-bottom: 2px solid #4ba3ff;
  padding-bottom: 0.3rem;
  max-width: max-content;
}

p {
  color: #d1d9e6;
  font-weight: 300;
  font-size: 1.1rem;
  max-width: 700px;
  text-align: justify;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #1e90ff;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  background-color: #63b3ed;
}

.publications a.publication-card,
.preprints a.publication-card,
.vulgarisation a.publication-card {
  display: block;
  background: rgba(75, 163, 255, 0.07);
  color: #d1e5ff;
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(75, 163, 255, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  font-weight: 500;
}
.publications a.publication-card:hover,
.preprints a.publication-card:hover,
.vulgarisation a.publication-card:hover {
  background: rgba(75, 163, 255, 0.18);
  box-shadow: 0 8px 30px rgba(75, 163, 255, 0.5);
  transform: translateY(-4px);
  color: #ffffff;
  text-decoration: underline;
  cursor: pointer;
}

ul {
  padding-left: 1.3rem;
  margin-top: 0;
}
li {
  margin-bottom: 0.9rem;
  font-weight: 400;
}

ul li a {
  font-weight: 600;
  color: #69aaff;
  text-decoration: none;
  transition: color 0.25s ease;
}
ul li a:hover {
  color: #a8d1ff;
  text-decoration: underline;
}

.contact p {
  font-size: 1.05rem;
  margin: 0.3rem 0;
  color: #c6d3e9;
}

footer {
  text-align: center;
  font-size: 0.95rem;
  color: #739ecf;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(75, 163, 255, 0.3);
}

@media (max-width: 640px) {
  header {
     flex-direction: column;
     padding: 2rem 1rem;
  }
  .profile-pic {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  header div h1 {
    font-size: 2.2rem;
    text-align: center;
  }
  header div h2 {
    font-size: 1.1rem;
    text-align: center;
    max-width: 100%;
  }   
  main {
    padding: 0 1rem;
  }
}
    
.vulgarisation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.vulgarisation-item {
  background: rgba(30, 144, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vulgarisation-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(30, 144, 255, 0.6);
}

.vulgarisation-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 2px solid #1e90ff;
}

.vulgarisation-item h4 {
  margin: 1rem;
  font-size: 1.1rem;
  color: #cfe8fa;
  flex-grow: 1;
}
.vulgarisation-item .btn {
  display: inline-block;
  margin: 0 1rem 1rem;
  padding: 0.5rem 1rem;
  background-color: #1e90ff;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}

.vulgarisation-item .btn:hover {
  background-color: #63b3ed;
}
    
.publications table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: #d1d9e6;
}
table {
  border-collapse: collapse; /* ou separate selon besoin */
  border: none;
}

.publications th,
.publications td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  vertical-align: top;
}

.publications th {
  font-weight: 600;
  color: #9ecbff;
  border-bottom: 2px solid #4ba3ff;
}

.publications a {
  font-weight: 600;
  color: #4ba3ff;
  text-decoration: none;
}

.publications a:hover,
.publications a:focus {
  text-decoration: underline;
  color: #82c7ff;
}
.top-right-btn {
  position: fixed;   
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 9999;  
}

