@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


*{
    margin: 0;
    padding: 0;
}

body{
    font-family: "DM Serif Display";
    height: 100vh;
    display: flex;
    background-color: white;
}

p{  
    font-size: 16px;
    font-family: "DM Sans";
}

aside{
    position: fixed;
    height: 100%;
    width: 350px;
    padding: 64px 64px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

aside .infos{
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.infos__identity{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.infos__identity img{
    width: 150px;
    aspect-ratio: 1/1;
    border-radius: 100%;
    margin-bottom: 16px;
}

.infos__identity h1{
    font-size: 32px;
    font-weight: 300;
    text-wrap: nowrap;
}

.infos__identity p{
    text-wrap: nowrap;
}

.filters__group{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group__title{
    cursor: pointer;
    font-size: 1.1rem;
}

.group__title.open {
    color: rgb(158, 22, 22);
}


.group__subfilters{
    margin-left: 30px;
    display: none;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.subfilter{
    cursor: pointer;
    font-size: 1;
}

.group__subfilters .subfilter.selected{
    color: rgb(158, 22, 22);
}

.infos__filters{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact{
    width: 100%;
    text-align: center;
}

.contact a{
    color: black;
}

.gallery{
    margin-left: 350px;
    margin-top: 10px;
    width: calc(100vw - 400px);
    display: flex;
    gap: 10px;
    box-sizing: border-box;
    position: relative;
}

.gallery .col{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 25%;
    box-sizing: border-box;
}

.gallery .media{
    cursor: pointer;
    width: 100%;
}


.full-view{
    position: fixed;
    z-index: 10;
    margin-left: 350px;
    display: none;
    width: calc(100vw - 350px);
    height: 100vh;
    padding: 10px;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;
}

.full-view .infos{
    display: flex;
    gap: 64px;
    padding: 8px;
    height: fit-content;
    box-sizing: border-box;
    
}

.full-view>div{
    height: calc(100% - 40px);
    display: flex;
    gap: 32px;
    align-items: center;
}

.full-view>div img{
    width: 100%;
    object-fit: contain;
    height: 100%;
}


.full-view>div video{
    width: 100%;
    object-fit: contain;
    height: fit-content;
}

.full-view .more-infos{
    width: 500px;
    padding: 32px 64px 32px 16px;
    box-sizing: border-box;
}

.full-view .more-infos h2{
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 8px;
}

.full-view .more-infos p{
    text-align: justify;
}

.full-view .more-infos .back{
    text-align: justify;
    margin-top: 16px;
    opacity: 0.6;
}

.full-view .more-infos .back:hover{
    cursor: pointer;
    opacity: 1;
    text-decoration: underline;
}



.media-wrapper-video{
    position: relative;
    z-index: 0;
}

.media-wrapper-video::before{
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(./assets/play.svg);
    background-size: 15%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
    z-index: 10;
    pointer-events: none;
}



/* Bouton mobile caché sur desktop */
.mobile-filters-toggle,
.mobile-filters-close, 
.filters-clear {
    display: none;
    font-family: "Inter";
}

.selected-filter{
    display: none;
}

/* ===============================
   VERSION MOBILE
   =============================== */
@media (max-width: 768px) {

    html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        height: auto;
    }

    body {
        display: block;
    }

    .selected-filter{
        display: flex;
    }

    /* --------- ASIDE / HEADER --------- */

    aside {
        position: static;
        width: 100%;
        height: auto;
        padding: 16px 16px 8px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    aside .infos {
        gap: 16px;
    }

    /* image sur le côté, texte (h1 + p) l'un au-dessus de l'autre */
    .infos__identity {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 2px;
        align-items: center;
    }

    .infos__identity img {
        width: 72px;
        aspect-ratio: 1/1;
        grid-row: 1 / span 2;
        grid-column: 1;
        margin-bottom: 0;
    }

    .infos__identity h1 {
        grid-column: 2;
        grid-row: 1;
        font-size: 20px;
        font-weight: 300;
        text-wrap: initial;
        align-self: end;
    }

    .infos__identity p {
        align-self: start;
        grid-column: 2;
        grid-row: 2;
        font-size: 13px;
        text-wrap: initial;
    }

    .contact {
        width: 100%;
        text-align: left;
        font-size: 13px;
        padding-top: 4px;
    }

    .contact p {
        font-size: 13px;
    }

    /* --------- BOUTON OUVERTURE FILTRES --------- */

    .mobile-filters-toggle, .filters-clear {
        display: inline-block;
        margin-top: 8px;
        padding: 8px 12px;
        font-size: 13px;
        background: black;
        color: white;
        border: none;
        text-transform: uppercase;
    }

    /* --------- MENU FILTRES EN OVERLAY --------- */

    .infos__filters {
        position: fixed;
        inset: 0;
        background: white;
        z-index: 1500;
        padding: 16px;
        box-sizing: border-box;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.25s ease;
    }

    body.filters-open .infos__filters {
        transform: translateY(0);
    }

    .mobile-filters-close {
        display: inline-block;
        margin-bottom: 12px;
        padding: 6px 10px;
        font-size: 13px;
        background: transparent;
        border: 1px solid black;
        text-transform: uppercase;
    }

    /* Groupes toujours ouverts, séparés visuellement */
    .filters__group {
        border-top: 1px solid #ddd;
        padding-top: 12px;
        margin-top: 12px;
    }

    .filters__group:first-of-type {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }

    .group__title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .group__subfilters {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px;
        margin-left: 0;
    }

    .subfilter {
        font-size: 13px;
    }

    /* --------- GALERIE --------- */

    .gallery {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        padding: 0 10px 16px;
        box-sizing: border-box;
        display: flex;
        gap: 8px;
    }

    .gallery .col {
        width: 50%;
        gap: 8px;
    }

    .media-wrapper {
        margin-bottom: 8px;
    }

    .gallery .media {
        width: 100%;
        display: block;
    }

    @media (max-width: 480px) {
        .gallery {
            flex-direction: column;
        }
        .gallery .col {
            width: 100%;
        }
    }

    /* --------- FULL VIEW OVERLAY --------- */

    .full-view {
        position: fixed;
        inset: 0;
        margin-left: 0;
        width: 100vw;
        height: 100vh;
        padding: 10px;
        box-sizing: border-box;
        display: none;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        z-index: 1000;
    }

    .full-view > div {
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .full-view > div img,
    .full-view > div iframe {
        width: 100%;
        max-height: 30vh;
        object-fit: contain;
    }

    .full-view .more-infos {
        width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }

    .full-view .more-infos h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .full-view .more-infos p {
        font-size: 13px;
    }

    .full-view .more-infos .back {
        margin-top: 10px;
        font-size: 12px;
    }

    .full-view .infos {
        width: 100%;
        padding: 8px 4px;
        box-sizing: border-box;
        gap: 8px;
        justify-content: space-evenly;
        flex-direction: row;
        font-size: 12px;
    }

    .full-view .infos p {
        font-size: 12px;
    }

    /* On cache le contact dans l'aside en mobile,
    mais il reste visible en desktop */
    aside .contact {
        display: none;
    }

    /* Contact cloné en bas de page */
    .contact-bottom {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 16px;
        padding: 20px 0 40px;
        text-align: center;
    }

    .contact-bottom a,
    .contact-bottom p {
        font-size: 14px;
        margin: 0;
    }

}
