/* ----------------------- */
/*          HEADER         */
/* ----------------------- */

#header-content {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 2rem;
  align-items: center;

  padding: 2rem 4rem;
}

/* PHOTO */
#header-content img {
  width: 100%;
  border-radius: 20px;
}

/* TEXT BLOCK */
#header-content>div:nth-child(2) h2 {
  font-size: 1.5rem;
  font-weight: 400;
}

#header-content>div:nth-child(2) h1 {
  font-size: 3rem;
  margin: 0.5rem 0;
  color: #CFC8FF;
}

#header-content>div:nth-child(2) p {
  line-height: 1.6;
  max-width: 500px;
  opacity: 0.9;

  text-align: justify;
}

/* CONTACT BLOCK */
#header-content>div:nth-child(3) {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#header-content>div:nth-child(3) a:not(.btn) {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: white;
  opacity: 0.9;
  transition: 0.2s;
}

#header-content>div:nth-child(3) a:hover {
  opacity: 1;
}

#header-content>div:nth-child(3) img {
  width: 24px;
}



/* ----------------------- */
/*           MAIN          */
/* ----------------------- */

section {
  margin: 2em 0;
  padding: 1em 2em;
}

.titleSection {
  margin-bottom: 2rem;
}

section div:nth-of-type(1) h2 {
  margin: 0.1em 0 0 0;

  font-variant: small-caps;
}

section div:nth-of-type(1) h3 {
  margin: 0.1em 0 0 0;
  font-weight: normal;
}

section:nth-of-type(odd) {
  background-color: var(--primary-color);
  color: var(--secondary-color)
}

section:nth-of-type(even) {
  background-color: var(--secondary-color);
  color: var(--primary-color)
}


/* BLOC COMPETENCES */
#blocCompetences img {
  width: 10%;

  border-right: 1px solid var(--secondary-color);
  padding-right: 1em;
}

#blocCompetences {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#blocCompetences article {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 10px;

  width: calc(50% - 3em);
  margin: 0.4em 0;
  padding: 0.5em 1em;

  display: flex;
}

#blocCompetences article>div {
  margin: 0 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

#blocCompetences article p {
  font-weight: normal;
  font-size: 0.85em;

  font-style: italic;

  flex-basis: 75%;

  text-align: justify;
}

#blocCompetences .descComp {
  display: flex;
  margin: 0;

  justify-content: space-between;

  gap: 1rem;
  width: 100%;
}

#blocCompetences .titleComp {
  display: flex;
  gap: 0.4em;
  align-items: end;

  margin: 0;
}

#blocCompetences article h4 {
  margin: 0;
  font-size: 1.2em;
}

#blocCompetences article h5 {
  margin: 0;
  font-weight: normal;
  font-size: 0.95em;
}

[id^="btnCompetence"] {
  align-self: end;
  margin-left: auto;

  flex-basis: 20%;
}


/* ----------------------- */
/*     RESPONSIVE MAIN     */
/* ----------------------- */
@media screen and (max-width: 1024px) {
  #blocCompetences {
    flex-direction: column;
    padding-right: 2em;
  }

  #blocCompetences article {
    width: 100%;
  }

  #blocCompetences .titleComp {
    flex-direction:  column;
    align-items: start;
  }

  #blocCompetences .descComp {
    flex-direction:  column;
    gap: 0;
  }

  #header-content {
    display: flex;
    flex-direction: column;
  }

  #header-content > img {
    visibility: hidden;
    width: 0;
  }

  #header-content>div:nth-child(2) h1 {
    font-size: 2.5em;
  }
}


/* ----------------------- */
/*         TIMELINE        */
/* ----------------------- */
/* TODO : A refaire au propre*/


.timeline-wrap {
  padding: 1.5rem 0;
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--primary-color);
  margin: 0 0 4px;
}

.section-sub {
  font-size: 14px;
  color: var(--secondary-color);
  margin: 0 0 2rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  flex-shrink: 0;
}

.timeline-years {
  font-size: 13px;
  color: var(--secondary-color);
  text-align: center;
  line-height: 1.4;
  padding-top: 3.5em;

  font-weight: bold;
}

.timeline-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.timeline-line {
  width: 2px;
  background: #1e3a4a;
  flex: 1;
  min-height: 20px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1e3a4a;
  margin: 0;
  flex-shrink: 0;
}

.timeline-line-top {
  min-height: 28px;
}

.timeline-line-bottom {
  min-height: 28px;
}

.card-wrap {
  flex: 1;
  padding: 16px 0 32px;
}

.edu-card {
  background: #1e3a4a;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.edu-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


.edu-loc {
  display: flex;
  gap: 0.4em;
}

.edu-content {
  flex: 1;
}

.edu-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 4px;
}

.edu-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 8px;
}

.edu-location {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.timeline-italic {
  font-style: italic;
  opacity: 75%;
}

a {
  text-decoration: none;
  color: inherit;
}

a.dash {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  padding-bottom: 0.2em;
}