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

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}

/* Barre de navigation */
header {
    background-color: #000000;
    padding: 0 0 0 20px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    font-weight: bold;
    font-size: 1.2rem;
    position: relative; /* Nécessaire pour le positionnement absolu du sous-menu */
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 20px 10px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Menu déroulant */
.dropdown-content {
    display: none; /* Cache le sous-menu par défaut */
    position: absolute;
    background-color: #000000;
    min-width: 160px;
    top: 100%; /* Positionne le sous-menu juste en dessous */
    left: 0;
    border: 1px solid #ccc; /* Ajoute une bordure au sous-menu */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Ajoute une ombre */
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content a {
    color: white; /* Couleur du texte des liens */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: normal; /* Pour des liens moins imposants */
}

.dropdown-content a:hover {
    background-color: #f0f0f0; /* Change la couleur de fond au survol */
}

/* Afficher le sous-menu lors du survol */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Section vidéo */
.video-section {
    height: 100vh;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.video-section video {
    width: 100%;
    height: auto;
    object-fit: cover;
}







/*PAGE QUI-SUIS-JE ?*/

/* Section Qui suis-je */
.about-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Vidéo de profil */
.profile-video {
    width: 300px;
    height: 300px;
    object-fit: cover; /* Remplit le cadre tout en respectant les proportions de la vidéo */
    border-radius: 8px; /* Optionnel, pour arrondir les coins de la vidéo */
}


.text-content {
    flex: 1;
    text-align: left; /* Aligne le texte à gauche */
    max-width: 400px; /* Limite la largeur du texte */
}

.text-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Barre de navigation - liens */
nav ul li a {
    text-decoration: none;
    color: white; /* Couleur par défaut des liens */
    font-weight: bold;
    padding: 20px 10px; /* Espace intérieur autour des liens */
}

nav ul li a:hover {
    color: white; /* Change la couleur au survol */
    text-decoration: underline; /* Optionnel : ajoute un soulignement au survol */
}













/*PAGE ANIMATIONS */

.card {
    border: none;
    transition: transform 0.3s ease;
}

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

.card-title {
    font-weight: bold;
    color: #333;
}

.card-text {
    font-size: 0.9rem;
    color: #555;
}







#desinforme {
   border:2px solid grey;
}





/* Section de sélection de projets */
.projects-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.projects-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.project:hover img {
    transform: scale(1.1); /* Zoom sur l'image */
}

.project .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Couche semi-transparente */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project:hover .overlay {
    opacity: 1;
}

.project .overlay h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}


/* Lightbox styles */
.lightbox {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond sombre */
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrage absolu */
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    object-fit: contain;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox .close:hover {
    color: #ccc;
}




