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

body {
    background-color: #1E2D3D;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    color: #FFFFFF;
    padding-top: 100px; /* Pour compenser la hauteur du header */
}

/* Header */
.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;
}

/* Navigation Desktop */
.nav-bar {
    display: flex;
    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;
}

/* 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);;
    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 {
    margin-right: 40px;
    display: none; /* Affiché en mobile */
    flex-direction: column;
    justify-content: space-between;
    height: 19px; /* Hauteur totale plus petite */
    width: 24px; /* Largeur des barres plus étroite */
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 28px; /* Descendre le toggle de 30px */
    z-index: 1001;
}

.menu-bar {
    width: 120%; /* Largeur des barres */
    height: 3px; /* Épaisseur des barres */
    background-color: #FFFFFF; /* Couleur blanche */
    border-radius: 5px; /* Coins arrondis */
    transition: all 0.3s ease;
}

.menu-toggle:hover .menu-bar {
    background-color: #FFD700; /* Couleur dorée en hover */
}


.nav-bar-mobile.active {
    opacity: 1;
    pointer-events: auto;
}


/* Bouton burger hover */
.menu-toggle:hover .menu-bar {
    background-color: #FFD700; /* Couleur dorée en hover */
}

/* 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;
}

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

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

.pentagon {
    position: absolute;
    background: rgba(255, 215, 0, 0.15); /* Couleur jaune avec transparence */
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: float 10s infinite ease-in-out;
}

/* Taille et position des pentagons */
.pentagon:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 15%;
    animation-duration: 14s;
    animation-delay: -2s;
}

.pentagon:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 40%;
    background: rgba(90, 137, 255, 0.2); /* Bleu clair */
    animation-duration: 12s;
    animation-delay: -3s;
}

.pentagon:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 10%;
    animation-duration: 18s;
    animation-delay: -4s;
}

.pentagon:nth-child(4) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 70%;
    background: rgba(255, 99, 71, 0.2); /* Rouge clair */
    animation-duration: 22s;
    animation-delay: -5s;
}

.pentagon:nth-child(5) {
    width: 60px;
    height: 60px;
    top: 75%;
    left: 25%;
    background: rgba(173, 216, 230, 0.2); /* Bleu ciel */
    animation-duration: 16s;
    animation-delay: -6s;
}

.pentagon:nth-child(6) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 80%;
    animation-duration: 24s;
    animation-delay: -7s;
    background: rgba(255, 215, 0, 0.1); /* Plus transparent */
}

.pentagon:nth-child(7) {
    width: 50px;
    height: 50px;
    top: 30%;
    left: 20%;
    animation-duration: 10s;
    animation-delay: -8s;
}

.pentagon:nth-child(8) {
    width: 90px;
    height: 90px;
    top: 70%;
    left: 85%;
    background: rgba(60, 179, 113, 0.2); /* Vert clair */
    animation-duration: 14s;
    animation-delay: -9s;
}

.pentagon:nth-child(9) {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 50%;
    background: rgba(255, 215, 0, 0.3); /* Plus opaque */
    animation-duration: 20s;
    animation-delay: -10s;
}

.pentagon:nth-child(10) {
    width: 70px;
    height: 70px;
    top: 65%;
    left: 30%;
    animation-duration: 18s;
    animation-delay: -11s;
}

/* Animation de flottement */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(15deg);
    }
    100% {
        transform: translateY(0) rotate(-15deg);
    }
}

/* Contact Form Container */
.contact-container {
    max-width: 800px;
    margin: 50px auto;
    background-color: #2A3B4D;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    color: #FFFFFF;
    text-align: center;
}

.contact-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #FFD700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contact-container p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #D3D3D3;
}

.contact-container .form-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.contact-container .form-group {
    flex: 1 1 calc(50% - 20px);
    background-color: #1E2D3D;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.contact-container .form-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.contact-container .form-group label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-container .form-group input,
.contact-container .form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #2A3B4D;
    color: #FFFFFF;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.contact-container .form-group textarea {
    resize: none;
    height: 100px;
}

/* Submit Button */
.submit-button {
    margin-top: 20px;
    background-color: #FFD700;
    color: #1E2D3D;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    padding: 12px 40px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.submit-button:hover {
    background-color: #FFC700;
    transform: translateY(-3px);
}

/* Success/Error Messages */
.success-message {
    margin-top: 20px;
    padding: 20px;
    background-color: #28a745; /* Vert */
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.error-message {
    margin-top: 20px;
    padding: 20px;
    background-color: #dc3545; /* Rouge */
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.success-message i,
.error-message i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.contact-details {
    margin: 20px 0;
    padding: 15px;
    background-color: #2A3B4D;
    border: 2px solid #FFD700;
    border-radius: 8px;
    text-align: left;
  }
  
  .contact-details p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #FFFFFF;
  }
  
  .contact-details p strong {
    color: #FFD700;
  }
  
  .contact-details a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .contact-details a:hover {
    text-decoration: underline;
    color: #FFC700;
  }

/* Responsive Design */
@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;
    }

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

/* Contact Form Container - Responsive */
@media (max-width: 1024px) {
    .contact-container {
        padding: 30px; /* Réduction des marges pour les écrans moyens */
    }

    .contact-container h1 {
        font-size: 2rem; /* Réduction de la taille de la police pour les titres */
    }

    .contact-container p {
        font-size: 0.9rem; /* Réduction de la taille de la description */
    }

    .contact-container .form-section {
        gap: 15px; /* Réduction des espacements entre les champs */
    }

    .contact-container .form-group {
        padding: 8px; /* Réduction de l'espace intérieur */
    }
}

@media (max-width: 768px) {

    body.no-scroll {
        overflow: hidden; /* Empêche le défilement */
    }
    .contact-container {
        width: 90%; /* Adapte la largeur du formulaire aux petits écrans */
        margin: 30px auto; /* Réduction des marges verticales */
        padding: 20px; /* Réduction des marges internes */
    }

    .contact-container h1 {
        font-size: 1.8rem; /* Réduction de la taille du titre */
    }

    .contact-container p {
        font-size: 0.85rem; /* Réduction de la taille de la description */
    }

    .contact-container .form-section {
        flex-direction: column; /* Les champs passent en une seule colonne */
    }

    .contact-container .form-group {
        flex: 1 1 100%; /* Chaque champ occupe toute la largeur */
        margin-bottom: 15px; /* Ajout d'espacement entre les champs */
    }

    .contact-container .form-group input,
    .contact-container .form-group textarea {
        font-size: 0.9rem; /* Réduction de la taille de police des champs */
        padding: 10px; /* Réduction des marges internes des champs */
    }

    .submit-button {
        font-size: 1rem; /* Réduction de la taille du bouton */
        padding: 10px 30px; /* Ajustement du padding du bouton */
    }
}

@media (max-width: 480px) {
    .contact-container {
        width: 95%; /* Presque pleine largeur pour les très petits écrans */
        padding: 15px; /* Réduction des marges internes */
    }

    .contact-container h1 {
        font-size: 1.6rem; /* Réduction supplémentaire de la taille du titre */
    }

    .contact-container p {
        font-size: 0.8rem; /* Réduction de la taille de la description */
    }

    .contact-container .form-group input,
    .contact-container .form-group textarea {
        font-size: 0.8rem; /* Réduction supplémentaire de la taille de police */
        padding: 8px; /* Ajustement des marges internes des champs */
    }

    .submit-button {
        font-size: 0.9rem; /* Taille réduite du bouton */
        padding: 8px 20px; /* Ajustement du padding du bouton */
    }
}
