/* styles.css */

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ecf0f1;
  color: #2c3e50;
  /*overflow: hidden; /* Masquer les débordements */
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none; /* Supprime le soulignement */
}

nav ul li a.active {
  text-decoration: none; /* Supprime soulignement pour le lien actif */
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #2980b9; /* Changement de couleur au survol */
}

nav a.active {
  color: #2980b9; /* Même couleur que le survol pour indiquer la page active */
  border-bottom: 2px solid #2980b9; /* Une petite bordure en bas pour plus de visibilité */
}

button {
  transition: background 0.3s;
}

/* Style du médaillon */
.medaillon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.medaillon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.medaillong {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.medaillong img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



main {
  flex: 1;
  padding: 2rem;
  width: 100%;
  margin: 0 auto;
}

mainp {
  flex: 1;
  padding: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

h1 {
  width : 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  
  text-align: center;
  margin-bottom: 1.5rem;
}

h4 {
  width : 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

video-container, #contact-form {
  margin: 2rem 0;
}

.portfolio-grid {
   margin: 2rem 0; 
}

#V1
{
    display: flex;
  flex-direction: column;
}

.video-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90%;
  /*overflow: hidden; /* Masquer les débordements */
}

.video-container-bis {
  display: flex;
  /*flex-direction: column;*/
  justify-content: space-evenly;
  align-items: center;
  height: 90%;
  /*overflow: hidden; /* Masquer les débordements */
}

.video-container video {
  width: 25vw;
  height: 25vh;
  min-width: 300px; /* Minimum width */
  min-height: 300px; /* Minimum height */
  object-fit: cover;
  /*overflow: hidden; /* Masquer les débordements */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container-bis video {
  width: 25vw;
  height: 25vh;
  min-width: 300px; /* Minimum width */
  min-height: 300px; /* Minimum height */
  object-fit: cover;
  /*overflow: hidden; /* Masquer les débordements */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* styles.css */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

.portfolio-grid figure {
  width: 100%;
  max-width: 300px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

/*.portfolio-grid figure {
  flex: 1 1 calc(33.33% - 2rem);
}*/

.portfolio-grid img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.portfolio-grid figure:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-grid figcaption {
  /*display : flex;*/
  padding: 1rem;
  background: #2c3e50;
  color: white;
  font-weight: bold;
  font-size : 16px;
  align-items : center;
  
}

.portfolio-grid figcaption:hover {
  padding: 1rem;
  background: #2980b9;
  color: white;
  font-weight: bold;
}

.portfolio-grid a {
  color: inherit;
  text-decoration: none; /* Supprime le soulignement */
}
/* styles.css */

#chat-container {
  display: flex;
  flex-direction: column;
  
}

#chatbox {
  width: 100%;
  max-width: 600px;
  height: 600px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  overflow-y: scroll;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-message, .bot-message {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 10px;
  max-width: 70%;
}

.user-message {
  align-self: flex-end;
  background: #3498db;
  color: white;
}

.bot-message {
  align-self: flex-start;
  background: #e0e0e0;
}

/* styles.css */

form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 80%; /* Utiliser 80% de la largeur du conteneur parent */
  max-width: 800px; /* Limite maximale de largeur */
  min-width: 300px; /* Limite minimale de largeur */
  margin: 0 auto; /* Centrer le formulaire */
}

form > div {
  margin-bottom: 1rem;
  
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

form input, form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

form textarea {
  height: 150px;
  resize: vertical;
  margin: 0 auto; /* Centrer le formulaire */
}

form button {
  width: 100%;
  background: #007BFF;
  border: none;
  color: white;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

form button:hover {
  background: #2c3e50;
}

button {
  background: #007BFF;
  padding: 0.75rem 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

button:hover {
  background: #2c3e50;
}

.portfolio-grid figcaption i {
  margin-right: 8px; /* Espace entre l'icône et le texte */
  
  /*color: #333; /* Couleur de l'icône */
}

figcaption .icon4 {
  width: 150px; /* Ajustez la taille selon vos besoins */
  height: auto;
  margin-right: 8px;
}

figcaption .icon2 {
  width: 60px; /* Ajustez la taille selon vos besoins */
  height: auto;
  margin-right: 8px;
}

figcaption .icon3 {
  width: 85px; /* Ajustez la taille selon vos besoins */
  height: auto;
  margin-right: 8px;
}

/* Ajoutez en bas de votre styles.css */

@media (max-width: 768px) {
  .portfolio-grid figure {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #avatar-container {
        width: 100%;
         }
      
     #main {
        padding: 1rem;
      }
  
}

@media (max-width: 480px) {
  .portfolio-grid figure {
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 0.5rem 0;
  }
}