/* =========================================================
   1. PAGE / FOND
========================================================= */

body {
  margin: 0;
  min-height: 100vh;

  background-color: #f7f7f7;

  background-image:
    linear-gradient(#d8d8d8 1px, transparent 1px),
    linear-gradient(90deg, #d8d8d8 1px, transparent 1px);

  background-size: 40px 40px;

  animation: moveGrid 3s linear infinite;
}


/* Animation de la grille */

@keyframes moveGrid {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 40px 40px;
  }
}



/* =========================================================
   2. HERO
========================================================= */

.Hero {
  width: 90%;
  max-width: 1200px;

  display: block;

  /* 30px en haut, aucun espace en dessous */
  margin: 30px auto 0 auto;
}



/* =========================================================
   3. BOUTON MENU
========================================================= */

.Menu{
  position: fixed;
  width: 350px; /* taille au choix */
  top: 3%;
left: 85%;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}
.Menu:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

/* =========================
   MENU SLIDE
========================= */
/* Cache la checkbox */
#menu-toggle {
  display: none;
}
/* Bouton menu */
.menu-bouton {
  position: fixed;
  top: 0;
  right: 0;
  cursor: pointer;
}

/* Le menu rose */
.menu-slide {
  position: fixed;

  top: -25px;
  right: 0;
  left: auto;

  width: 450px;
  height: 200vh;

  background-color: #e5a8ca;

  padding: 50px 30px;
  box-sizing: border-box;

  z-index: 30;

  /* caché à droite */
  transform: translateX(100%);

  transition: transform 0.5s ease;

  box-shadow: -8px 0px 0px #c978aa;
}


/* Quand on clique → il revient à sa place */
#menu-toggle:checked ~ .menu-slide {
  transform: translateX(0%) rotate(10deg);
}



/* =========================================================
   5. OVERLAY DU MENU
========================================================= */

/* Fond invisible quand le menu est ouvert */

.menu-overlay {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.1);

  z-index: 25;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;
}


/* Active le fond */
#menu-toggle:checked ~ .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}


/* Titre */
.menu-slide h2 {
  font-family: Arial, sans-serif;

  color: white;

  font-size: 35px;

  margin-bottom: 40px;
}


/* Liens */
.menu-slide a {
  display: block;

  color: white;

  font-family: Arial, sans-serif;

  font-size: 25px;

  text-decoration: none;

  margin-bottom: 25px;

  transition: 0.2s;
}


/* Hover liens */
.menu-slide a:hover {
  transform: translateX(10px);
  opacity: 0.7;
}

/* =========================================================
   6. GRANDE BOX QUI CONTIENT LES PROJETS
========================================================= */

.box-projets {
  width: 90%;
  max-width: 1200px;

  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 30px;

  /* Permet de garder les marges des projets
     à l'intérieur de cette box */

  background-color: white;

  /* Pattern */
  background-image: url("pattern.png");
  background-repeat: repeat;
  background-size: auto;

  border-left: 3px solid #e5a8ca;
  border-right: 3px solid #e5a8ca;

  box-sizing: border-box;
}



/* =========================================================
   7. BLOC PROJET GÉNÉRAL
========================================================= */

.projet-web {
  width: 90%;
  max-width: 1200px;
 border-radius: 20px;
  margin: 50px auto;

  padding: 30px;

  display: flex;
  gap: 20px;

  background-color: white;

  border: 3px solid #e5a8ca;

  box-sizing: border-box;
}


/* Pas d'espace au-dessus du premier projet */

.box-projets .projet-web:first-child {
  margin-top: 0;
}


/* Pas d'espace sous le dernier projet */

.box-projets .projet-web:last-child {
  margin-bottom: 0;
}



/* =========================================================
   8. COLONNE LISEUSE
========================================================= */

.projet-gauche {
  width: 50%;
}


/* Fenêtre scrollable */

.liseuse {
  width: 100%;
  height: 850px;

  overflow-y: auto;
  overflow-x: hidden;

  border-radius: 5px;
}


/* Grande image dans la liseuse */

.liseuse img {
  width: 100%;
  height: auto;

  display: block;
}



/* =========================================================
   9. SCROLLBAR DE LA LISEUSE
========================================================= */

.liseuse::-webkit-scrollbar {
  width: 15px;
}


.liseuse::-webkit-scrollbar-track {
  background-color: #f3d5e5;

  border-radius: 20px;
}


.liseuse::-webkit-scrollbar-thumb {
  background-color: #b84068;

  border-radius: 20px;
}



/* =========================================================
   10. COLONNE TEXTE
========================================================= */

.projet-droite {
  width: 50%;

  font-family: Arial, sans-serif;

  color: #b84068;
}


.projet-droite h2 {
  margin-top: 10px;

  font-size: 32px;
}


.projet-droite p {
  font-size: 17px;

  line-height: 1.6;

  font-weight: 600;
}


/* Petit texte au-dessus du titre */

.petit-titre {
  font-size: 12px;
}



/* =========================================================
   11. PETITE IMAGE / MOODBOARD
========================================================= */

.petite-image {
  margin-top: 20px;
}


.petite-image img {
  width: 100%;

  display: block;
}



/* =========================================================
   12. CTA DES PROJETS
========================================================= */

.cta-projet {
  display: flex;

  gap: 15px;

  margin-top: 20px;
  margin-bottom: 25px;
}


.cta-projet-bouton {
  display: inline-block;

  padding: 12px 25px;

  background-color: #e5a8ca;

  color: white;

  font-family: Arial, sans-serif;

  text-decoration: none;

  border-radius: 20px;

  transition: 0.2s;
}


.cta-projet-bouton:hover {
  transform: scale(1.05);

  opacity: 0.8;
}



/* =========================================================
   13. WINVEST
========================================================= */

.projet-winvest {
  display: flex;

  align-items: flex-start;

  gap: 20px;
}



/* -------------------------
   WIN01 : LISEUSE
------------------------- */

.winvest-liseuse {
  width: 36%;
}


.liseuse-win {
  width: 100%;
  height: 750px;

  overflow-y: auto;
  overflow-x: hidden;
}


.liseuse-win img {
  width: 100%;
  height: auto;

  display: block;
}



/* Scrollbar Winvest */

.liseuse-win::-webkit-scrollbar {
  width: 15px;
}


.liseuse-win::-webkit-scrollbar-track {
  background-color: #f3d5e5;

  border-radius: 20px;
}


.liseuse-win::-webkit-scrollbar-thumb {
  background-color: #b84068;

  border-radius: 20px;
}



/* -------------------------
   WIN02 : IMAGE NORMALE
------------------------- */

.winvest-image {
  width: 32%;
}


.winvest-image img {
  width: 100%;
  height: auto;

  display: block;
}



/* -------------------------
   TEXTE WINVEST
------------------------- */

.winvest-texte {
  width: 32%;

  font-family: Arial, sans-serif;

  color: #b84068;
}


.winvest-texte h2 {
  margin-top: 10px;

  font-size: 32px;
}


.winvest-texte p {
  font-size: 17px;

  line-height: 1.6;

  font-weight: 600;
}



/* =========================================================
   14. FOOTER
========================================================= */

.footer {
  width: 90%;
  max-width: 1200px;

  margin: 0 auto 40px auto;

  padding: 40px;

  display: flex;

  justify-content: space-between;
  align-items: center;

  background-color: #e5a8ca;

  border-radius: 0 0 40px 40px;

  box-sizing: border-box;
}



/* =========================================================
   15. FOOTER GAUCHE
========================================================= */

.footer-gauche {
  display: flex;

  flex-direction: column;

  align-items: flex-start;
}


.footer-logo {
  width: 100px;

  margin-bottom: 20px;
}


.footer-nom,
.footer-prenom {
  margin: 0;

  font-family: Arial, sans-serif;

  color: white;
}


.footer-nom {
  font-size: 22px;

  font-weight: bold;
}


.footer-prenom {
  font-size: 18px;
}



/* =========================================================
   16. FOOTER DROITE
========================================================= */

.footer-droite {
  text-align: right;

  font-family: Arial, sans-serif;

  color: white;
}


.footer-droite h3 {
  margin-top: 0;

  font-size: 24px;
}


.footer-droite p {
  margin: 8px 0;

  font-size: 16px;
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media screen and (max-width: 600px) {


  /* =========================================================
     1. PAGE
  ========================================================= */

  body {
    overflow-x: hidden;

    /* Grille légèrement plus petite */
    background-size: 30px 30px;
  }


  /* =========================================================
     2. HERO
  ========================================================= */

  .Hero {
    width: 94%;
    max-width: none;

    margin-top: 20px;
  }


  /* =========================================================
     3. BOUTON MENU
  ========================================================= */

  .menu-bouton {
    position: fixed;

    top: 10px;
    right: -15px;

    z-index: 40;
  }


  .Menu {
    position: relative;

    width: 180px;

    top: auto;
    right: auto;
    left: auto;

    display: block;
  }


  /* =========================================================
     4. MENU ROSE
  ========================================================= */

  .menu-slide {
    top: -20px;
    right: 0;
    left: auto;

    width: 250px;
    height: 120vh;

    padding: 50px 25px;

    /* Menu caché à droite */
    transform: translateX(110%);

    /* La rotation part du coin supérieur droit */
    transform-origin: top right;

    z-index: 50;
  }


  /* Menu ouvert */

  #menu-toggle:checked ~ .menu-slide {
    transform: translateX(0) rotate(6deg);
  }


  /* Titre du menu */

  .menu-slide h2 {
    font-size: 24px;

    margin-bottom: 25px;
  }


  /* Liens du menu */

  .menu-slide a {
    font-size: 18px;

    margin-bottom: 18px;
  }


  /* =========================================================
     5. GRANDE BOX PROJETS
  ========================================================= */

  .box-projets {
    width: 94%;

    padding-top: 20px;
    padding-bottom: 20px;
  }


  /* =========================================================
     6. PROJETS
  ========================================================= */

  .projet-web {
    width: 90%;

    margin: 30px auto;

    padding: 15px;

    /* Image puis texte */
    flex-direction: column;

    gap: 15px;

    border-radius: 15px;
  }


  /* Empêche toutes les images de dépasser */

  .projet-web img {
    max-width: 100%;
    height: auto;

    display: block;

    box-sizing: border-box;
  }


  /* =========================================================
     7. LISEUSE
  ========================================================= */

  .projet-gauche {
    width: 100%;
  }


  .liseuse {
    width: 100%;

    height: 500px;
  }


  .liseuse::-webkit-scrollbar {
    width: 8px;
  }


  /* =========================================================
     8. TEXTE PROJET
  ========================================================= */

  .projet-droite {
    width: 100%;
  }


  .projet-droite h2 {
    font-size: 25px;
  }


  .projet-droite p {
    font-size: 15px;

    line-height: 1.5;
  }


  .petit-titre {
    font-size: 11px;
  }


  /* =========================================================
     9. PETITE IMAGE / MOODBOARD
  ========================================================= */

  .petite-image {
    margin-top: 15px;
  }


  .petite-image img {
    width: 100%;
    height: auto;
  }


  /* =========================================================
     10. CTA
  ========================================================= */

  .cta-projet {
    flex-direction: column;

    gap: 10px;

    margin-top: 20px;
  }


  .cta-projet-bouton {
    width: 100%;

    padding: 12px 15px;

    text-align: center;

    box-sizing: border-box;
  }


  /* =========================================================
     11. WINVEST
  ========================================================= */

  .projet-winvest {
    flex-direction: column;

    gap: 20px;
  }


  /* WIN01 */

  .winvest-liseuse {
    width: 100%;
  }


  .liseuse-win {
    width: 100%;
    height: 500px;
  }


  .liseuse-win::-webkit-scrollbar {
    width: 8px;
  }


  /* WIN02 */

  .winvest-image {
    width: 100%;
  }


  .winvest-image img {
    width: 100%;
    height: auto;
  }


  /* Texte Winvest */

  .winvest-texte {
    width: 100%;
  }


  .winvest-texte h2 {
    font-size: 25px;
  }


  .winvest-texte p {
    font-size: 15px;

    line-height: 1.5;
  }


  /* =========================================================
     12. FOOTER
  ========================================================= */

  .footer {
    width: 94%;

    margin-bottom: 20px;

    padding: 30px 20px;

    flex-direction: column;

    align-items: flex-start;

    gap: 35px;

    border-radius: 0 0 25px 25px;
  }


  /* Footer gauche */

  .footer-logo {
    width: 80px;

    margin-bottom: 15px;
  }


  .footer-nom {
    font-size: 20px;
  }


  .footer-prenom {
    font-size: 16px;
  }


  /* Footer droite */

  .footer-droite {
    width: 100%;

    text-align: left;
  }


  .footer-droite h3 {
    font-size: 21px;
  }


  .footer-droite p {
    font-size: 14px;
  }

}