* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
    background-color: rgba(249, 249, 249, 0.42);
    color: #1c1c1e;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    width: 70px;  /* Réduit la taille du logo à 120px */
    height: auto;  /* Maintient la proportion de l'image */
    display: block;
    margin: 0 auto;  /* Centre l'image si nécessaire */
}


.navbar a {
    display: inline-block;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #1c1c1e;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #0071e3;
}



/* Section catégories */
.category {
    margin: 3rem 0;
    padding: 2rem;
    background-color: rgba(178, 172, 172, 0.42);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.category h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px; /* pour forcer une hauteur suffisante */
}


.project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Ajout d'une marge supérieure pour les titres dans les cartes de projets */
.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem; /* Ajout d'une marge supérieure */
}


.project-card p {
    font-size: 1rem;
    color: #555;
}

.project-card a {
    display: inline-block;
    margin-top: 1rem;
    color: #0071e3;
    text-decoration: none;
}

.project-card a:hover {
    color: #005bb5;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Vidéo iframe styling */
.project-card iframe {
    width: 100%;
    height: 315px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    display: none; /* Cacher par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

/* Image dans le Modal */
.modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Design pour les boutons */
button.view-project {
    background-color: #0071e3;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1.5rem;
}

button.view-project:hover {
    background-color: #005bb5;
}

footer p {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.linkedin-link {
    color: #0071e3; /* Couleur du lien, ici bleu LinkedIn */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: #005bb5; /* Couleur au survol */
}
