/* --------------------------------------- */
/* SPECIAL CSS pour la galerie EXPO        */
/* --------------------------------------- */

*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #e0eaf3;
    --color-secondary: #292526;
}

/*---------- Fancy box options ------------ */
.fancybox__backdrop {
    opacity: 0.9;
}

.fancybox__content {
    border: 2px solid white;
}

body {
    font-size: 62.5%;
    height: 100%;
    margin: 0 auto;
}

h1 {
    margin-top: 20px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    text-shadow: 3px 2px 3px #720905;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 1.6rem);
    color: #fff;
    text-shadow: 1px 1px 2px #ff0101;
}

.galery_container {
    border: 1px solid rgb(35, 250, 64);
    background-color: rgb(214, 247, 221);
    border-radius: 10px;
    max-width: 1800px;
    margin: 15px auto;
    width: 75%;
    padding: 20px;
}

.galery_top {
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    background-image: url(../img/galery_top_img.jpg);
    background-repeat: no-repeat;
    background-clip: content-box;
    background-blend-mode: darken;
    background-color: rgba(105, 150, 2, 0.925);
    border: 2px solid #5d9601c5;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    border-radius: 10px;
}

.galery_top p {
    color: #fff;
    margin-top: 20px;
    padding: 10px 0;
    font-size: clamp(1.3rem, 3vw, 1.6rem);

}

.galery_top hr {
    border: none;
}

.expo_nav {
    font-size: clamp(1.2rem, 2vw, 1.3rem);
    max-width: 1400px;
    width: 95%;
    border: 1px solid rgba(78, 195, 224, 0.459);
    background-color: rgba(135, 207, 235, 0.411);
    padding: 5px 0;
}

.expo_nav ul {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.expo_nav ul li a {
    color: #fff;
    padding: 4px 30px;
    min-width: 130px;
    width: 100%;
}

.expo_nav ul li a:hover {
    color: #000a0c;
    background-color: #3ece62;
    border-bottom: 2px solid #83c519;

}

.galery_body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: 1800px;
    width: 100%;
}

.expo_container {
    margin: 0 auto;
    margin-bottom: 40px;
    padding: 0;
    height: 100%;
    width: 100%;
    border-radius: 10px;
    background-color: rgb(2, 0, 0);
    border: 1px solid rgb(36, 0, 0);
    box-shadow: 0 3px 20px rgba(0, 0, 0, .4);
}

.photo_descriptif {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    background-color: rgba(24, 6, 2, 0.74);
    border-bottom: solid rgba(100, 1, 1, 0.5);
    margin: 5px auto;
    padding: 10px 10px;
    width: 100%;
    border-radius: 8px;
}

/*----------- DEBUT AUDIO -------- */

.audio_container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;

    /* 40%  anciennement */
    height: 64px;
    max-height: 180px;
    border: 1px solid rgb(77, 53, 22);
    border-radius: 8px;
    background-image: linear-gradient(rgb(34, 9, 2), rgba(54, 43, 4, 0.986), rgb(17, 3, 0));
}


.off {
    color: #fff;
    border: 2px solid rgb(30, 15, 36);
    box-shadow: 1px 1px 4px rgba(181, 247, 2, 0.842);
}

.on {
    color: #ffee00;
    border: 1px solid rgb(255, 0, 34);
    background-color: #66062b;
    box-shadow: 1px 1px 5px rgba(248, 1, 34, 0.925);
}


/*---------- PLAYLIST ------------- */

.play_container {
    position: relative;
    height: 45px;
    width: 500px;
    /*overflow: hidden;
    width: 40%; anciennement */
    /*width: 286px; anciennement*/
    border: 2px solid rgb(77, 53, 22);
    background-color: #0c2b00;
    background-image: linear-gradient(rgb(70, 34, 29), rgb(17, 3, 0));
    border-radius: 8px;
}

.copyright {
    /*position: absolute;*/
    color: white;
    bottom: 5px;
    left: 20px;
    /* anciennement 12% */
    /*width: 40%;*/
    text-shadow: 1px 0px rgba(6, 6, 6, 0.963);
}

#loop_on_off {
    position: absolute;
    height: 30px;
    width: 30px;
    top: 5px;
    left: 5px;
    cursor: pointer;
    transition: .3s ease;
    border: 2px solid rgb(40, 6, 53);
    border-radius: 3px;
}

#loop_on_off:hover {
    background-color: #421c2b;
}

#list_ShowHide_btn {
    position: absolute;
    color: #fff;
    width: 30px;
    height: 30px;
    top: 5px;
    /* 16px anciennement */
    left: 40px;
    /* 60 px anciennement */
    cursor: pointer;
    transition: .3s ease;
}

#list_ShowHide_btn:hover {
    background-color: #520466;
}

.list_off {
    border: 1px solid rgb(30, 15, 36);
    box-shadow: 1px 1px 4px rgba(181, 247, 2, 0.842);
}

.list_on {
    color: #ffee00;
    background-color: #66061e;
    box-shadow: 1px 1px 4px rgba(248, 1, 34, 0.925);
}

/*--------------------------  TOOLTIPS ---------------------- */

#tip_showHide,
#tip_loop,
#tip_playStop,
#tip_audioNext,
#tip_Mute {
    position: relative;
    cursor: pointer;
    height: 30px;
    top: -36px;
}

#text_showHide,
#text_loop,
#text_playStop,
#text_audioNext,
#text_mute {
    position: absolute;
    border: 1px solid rgb(235, 135, 230);
    background-color: rgb(90, 20, 78);
    border-radius: 8px;
    width: 120px;
    text-align: center;
    white-space: nowrap;
    padding: 10px 15px;
    bottom: 50px;
    transform: translateX(-40%);
    opacity: 0;
    transition: opacity .5s ease;
    visibility: hidden;
}

#text_showHide::before,
#text_loop::before,
#text_playStop::before,
#text_audioNext::before,
#text_mute::before {
    content: "";
    position: absolute;
    height: 15px;
    width: 15px;
    left: 50%;
    top: 100%;
    border: 1px solid rgb(235, 135, 230);
    border-top-color: transparent;
    border-left-color: transparent;
    background-color: rgb(90, 20, 78);
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

#tip_showHide:hover #text_showHide,
#tip_loop:hover #text_loop,
#tip_playStop:hover #text_playStop,
#tip_audioNext:hover #text_audioNext,
#tip_Mute:hover #text_mute {
    visibility: visible;
    opacity: 1;
}

/*------------------ FIN TOOLTIPS ------------------------ */

.audio_item_in {
    position: absolute;
    border: 1px solid #5c0f02;
    background-color: #1b1515;
    color: #fff;
    width: 400px;
    /* 238px ancoennement */
    height: 30px;
    left: 84px;
    /* 94 px anciennement */
    top: 5px;
    /* 16px anciennement */
    display: flex;
    align-content: center;
    gap: 4px;
    overflow: hidden;
    box-shadow: 0 .1em .1em #5a5101, inset 0 0 .1em .15em rgba(181, 247, 2, 0.842);
}

.audio_item_in .audio_title {
    position: absolute;
    display: inline-block;
    white-space: nowrap;
    width: 186px;
    /* nouveau */
    left: 0;
    /* 146px anciennement */
    z-index: 2;
    background: transparent;
    animation-name: defilement-rtl;
    /* référence à la règle @keyframes mise en oeuvre */
    animation-duration: 12s;
    /* valeur à ajuster suivant la longueur du message */
    animation-iteration-count: infinite;
    /* boucle continue */
    animation-timing-function: linear;
    /* pas vraiment utile ici */
    animation-direction: alternate;
}

@keyframes defilement-rtl {
    0% {
        transform: translate3d(60%, 0, 0);
        /* position initiale à droite */
    }

    100% {
        transform: translate3d(0%, 0, 0);
        /* -25% anciennement /*
        /* position finale à gauche */
    }
}

.audio_progress_bar {
    position: relative;
    top: 0;
    left: 0;
    height: 20px;
    width: 220px;
    /* anciennement 146px */
    background-color: transparent;
    z-index: 1;
}

.audio_progress {
    position: absolute;
    top: 10px;
    left: 4px;
    height: 10px;
    /* anciennement 20px */
    width: 0;
    background-color: #990500;
    z-index: 1;
}

.audio_item_out {
    position: absolute;
    border: 2px solid rgb(83, 38, 1);
    background-color: #202202;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    width: 266px;
    /* nouveau 
    height: 200px;
*/
    left: 0;
    bottom: 0;
    padding: 0 10px;
    z-index: 200;
    /*transition: .6s ease;*/
}

.audio_item_out ul li {
    color: #fff;
    left: 4px;
    right: 10px;
    margin: 10px auto;
    cursor: pointer;
    z-index: 20;
}

.audio_item_out ul li:hover {
    background-color: #3d501f;
}

.audio_item_out ul li span {
    font-size: 14px;
    font-weight: 400;
}

.item_title {
    justify-self: left;
    text-overflow: clip;
}

.audio_title {
    width: 160px;
    padding-left: 4px;
    justify-self: left;
    text-overflow: clip;
}

.audio_artist {
    position: absolute;
    display: inline-block;
    white-space: nowrap;
    top: 2px;
    right: 2px;
    width: 180px;
    /* anciennement 80 px */
    justify-self: center;
    padding: 0 4px;
    color: yellow;
    text-overflow: clip;
    text-align: center;
    height: 24px;
    background-color: #000a0c;
    z-index: 3;
}


/* ------ List audio ------------------- */
/* -------affiché par javascript --------*/

.play_list {
    position: absolute;
    color: #fff;
    width: 276px;
    bottom: 48px;
    display: flex;
    justify-content: space-between;
}

/*--------- MINI PLAYER -------- */

.mini_player {
    position: relative;
    height: 45px;
    width: 175px;
    right: 6px;
    /*bottom: 6px;
     nouveau */
    border: 2px solid rgb(77, 53, 22);
    background-color: #0c2b00;
    background-image: linear-gradient(rgb(70, 34, 29), rgb(17, 3, 0));
    border-radius: 8px;
}

.mini_player .audio_play {
    position: absolute;
    top: 5px;
    left: 5px;
}

.mini_player .bx {
    font-size: 20px;
    padding: 4px 5px;
}

#btnPlay {
    border: 2px solid rgb(30, 15, 36);
    height: 30px;
    width: 30px;
    padding: 0 auto;
    border-radius: 25%;
    cursor: pointer;
    transition: .2s ease;
}

#btnPlay:hover {
    background-color: rgb(70, 33, 73);
}

/* ------------- btn_on/off  Appelé en javascript --------------*/
.btn_off {
    color: #fff;
    background-color: rgb(66, 40, 2);
    box-shadow: 1px 1px 4px rgba(181, 247, 2, 0.842);
}

.btn_on {
    color: #ecfd00;
    border: 2px solid rgb(68, 2, 94);
    background-color: rgb(114, 1, 39);
    box-shadow: 1px 1px 6px rgba(247, 2, 43, 0.904);
}

.mini_player .audio_next_btn {
    position: absolute;
    color: #fff;
    top: 2px;
    left: 38px;
    cursor: pointer;
}

.mini_player .volume_btn {
    position: absolute;
    top: 5px;
    left: 72px;
    /*font-size: 20px;*/
    color: #fff;
    cursor: pointer;
}

.mini_player .volume_range_progress {
    position: absolute;
    width: 52px;
    height: 0.3em;
    left: 100px;
    border-radius: 3px;
}

.volume_range_progress .volume_progress {
    position: absolute;
    background-color: #fff;
    top: 18px;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    z-index: 200;
}


[type="range"] {
    position: absolute;
    width: 52px;
    height: 0.3em;
    background: #3a3430;
    outline: none;
    top: 18px;
    border-radius: 3px;
    cursor: pointer;
}

[type="range"],
[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

[type="range"]::-webkit-slider-thumb {
    box-sizing: border-box;
    border: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
}

[type="range"]::-moz-range-thumb {
    box-sizing: border-box;
    border: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
}

#audioSelected {
    position: absolute;
    top: 3px;
    right: 2%;
    display: none;
}

/*---------FIN MINI PLAYER -------- */

.photo_descriptif hr {
    margin-bottom: 0;
    border: none;
    border-top: 2px solid rgba(100, 1, 1, 0.5);
    border-bottom: 1px solid rgba(52, 56, 54, 0.986);
    border-radius: 3px;
}

.photo_conteneur {
    background-color: rgba(24, 6, 2, 0.74);
    border-radius: 10px;
    padding: 15px 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1400px;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 10px 10px;
    box-shadow: 0 2px 10px rgba(243, 198, 74, 0.925);
    background-color: aliceblue;
    border-radius: 6px;
    border: 2px solid rgb(77, 0, 0);
}

article h3 {
    font-size: clamp(1rem, 3vw, 1rem);
    color: rgba(0, 0, 0, 0.801);
    font-weight: bold;
}

article img {

    height: 140px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: .3s ease-in-out;
}

article img:hover {
    transform: scale(1.05);
}

article p {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    font-size: clamp(1rem, 2vw, 1rem);
    font-weight: 300;
}

@media screen and (max-width: 1280px) {
    .galery_container {
        margin: 10px auto;
        width: 98%;
        padding: 10px;

    }

    .audio_container {
        margin-top: 6px;
        padding-top: 6px;
        flex-wrap: wrap;
        gap: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }

    .mini_player {
        position: relative;
        margin: 0 auto;
        width: 70%;
    }

    .play_container {
        position: relative;
        left: 0;
        margin: 10px auto;
        width: 96%;
    }

}


@media screen and (max-width: 450px) {
    .photo_title {
        margin: 0 auto;
    }

    #list_ShowHide_btn {
        position: static;
        margin-top: 6px;
        margin-left: 40px;
    }

    .audio_progress {
        top: 0;
    }

    .audio_item_in {
        width: 68%;
        /*
        width: 240px;
        */
        height: 30px;
        padding-top: 4px;
        /*left: 34px;*/
        top: 5px;
    }

    .audio_artist {
        top: 2px;
        right: 2px;
        padding: 4px;
        width: 60px;
    }

    .audio_item_out ul li {
        height: 30px;
        padding-top: 6px;
    }

    .expo_nav ul {
        height: 100%;
        flex-direction: column;
        gap: 30px;
    }

    .expo_nav ul li a {
        border-bottom: 2px solid #83c519;
    }

    .photo_conteneur {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    article {
        gap: 5px;
        padding: 10px;
    }
}