/* style général du corps de la page */
body {
  width: 100%;
  height: auto;
  background-color: #f5f2e1;
  margin: 0;
  font-family: "Imbue", serif;
  overflow-x: hidden;
}

/* défilement fluide pour les ancres */
html {
  scroll-behavior: smooth;
}

/* retire marges et cache le débordement horizontal */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #f5f2e1;
}

/* zone principale du contenu */
main {
  width: 100%;
}

/* haut de page pleine hauteur */
header {
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* section d'accueil avec image et logo centrés */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 50px 50px;
}

/* taille et position du logo */
.logo {
  width: 70vw;
  max-width: 400px;
  min-width: 150px;
  height: auto;
  z-index: 10;
}

/* image de fond du hero */
.hero .fond {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* filtre noir sur mon hero de 20% pour mieux voir mon logo */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* le fond vert de mon bas de page */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #757a4a;
  padding: 10px 0;
  width: 100%;
  height: auto;
}

/* le text de mon bas de page */
footer p {
  margin: 0;
  padding: 0;
  font-size: 24px;
  color: #f5f2e1;
  text-align: center;
}

/* menu fixe en haut de page */
#Menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100000;
  background-color: transparent;
  backdrop-filter: none;
  transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

/* liste horizontale du menu */
#Menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

/* liens du menu */
#Menu a {
  text-decoration: none;
  font-family: "Imbue", serif;
  color: #f0dc65;
  font-size: 56px;
  padding: 5px 10px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

/* couleur des liens au survol */
#Menu a:hover {
  color: #efbf04;
}

/* position du logo au centre du hero */
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  max-width: 550px;
  min-width: 150px;
  height: auto;
  z-index: 10;
}

/* conteneur des images de chats */
.chats {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 200px 0;
  gap: 125px;
}

/* taille des images de chats */
.chats img {
  max-width: 100%;
  height: auto;
}

/* Mon nom centré */
h1 {
  text-align: center;
  width: 800px;
  margin: 0 auto;
  font-size: 128px;
  color: #F998C8;
}

/* Mon bienvenue */
h2 {
  text-align: center;
  width: 1000px;
  margin: 0 auto;
  font-size: 96px;
  font-family: "Kapakana", serif;
}

/* Mon à propos de moi */
p {
  text-align: left;
  width: 1300px;
  margin: 100px auto;
  font-size: 48px;
  color: black;
}

/* section des logiciels maîtrisés */
.propos .logiciels {
  max-width: 1300px;
  margin: 50px auto;
  text-align: center;
  font-size: 48px;
}

/* Mon image de foret 1 centré */
.foret1 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 150px;
}

/* titres centrés des sections */
.titre1,
.titre2 {
  text-align: center;
}

/* titre de la section projets */
h1.projetsTitre {
  font-size: 128px;
  color: #F998C8;
  width: 100%;
}

/* titre de la section contact */
h1.contact {
  font-size: 128px;
  color: #F998C8;
  width: 100%;
}

/* ligne décorative sous les titres */
.ligne {
  display: block;
  margin: 0 auto;
  width: 90vw;
}

/* conteneur de tous les projets */
.projets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1290px;
  margin: 0 auto 50px auto;
}

/* cartes vertes des projets */
.projet1,
.projet2,
.projet3,
.projet4,
.projet5,
.projet6 {
  width: 48%;
  background-color: #919855;
  border-radius: 50px;
  padding: 40px;
  height: 1450px;
  color: #f5f2e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  margin-top: 55px;
}

/* titre principal dans un projet */
.projets h1 {
  font-size: 96px;
  margin: 0;
  color: #f5f2e1;
}

/* sous-titre dans un projet */
.projets h2 {
  font-size: 52px;
  margin: 0;
  font-weight: normal;
  color: #f5f2e1;
  font-family: "Imbue", serif;
}

/* bloc contenant le carrousel d’images */
.carousel-container {
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: transparent;
}

/* carrousel Swiper */
.swiper {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

/* slide individuelle du carrousel */
.swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* image dans une slide */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* position des points de pagination */
.swiper-pagination {
  bottom: 15px;
}

/* couleur du point actif */
.swiper-pagination-bullet-active {
  background-color: #f5f2e1 !important;
  opacity: 1;
}

/* Flèches de navigation */
.swiper-button-next,
.swiper-button-prev {
  color: #f5f2e1 !important;
  transition: color 0.3s ease;
}

/* flèches de navigation */
.swiper-button-next,
.swiper-button-prev {
  color: #f5f2e1 !important;
  transition: color 0.3s ease;
}

/* points au survol */
.swiper-pagination-bullet:hover {
  background-color: #efbf04 !important;
  opacity: 1;
}

/* flèches au survol */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #efbf04 !important;
}

/* bouton d’agrandissement plein écran */
.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 6px 10px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 0 !important;
}

/* position relative pour placer bouton plein écran */
.swiper-slide,
.single-image-container {
  position: relative;
}

.single-image-container,
.projet3,
.projet-image {
  z-index: 0 !important;
  position: relative;
  /* nécessaire pour positionner le bouton */
}

/*spécifications pour projets avec une seule image*/
.projet3 .projet-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

/*spécifications pour projets avec une seule image*/
.projet4 .projet-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

/*spécifications pour projets avec une seule image*/
.projet5 .projet-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

/* texte dans les projets */
.projets p {
  font-size: 25px;
  line-height: 1.6;
  margin: 0;
  color: #f5f2e1;
  width: 90%;
  text-align: left;
}

/* liens généraux */
a {
  color: #f0dc65;
  text-decoration: none;
}

/* liens au survol */
a:hover {
  color: #efbf04;
  text-decoration: underline;
}

/* Mon image de foret 2 centré */
.foret2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 150px;
}

/* section de contact principale */
.contacter {
  display: flex;
  justify-content: center;
  margin: 50px auto;
  max-width: 1290px;
}

.contact-wrapper {
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
}

/* infos de contact centrées */
.contact-infos {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-top: 30px;
}

/* style des paragraphes de contact */
.contact-infos p {
  display: flex;
  flex-direction: column;
  font-size: clamp(28px, 4vw, 50px);
  color: black;
  font-family: "Imbue", serif;
  text-align: center;
  gap: clamp(20px, 2vw, 20px);
  max-width: 85%;
  margin: 0 auto;
  line-height: 1.3;
  word-break: break-word;
}

/* lien centré */
.contact-infos p a {
  display: inline-block;
  text-align: center;
  width: auto;
  flex-direction: column;
  color: black;
  font-family: "Imbue", serif;
  text-align: center;
  gap: clamp(10px, 2vw, 20px);
  max-width: 85%;
  margin: 0 auto;
  line-height: 1.3;
  word-break: break-word;
}

/* ma photo plus petite */
.contact-photo img {
  width: 80%;
  max-width: 400px;
  height: auto;
}

/* soulignement au survol des infos */
.contact-infos p a:hover {
  text-decoration: underline;
}

/* style des liens de contact */
.contact-infos a {
  color: black;
  text-decoration: none;
}

/* survol des liens de contact */
.contact-infos a:hover {
  text-decoration: underline;
}

img.ligne {
  display: block;
  width: 90vw;
  max-width: 1300px;
  height: auto;
  margin: 0 auto;
  box-sizing: border-box;
}


/* Mobile */
@media screen and (max-width: 700px) {

  /* espacement du menu réduit */
  #Menu ul {
    gap: 10px;
    align-items: center;
  }

  /* taille des liens réduite */
  #Menu a {
    font-size: 25px;
  }

  /* section hero plus petite */
  .hero {
    height: 80vh;
    min-height: 400px;
  }

  /* image de fond redimensionnée */
  .hero .fond {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* header plus petit */
  header {
    height: 80vh;
    min-height: 400px;
  }

  /* Logo plus petit */
  .logo {
    width: 60vw;
    max-width: 350px;
  }

  /* Typo et largeur plus petite */
  h1 {
    font-size: 74px;
    width: 90%;
  }

  /* Typo et largeur plus petite */
  h2 {
    font-size: 48px;
    width: 90%;
  }

  /* Typo plus petite */
  p {
    font-size: 24px;
    width: 90%;
    margin: 50px auto;
  }

  /* logiciels plus petite typo */
  .propos .logiciels {
    text-align: center;
    width: 90%;
    font-size: 24px;
  }

  /* img plus petite */
  .foret1 img {
    width: 90%;
    max-width: 900px;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
  }

  /* img plus petite */
  .foret2 img {
    width: 90%;
    max-width: 900px;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
  }

  /* section chats emplacement*/
  .chats {
    gap: 10px;
    margin: 50px 0;
    justify-content: center;
  }

  /* taille des images de chats réduite */
  .chats img {
    width: 30%;
    height: auto;
  }

  /* projets affichés en colonne */
  .projets {
    flex-direction: column;
    gap: 50px;
    margin: 50px 0;
    align-items: center;
  }

  /* taille des projets réduite */
  .projet1,
  .projet2,
  .projet3,
  .projet4,
  .projet5,
  .projet6 {
    width: 90%;
    max-width: 900px;
    height: 1075px;
    padding: 20px;
    gap: 30px;
  }

  /* images de projets plus petites */
  .projet-image {
    height: auto;
    max-height: 300px;
    width: 100%;
    object-fit: cover;
  }

  /* Typo plus petite */
  .projets h1 {
    font-size: 48px;
  }

  /* Typo plus petite */
  .projets h2 {
    font-size: 28px;
  }

  /* Typo plus petite */
  .projets p {
    font-size: 20px;
  }

  /* images du carrousel plus petites */
  .carousel-container img {
    height: 150px;
  }

  /* disposition verticale sur mobile */
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
  }

  /* infos de contact centrées */
  .contact-infos {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* style des paragraphes de contact */
  .contact-infos p {
    display: flex;
    flex-direction: column;
    font-size: clamp(28px, 4vw, 50px);
    color: black;
    font-family: "Imbue", serif;
    text-align: center;
    gap: clamp(10px, 2vw, 20px);
    max-width: 85%;
    margin: 0 auto;
    line-height: 1.3;
    word-break: break-word;
  }

  /* lien centré */
  .contact-infos p a {
    display: inline-block;
    text-align: center;
    width: auto;
    flex-direction: column;
    color: black;
    font-family: "Imbue", serif;
    text-align: center;
    gap: clamp(10px, 2vw, 20px);
    max-width: 85%;
    margin: 0 auto;
    line-height: 1.3;
    word-break: break-word;
  }

  /* ma photo plus petite */
  .contact-photo img {
    width: 80%;
    max-width: 200px;
    height: auto;
  }

  /* titres plus petits sur mobile */
  h1.contact,
  h1.projetsTitre {
    font-size: 88px;
  }

  /* ligne plus courte */
  .ligne {
    width: 90vw;
    max-width: 900px;
    height: auto;
  }

  /* carrousel plus petit */
  .swiper {
    height: 300px;
  }

  /* img carrousel plus petites */
  .swiper-slide img {
    width: 100%;
    height: 300px;
  }

  .contact-infos p.ville {
    text-align: center;
    margin: 0;
    font-size: clamp(28px, 4vw, 50px);
  }

}

@media only screen and (min-width: 768px) and (max-width: 1399px) {

  /* section chats emplacement */
  .chats {
    gap: 10px;
    margin: 50px 0;
    justify-content: center;
  }

  /* taille des images de chats réduite */
  .chats img {
    width: 30%;
    height: auto;
  }

  /* conteneur de tous les projets */
  .projets {
    width: 90%;
  }

  /* cartes vertes des projets */
  .projet1,
  .projet2,
  .projet3,
  .projet4,
  .projet5,
  .projet6 {
    width: 45%;
    background-color: #757a4a;
    border-radius: 50px;
    padding: 40px;
    height: 1500px;
    color: #f5f2e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    margin-top: 55px;
  }

  /* section de contact principale */
  /* disposition verticale sur mobile */
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
  }

  /* infos de contact centrées */
  .contact-infos {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* style des paragraphes de contact */
  .contact-infos p {
    display: flex;
    flex-direction: column;
    font-size: clamp(28px, 4vw, 50px);
    color: black;
    font-family: "Imbue", serif;
    text-align: center;
    gap: clamp(10px, 2vw, 20px);
    max-width: 85%;
    margin: 0 auto;
    line-height: 1.3;
    word-break: break-word;
  }

  /* lien centré */
  .contact-infos p a {
    display: inline-block;
    text-align: center;
    width: auto;
    flex-direction: column;
    color: black;
    font-family: "Imbue", serif;
    text-align: center;
    gap: clamp(10px, 2vw, 20px);
    max-width: 85%;
    margin: 0 auto;
    line-height: 1.3;
    word-break: break-word;
  }

  /* ma photo plus petite */
  .contact-photo img {
    width: 90%;
    max-width: 400px;
    height: auto;
  }

  /* position du logo au centre du hero */
  .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    max-width: 300px;
    min-width: 80px;
    height: auto;
    z-index: 10;
  }

  /* Mon à propos de moi */
  p {
    text-align: left;
    width: 90%;
    margin: 100px auto;
    font-size: 48px;
    color: black;
  }

  /* section des logiciels maîtrisés */
  .propos .logiciels {
    max-width: 90%;
    margin: 50px auto;
    text-align: center;
    font-size: 48px;
  }

  /* Mon image de foret 1 centrée */
  .foret1 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 150px;
  }

  .foret1 img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Mon image de foret 2 centrée */
  .foret2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 150px;
  }

  .foret2 img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  img.ligne {
    display: block;
    width: 90vw;
    max-width: 90%;
    height: auto;
    margin: 0 auto;
  }

}