/* Styles de base */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0e0e0e;
    color: #f1f1f1;
}

h1, h2 {
    margin: 0;
}

/* Section d'accueil */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding-top: 20%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.5rem;
}

/* Section Projets */
.projects {
    padding: 5rem 2rem;
    background-color: #1a1a1a;
    text-align: center;
    
}

.projects h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .project-card {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: #1e1e1e;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    
  }
  
  .project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background-color: #292929;
  }

/* Section Contact */
.contact {
    padding: 5rem 2rem;
    background-color: #121212;
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #2a2a2a;
    color: #f1f1f1;
    resize: none;
}

.contact-form button {
    padding: 1rem;
    background-color: #5c6bc0;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #3f51b5;
}


/* Effet machine à écrire */
.typewriter {
    overflow: hidden;
    border-right: .15em solid #ffffff;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation:
      typing 3.5s steps(40, end),
      blink-caret .75s step-end infinite;
  }
  
  /* Animation de l'écriture */
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  /* Animation du curseur clignotant */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white; }
  }

  
  #typewriter-multi {
    overflow: hidden;
    border-right: .15em solid #ffffff;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    font-size: 1.5rem;
    animation: blink-caret .75s step-end infinite;
    
    display: inline-block; /* <-- AJOUT IMPORTANT */
    min-height: 1.5em; /* correspond environ à une ligne de texte */
  font-size: 1.5rem; /* adapte à ton style */
  font-weight: bold;
  text-align: center;
  }
  
  
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white; }
  }
  
  header {
    background-color: #121212; /* gris très foncé au lieu de noir pur */
    color: #ccc; /* gris clair pour un bon contraste */
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 1px solid #2a2a2a; /* petite séparation discrète */
  }
  
  header p {
    margin: 0;
  }

  .social-links {
    margin-top: 20px;
  }
  
  .linkedin-logo img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
  }
  
  .linkedin-logo img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
  }

  .modal {
    display: none; /* caché par défaut */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background-color: #1a1a1a;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    position: relative;
  }
  
  .close-button {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 2rem;
    cursor: pointer;
  }

  footer {
    background-color: #121212; /* gris foncé */
    color: #ffffff; /* texte gris clair */
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 1px solid #2a2a2a;
    margin-top: 3rem;
  }
  
  footer p {
    margin: 0;
  }

  .modal-section {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .modal-image {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  .modal-section p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh; /* Limite la hauteur */
    overflow-y: auto; /* Active le scroll vertical si besoin */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    color: white;
  }

  .project-link {
    display: inline-block;
    margin: 1rem 0;
    color: #fcfcfc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
  }
  
  .project-link:hover {
    
    text-decoration: underline;
  }
  


  /* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
  .hero-content {
    padding-top: 40%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  #typewriter-multi {
    font-size: 1.2rem;
    
  }

  .projects h2,
  .contact h2 {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .contact-form {
    padding: 0 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .contact-form button {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .modal-content {
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  #typewriter-multi {
    font-size: 0.8rem;
  }

  .project-card {
    padding: 1rem;
  }

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

  .contact-form button {
    font-size: 0.95rem;
  }
}

/* S'assure que les images ne débordent pas */
img {
  max-width: 100%;
  height: auto;
}

  
  
  
  
  
  


