/*==================== GOOGLE FONTS ====================*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 3rem;

    /*========== Colors ==========*/
    /* Change favorite color */
    --hue-color: 220; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

    /* HSL color mode */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 70%, 92%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;


    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== Margenes Bottom ==========*/
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/*========== Variables Dark theme ==========*/

body.dark-theme{
  /* HSL color mode */
  --first-color-second: hsl(var(--hue-color), 30%, 8%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 28%, 12%);
  --container-color: hsl(var(--hue-color), 29%, 16%);
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*========== Button Dark/Light ==========*/


/*==================== BASE ====================*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem;
}

.section__titre {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__soustitre {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__titre, 
.section__soustitre {
  text-align: center;
}

/*==================== LAYOUT ====================*/
.conteneur {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grille {
  display: grid;
  gap: 1.5rem;
}

.header {
  width: 100%;
  position: fixed;
  z-index: var(--z-fixed);
  background-color: transparent;
}

/*==================== NAV ====================*/
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--first-color) solid 3px;
}

.nav__menu{
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  padding: 2rem 1.5rem 3rem;
  transition: .3s;
  border-bottom: var(--first-color) solid 3px;
}

.nav__list{
  justify-self: center;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

@media screen and (max-width: 700px) {
  .nav__list{
    grid-template-columns: repeat(3, 1fr);
  }
}

.nav__btn{
  color: var(--title-color);
  font-weight: var(--font-medium);
  cursor: pointer;
  display: flex;
  flex-direction: line;
  gap: 2rem;
}

.nav__btn-icone{
  font-size: 1.8rem;
  padding: 0.75rem;
}

.nav__btn-icone:hover{
  color: var(--first-color)
}

.nav__accueil:visited{
  color: var(--title-color)
}

.nav__link{
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__link:hover{
  color: var(--first-color);
}

.nav__icon{
  font-size: 1.5rem;
}

.nav__close{
  position: absolute;
  right: 1.3rem;
  top: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

.nav__close:hover{
  color: var(--first-color-alt)
}

/* show menu */
.show-menu{
  top: 0;
}

/* Active link */


/* Change background header */


/*==================== ACCUEIL ====================*/
.accueil__conteneur{
  gap: 1rem;
}

.accueil__contenu{
  grid-template-columns: .5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}

.accueil__blob{
  width: 200px;
  fill: var(--first-color);
}

.accueil__blob-img{
  width: 170px;
}

.accueil__donnees{
  grid-column: 1/3;
}

.accueil__titre{
  font-size: var(--big-font-size);
  text-decoration: underline 4px var(--first-color);
  text-underline-offset: 5px;
}

.accueil__soustitre{
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.accueil__description{
  margin-bottom: var(--mb-2);
}

/*==================== BOUTONS ====================*/
.bouton{
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: 1rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
}

.bouton:hover{
  background-color: var(--first-color-alt);
}

.bouton__icone{
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transition: .3s;
}

.bouton--flex{
  display: inline-flex;
  align-items: center;
}

/*==================== ABOUT ====================*/
.propos__img{
  width: 200px;
  border-radius: .5rem;
  justify-self: center;
  align-self: center;
}

.propos__description{
  text-align: center;
  margin-bottom: var(--mb-2-5);
}

.propos__info{
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.propos__info-titre{
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.propos__info-nom{
  font-size: var(--smaller-font-size);
}

.propos__info-titre,
.propos__info-nom{
  display: block;
  text-align: center;
}

.propos__boutons{
  display: flex;
  justify-content: center;
}

/*==================== PARCOURS ====================*/
.parcours__tabs{
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2);
}

.parcours__bouton{
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
}

.parcours__bouton:hover{
  color: var(--first-color);
}
.parcours__icone{
  font-size: 1.8rem;
  margin-right: var(--mb-0-25);
}

.parcours__donnees{
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

.parcours__titre{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.parcours__soustitre{
  display: inline-block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-0-25);
}

.parcours__calendrier{
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.parcours__ronds{
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.parcours__ligne{
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--first-color);
  transform: translate(6px, -7px);
}

.parcours [data-content]{
  display: none;
}

.parcours__actif[data-content]{
  display: block;
}

.parcours__bouton.parcours__actif{
  color: var(--first-color);
  text-decoration: underline 2px;
  text-underline-offset: 5px;
}

/*==================== PROJETS ====================*/

.projet__carte{
}

.projet__titre{
  text-align: center;
  font-size: 1rem;
}

.projets__conteneur{
  background-color: var(--body-color);
  padding: 2rem 1.5rem 3rem;
}

.projets__liste{
  justify-self: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.projet__bouton{
  cursor: pointer;
  display: inline-block;
  justify-content: center;
}

.projet__bouton img {
  transition: transform 0.3s ease-in-out, margin-bottom 0.3s ease-in-out, filter 0.2s ease-in-out;
  border-radius: .5rem;
  width: 80%;
  display: flex;
  justify-self: center;
}

.projet__bouton:hover img {
  transform: scale(1.1); /* Agrandit l’image de 10% */
  margin-bottom: 1.05rem;
  filter: brightness(75%)
}

.projet__modal{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.projet__modal-contenu{
  position: fixed;
  left: 50%;
  right: 50%;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: .5rem;
  width: 50%;
  justify-self: center;
}

.projet__modal-close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--first-color);
  cursor: pointer;
}

.modal-actif{
  opacity: 1;
  visibility: visible;
}

.projet__modal-txt{
  padding: 0.5rem;
}

.projet__modal-txt-sl{
  text-decoration: underline;
  text-decoration-color: var(--first-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/*==================== COMPETENCES ====================*/



/*==================== CONTACT ====================*/

.contact__conteneur{
  row-gap: 3rem;
}

.contact__information{
  display: flex;
  margin-bottom: var(--mb-2);
}

.contact__icone{
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}

.contact__titre{
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.contact__soustitre{
  color: var(--text-color);
}

.contact__contenu{
  background-color: var(--input-color);
  border-radius: .5rem;
  padding: .75rem 1rem .25rem;
}

.contact__label{
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}

.contact__msg{
  margin-bottom: 1.5rem;
}

.contact__entree{
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: .25rem .5rem .5rem 0;
}

/*==================== FOOTER ====================*/


/*========== SCROLL UP ==========*/


/* Show scroll */


/*========== SCROLL BAR ==========*/


/*==================== MEDIA QUERIES ====================*/
/* For small devices */


/* For medium devices */
@media screen and (min-width: 568px){
  .conteneur{
    justify-self: center;
  }

  .accueil__contenu {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .accueil__img{
    justify-items: center;
    justify-content: center;
    justify-self: center;
    width: 100%;
  }

  .accueil__blob{
    width: 80%;
  }

  .accueil__donnees{
    text-align: center;
  }

  .accueil__titre{
    text-decoration: underline 4px var(--first-color);
    text-underline-offset: 5px;
  }

  .section__titre{
    text-decoration: underline 4px var(--first-color);
    text-underline-offset: 5px;
  }

  .nav{
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }
}