@import url(./animation.css);
@import url(./navbar.css);
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');

* {
    border: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    background-color: var(--body-background-color);
}

img {
    cursor: pointer;
}

:root {
    --color-vert: #abc7b7;
    --color-vert-clair: #d3e2d9;
    --color-rose: #eab9ae;
    --color-rose-clair: #f9e2d1;
    --color-gris: #d0d3c7;
    --body-background-color: #fff9f7;
}

.display-none {
    display: none !important;
}

.justify-center {
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* Bouton dons */
#don {
    position: fixed;
    top: 60px;
    right: 15px;
    background-color: var(--color-vert);
    height: var(--navbar-height);
    box-shadow: var(--navbar-box-shadow);
    border-radius: 9px;
    z-index: 150;
    animation: don-color 2s linear infinite;
}
@keyframes don-color {
    0% {
        background-color: var(--color-vert);
    }
    50% {
        background-color: var(--color-vert-clair);
    }
    100% {
        background-color: var(--color-vert);
    }
}

@media screen and (max-width: 775px) {
    #don {
        top: auto;
        bottom: 5px;
        left: 5px;
        right: 5px;
    }
}
#don a {
    color: var(--navbar-text-color);
    font-size: 1.5em;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
#don a::before {
    content: url(/ressources/don.svg);
    margin-right: 13px;
}

/* Carrousel d'images */
.carrousel_container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.carrousel_photo_container {
    height: 400px;
    width: 80%;
    border-radius: 50px;
    display: flex;
    justify-content: center;
}
@media screen and (max-width: 505px) {
    .carrousel_photo_container {
        height: 300px;
        width: 300px;
    }
}
@media screen and (max-width: 405px) {
    .carrousel_photo_container {
        height: 250px;
        width: 250px;
    }
}
@media screen and (max-width: 355px) {
    .carrousel_photo_container {
        height: 200px;
        width: 200px;
    }
}
@media screen and (max-width: 305px) {
    .carrousel_photo_container {
        height: 175px;
        width: 175px;
    }
}
.carrousel_photo_container>img {
    height: 100%;
    border-radius: 50px;
}
.carrousel_back, .carrousel_next {
    border: 0;
    margin: 0;
    background: var(--color-rose);
    min-height: 50px;
    height: 50px;
    min-width: 50px;
    width: 50px;
    cursor: pointer;
    color: #000;
    border-radius: 50%;
}

/* Image viewer */
#image-viewer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background : var(--color-rose-clair);
    padding: 15px 15px;
    border-radius: 50px;
    width: 90vw;
    height: 90vh;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}
#image-viewer .carrousel_back, #image-viewer .carrousel_next {
    background: var(--color-vert);
    position: absolute;
}
#image-viewer .carrousel_back {
    margin-right: 10px;
    left: 15px;
}
#image-viewer .carrousel_next {
    margin-left: 10px;
    right: 15px;
}
#image-viewer-blur {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    z-index: 175;
}
#image-viewer-close-button {
    position: fixed;
    top: 15px;
    right: 15px;
    background: transparent;
    cursor: pointer;
    z-index: 260;
}
#image-viewer-close-button>svg {
    width: 35px;
}
#image-viewer:has(.carrousel_back) img {
    max-width: calc(85vw - 120px);
}
#image-container {
    position: relative;
    display: inline-block;
}
#image-container>img {
    max-width: 85vw;
    max-height: 85vh;
    cursor: auto;
}
.image-marker {
    height: 4vh;
    width: 4vh;
    background: var(--color-vert);
    background-size: contain;
    border-radius: 50px;
    cursor: pointer;
    position: absolute;
}

.image-marker-info {
    display: none;
    position: absolute;
    background-color: var(--body-background-color);
    z-index: 250;
    padding: 10px;
    border-radius: 10px;
}

@media (hover: hover) {
   .image-marker-info.hover {
        display: initial;
        transform: translate(-87%, -63%);
    }
}

@media (hover: none) {
    .image-marker-info.active {
        display: initial;
        transform: translate(-35%, -30%);
    }
}


/* Footer */
footer {
    padding: 25px calc(calc(calc(100% - 1500px) / 2) + 15px) 35px calc(calc(calc(100% - 1500px) / 2) + 15px);
}
footer a {
    color: #000000;
}
footer svg {
    width: 30px;
    margin: 0 7px;
}
@media screen and (max-width: 600px) {
    footer {
        margin-bottom: 50px;
    }
    #accueil>div>div {
        padding: 0 25px;
    }
    #intervenants>div {
        flex-direction: column;
    }
    #intervenants>div>div {
        max-width: 100%;
        width: 100%;
    }
}