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

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; /* Aligne le burger menu à droite */
}

.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);
}

.projets-main {
    margin-top: 100px;
    padding: 50px;
    background-color: #FFFAF0;
}

.projets-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Titre */
.projets-header {
    text-align: center;
    margin-bottom: 60px;
}

.projets-title {
    display: flex;
    flex-direction: column;
    align-items: center
}

.mes {
    font-family: 'Caveat', cursive;
    font-size: 80px;
    color: #333;
    font-weight: 400;
    margin-bottom: -95px;
    z-index: 1;
    position: relative;
    left: -160px;
}

.projets {
    font-family: 'Bayon', sans-serif;
    font-size: 120px;
    color: #0000FF;
    font-weight: normal;
    letter-spacing: -3px;
}

/* Section filtres */
.filters-section {
    margin-bottom: 60px;
}

.filters-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-filter {
    font-family: 'Bayon', sans-serif;
    background-color: transparent;
    border: 2px solid #0000FF;
    color: #0000FF;
    padding: 8px 20px;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
}

.btn-filter:hover {
    background-color: #0000FF;
    color: white;
}

/* Style pour le bouton "RÉINITIALISER" */
.btn-reset {
    border: none;
    background-color: transparent;
    color: #0000FF;
    font-family: 'Bayon', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
}

/* Filtres en ligne */
.filters-inline {
    display: none;
    border: 2px solid #0000FF;
    border-radius: 5px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.filters-inline.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.filters-form {
    display: flex;
    gap: 40px;
    align-items: center;
}

.filter-item {
    position: relative;
}

.custom-select {
    font-family: 'Bayon', sans-serif;
    color: #0000FF;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.select-label {
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.custom-select:hover .dropdown-arrow {
    transform: translateY(2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background-color: white;
    border: 2px solid #0000FF;
    border-radius: 5px;
    padding: 10px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-content.active {
    display: block;
}

.dropdown-content label {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #333;
}

.dropdown-content label:hover {
    background-color: #f0f0f0;
}

.dropdown-content input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    accent-color: #0000FF;
}

/* Toggle Professionnel/Académique */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0000FF;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #0000FF;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Grille de projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Uniformiser la hauteur des cartes de projets */
.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-image {
    flex-shrink: 0;
    height: 250px;
    overflow: hidden;
}

.project-info {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover .project-image img {
    filter: grayscale(100%);
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 100%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.project-info {
    padding: 20px;
    background-color: #0000FF;
    color: white;
}

.project-title {
    font-family: 'Bayon', sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-family: 'Caveat', cursive;
    font-size: 14px;
    padding: 4px 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

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

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

    .nav-menu a {
        font-size: 18px;
    }

    .projets-main {
        padding: 20px;
    }

    .mes {
        font-size: 50px;
    }

    .projets {
        font-size: 70px;
    }

    .projets-title {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .filters-row {
        flex-direction: column;
        gap: 15px;
    }

    .filters-form {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .filter-item {
        width: 100%;
    }

    .custom-select {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-content {
        width: 100%;
        left: 0;
        right: 0;
    }

    .toggle-container {
        flex-direction: row;
        gap: 10px;
    }

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