* {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 0;
  line-height: 1.6;
}

nav {
  background-color: #003366;
  color: white;
  padding: 0.5em 2em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

nav .name {
  font-weight: bold;
  font-size: 2em;
  color: inherit;
  text-decoration: none;
}

.separator {
  font-size: 2.5em;
  font-weight: bold;
  line-height: 1;
  margin: 0 0.5em;
  color: inherit;
}

nav .links a {
  color: white;
  text-decoration: none;
  margin-left: 1em;
  font-size: 0.95em;
}

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

.header-columns {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  max-width: 1000px;
  margin: 2em auto;
  padding: 0 1em;
  flex-wrap: wrap;
}

.header-left {
  margin-top: 3.5em;
  flex: 0 0 450px;
  text-align: center;
}

.header-left h1 {
  margin: 0.5em 0 0.2em;
  font-size: 2.5em;
  color: #003366;
}

.header-left p {
  font-size: 1.2em;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 25%;
  object-fit: cover;
  border: 3px solid #003366;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-bar {
  display: flex;
  gap: 1em;
  justify-content: center;
  align-items: center;
  margin-top: 1em;
}

.resume-button {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.75em 1.5em;
  background-color: #003366;
  color: white;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  text-align: center;
  position: relative;
  top: -20px;
}

.resume-button:hover {
  background-color: #005599;
}

.header-right {
  flex: 1;
  min-width: 300px;
  text-align: justify;
}

header {
  text-align: center;
  margin-top: 2em;
}

header img {
  width: 150px;
  border-radius: 50%;
}

h1 {
  font-size: 2em;
  color: #003366;
}

h2 {
  color: #003366;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2em;
  margin-top: 2em;
}

h4 {
  margin-bottom: 0.3em; /* réduit l’espace sous le h4 */
}

h4 + ul {
  margin-top: 0; /* supprime la marge au-dessus du ul */
}

section {
  max-width: 900px;
  margin: 2em auto;
  padding: 0 1em;
}

ul {
  padding-left: 1.2em;
}

a {
  color: #0066cc;
}

.entry {
  border: 2px solid #003366;
  padding: 1em;
  border-radius: 8px;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
  margin: 0.5em;
}

.title {
  margin-bottom: 0.3em;
}

.subtitle {
  margin-top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.brand-logo {
  width: 400px;
  height: auto;
}

#author {
  margin: 40px 0;
}

#author h1 {
  margin-bottom: 20px;
  font-size: 2em;
}

.author {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h2 {
  margin: 0;
  font-size: 1.2em;
}

.author-info p {
  margin: 4px 0;
}

#author {
  max-width: 900px;
  margin: 2em auto;
  padding: 0 1em;
}

#author .authors {
  display: flex;
  gap: 20px;
  margin-top: 1em;
}

#author .author {
  flex: 1;
}

.embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}
.embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.thesis-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.thesis-preview {
  width: 200px;
  text-align: center;
}

.thesis-preview img {
  width: 100%;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.download-btn {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.75em 1.5em;
  background-color: #003366;
  color: white;
  font-size: 1em;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  text-align: center;
  position: relative;
  top: -20px;
}

.download-btn:hover {
  background: #f0f0f0;
}

.thesis-pdf {
  width: 100%;
  height: 750px;
  border: 5px solid #ccc;
}