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

body {
    background-color: #1E2D3D;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(15, 18, 28, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFFFFF;
}

.nav-bar {
    margin-left: auto;
}

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

.nav-bar li {
    display: inline;
}

.nav-bar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-bar a:hover {
    background-color: #FFD700;
    color: #1E2D3D;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 10s infinite alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #FFD700, transparent);
    top: 10%;
    left: 15%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #5A89FF, transparent);
    top: 50%;
    right: 20%;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #FFFFFF, transparent);
    bottom: 15%;
    left: 40%;
    transform: translateX(-50%);
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #FFD700, transparent);
    top: 30%;
    right: 15%;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 70vh;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.hero-content {
    max-width: 600px;
    margin-top: 40px;
}

.hero-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1rem;
    color: #E0E0E0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    background-color: #FFD700;
    color: #1E2D3D;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    background-color: #ffffff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.navigation-cards {
    display: flex;
    justify-content: center;
    gap: 25px; /* Augmentation de l'espace entre les cartes */
    margin: -30px auto;
    flex-wrap: wrap;
}

.card {
    background-color: #2A3B4D;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 240px; /* Légère augmentation de la largeur */
    padding: 20px; /* Légère augmentation du padding */
    text-align: center;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFD700;
    font-size: 2.5rem;
    margin-bottom: 15px; /* Légère augmentation de la marge */
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px; /* Légère augmentation de la marge */
}

.card-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #D3D3D3;
}

.card-button {
    background-color: #FFD700;
    color: #1E2D3D;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    margin-top: auto;
}

.card-button:hover {
    background-color: #ffffff;
    color: #1E2D3D;
}

/* Header Navigation Mobile */
.nav-bar-mobile {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fond sombre */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none; /* Désactive les clics */
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}
.nav-bar-mobile.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-bar-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.nav-bar-mobile a {
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-bar-mobile a:hover {
    color: #FFD700;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none; /* Caché par défaut */
    flex-direction: column;
    justify-content: space-around;
    height: 25px;
    width: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Close Button */
.close-menu {
    display: none; /* Masqué par défaut */
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Toujours visible au-dessus de l'overlay */
}

.close-menu:hover {
    color: #FFD700;
}


/* Responsivité pour tablettes (max 768px) */
@media (max-width: 768px) {
    .nav-bar {
        display: none;
    }

    /* Affiche le menu mobile */
    .nav-bar-mobile {
        display: flex;
    }

    /* Affiche le bouton toggle */
    .menu-toggle {
        display: flex;
    }

    /* Affiche le bouton close */
    .close-menu {
        display: block;
    }
    body.no-scroll {
        overflow: hidden; /* Empêche le défilement */
    }

    .hero-section {
        height: auto; /* Adapte la hauteur automatiquement */
        margin-top: 50px; /* Ajoute un espacement pour les tablettes */
    }

    .hero-image {
        width: 200px; /* Réduction de la taille de l'image */
        height: 200px;
    }

    .hero-title {
        font-size: 1.8rem; /* Texte légèrement plus petit */
    }

    .navigation-cards {
        gap: 15px; /* Réduction de l'espace entre les cartes */
        padding: 20px; /* Ajout de marges internes */
        margin-top: 10px;
    }

    .card {
        width: 180px; /* Cartes plus compactes */
    }

    .cta-button {
        padding: 10px 25px; /* Réduction du padding */
    }

    .hero-section {
        margin-top: 100px; /* Plus d'espace pour les tablettes */
    }
    
    .hero-image {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
        padding: 0 15px; /* Réduction des marges sur les côtés */
    }
    
    .cta-button {
        margin-top: 15px;
        margin-bottom: 20px;
    }
    
}

/* Responsivité pour smartphones (max 480px) */
@media (max-width: 480px) {
    .nav-bar {
        display: none;
    }

    /* Affiche le menu mobile */
    .nav-bar-mobile {
        display: flex;
    }

    /* Affiche le bouton toggle */
    .menu-toggle {
        display: flex;
    }

    /* Affiche le bouton close */
    .close-menu {
        display: block;
    }

    .hero-section {
        height: auto; /* Ajustement automatique de la hauteur */
        text-align: center;
        margin-top: 30px; /* Plus d'espace pour le contenu */
    }

    .hero-image {
        width: 150px; /* Taille compacte pour petits écrans */
        height: 150px;
    }

    .hero-title {
        font-size: 1.5rem; /* Réduction du titre */
    }

    .hero-description {
        font-size: 0.8rem; /* Texte plus petit pour optimiser l'espace */
        line-height: 1.4;
    }

    .navigation-cards {
        flex-direction: column; /* Les cartes passent en colonne */
        gap: 10px;
        margin-top: 10px;
    }

    .card {
        width: 100%; /* Les cartes prennent toute la largeur */
    }

    .cta-button {
        padding: 8px 20px; /* Réduction du padding */
    }


    .hero-section {
        margin-top: 120px; /* Descend encore plus la photo pour les petits écrans */
    }
    
    .hero-image {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 15px;
        padding: 0 10px; /* Moins de marge sur les côtés */
    }
    
    .cta-button {
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
}


