@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
body {
    font-family: Arial, sans-serif;
}
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    box-sizing: border-box;
}

* {
    box-sizing: border-box; /* Assurez-vous que les marges et les paddings ne dépassent pas */
}
nav a{
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
}

#projet{
    font-family: serif;
    font-size: 3rem;
    font-weight: 700;
}


/* Si Animate.css est déjà inclus dans ton projet */
@keyframes zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
  
  /* Application de l'animation */
  .animate_zoom {
    animation: zoom 2s infinite;
  }
  @keyframes headShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(5px); }
  }
  
  .headshake {
    display: inline-block;
    animation: headShake 0.6s ease-in-out infinite;
  }
.navbar-nav .nav-link {
    transition: color 0.3s ease; /* Ajout d'une transition douce */
    color: white;
    margin: 10px; /* Espacement extérieur autour de chaque lien */
    padding: 8px 15px; /* Espacement intérieur du texte */
    display: inline-block; /* S'assure que le padding fonctionne correctement */
    text-decoration: none; /* Supprime le soulignement du texte */
}

.nav-link:hover {
    border-radius: 10px; /* Applique un arrondi aux coins */
    border: 2px solid #ebe52c; /* Ajoute une bordure colorée */
    background-color: #e3e2dd !important; /* Change la couleur de fond au survol */
    transition: all 0.3s ease-in-out; /* Ajoute une transition fluide */
}


/* #home {
    opacity: 0;
    transform: translateY(-100px); 
    animation: slideDown 2s ease-out forwards; 
  }
  
  @keyframes slideDown {
    to {
      opacity: 1;
      transform: translateY(0); 
    }
  }
  #contact {
    opacity: 0;
    transform: translateY(100px); 
    animation: slideUp 1.5s ease-out forwards; 
  }
  @keyframes slideUp {
    to {
      opacity: 1;
      transform: translateY(0); 
    }
  }
  #animation {
    opacity: 0;
    transform: translateY(100px); 
    animation: slideUp 1.5s ease-out forwards;
  }
  
  @keyframes slideUp {
    to {
      opacity: 1;
      transform: translateY(0); 
    }
  } */
/* Effet sur l'image */
#mostafa {
    margin-bottom: 50px;
    width: 90%;
    height: 80%;
    animation: move 5s infinite alternate; /* Animation */
    transition: transform 0.5s ease-in-out;
    border-radius: 60px;
}
#info{
    margin-bottom: 150px;
}

@keyframes move {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px); /* Déplace l'image de 20px */
    }
    100% {
        transform: translateX(0);
    }
}



/* Styling du texte */
#home h1 {
    font-size: 3rem;
    font-family: Georgia, serif;
    color: #f4f1f1;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 150px;
}

#home h3 {
    font-size: 2rem;
    font-family: system-ui;
    color: #f3f2f1;
    margin-bottom: 20px;

}

#home p {
    font-size: 1.2rem;
    font-family: serif;
    color: #ecebe4;
    margin-bottom: 20px;

}

/* Centre le contenu */
.home .container {
    margin-top: 50px;
}

/* Bouton */
#home .btn {
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease;

}

#home .btn-info {
    background-color: #d7af2b;
    border: none;
}

#home .btn-info:hover {
    background-color: #eef4f4; /* Changer la couleur au survol */
}

/* Responsive */
@media (max-width: 768px) {
    .home .row {
        text-align: center;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    #home h3 {
        font-size: 1.8rem;
    }

    #home p {
        font-size: 1rem;
    }


}
.resume h1{
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
}
.resume h2{
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}
.resume .card-header {
    background-color: #f8f9fa;
    font-weight: bold;
}

.resume .card-body p {
    color: #6c757d;
}

.resume .card-text {
    font-size: 1.1rem;
}

.resume ul {
    padding-left: 20px;
}

.resume ul li {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.resume ul li i {
    margin-right: 10px;
}

.resume .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.resume .col-md-6 {
    margin-bottom: 20px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Grille responsive pour les projets */
    gap: 20px;
    padding: 20px;
    justify-items: center; /* Centrer les cartes */
}

.project-card {
    position: relative;
    overflow: hidden;
    width: 90%; /* Utiliser 100% pour occuper toute la largeur disponible */
    height: auto; /* Ajuste la hauteur en fonction du contenu */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.project-card img {
    width: 100%; /* Image prend toute la largeur */
    height: auto; /* Hauteur automatique pour maintenir le ratio d'image */
    object-fit: cover; /* Garde le ratio sans déformation */
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1); /* Agrandir l'image au survol */
}

.project-card:hover {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Fond sombre */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay h3, .overlay p {
    margin: 10px;
    text-align: center;
}



/* Fenêtre modale pour la vidéo */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Fond noir */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%; /* Largeur de la vidéo à 80% */
    max-width: 900px; /* Largeur maximale */
}

.modal-content video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}

.close-btn:hover {
    background-color: #cc0000;
}

/* Responsive Design: Grille de projets */
@media (max-width: 1024px) {
    .projects {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Réduire la taille des cartes sur les tablettes */
    }
    
    .project-card {
        width: 100%;
    }

    .modal-content {
        width: 90%; /* Modale plus petite sur les écrans plus petits */
    }
}

@media (max-width: 768px) {
    .projects {
        grid-template-columns: 1fr; /* Une seule colonne sur les petits écrans */
    }

    .modal-content {
        width: 95%; /* Modale encore plus petite sur les petits écrans */
    }

    button {
        font-size: 14px; /* Réduire la taille du bouton sur petits écrans */
        padding: 8px 15px;
    }

    .close-btn {
        font-size: 16px; /* Réduire la taille du bouton X */
    }
}

@media (max-width: 480px) {
    .overlay h3 {
        font-size: 18px; /* Réduire la taille du titre sur petits écrans */
    }

    .overlay p {
        font-size: 14px; /* Réduire la taille du texte sur petits écrans */
    }

    button {
        font-size: 12px; /* Réduire encore plus la taille du bouton */
        padding: 6px 12px;
    }

    .modal-content video {
        width: 100%; /* S'assurer que la vidéo prend toute la largeur sur les plus petits écrans */
    }
}


#contact {
    background-color: #343a40;
    padding-top: 50px;
    padding-bottom: 50px;
}

#contact h2 {
    font-family: Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
}
#contact p {
    font-size: 1.2rem;
    font-family: serif;
    color: #ecebe4;
    margin-bottom: 20px;

}

#contact .form-label {
    font-size: 1.1rem;
    font-family: serif;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#contact .form-control {
    border-radius: 10px;
    background-color: #495057;
    border: 1px solid #6c757d;
    color: white;
    font-size: 1rem;
    padding: 0.8rem 1rem;
}

#contact .form-control:focus {
    background-color: #6c757d;
    border-color: #f39c12;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
}

#contact .btn-warning {
    background-color: #f39c12;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.8rem;
    border-radius: 10px;
}

#contact .btn-warning:hover {
    background-color: #e67e22;
    color: #fff;
    cursor: pointer;
}

#contact .btn-warning:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
}

#contact .text-light {
    font-size: 1.1rem;
}


/* Footer */
footer {
    background-color: #343a40;
}

footer p {
    margin-bottom: 0;
    font-size: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #007bff;
}
/* Section About avec fond sombre */
#about {
    padding: 50px 0;
    background-color: #343a40; /* Fond sombre */
}

#about img {
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto; /* Image responsive */
}

#about h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    
}

#about p {
    font-size: 1rem;
    line-height: 1.8;
    color: #dcdcdc; /* Texte gris clair */
    text-align: justify;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

/* Responsiveness */
@media (max-width: 768px) {
    #about img {
        width: 80%; /* Image plus petite sur mobile */
        margin: 0 auto; /* Centrer l'image */
    }

    #about p {
        font-size: 0.9rem;
    }

    #about h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    #about img {
        width: 100%;
    }

    #about p {
        font-size: 0.85rem;
    }

    #about h2 {
        font-size: 1.5rem;
    }
}
