/*import des polices*/
@font-face {
  font-family: 'Picnic';
  src: url('fonts/picnic.otf') format('truetype');
}
@font-face {
  font-family: 'LetterGothic';
  src: url('fonts/lettergothic.otf') format('opentype');
}

@font-face {
  font-family: 'LetterGothicBold';
  src: url('fonts/lettergothicbold.otf') format('opentype');
}

/*définitions des couleurs de texte*/

h1{color: #0021F5;
font-family: 'Picnic', sans-serif;
margin-top: 2px;
font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}

h3{color: #000;
font-family: 'LetterGothicBold', monospace;
font-size: 16px;
}

h4{color: #000;
font-family: 'LetterGothicBold', monospace;
margin-top: 2px}

h5{color: #0021F5;
font-family: 'LetterGothicBold', monospace;}

p{color: #000;
font-family: 'LetterGothic', monospace;
font-size: 14px}

a{color: #000}

a.cv-link{color: #0021F5}

/*définitions des couleurs de fond*/

body.accueil{
  background-image: url('../img/fond1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.detail{
    background-color: #f5f5f5;
    margin : 2rem auto;
    padding: 0 2rem;
    max-width: 1400px;
}

/*gestion des rectangles blancs*/

div.container{display: grid;
  place-items: center;
  height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

div.general{background-color: #fff;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 300px;
  max-width: 500px;
  box-sizing: border-box;
}

div.curriculum{background-color: #fff;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

div {
  transition: 1s;
}

/*définition des cartes projets*/
.project-card{
  margin: clamp(0.5rem, 2vw, 2rem);
  padding: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border-left: 4px solid transparent;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  border-left: 4px solid #0021F5;
}

/*composition en grille d'images*/

.galerie {
  display: flex;
  gap: 0.5rem;
  overflow-x: scroll;
  scrollbar-width: none;
  height: 370px;
  padding: 20px;
}

.galerie img {
  border-radius: 10px;
}


/*bouton retour*/
.retour{
  color: #0021F5;
  font-family: 'Picnic', sans-serif;
  margin-top: 2px;
  white-space: nowrap;
  text-decoration: none;
}

.retour:hover {
  color: #333;
}

/*gérer la responsivité*/
@media (max-width : 800px){
  div.general{
    grid-column: auto;
    grid-row: auto;
    width: 90%;
    height: 360px;
    max-width: 500px;
    }
  .galerie {
    max-height: 250px;
  }
  div.curriculum{
    padding: 15px;
    width: 93%;
  }
  .curriculum p{
    font-size: 15px;
  }
  }



