@import url('https://fonts.googleapis.com/css2?family=Bayon&family=Caveat:wght@400;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFAF0;
    color: #333;
}

/* Header */
header {
    background-color: #FFFAF0;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2C26E8;
}

.btn-contact {
    background-color: #2C26E8;
    color: white !important;
    padding: 10px 25px;
    transition: background-color 0.3s;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.30);
}

.btn-contact:hover {
    background-color: #0000CC;
}

/* Burger Menu - caché par défaut */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #2C26E8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Main Content */
main {
    margin-top: 120px;
    padding: 0 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Titre du projet */
.projet-titre {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.titre-bayon {
    font-family: 'Bayon', sans-serif;
    font-size: 80px;
    color: #0000FF;
    text-transform: uppercase;
    display: block;
}

.titre-caveat {
    font-family: 'Caveat', cursive;
    font-size: 60px;
    color: #333;
    display: block;
    margin-top: -30px;
    position: relative;
    left: 100px;
}

.projet-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 40px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Tag catégorie */
.tag-categorie {
    font-family: 'Bayon', sans-serif;
    background-color: #0000FF;
    color: white;
    padding: 8px 20px;
    display: inline-block;
    font-size: 16px;
    text-transform: uppercase;
    transform: rotate(351deg);
    position: absolute;
    z-index: 10;
    left: -20px;
    top: 0px;

}

/* Galerie d'images */
.gallery {
    display: flex;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.gallery-item {
    padding: 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Conteneur infos */
.info-wrapper {
    display: flex;
    gap: 100px;
    margin: 80px 0;
    justify-content: center;
    align-items: flex-start;
}

/* Section Description */
.description-section {
    flex: 1;
    max-width: 700px;
}

.section-title {
    font-family: 'Bayon', sans-serif;
    font-size: 32px;
    color: #0000FF;
    margin-bottom: 20px;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* Section Tags à droite */
.tags-section {
    flex: 0 0 350px;
}

/* Tags et compétences wrapper - TOUS alignés horizontalement */
.tags-competences-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

/* Supprimer les conteneurs individuels pour tags et compétences */
.tags-container,
.competences-container {
    display: contents; /* Les éléments enfants se comportent comme s'ils étaient directement dans le parent */
}

/* Style uniforme pour tous les tags, année BUT et compétences */
.tag-box,
.competence-box {
    font-family: 'Bayon', sans-serif;
    border: 2px solid #0000FF;
    color: #0000FF;
    padding: 8px 15px;
    font-size: 14px;
    text-transform: uppercase;
    background-color: transparent;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    display: inline-block;
    white-space: nowrap; /* Empêche le texte de se couper */
}

/* Logiciels */
.logiciels-title,
.apprentissages-title {
    font-family: 'Bayon', sans-serif;
    font-size: 18px;
    color: #0000FF;
    margin-top: 30px;
    margin-bottom: 15px;
}

.logiciels-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.logo-logiciel {
    width: 50px;
    height: auto;
}

/* Apprentissages */
.apprentissages-list {
    list-style: none;
    padding: 0;
}

.apprentissages-list li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.apprentissages-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0000FF;
    font-weight: bold;
}

/* Style pour le bouton Voir le PDF associé */
.btn-pdf {
    background-color: blue;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
    margin-top: 20px;
    font-family: 'Bayon', sans-serif;
    text-transform: uppercase;
}

.btn-pdf:hover {
    background-color: #0000CC;
}

/* Footer */
footer {
    background-color: #0000FF;
    color: white;
    padding: 15px 50px;
    margin-top: 100px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.7;
}

.footer-text p {
    font-size: 14px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .projet-titre {
        font-size: 60px;
    }
    
    .info-wrapper {
        flex-direction: column;
        gap: 50px;
    }
    
    .tags-section {
        flex: 1;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 20px;
        margin-top: 80px;
    }

    header {
        padding: 15px 20px;
    }

    /* Afficher le menu burger */
    .burger-menu {
        display: flex;
    }

    /* Menu navigation en mobile */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #FFFAF0;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
        display: flex;
    }

    .nav-menu a {
        font-size: 18px;
    }
    
    .projet-titre {
        font-size: 40px;
    }
    
    .projet-subtitle {
        font-size: 30px;
    }
    
    .gallery-item img {
        width: 100%;
        height: auto;
    }

    .tag-categorie {
        left: -10px;
        padding: 6px 15px;
        font-size: 14px;
    }

    .titre-bayon {
        font-size: 50px;
    }

    .titre-caveat {
        font-size: 30px;
        padding-top: 10px;
        left: 0;
    }

    .section-title {
        margin-left: 0;
    }

    .description-text {
        font-size: 14px;
        margin-left: 0;
        width: 100%;
    }

    /* Responsive pour les tags */
    .tags-competences-wrapper {
        justify-content: flex-start;
    }

    .tag-box,
    .competence-box {
        font-size: 12px;
        padding: 6px 12px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .footer-container {
        gap: 15px;
        flex-direction: column;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .footer-text p {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 12px;
    }
}