:root{
    --big-text-size: 1.75em;
    --medium-text-size: 1.2em;
    --small-text-size: 0.9em;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Poppins', sans-serif;
    overflow: scroll;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
}

/* Menu styles */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding:5px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 35px;
}

.menu-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}



@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


.sidebar-container {
    position: fixed;
    top: 50px;
    width: auto;
    right: 0;
    height: auto;
    margin-right: 0;
    margin-bottom: 2%;
    z-index: 1000;
}

.sidebar {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    flex-direction: column;
    display: none;
    overflow-y: auto;
}

/* Sidebar open state */
.sidebar.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Sidebar toggle button */
.sidebar-toggle {
    cursor: pointer;
    font-size: 24px;
    right: 1%;
}


.tag-selection, .year-selection {
    margin: 10px 15px;
}

.tag-selection h3, .year-selection h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9em;
}

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

.tag-container label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
    color: #333;
    transition: color 0.3s;
}

.tag-container label:hover {
    color: #79a3d9;
}

.tag-container input[type="checkbox"] {
    margin-right: 5px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #79a3d9;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s;
}

.tag-container input[type="checkbox"]:checked {
    background-color: #79a3d9;
}

.tag-container input[type="checkbox"]:checked::before {
    content: '\2713';
    display: block;
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
}

select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 0.9em;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

select:hover, select:focus {
    border-color: #79a3d9;
    outline: none;
}

.back-button {
    padding: 10px 15px;
    background-color: #79a3d9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #6f7bbf;
}

/* Adjust body padding to account for fixed menu */
body {
    padding-top: 80px;
}

/* Content styles */
.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-project {
    display: flex;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-project:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.featured-media {
    flex: 1;
    max-width: 60%;
}

.featured-media video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-media img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-info {
    flex: 1;
    padding: 30px;
}

.featured-info h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.featured-info h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.featured-info .additional-info {
    bottom: 0;
    position: relative;
}

#featured-card-description {
    display: none;
}

#featured-card-article {
    display: inherit;
}


.separator {
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, #79a3d9, transparent);
    margin: 40px auto;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #79a3d9;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.grid-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.item-description {
    padding: 20px;
}

.item-description h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #2c3e50;
}

.item-description p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9em;
    line-height: 1.6;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.popup.show {
    opacity: 1;
}

.popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 90%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: space-between;
    height: auto;
    max-height: 75%;
    overflow: auto;
}

.popup.show .popup-content {
    transform: scale(1);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #bdc3c7;
    transition: color 0.3s ease;
    z-index: 1;
}

.close:hover {
    color: #e74c3c;
}

.popup-media {
    width: 50%;
    margin-bottom: 20px;
}

.popup-media-content {
    width: 100%;
    /* max-height: 560px; */
    object-fit: contain; /* Garde les proportions originales */
}

.media-container {
    width: 100%;
}

.article-separator {
    width: 2px; /* Largeur du séparateur */
    /* background-color: #8b8b8b; */
    background-color: rgba(0, 0, 0, 0);
    height: auto; /* Le séparateur prend la hauteur de l'image */
    margin: 0 20px; /* Espacement entre l'image et le texte */
    border-radius: 5px;
}

.popup-info {
    width: 90%;
}

.popup-details h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: var(--big-text-size);
    font-weight: 500;
}

.popup-details .description {
    color: #34495e;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-details .artist-link {
    color: #79a3d9;
    transition: color 0.3s;
    font-size: var(--medium-text-size);
    padding: 0 5px;
}

.additional-info {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    font-size: var(--small-text-size);
}

.additional-info p {
    margin: 5px 0;
}

.popup-details {
    width: 50%;
    padding-left: 5px;
    position: relative;
}

.popup-details h3 {
    color: #2c3e50;
    font-size: var(--medium-text-size);
    font-weight: 500;
    margin-bottom: 15px;
}

.popup-details p {
    color: #34495e;
    line-height: 1.6;
    font-size: var(--small-text-size);
}

.media-and-arrows-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    width: 50%;
    height: 100%;

}

.arrow {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}


.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

@media (max-width: 768px) {
    .arrow {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .media-and-arrows-container {
        width: auto;
    }
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    border: none;
    font-size: 24px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
}

.back-to-top.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

footer {
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    padding: 10px;
    text-align: center;
    width: 100%;
    font-size: 0.8em;
}


@media (max-width: 768px) {


    .tag-selection, .year-selection {
        margin: 10px 15px;
        width: 100%;
    }

    .back-button {
        margin-top: 15px;
        align-self: flex-end;
    }

    .featured-project {
        flex-direction: column;
    }

    .featured-project .additional-info {
        display: none;
    }

    .featured-media {
        max-width: 100%;
    }

    #featured-card-description {
        display: inherit;
    }

    #featured-card-article {
        display: none;
    }

    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    
    
    /* Menu things */
    .menu {
        flex-direction: row;
    }

    
    
    .back-to-top {
        display: block;
    }
    
    .popup-details {
        width: 100%;
    }
    .popup-content {
        width: 75%;
        flex-direction: column;
    }

    .popup-info {
        width: 100%;
    }

    .popup-media {
        width: 100%;
    }

    .article-separator {
        display: none;
    }
    
}