*{
    font: 1rem "Helvetica";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    margin: 0vh 20vw;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Header */

a{
  text-decoration: none;
}

nav{
    padding: 2.5vh 5vw;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a, a{
    position: relative;
    font-weight: 600;
    transition: color 0.3s;
}

a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    transition: width 0.3s;
}


nav a:hover::after,
nav a.active::after{
    width: 100%;
}

.links{
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*gap: 3vw;*/
    flex-wrap: wrap;
}


/* Footer */

footer{
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 20px 0px;
}

/* Index */

.main{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 50px 10%;
}

.contact{
  display: flex;
  flex-direction: column;
  gap: 2vh;
  align-items: center;
}

.profile_picture{
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 1vw solid;
    border-radius: 50%;
    user-select: none;
    pointer-events: none;
    float: left;
}


.mail{
  font-size: large;
  color: #222f66;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease-in-out;
}

.mail:hover{
  color: #6465B3;
}


.name{
    margin-bottom: 20px;
    max-width: 100%;
    font-size: 50px;
}

.about_me p {
    font-size: larger;
}

.logo{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1%;
    padding-bottom: 5vh;
    width: 100%;
}

.logo a{
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo img{
  max-width: 100%;
  height: auto;
  width: 40%;
  object-fit: contain;
}

/* CV */

.cv{
    flex: 1;
    display: block;
    padding: 50px 10%;
}

.cv h2{
    text-align: center;
    padding: 20px 0%;
}

.timeline-title{
    font-size: 1.8rem;
    font-weight: 600;
    color: #2A4A7A;
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 3px solid #2A4A7A;
    display: inline-block;
    padding-bottom: 5px;
}

/* Timeline */
.timeline {
  margin: 0px auto;
  padding-left: 20px;
  border-left: 3px solid #2A4A7A;
  max-width: 800px;
}

.event {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.event::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #2A4A7A;
  border-radius: 50%;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.event-header h3 {
  color: #2A4A7A;
  font-size: 1.2rem;
}

.event-header .date {
  color: #888;
  font-size: 0.95rem;
}

.location {
  margin: 5px 0;
  font-style: italic;
  color: #555;
}

/* Description */
.description {
  margin-top: 10px;
  line-height: 1.6;
  color: #333;
  font-size: 0.95rem;
  background: #e6f5fc;
  padding: 10px 15px;
  border-left: 4px solid #2A4A7A;
  border-radius: 5px;
}

/* Ressources */
.resources {
  margin-top: 8px;
}

.resources a {
  display: inline-block;
  margin-right: 10px;
  padding: 5px 10px;
  background: #b7dae7;
  color: #2c3e50;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.resources a:hover {
  background: #B35529;
  color: white;
}

.type {
  display: inline-block;
  margin: 5px 0;
  padding: 4px 10px;
  background: #eafaf6;
  color: #B35529;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid #B35529;
  border-radius: 20px;
}

.supervisors {
  margin: 4px 0 8px 0;
  font-size: 0.9rem;
  color: #444;
}

.supervisors span {
  font-weight: 600;
  color: #5465b3;
}





/* Responsive */
@media (max-aspect-ratio: 1/1) {
    .main {
        max-width: 100%;
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }
    body{
        margin: 0;
        padding: 0;
    }
    nav{
    }

    .logo img{
      width: 35vw;
    }
}


/* Colours */

nav, footer{
  background: #C7E9F9;
}

nav a:hover,
nav a.active{
    color: #5465b3;
}


nav a::after{
    background-color: #5465b3;
}

nav a{
  color: #222F66;
}

a{
  color: #B35529;
}

a:hover{
  color: #ed814e;
}

a{
  transition: color 0.3s ease-in-out;
}

.logo a, img{
  transition: transform 0.3s ease-in-out;
}

.logo a,
img:hover{
  transform: scale(1.08);
}


body{
  background-color: #F0F8FA;
}

.profile_picture{
  border-color: #2A4A7A;
}

.name{
  color: #2A4A7A;
}

footer{
  color: #222F66;
  font-size: large;
}