/* Style de base */ 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Container principal */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 50px 0;
}

.photo-profil {
  width: 120px;  /* Taille modifiée */
  height: 120px; /* Taille modifiée */
  border-radius: 50%;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #2980b9;
}

/* Section À propos de moi */
.section-a-propos {
  padding: 50px 0;
  background-color: #fff;
}

.section-a-propos h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.section-a-propos p {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .section-a-propos h2 {
    font-size: 2em;
  }

  .section-a-propos p {
    font-size: 1em;
  }
}

/* Section Compétences */
.section-competences {
  padding: 50px 0;
  background-color: #fff;
}

.section-competences h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.compétences {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.compétence h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.barre-compétence {
  height: 8px;
  border-radius: 5px;
  background-color: #ddd;
}

.barre-compétence.html {
  width: 60%;
  background-color: #f39c12;
}

.barre-compétence.js {
  width: 10%;
  background-color: #e74c3c;
}

.barre-compétence.photoshop {
  width: 50%;
  background-color: #f1c40f;
}

/* Responsivité */
@media (max-width: 768px) {
  .section-competences h2 {
    font-size: 2em;
  }

  .compétences {
    grid-template-columns: 1fr;
  }

  .compétence h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .compétence h3 {
    font-size: 1.2em;
  }
}

/* Section des projets */
.section-projets {
  padding: 50px 0;
  background-color: #fff;
}

.grille-projets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.projet img {
  width: 100%;  
  height: auto;  
  max-width: 300px; 
  border-radius: 8px;
  margin-bottom: 20px;
  
}
/* Section des projets */
.projet img {
  width: 100%;  /* L'image prend toute la largeur du conteneur */
  height: auto;  /* Hauteur ajustée automatiquement pour garder le ratio */
  max-width: 300px;  /* Limite la taille maximale de l'image */
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100px;
}

/* Responsivité pour les écrans de 1024px et moins (tablettes et plus grands écrans) */
@media (max-width: 1024px) {
  .projet img {
      max-width: 250px;  /* Limite la taille des images des projets */
  }
}

/* Responsivité pour les écrans de 768px et moins (tablettes portrait) */
@media (max-width: 768px) {
  .projet img {
      max-width: 200px;  /* Limite la taille des images des projets */
  }
}

/* Responsivité pour les écrans de 480px et moins (smartphones) */
@media (max-width: 480px) {
  .projet img {
      max-width: 128px;  /* Limite la taille des images des projets */
      width: 100px;
  }

  .grille-projets {
      grid-template-columns: 1fr;  /* Affiche les projets en une seule colonne */
  }
}

.projet h3 {
  font-size: 1.5em;
  margin-top: 10px;
}

.projet p {
  font-size: 1em;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .grille-projets {
    grid-template-columns: 1fr 1fr;
  }

  .section-projets h2 {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .grille-projets {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 30px 0;
  }

  h1 {
    font-size: 1.8em;
  }

  p {
    font-size: 1em;
  }

  .photo-profil {
    width: 100px;  /* Taille modifiée */
    height: 100px; /* Taille modifiée */
  }

  .form-contact input, .form-contact textarea {
    padding: 8px;
  }
}

/* Section Contact */
.section-contact {
  padding: 50px 0;
  background-color: #f4f4f4;
}

.form-contact input, .form-contact textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.form-contact button {
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
}

.form-contact button:hover {
  background-color: #2980b9;
}

/* Footer */
.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer p {
  font-size: 1em;
}

.html {
  scroll-behavior: smooth;
}

.caca {
  color: rgb(94, 93, 93);
}

.pipi {
  color: #f39c12;
}

.fesse {
  color: #3498db;
}
/* Pour l'agrandissement de l'image */
.projet img {
  width: 100%;           /* L'image occupe toute la largeur de son conteneur */
  max-width: 300px;      /* Limite la taille maximale de l'image */
  height: auto;          /* Garde les proportions de l'image */
  transition: transform 0.3s ease; /* Transition fluide de l'agrandissement */
  cursor: pointer;      /* Change le curseur pour indiquer que l'image est cliquable */
}

.projet img.zoom {
  transform: scale(1.5); /* Agrandit l'image de 1.5x lors du clic */
  z-index: 1000;         /* Place l'image au-dessus des autres éléments */
}

/* Modifications à l'échelle responsive */
@media (max-width: 768px) {
  .projet img {
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .projet img {
    max-width: 100px;
  }
}