section {
    padding: 10vh 14vw;
    min-height: 90vh;
}

section > p {
    max-width: 45%;
}

section input {
    width: 66%;
    margin: 4rem 0 1.5rem 0;
    padding: 1rem;
    text-transform: uppercase;
    border-radius: 5px;
    background: var(--c-input-background);
    color: var(--c-input-text);
    border: none;
}

section input:focus {
    outline: none;
}

section > ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    min-height: calc(20px + 1.5rem);
}

section > ul li {
    color: var(--c-grey);
    font-weight: 300;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s ease-in-out;
    white-space: nowrap;
}

section > ul li:hover {
    color: var(--c-input-background);
}

section > ul li.active {
    background: var(--c-main);
    color: var(--c-dark-black);
    padding: 10px 15px;
    border-radius: 5px;
}

section > ul li.active:hover {
    background: var(--c-secondary);
}

section > .creations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

section > .creations .card {
    width: 100%;
    aspect-ratio: 1 / 1;

    background: var(--c-light-black);
    border-radius: 10px;
    position: relative;

    background-position: center;
    background-size: cover;
    overflow: hidden;
}

section > .creations .card.hidden {
    display: none !important;
}

section > .creations .card .infos {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
}

section > .creations .card .infos h3 {
    margin: 2px 0;
}

section > .creations .card .infos p {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    min-height: 2.2rem;
    margin-bottom: 5px;
}

section > .creations .card .infos a.decouvrir {
    font-size: 1.1rem;
    color: var(--c-white);
    position: relative;
    transition: all .2s ease-in-out;
}

section > .creations .card .infos a.decouvrir span {
    position: absolute;
    left: 110%;
    transition: all .2s ease-in-out;
}

section > .creations .card:hover {
    cursor: pointer;
}

section > .creations .card:hover .infos a.decouvrir span {
    left: 120%;
}

/* MOBILE + HERO TABLET */
@media screen and (max-width: 992px) {
    section {
        padding: 10vh 7vw;
    }

    section > p {
        max-width: 66%;
    }
    
    section input {
        width: 100%;
    }

    section > .creations {
        grid-template-columns: repeat(2, 1fr);
    }

    section > ul {
        width: 100%;
        overflow: hidden;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        mask-image: linear-gradient(to right, black 90%, transparent);
    }

    section > ul::-webkit-scrollbar {
        display: none;
    }

    section > ul li:last-child {
        margin-right: 1.5rem;
    }
}

/* HERO MOBILE */
@media screen and (max-width: 600px) {
    section > p {
        max-width: 100%;
    }

    section > .creations {
        grid-template-columns: repeat(1, 1fr);
    }

    section > .creations .card .infos {
        width: calc(100% - 3rem);
    }

    section > ul li.active:hover {
        background: var(--c-main);
    }
}

/* !MODALE */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--c-light-black);
    width: 80%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 15px;
    position: relative;
    padding: 3rem;
    overflow-y: auto;
    border: 1px solid var(--c-dark-grey);
    animation: modalAppear 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--c-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;

    background: transparent;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    transition: all 0.25s ease;
}

.close-modal:hover {
    color: var(--c-main);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--c-input-background);
    border-radius: 10px;
}

.modal-text h2 {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--c-white);
    font-weight: 600;
    margin-top: .5rem;
}

.modal-section {
    margin-top: 2rem;
}

.modal-section h3 {
    font-size: 1.2rem;
    color: var(--c-main);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    font-weight: 400;
}

.modal-section p,
.modal-section li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-white);
    font-weight: 300;
}

#modalSpecs {
    list-style: none;
    padding-left: 0;
}

#modalSpecs li::before {
    content: "• ";
    color: var(--c-main);
    margin-right: 10px;
}

/*  MODAL CAROUSEL  */
.modal-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;
    border-radius: 10px;

    background: var(--c-light-black);
}

.image-placeholder {
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.4);
    color: var(--c-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--c-main);
    color: var(--c-dark-black);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* VERSION TABLET / PETIT DESKTOP
   => identique à ton zip */
@media screen and (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 2rem;
    }

    .modal-image {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .image-placeholder {
        height: 400px;
    }
}

/* VERSION MOBILE
   => uniquement ici on améliore la modale */
@media screen and (max-width: 600px) {
    .modal {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-width: none;

        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;

        padding: 0;
        border-radius: 22px 22px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;

        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .close-modal {
        top: 0.85rem;
        right: 0.9rem;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        font-size: 2rem;
        background: rgba(0, 0, 0, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
        line-height: 1;
    }

    .modal-body {
        display: flex;
        flex-direction: column;
        gap: 0;

        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .modal-image {
        width: 100%;
        aspect-ratio: 1 / 1;

        border-radius: 0;
        flex-shrink: 0;
        overflow: hidden;
    }

    .image-placeholder,
    .slider-track,
    .slide-img {
        width: 100%;
        height: 100%;
    }

    .slide-img {
        object-fit: cover;
    }

    .modal-text {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;

        padding: 1.05rem 1rem calc(1.4rem + env(safe-area-inset-bottom)) 1rem;
    }

    .modal-text h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
        line-height: 0.95;
        margin-top: 0.35rem;
        word-break: break-word;
    }

    .modal-section {
        margin-top: 1.35rem;
    }

    .modal-section h3 {
        font-size: 1rem;
        margin-bottom: 0.65rem;
    }

    .modal-section p,
    .modal-section li {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .nav-btn {
        width: 42px;
        height: 42px;
        background: rgba(0,0,0,0.5);
        font-size: 1rem;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}