@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
    font-family: 'Ubuntu';
}

body {
    /*background: rgb(255, 225, 225);
    background: linear-gradient(0deg, rgba(255, 225, 225, 1) 0%, rgba(255, 255, 255, 1) 100%);*/
    width: 100vw;
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/*################################################## MAIN ########################################################################*/

main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    /* Modifiez cette valeur pour ajuster la largeur de la galerie */
}

.thumbnail {
    width: 35%;
    height: auto;
    /* Assure que le ratio d'aspect de l'image est conservé */
    object-fit: cover;
    /* Fait en sorte que l'image couvre tout le conteneur sans s'étirer */
    border-radius: 5px;
    transition: .5s;
    filter: brightness(100%);
}


.thumbnail:hover {
    filter: brightness(50%);
    cursor: pointer;
}

.contDetails {
    display: grid;
    grid-template-columns: 1fr 3fr;
    width: 90vw;
    box-shadow: 0px 7px 20px -3px #00000078;
    transition: .5s;
    border-radius: 15px;
    height: 50vh;
}

.more-images {
    width: 100%;
    background-color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    transition: .5s;
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.more-images p{
    font-size: 15px;
}

.more-images img{
    height: 15px;
}

.more-images:hover {
    filter: brightness(80%);
    cursor: pointer;
}

#large-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

#large-image {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: block;
    object-fit: contain;
}

#carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

#carousel-prev {
    position: absolute;
    left: 15px;
    width: 50px;
    border-radius: 50%;
    height: 50px;
    border: none;
    transform: rotate(-90deg);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #A03232;
}

#carousel-next {
    position: absolute;
    right: 15px;
    width: 50px;
    border-radius: 50%;
    height: 50px;
    border: none;
    transform: rotate(90deg);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #A03232;
}

#carousel-prev svg,
#carousel-next svg {
    height: 15px;
}

#carousel-prev svg path,
#carousel-next svg path {
    fill: #fff;
}

#carousel-prev:hover,
#carousel-next:hover {
    cursor: pointer;
}

#carousel-images {
    display: flex;
    overflow: hidden;
    width: 90%;
    height: 90%;
}

#carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

#carousel-images img.active {
    display: block;
    /* Affiche l'image active */
}


.thumbnail:nth-of-type(n+5) {
    display: none;
    /* Cache les miniatures après la quatrième */
}

.right {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.right .infos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    font-size: 1rem;
    position: relative;
    text-align: center;
}

.right .infos p {
    color: #A03232;
}

.right .infos span {
    color: #000;
}

.right .infos h3 {
    position: absolute;
    top: 20px;
    text-decoration: underline;
}

.right .contDescription {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid gray;
    position: relative;
}

.right .contDescription .description {
    width: 85%;
    overflow: scroll;
    height: 220px;
    background-color: #F8F8F8;
    overflow-x: hidden;
    padding: 20px;
}

.right .contDescription #call {
    color: #fff;
    background-color: #A03232;
    padding: 7px 25px;
    margin-top: 10px;
    border: 1px solid #601e1e;
    transition: .5s;
}

.right .contDescription #call:hover {
    background-color: #872a2a;
}

.right .contDescription .description::-webkit-scrollbar {
    width: 3px;
    background-color: #dbdbdb;
}

.right .contDescription .description::-webkit-scrollbar-thumb {
    background-color: #A03232;
}

.right .contDescription h3 {
    position: absolute;
    top: 20px;
    text-decoration: underline;
}

h1 {
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .contDetails {
        display: flex;
        flex-direction: column;
    }
.more-images {
    padding-top: 10px;
    padding-bottom: 10px;
}

.more-images img{
    height: 15px;
}

    .contDetails .right .infos h3 {
        position: absolute;
        top: 0;
    }

    .thumbnail {
        width: 13%;
    }

    .contDetails .right {
        margin-top: 20px;
        margin-bottom: 30px;
        border-top: 1px solid #e2e2e2;
        padding-top: 20px;
    }

    .more-images {
        width: 60%;
    }

    .contDetails .right .contDescription h3 {
        position: static;
    }

    .contDetails .right .contDescription {
        border: none;
    }

    .contDetails {
        height: fit-content;
    }
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 25px;
    border: none;
    color: #A03232;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
}

.close-btn img {
    height: 15px;
}

#desc{
    text-align: left !important;
}


@media (max-width: 950px) {
    .contDetails {
        display: flex;
        flex-direction: column;
    }

    p,
    h3 {
        font-size: clamp(15px, 1vw, 30px);
    }

    .thumbnail {
        width: 10%;
    }

    contDetails .right {
        display: grid;
        grid-template-columns: 3fr 4fr;
    }

    #carousel-prev {
        left: 0;
        z-index: 10;
    }

    #carousel-next {
        right: 0;
        z-index: 10;
    }

    .right .infos p span {
        font-size: clamp(12px, 1vw, 20px);
    }

    main {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 80vh;
    }

}

@media (max-height: 820px) {
    main{
	height: 130vh;
    }
}

@media (max-height: 760px) {
    .thumbnail {
        width: 20%;
    }

    h1{
	margin-bottom: 20px;
    }

    main {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 130vh;
    }
}

@media (max-width: 780px) {
    #carousel-images img.active {
        display: block;
        position: absolute;
        width: 80vw;
        max-height: 70vh;
        height: fit-content;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-height: 760px) {
    .thumbnail {
        width: 20%;
    }

    main {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 150vh;
    }
}

@media (max-width: 800px) {
    .contDetails .right {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }

    .right .infos {
        border-top: 1px solid #cdcdcd;
        padding-top: 20px;
    }

    .right .infos h3 {
        position: static !important;
    }

    main {
        height: 100vh;
    }
}

@media (max-width: 400px) {
    main {
        height: 120vh;
    }

    .thumbnail {
        width: 40%;
    }
}
