* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header-banner {
    background-color: #333; /* Couleur de fond sombre */
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Effet d'ombre pour la bannière */
    border-radius: 8px; /* Coins arrondis pour un look moderne */
    margin: 20px 0; /* Espace au-dessus et en-dessous de la bannière */
    z-index: 2; /* S'assure qu'elle est visible au-dessus de la vidéo */
}

.header-banner h1 {
    color: white; /* Couleur du texte */
    font-size: 2.5rem; /* Taille du texte */
    font-weight: bold;
    margin: 0; /* Supprime les marges par défaut */
    letter-spacing: 1.5px; /* Espacement entre les lettres pour l'élégance */
}

@media (max-width: 768px) {
    .header-banner h1 {
        font-size: 1.8rem; /* Taille de police réduite sur mobile */
    }
}


/* Style pour la vidéo en arrière-plan */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* La vidéo reste derrière tous les éléments */
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Assure que la vidéo couvre tout l'écran sans distorsion */
    transform: translate(-50%, -50%);
}

.overlayvideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Augmente l'opacité à 0.8 ou même 0.9 */
    z-index: 1;
}

/* Styles for the About Me section */
#about-me {
    margin: 50px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Espace entre l'image et le texte */
    flex-wrap: wrap; /* Pour que le texte passe en dessous si l'écran est trop petit */
}

.profile-pic {
    width: 150px; /* Taille de l'image */
    height: 150px;
    object-fit: cover; /* Assure un bon ajustement de l'image */
    border-radius: 50%; /* Rend l'image ronde */
    border: 2px solid #000; /* Ajoute une bordure à l'image */
}

.about-text {
    flex: 1; /* Le texte prend tout l'espace restant */
}

.about-text p {
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Pour que l'image passe au-dessus du texte sur mobile */
        text-align: center; /* Centrer le texte sur mobile */
    }

    .profile-pic {
        margin-bottom: 15px; /* Espace entre l'image et le texte sur mobile */
    }
}

/* Styles for the Services section */
#services {
    margin: 50px 0;
    text-align: center; /* Centre le texte dans la section */
}

.services-container {
    display: flex;
    flex-wrap: wrap; /* Permet d'adapter les services sur plusieurs lignes */
    justify-content: center; /* Centre les services dans la ligne */
    gap: 20px; /* Espace entre les blocs de service */
}

.service {
    background-color: #000000; /* Couleur de fond des blocs */
    border: 1px solid #ddd; /* Bordure des blocs */
    border-radius: 8px; /* Coins arrondis */
    padding: 20px; /* Espacement interne */
    width: 220px; /* Largeur fixe pour chaque bloc */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre pour effet de profondeur */
    transition: transform 0.2s; /* Animation de transformation */
    position: relative; /* Nécessaire pour positionner l'icône en surbrillance */
}

.service:hover {
    transform: scale(1.05); /* Agrandit légèrement le bloc au survol */
}

.service-icon {
    width: 50px; /* Taille de l'icône */
    height: 50px;
    margin-bottom: 10px; /* Espace entre l'icône et le texte */
    transition: filter 0.3s, transform 0.3s; /* Transition pour le filtre et la transformation */
}

.service:hover .service-icon {
    filter: brightness(1.3); /* Augmente la luminosité de l'icône au survol */
    transform: scale(1.2); /* Agrandit légèrement l'icône au survol */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    position: relative;
    z-index: 2; /* Positionne le contenu au-dessus de la vidéo et de l'overlay */
    color: white; /* Le texte en blanc ressortira bien sur un fond sombre */
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 36px;
    color: #ffffff;
}

header p {
    font-size: 18px;
    color: #ffffff;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #ffffff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category {
    background-color: #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    cursor: pointer;
}

.category img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category h3 {
    font-size: 22px;
    color: #ffffff;
    padding: 15px;
}

.category:hover {
    transform: scale(1.05);
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.project {
    background-color: #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 48%;
}

.project img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project .details {
    padding: 15px;
}

.project h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.project p {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.4;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    background-color: #000000;
    color: #ffffff;
}

footer p {
    font-size: 14px;
}

@media (max-width: 768px) {
    .project {
        width: 100%;
    }
}

/* Styles pour la fenêtre modale */
.modal {
    display: none; /* Masqué par défaut */
    position: fixed; /* Position fixe pour toujours être visible */
    z-index: 1000; /* Assure qu'elle est au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%; /* Prend tout l'espace de la page */
    height: 100%; /* Prend toute la hauteur de la page */
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir transparent */
    justify-content: center;
    align-items: center;
    overflow: auto;
}

/* Style du contenu de la modale */
.modal-content {
    background-color: #000000;
    margin: 5% auto; /* Centrer la modale */
    padding: 20px;
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Ombre */
    width: 80%; /* Ajustez selon vos besoins */
    max-width: 900px; /* Limite la largeur maximale */
    height: 80vh; /* Limite la hauteur */
    overflow-y: auto; /* Permet de scroller si le contenu est trop grand */
}

/* Style du bouton de fermeture */
.modal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Pour le contenu textuel dans la modale */
#modal-body {
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
}

/* Conteneur de l'image */
.img-container {
    position: relative;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.img-container img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease; /* Transition douce pour le flou */
}

/* Style de la superposition */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);
    font-size: 24px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease; /* Transition douce pour le texte */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Contour noir avec une ombre portée */
}

/* Effet au survol : flouter l'image et afficher le texte */
.img-container:hover img {
    filter: blur(5px);
}

.img-container:hover .overlay {
    opacity: 1;
}

/* Style pour les images dans la modal */
.project-modal-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Style pour les vidéos intégrées */
.modal-content iframe {
    width: 100%;
    height: 315px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.hidden-desc {
    display: none;
}

#readMoreBtn {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}

#readMoreBtn:hover {
    background-color: #555;
}
