/* Base styles */
body {
    background-color: #b10707;
}

header {
    grid-column: 1/span 3;
    grid-row: 2;
    width: fit-content;
    line-height: 6vw;
}

p {
    color: #FFF0DF;
}

.menu {
    color: #FFF0DF;
}

.menu li a {
    color: #FFF0DF;
}

.informations {
    background-color: #b10707;
    color: #FFF0DF;
}

.colorcircle {
    color: #FFF0DF;
}

.circle1 { background-color: #b10707; border: 2px solid #FFF0DF; }
.circle2 { background-color: #737373; border: 2px solid #FFF0DF; }
.circle3 { background-color: #2F2F2F; border: 2px solid #FFF0DF; }

.text-overlay {

    color: #FFF0DF !important;
}

.contact, .mywork, .informations {
    background-color: #b10707;
    color: #FFF0DF;
}

/* Styles pour l'effet de zoom */
.projet {
    overflow: hidden;
    position: relative;
}

.projet img {
    transition: transform 0.5s ease, filter 0.3s ease;
    will-change: transform;
}

.projet img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
    cursor: none;
}


/* Image Popup Styles */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    transition: transform 0.3s ease;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.close-popup:hover {
    transform: scale(1.2);
}

.image-popup.fade-in {
    display: flex;
    animation: fadeIn 0.2s ease-out;
    opacity: 1;
    visibility: visible;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Styles pour mobile */
@media screen and (max-width: 768px) {
    .popup-content img {
        max-width: 95%;
        max-height: 80vh;
    }

    .close-popup {
        top: 15px;
        right: 15px;
        font-size: 35px;
    }

    .projet img {
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
    }
}

/* Classe pour bloquer le scroll */
.no-scroll {
    overflow: hidden !important;
}