*,
*::after,
*::before {
  box-sizing: border-box;
}
@font-face {
  font-family: 'Sentient-Bold';
  src: url('./Sentient-Bold.woff2') format('woff2'),
       url('./Sentient-Bold.woff') format('woff'),
       url('./Sentient-Bold.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Baunk';
  src: url('./Baunk.woff') format('woff'),
       url('./Baunk.otf') format('opentype'),
       url('./Baunk.ttf') format('ttf');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('./Satoshi-Black.woff') format('woff');
  src: url('./Satoshi-Black.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #000000;
  color: #f5f5f5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  
}
html, body {
  height: 100%; /* Le HTML et le BODY prennent toute la hauteur */
  margin: 0;
  display: flex;
  flex-direction: column; /* Disposition en colonne pour empiler les éléments */
}


header {
  margin-bottom: 100px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 70px;
  width: 100%;
  font-size: 1.1rem;
  font-family: 'Satoshi';
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: auto; /* Place le logo à gauche */
  font-family:'Baunk';
}

.navbar .centre {
  flex: 1; /* Prend tout l'espace restant entre le logo et le bouton */
  display: flex;
  justify-content: center; /* Centre les éléments au milieu */
}

.droit {
  display: flex;
  align-items: center;
  gap: 3rem; 
}

.navbar .menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar .menu li {
  padding: 0 10px;
}

.navbar .btn {
  font-size: 1rem;
  padding: 0.8rem 2rem;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #2b2b2b;
  color: white;
}

nav a {
  text-decoration: none;
  color: white;
}


.textcentral {
  display: flex;
  flex-direction: column; /* Permet de disposer les éléments verticalement */
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  color: #ffffff;
}

.textcentral h2 {
  margin: 0;
}

.textcentral h1 {
  font-size: 7rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  font-family: 'Baunk';
  margin: 0;
}

#typing-title-line1 {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  display: block; /* S'assure que le texte est sur une ligne séparée */
  font-family: 'Sentient-Bold';

}

.textcentral span.typing::after {
  content: "|";
  display: inline-block;
  margin-left: 5px;
  animation: blink 0.6s step-start infinite;
}


@keyframes blink {
  50% {
    opacity: 0;
  }
}

.navbar button {
  background-color: #222222;
  color: white;
  border-radius: 10px;
  font-size: 1.1rem;
}
.navbar .cta:hover {
  background-color: #ffffff;
  color: black;
}
.cta-button {
  display: inline-block; /* Pour que le bouton soit en ligne avec d'autres éléments */
  padding: 15px 30px; /* Espace à l'intérieur du bouton */
  font-size: 18px; /* Taille du texte */
  font-weight: bold; /* Gras pour un meilleur impact */
  text-align: center; /* Centrer le texte */
  text-decoration: none; /* Retirer le soulignement par défaut */
  color: black; /* Texte noir */
  background-color: white; /* Fond blanc */
  border: 2px solid black; /* Bordure noire */
  border-radius: 5px; /* Coins légèrement arrondis */
  transition: all 0.3s ease; /* Transition fluide pour les effets */
}

/* Au survol (hover) */
.cta-button:hover {
  color: white; /* Texte en blanc */
  background-color: black; /* Fond noir */
  border-color: white; /* Bordure blanche */
}

.presentation {
  height: 100v;
  font-family: 'Satoshi';
}
.apropos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 20%;
}
.voir-plus-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-voir-plus {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border: none;
  outline: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-transform: uppercase;
  background-color: rgb(255, 255, 255);
  color: #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-family: 'Satochi';
}

.btn-voir-plus:hover {
  background-color: rgb(0, 0, 0);
  color: #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.card {
  flex: 1;
  max-width: 30%;
  padding: 20px;
  border-radius: 10px;
  text-align: justify;
}
.scroll-down-btn {
  display: block;
  margin-top: 30px;
  text-align: center;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  animation: bounce 1.5s infinite;
}

.scroll-down-btn i {
  font-size: 3rem;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.texte {
  flex: 1;
  max-width: 45%;
  padding: 20px;
  text-align: left;
}

.texte h3 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-align: left;
}

.texte p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}
.skills {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills h2 {
  font-size: 2.5rem;
}

.projet {
  height: 100vh;
  margin-bottom: 20%;
  font-family: 'Satoshi';
}

.titre-section {
  font-size: 4rem;
  font-weight: bold;
  color: #f5f5f5;
  text-align: center; /* Centre le titre */
  margin: 0 auto 20px; /* Ajoute de l'espace en bas */
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Ombre pour le titre */
}

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 150px;
}

.slider-content {
  display: flex;
  gap: 10px;
  animation: none;
}

.slider-content img {
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 10px;
}

.swiper {
  width: 70%;
  max-width: 1500px;
  height: 70vh;
  margin: 0 auto;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.swiper-pagination {
  bottom: 10px;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}
.voir-plus-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-voir-plus {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border: none;
  outline: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-transform: uppercase;
  background-color: rgb(255, 255, 255);
  color: #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-voir-plus:hover {
  background-color: rgb(0, 0, 0);
  color: #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.projet h2 {
  display: flex;
  justify-content: center;
  font-size: 4rem;
  padding-bottom: 5rem;
}

.swiper-button-next,
.swiper-button-prev {
  color: #ffffff !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: transform 0.3s ease !important;
  position: absolute !important;
  top: 50% !important;
  z-index: 10 !important;
  transform: translateY(-50%) !important;
}

.swiper-button-prev {
  left: -60px !important;
}

.swiper-button-next {
  right: -60px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.3) !important;
}

.swiper-pagination {
  bottom: 10px;
}

.swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.6;
}


.project h1 {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
  font-family: 'Baunk';
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

.projects-grid img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease ;
  box-shadow: 0px 0px 10px rgba(182, 175, 175, 0.5);
}

.project-item:hover {
  transform: scale(1.03);
  box-shadow: 0px 6px 25px rgb(236, 236, 255);
}

.project-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  justify-content: center;
}

.detail-section {
  display: flex;
  gap: 20px;
  padding: 30px;
  background-color: #1f1f1f;
  border-radius: 15px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: flex-start; /* Alignement en haut */
  margin-top: 30px;
  font-family: 'Satoshi';
}

.image-container {
  flex: 1;
  max-width: 45%;
  margin: 0 20px;
  display: flex;
  justify-content: center;
  flex-direction: column; /* Aligner les images verticalement */
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 15px; /* Espacement entre les images */
}

.text-container {
  flex: 1;
  max-width: 45%;
  padding: 20px;
  background-color: #2c2c2c;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: -webkit-sticky; /* Pour les navigateurs Safari */
  position: sticky;
  top: 25%; /* Le texte commence à se coller après 20px de défilement */
  z-index: 10;
}

.text-container h1 {
  font-size: 2rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.text-container p {
  font-size: 1rem;
  color: #d1d1d1;
  line-height: 1.6;
  margin-bottom: 15px;
}

.text-container p:last-of-type {
  margin-bottom: 0;
}

.eliasavis {
  font-family: 'Satoshi';
  padding-bottom:20%;
}

.avis {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 62vh;
}

.cartes {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.carte {
  width: 30%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column; /* Aligner verticalement les éléments */
  justify-content: flex-start;
  align-items: center; /* Centrer les éléments horizontalement */
  padding: 20px;
  height: auto;
}

.carte:hover {
    transform: scale(1.05) translateY(-10px); /* Légère élévation et agrandissement */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Ombre plus marquée */
  }
  .image-carte {
    margin-bottom: 20px; /* Espacement entre l'image et le texte */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Occupe toute la largeur */
  }
  
  
  .image-carte img {
    width: 120px; /* Augmenter la taille de l'image */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
  }
  .content-avis {
    text-align: center; /* Centrer le texte sous l'image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }
  
  .titre-avis {
    font-size: 24px;
    margin-bottom: 10px;
    color: black;
  }
  
  .description-avis {
    font-size: 18px;
    line-height: 1.8;
    color: black;
  }
  .contact { 
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom:20%;
  }
  
  .contact-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    color: #e0e0e0;
    height: auto; /* Fixe la hauteur pour éviter des espaces trop grands */
  }
  
  .contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
    font-family: 'Satoshi';
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-group label {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #fff;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: #444444;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: #1f4c65;
    outline: none;
  }
  
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: #aaa;
  }
  
  .btn-submit {
    padding: 12px 20px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 20px;
  }
  
  .btn-submit:hover {
    background-color: #070707;
    transform: translateY(-2px);
    color: white;
  }
  
footer {
  position: relative; /* Le footer reste dans le flux normal */
  z-index: 1; /* Priorité supérieure pour s'afficher au-dessus du canvas */
  background-color: #222; /* Couleur de fond */
  color: white;
  padding: 20px 0; /* Espace en haut et en bas */
}

.footer-container {
  display: flex;
  justify-content: space-between; /* Écart entre les éléments */
  align-items: center; /* Alignement vertical des éléments */
  max-width: 1200px;
  margin: 0 auto; /* Centre le contenu horizontalement */
  padding: 0 20px;
}

.footer-left, .footer-center, .footer-right {
  flex: 1; /* Répartition flexible des colonnes */
}

.footer-left {
  font-family: 'Baunk';
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: auto; /* Place le logo à gauche */
}


.footer-center {
  text-align: center; /* Centre les liens sociaux */
}

.footer-right {
  text-align: right; /* Aligne votre nom à droite */
}

.social-link {
  color: white;
  margin: 0 15px; /* Espace entre les liens */
  text-decoration: none;
  font-size: 18px;
}

.social-link:hover {
  text-decoration: underline;
}
.footer-left .logo {
  font-size: 24px;
  color: white; /* Couleur initiale du logo */
  text-decoration: none; /* Enlever le soulignement */
}

.footer-left .logo:focus,
.footer-left .logo:hover {
  color: inherit; /* Ne change pas de couleur lorsqu'on survole ou clique */
  outline: none; /* Enlever le contour autour du logo lorsqu'il est sélectionné */
}


@media (max-width: 768px) {
  .contact h2 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 20px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
  }
}


@media (max-width: 768px) {
  .detail-section {
    flex-direction: column;
    align-items: center;
  }

  .image-container,
  .text-container {
    max-width: 100%;
    margin: 10px 0;
  }

  .text-container h1 {
    font-size: 1.8rem;
  }

  .text-container p {
    font-size: 0.95rem;
  }

  .image-container img {
    width: 90%;
  }
  .swiper {
    width: 100%;
    height: auto;
  }

  .swiper-slide img {
    border-radius: 5px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 30px;
    height: 30px;
  }
}
/* Pour les tablettes (largeur maximale de 768px) */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .centre {
    flex: none;
    margin-top: 20px;
  }

  .navbar .logo {
    font-size: 1.3rem;
  }

  .navbar .menu {
    flex-direction: column;
    gap: 1rem;
    margin-top: 20px;
  }

  .navbar .btn {
    width: 35%;
    text-align: center;
  }

  /* Autres éléments spécifiques à la tablette */
  .main {
    padding: 20px;
  }
  .titre-section {
    font-size: 2.5rem; /* Taille réduite pour les petits écrans */
    margin: 0 auto 10px; /* Moins de marge en bas sur petits écrans */
  }
  .textcentral h1 {
    font-size: 2rem;
  }
}

/* Pour les mobiles (largeur maximale de 480px) */
@media screen and (max-width: 480px) {
  .navbar {
    padding: 10px;
  }

  .navbar .logo {
    font-size: 1.2rem;
  }

  .navbar .menu {
    gap: 0.5rem;
  }

  .navbar .btn {
    font-size: 0.7rem;
    padding: 0.6rem 1.5rem;
  }

  /* Autres éléments spécifiques aux mobiles */
  .main {
    padding: 10px;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .apropos {
    flex-direction: column;
    padding: 20px;
    align-items: center;
  }

  .card,
  .texte {
    max-width: 90%; /* Réduit la largeur des sections sur mobile */
    flex: 1;
    margin-bottom: 20px; /* Ajoute de l'espace entre les éléments */
  }

  .card img {
    max-width: 100%; /* L'image s'ajuste à la taille du conteneur */
  }

  .texte h3 {
    font-size: 2rem; /* Réduit la taille du titre */
    text-align: center; /* Centre le titre */
  }

  .texte p {
    font-size: 1rem; /* Taille du texte réduite */
    text-align: center; /* Centrer le texte */
  }

  .btn-voir-plus {
    width: 100%; /* Le bouton occupe toute la largeur disponible */
    padding: 1rem;
  }
}

/* Tablette View */
@media (max-width: 900px) {
  .apropos {
    flex-direction: column; /* Empile les éléments verticalement */
    align-items: center; /* Centre les éléments horizontalement */
    text-align: center; /* Centre le texte sous l'image */
    padding-bottom: 20px; /* Ajoute un padding en bas pour espacer du contenu suivant */
  }

  .card {
    max-width: 80%; /* Réduit la taille de l'image sur les petits écrans */
    margin-bottom: 20px; /* Ajoute un espacement en bas */
  }

  .texte {
    max-width: 80%; /* Réduit la largeur du texte */
    padding: 0 20px; /* Ajoute du padding pour éviter que le texte soit collé aux bords */
  }

  .texte h3 {
    font-size: 1.5rem; /* Réduit la taille du titre */
  }

  .texte p {
    font-size: 0.6rem; /* Réduit la taille du texte */
  }

  .btn-voir-plus {
    width: 100%; /* Fait en sorte que le bouton occupe toute la largeur */
    padding: 1rem; /* Ajoute du padding pour le rendre plus visible sur petits écrans */
  }
}

@media (max-width: 992px) {
  .projet h2 {
    font-size: 3rem;
    padding-bottom: 3rem;
  }

  .swiper {
    width: 80%;
    height: 50vh;
  }

  .swiper-slide img {
    object-fit: contain;
  }

  .btn-voir-plus {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .voir-plus-container {
    margin-top: 20px; /* Assurez-vous que le bouton reste sous le swiper */
    text-align: center;
  }

  /* Ajustement du texte et des images dans le swiper */
  .swiper-slide img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .swiper {
    width: 95%;
    height: 40vh;
  }

  .swiper-slide {
    margin-bottom: 10px;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .btn-voir-plus {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .voir-plus-container {
    margin-top: 20px; /* Le bouton est toujours en dessous */
    text-align: center;
  }

  /* Réduction de la taille des boutons swiper */
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .projet h2 {
    font-size: 2.5rem;
    padding-bottom: 2rem;
  }

  .swiper {
    width: 100%;
    height: 30vh;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .btn-voir-plus {
    font-size: 0.8rem;
    padding: 0.6rem 1.9rem;
  }

  .voir-plus-container {
    margin-top: 20px; /* Assurer que le bouton est toujours sous le swiper */
    text-align: center;
  }

  /* Ajuster l'espace des boutons swiper */
  .swiper-button-next,
  .swiper-button-prev {
    width: 35px;
    height: 35px;
  }
}
/* Réduire la taille du titre sur les petits écrans */
@media screen and (max-width: 768px) {
  .titre-section {
    font-size: 2.5rem;  /* Taille réduite du titre */
  }

  .cartes {
    flex-direction: column; /* Empiler les cartes verticalement */
    align-items: center;    /* Centrer les cartes */
    gap: 20px; /* Ajouter de l'espace entre les cartes */
  }

  .carte {
    width: 80%;  /* Ajuster la largeur des cartes sur petits écrans */
    margin: 0 auto; /* Centrer les cartes horizontalement */
  }

  .image-carte img {
    width: 100px;  /* Réduire la taille des images */
    height: 100px;
  }

  .titre-avis {
    font-size: 1.8rem; /* Réduire la taille des titres des avis */
  }

  .description-avis {
    font-size: 1rem;  /* Ajuster la taille du texte */
  }
}

/* Amélioration pour les très petits écrans (mobiles) */
@media screen and (max-width: 480px) {
  .titre-section {
    font-size: 2rem;  /* Réduire encore plus la taille du titre */
  }

  .cartes {
    gap: 15px;  /* Réduire l'espace entre les cartes */
  }

  .carte {
    width: 90%;  /* Les cartes prennent presque toute la largeur */
  }

  .image-carte img {
    width: 80px;  /* Taille encore plus petite pour les images */
    height: 80px;
  }

  .titre-avis {
    font-size: 1.6rem;  /* Réduire les titres des avis */
  }

  .description-avis {
    font-size: 0.9rem;  /* Réduire la taille du texte des descriptions */
  }
}

/* Ajoutez des media queries pour les petits écrans */
@media (max-width: 768px) {
  .contact-container {
    height: auto;  /* Permet à la section de s'ajuster selon le contenu */
    padding: 20px; /* Réduit l'espace autour du formulaire */
  }

  .contact h2 {
    font-size: 2rem; /* Réduit la taille du titre */
  }

  .contact-form {
    padding: 20px; /* Réduit le padding du formulaire */
  }

  .form-group {
    width: 100%;  /* Assure que les champs occupent toute la largeur */
  }

  .form-group input,
  .form-group textarea {
    width: 100%;  /* Assure que les champs occupent toute la largeur */
  }

  .btn-submit {
    width: 100%;  /* Assure que le bouton occupe toute la largeur */
  }

  /* Ajuste l'espacement entre les sections */
  .contact {
    padding: 20px;
  }
}

/* Pour les très petits écrans (mobiles en portrait par exemple) */
@media (max-width: 480px) {
  .contact h2 {
    font-size: 1.5rem; /* Réduit encore plus la taille du titre */
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem; /* Réduit la taille de la police des champs */
  }

  .btn-submit {
    padding: 10px; /* Réduit la taille du bouton */
  }
}

/* Utilisation de media queries pour des écrans plus petits */

@media (max-width: 768px) {
  /* Ajustement pour les éléments de la section projet */
  .projects-grid {
    grid-template-columns: 1fr; /* Une seule colonne sur les petits écrans */
    gap: 15px;
  }

  /* Pour la section des cartes (avis) */
  .cartes {
    flex-direction: column; /* Les cartes s'empilent en colonne */
  }

  .carte {
    width: 100%; /* Occupe toute la largeur sur petits écrans */
    margin-bottom: 20px; /* Ajout d'un espace entre les cartes */
  }

  /* Pour les sections de projet */
  .project-section {
    flex-direction: column; /* Passage en colonne */
    align-items: center; /* Centrer les éléments */
  }

  /* Pour la section des détails (projet) */
  .detail-section {
    flex-direction: column; /* Passage en colonne */
    justify-content: center;
    align-items: center;
  }

  .image-container, .text-container {
    max-width: 100%; /* Les images et texte prennent toute la largeur */
  }

  /* Pour les boutons */
  .btn-voir-plus {
    width: 100%; /* Le bouton prend toute la largeur */
  }

  /* Pour la barre de navigation */
  .navbar {
    flex-direction: column; /* Disposition en colonne pour la navbar */
    align-items: center;
  }

  .navbar .logo {
    margin-right: 0; /* Retirer l'espace à droite du logo */
    margin-bottom: 10px; /* Espacement entre le logo et le reste */
  }

  .navbar .droit {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Pour les sections avec des titres */
  .titre-section {
    font-size: 3rem;
  }

  .textcentral h1 {
    font-size: 5rem; /* Ajuster la taille du titre */
  }

  /* Pour la section de contact */
  .contact-container {
    padding: 20px; /* Réduire l'espace */
  }

  .contact-form {
    padding: 20px;
  }

  .form-group input, .form-group textarea {
    font-size: 0.9rem; /* Réduire la taille des champs sur les petits écrans */
  }
}

/* Si l'écran est très petit, par exemple mobile portrait */
@media (max-width: 480px) {
  .textcentral h1 {
    font-size: 4rem; /* Ajuster encore plus pour les très petits écrans */
  }

  .textcentral h2 {
    font-size: 1.5rem; /* Réduire la taille du sous-titre */
  }

  .swiper {
    width: 100%; /* La swiper prend toute la largeur */
    height: 50vh; /* Hauteur réduite pour les petits écrans */
  }

  .swiper-slide img {
    object-fit: contain; /* Ajuster les images pour éviter qu'elles ne se coupent */
  }
}







