  /* Styles globaux */
body {
  background-color: #1a1a1a; /* Fond sombre */
  color: #ffffff; /* Texte blanc */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --color-text: #333333;
}

ul {
  list-style-type: disc;
}

/* Réinitialisation des styles */


/* Navigation */
#nav {
  z-index: 50;
  background-color: #333333; /* Fond de navigation */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

#nav ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 10px;
  margin: 0; /* Supprimer la marge par défaut */
}

#nav li {
  margin: 0 10px;
}

/* Styles pour les petits écrans */
@media screen and (max-width: 768px) {
  #nav {
    position: fixed;
    top: 5%;
    left: 32%;
    width: 40%;
    padding: 8px 0; /* Ajuster le padding */
  }

  #nav ul {
    flex-wrap: wrap;
    align-items: center;
  }


  /* Styles pour le bouton de menu à petits écrans */
  .menu-button {
    display: block;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
  }

  .menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px auto;
    background-color: #ffffff;
    transition: transform 0.3s ease-out;
  }

  .menu-open .menu-button span:nth-child(1) {
    transform: rotate(45deg);
  }

  .menu-open .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-button span:nth-child(3) {
    transform: rotate(-45deg);
  }

  /* Styles pour le menu déroulant à petits écrans */
  .menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #333333;
    padding: 10px;
  }

  .menu-open .menu-dropdown {
    display: block;
  }
}

/* Styles pour les écrans moyens et grands */
@media screen and (min-width: 769px) {
  #nav {
    position: fixed;
    top: 20px; /* Ajuster la position */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3em; /* Ajuster le rayon de la bordure */
  }

  /* Styles pour le bouton de menu à écrans moyens et grands */
  .menu-button {
    display: none;
  }
}

/* Style fleche */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Styles pour les petits écrans */
@media screen and (max-width: 768px) {
  .scroll-button {
    width: 40px;
    height: 40px;
  }

  #more-arrows {
    display: none;
  }

  .arrow-top,
  .arrow-middle,
  .arrow-bottom {
    fill: #ffffff; /* Couleur des flèches pour les petits écrans */
  }
}

/* Styles pour les écrans moyens et grands */
@media screen and (min-width: 769px) {
  .scroll-button {
    width: 60px;
    height: 60px;
  }

  #more-arrows {
    width: 50px;
    height: 50px;
  }

  .arrow-top,
  .arrow-middle,
  .arrow-bottom {
    fill: #333333; /* Couleur des flèches pour les écrans moyens et grands*/
  }
}



/* Style pour la section profil */
/* Style pour la partie de profil */
#profil {
  padding: 50px 10%;
  background-color: #1a1a1a;
}

#profil h3 {
  text-align: center;
  font-size: 3em;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: 3px;
}

.about-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  min-width: 250px; /* Réduit la largeur minimale de la photo */
}

.about-image img {
  width: 80%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
  padding: 40px; /* Ajusté pour un effet visuel plus équilibré */
  background-color: #676767;
  color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: left;
  animation: fadeInUp 1s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px; /* Assure que le bloc de texte est suffisamment grand */
}

.about-text h4 {
  font-size: 2em;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #2c3e50;
  padding-bottom: 10px;
}

.about-text h5 {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 1em;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 20px;
}

@keyframes fadeInUp {
  from {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }
  .about-text {
    margin-top: 20px;
  }
}

/* Fin Style pour la partie profil */

/* Style pour la partie de l'entreprise */
#entreprise {
  padding: 50px 10%;
  background-color: #1a1a1a;
}

#entreprise h3 {
  text-align: center;
  font-size: 3em;
  color: #ecf0f1;
  margin-bottom: 40px;

  letter-spacing: 3px;
}

.presentation_entreprise {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.image_entreprise {
  flex: 1;
  min-width: 350px; /* Augmenté pour agrandir la taille de la photo */
}

.image_entreprise img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}



.image_entreprise img:hover {
  transform: scale(1.05);
}

.texte_entreprise {
  flex: 1;
  padding: 40px; /* Augmenté pour un effet visuel plus équilibré */
  background-color: #676767;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: left;
  animation: fadeInUp 1s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px; /* Assure que le bloc de texte est suffisamment grand */
}

.texte_entreprise h4 {
  font-size: 2em;
  color: #34495e;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #2c3e50;
  padding-bottom: 10px;
}

.présentation h5 {
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 15px;
}

.présentation p {
  font-size: 1em;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 20px;
}

@keyframes fadeInUp {
  from {
      transform: translate3d(0, 40px, 0);
      opacity: 0;
  }
  to {
      transform: translate3d(0, 0, 0);
      opacity: 1;
  }
}

@media (max-width: 1024px) {
  .presentation_entreprise {
      flex-direction: column;
      align-items: center;
  }
  .texte_entreprise {
      margin-top: 20px;
  }
}






/* Fin style entreprise */

/* Style pour le texte */
a {
  color: #ffffff; /* Couleur des liens */
  text-decoration: none; /* Suppression du soulignement par défaut
  */
  transition: color 0.3s ease; /* Transition fluide lors du survol */
}

a:hover {
  color: #646363; /* Changement de couleur lors du survol */
}

h3 {
  color: #ffffff; /* Couleur des liens */
  text-align: center;
  display: block;
  padding: -20%;
  font-size: xx-large !important;
  transition: all 0.3s ease; /* Transition fluide lors du survol */
}

h3:hover {
  color: #646363; /* Changement de couleur lors du survol */
  ;
  /* Changement de couleur lors du survol */
  transition: all 0.3s ease;
}

/* Markup */
.container {
  padding: 20px;
  text-align: center;
  margin-top: 3%;
}

.content {
  position: absolute;
  margin-top: 20%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

p {
  margin: 0 0 20px;
}

/* Arrow & Hover Animation */
#more-arrows {
  width: 75px;
  height: 65px;
}

polygon {
  fill: #fff;
  transition: all .2s ease-out;
}

polygon.arrow-middle {
  opacity: 0.75;
}

polygon.arrow-top {
  opacity: 0.5;
}

/* Styles pour le bouton */
.scroll-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.scroll-button:hover polygon {
  fill: #333333;
}

.scroll-button:active {
  transform: translateY(2px);
}

.spacer {
  height: 200px; /* Réglez la hauteur du padding selon vos besoins */
}

.scroll-button {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease; /* Ajoute une transition sur la transformation */
}

.scroll-button:hover {
  transform: translateY(5px); /* Déplace légèrement vers le bas au survol */
}

/* Styles pour la section des projets */
.display_projet {
  position: relative;
  width: 31vw;
  margin: 15px;
  overflow: hidden;
}

.display_projet img {
  height: auto;
  transition: transform 0.5s ease;
}

.display_projet:hover img {
  transform: scale(1.24);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(100%);
}

.display_projet:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay h5 {
  color: white;
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-left: 1rem;
}

.overlay p {
  color: white;
  font-size: 1rem;
  margin: 0 1rem;
}

@media screen and (max-width: 1024px) {
  .display_projet {
    width: 45%;
  }
  .overlay {
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .projets {
    margin-top: 30px;
  }

  .display_projet {
    width: 100%;
    margin: 15px 0;
  }
}

#bouton{
  text-align: center;
}

/* Fin Styles pour la partie des projets */

/* Styles pour la partie des competences */
#competence {
  font-size: 200%;
  padding-top: 8%;
  text-align: center;
}

.skills-section {
  text-align: center;
  margin-top: 50px;
}

.skills-list {
  list-style-type: none;
  padding: 0;
}

.skills-list li {
  margin-bottom: 10px;
  font-size: 18px;
  background-color: #333333;
  padding: 15px 25px;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.skills-list li:hover {
  background-color: #676767;
}

/* Fin Styles pour la partie des competences */

/* Styles pour la partie contact */
#contact {
  padding-top: 2%;
  text-align: center;
}

.contact-me {
  text-align: center; /* Centrer le contenu */
  margin: 50px auto; /* Marge autour du formulaire */
  max-width: 600px; /* Largeur maximale du formulaire
  */
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
  width: calc(100% - 22px);
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #1a1a1a !important;
  border-radius: 6px !important;
}

input {
  color: #1a1a1a !important;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  background-color: #333333;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #676767;
}

.presentation {
  padding: 4%;
  display: flex;
  width: 80%;
}

.presentation .img {
  width: 50%;
}

.presentation img {
  margin-left: 43%;
  border-radius: 8px;
  width: 100%;
}

.presentation .theme {
  width: 50%;
}

#theme {
  margin-left: 15%;
}

.article-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.article {
  width: 500px;
  margin: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #ffffff; /* Ajoute une bordure blanche de 2px */
  padding: 20px; /* Ajoute un espace intérieur de 20px pour aérer le contenu */
  border-radius: 8px; /* Ajoute des coins arrondis à la bordure */
  margin-bottom: 20px; /* Ajoute de l'espace en bas de chaque article */
}

#presentation {
  font-size: 100%;
}

.article img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.article-info {
  padding: 20px;
}

.article-info h3 {
  margin-bottom: 10px;
}

.article-info p {
  margin-bottom: 20px;
}

.article-info a {
  display: inline-block;
  background-color: #333333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}

.article-info a:hover {
  background-color: #676767;
}

h1 {
  text-align: center;
  font-size: large;
}

/* Animation */
.article {
  transition: transform 0.3s ease;
}

.article:hover {
  transform: translateY(-5px);
}

/*carousel*/
/* Styles par défaut pour les écrans de petite taille */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .15em;
  font-size: 40px;
  text-align: center;
  font-family: Arial, sans-serif;
  width: 20em;
}

.typewriter h1 {
  display: inline-block;
  animation: typewriter 2s steps(40) 1s forwards;
  margin-top: 0%;
}

.content {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Tailles d'écran extra small (xs) */
@media (min-width: 0px) {
  .typewriter h1 {
      font-size: 1rem;
      margin-left: -50%;
  
  }
}

/* Tailles d'écran small (sm) */
@media (min-width: 640px) {
  .typewriter h1 {
      font-size: 2.5rem;
      margin: 0;
      padding: 0;
  }
}

/* Tailles d'écran medium (md) */
@media (min-width: 768px) {
  .md\:w-full {
      width: 100%;
  }

  .md\:m-0 {
      margin: 0;
  }

  .ml-5 {
      margin-left: 1.25rem;
  }

  .text-3xl {
      font-size: 1.875rem;
  }
}

/* Tailles d'écran large (lg) */
@media (min-width: 1024px) {
 
}

/* Tailles d'écran extra large (xl) */
@media (min-width: 1280px) {
  
}

/* Tailles d'écran 2xl */
@media (min-width: 1536px) {
 
}

