/* Général */
body {
    margin: 0;
    background-color: black;
    font-family: Montserrat, sans-serif;
    --color-primary: rgb(208, 248, 254);
    --color-nav: rgba(243, 156, 18, .9);
    --color-hover: rgba(247, 135, 7, .9);
    --color-strong: var(--color-nav);
    --shadow-card: 0px 0px 20px 6px rgba(208, 248, 254, 0.7);
    color: var(--color-primary);
}

a:visited,
a:link {
    text-decoration: none;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

h1,
h2 {
    text-align: center;
}

h1 {
    font-family: Cinzel, serif;
    color: var(--color-strong);
    text-shadow: 0px 0px 0px var(--color-nav);
}

h2 {
    font-size: 1.9em;
    font-family: Philosopher, serif;
    margin: 80px auto;
    color: var(--color-primary);
    text-shadow: 0px 0px 10px var(--color-primary);
}

p {
    text-align: justify;
}

strong {
    color: var(--color-strong);
}

em {
    font-style: normal;
    color: var(--color-strong);
}

.more,
.contact {
    padding: 0 30px;
}

/* Header - Bannière */

.banner {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1)100%), url("../media/sunset-sea.jpg");
    background-size: initial;
    height: 250px;
}

.banner-logo img {
    width: 100%;
    object-fit: cover;
}

.banner-logo {
    width: 330px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Footer */

footer {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1)100%), url("../media/nightsky.jpg");
    background-size: cover;
    padding: 10px 50px;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
}

.sm-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.sm-links img {
    max-width: 80px;
}

.sm-links img:hover {
    opacity: 80%;
    transition: opacity .2s ease;
}

.logo img {
    max-width: 300px;
}

/* Navigation */

nav {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.9);
}

nav a {
    border-radius: 6px;
    background-color: black;
    padding: 10px 20px;
    margin: 5px;
    color: white;
    text-transform: uppercase;
    border: none;
    font-family: Philosopher, serif;
    /* font-weight: bold; */
    font-size: 1.6em;
}

nav a:visited {
    color: var(--color-primary);
}

nav a:hover {
    background-color: var(--color-nav);
    transition: background-color .2s ease;
}

/* Page d'accueil (index) */

.news {
    margin: auto;
    max-width: 70%;
}

.songs {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 30px;
}

.song-sc {
    width: 45%;
    box-shadow: var(--shadow-card);
}

.news p,
.credits p {
    padding: 10px;
}

.videos {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.video-yt {
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    max-height: calc(50.65vw);
}

/* Page media (wyren_media) */

.photos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 300px 300px 300px;
    gap: 30px;
    padding: 0 50px;
    margin-top: 50px;
}

.photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.photos img:hover {
    opacity: 70%;
}

.slides {
    display: none;
}

#overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 150%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: opacity .4s ease;
    opacity: 0;
}

#image-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    transition: opacity .4s ease;
    opacity: 0;
}

#image {
    display: inline-block;
    max-height: 90vh;
    max-width: 90vw;
    width: auto;
    height: auto;
}

#x {
    position: fixed;
    top: 0;
    right: 50px;
    font-size: 5em;
    cursor: pointer;
    z-index: 1003;
}

#prevImg,
#nextImg {
    position: fixed;
    top: 45vh;
    font-size: 5em;
    cursor: pointer;
    z-index: 1003;
    /* Pour éviter l'apparition des icônes en cas de sélection via de multiples clics : */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Anciennes versions de Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

#prevImg {
    left: 50px;
}

#nextImg {
    right: 50px;
}

#prevImg,
#nextImg,
#x {
    transition: opacity .3s ease;
    opacity: .7;
}

#prevImg:hover,
#nextImg:hover,
#x:hover {
    opacity: 1;
}


.credits {
    margin: 20px 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    text-align: center;
    padding: 10px 20px;
}

.credits-flex {
    display: flex;
    justify-content: space-around;
}

.colonne-credits {
    max-width: 50%;
}

.credits h1,
.credits strong {
    color: var(--color-primary);
}

.credits h1 {
    margin: 5px auto;
}

.credits strong {
    font-family: Philosopher, serif;
    font-size: 1.3em;
}

/* Page : A propos (wyren_about) */

.about {
    padding: 0 20px;
}

.about,
.band {
    max-width: 70%;
    margin: auto;
}

.about h1,
.band h1 {
    padding: 40px 0;
}

.band p {
    padding: 0px 5vw 10vh 5vw;
    margin-bottom: 40px;
}

.photo-bio {
    display: block;
    max-width: 100%;
    margin: auto;
}

.band-card {
    box-shadow: var(--shadow-card);
    border-radius: 5px;
}

.about h1 {
    font-family: Philosopher, serif;
}

.epk {
    text-align: center;
    margin: 50px 0;
}

.epk a {
    background-color: var(--color-nav);
    border-radius: 6px;
    padding: 10px;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: bold;
}

.epk a:hover {
    background-color: var(--color-hover);
    transition: background-color .2s ease;
}

/* Page contact (wyren_contact) */

.contact {
    margin-top: 50px;
}

.contact-info {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.contact p {
    text-align: center;
    display: inline-block;
    line-height: 1.5;
    padding: 30px 70px;
    margin: auto;
}

form {
    display: flex;
    max-width: 80%;
    flex-direction: column;
    margin: auto;
}

.nom-email {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.nom,
.email {
    display: flex;
    flex-direction: column;
    flex: 1;
}

input,
textarea {
    padding: 10px;
    border-radius: 3px;
    font-size: 1em;
}

textarea {
    height: 250px;
    font-family: Arial, Helvetica, sans-serif;
}

label {
    margin-bottom: 10px;
}

.submit {
    margin: auto;
    margin-top: 30px;
    width: 20%;
}

/* Responsive */

@media screen and (min-width: 1440px) {
    .news p {
        text-align: center;
    }
}

@media screen and (max-width: 996px) {
    .photos {
        grid-template-columns: 1fr 1fr;
    }

    #prevImg,
    #nextImg {
        width: 15vw;
        top: 0;
        height: 100vh;
        filter: blur(5px);
        opacity: 0;
        color: transparent;
    }

    #prevImg:hover,
    #nextImg:hover {
        opacity: 0;
    }

    #prevImg:active,
    #nextImg:active {
        opacity: .5;
    }

    #prevImg {
        left: -4px;
        background: linear-gradient(90deg, silver, transparent);
    }

    #nextImg {
        right: -4px;
        background: linear-gradient(-90deg, silver, transparent);
    }

    #x {
        right: 15vw;
        top: -20px;
    }
}

@media screen and (max-width: 640px) {
    .sm-links {
        gap: 15px;
    }

    footer {
        padding: 10px 10px;
    }

    .photos {
        display: flex;
        padding: 0 30px;
        flex-direction: column;
    }

    .credits {
        margin: 20px 30px;
    }

    .credits-flex {
        display: block;
    }

    .colonne-credits {
        max-width: 100%;
    }

    .credits p {
        text-align: initial;
    }

    .news p {
        text-align: initial;
    }

    .band p {
        padding-bottom: 5vh;
    }

    nav {
        background: black;
    }

    nav a {
        background-color: black;
        font-size: 1.1em;
    }

    h2 {
        font-size: 1.6em;
        max-width: 90vw;
    }

    #x {
        top: auto;
        bottom: -20px;
        left: 45%;
    }
}

@media screen and (max-width: 414px) {
    nav a {
        padding: 10px 6px;
        margin: 1px;
    }

    .songs,
    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .song-sc {
        width: 90%;
    }

    .videos {
        padding: 0;
        width: 90%;
        margin: auto;
        margin-top: 30px;
    }

    .news {
        max-width: 90%;
    }

    .about,
    .band {
        max-width: 90%;
    }

    .epk a {
        line-height: 1.5;
        font-size: 1em;
        background: none;
    }

    .epk {
        text-align: center;
        margin: 50px auto;
        padding: 10px;
        background-color: var(--color-nav);
        border-radius: 6px;
        max-width: 60vw;
    }

    .epk a:hover {
        background: none;
    }

    .epk:hover {
        background-color: var(--color-hover);
        transition: background-color .2s ease;
    }

    .nom-email {
        flex-direction: column;
        margin-bottom: 10px;
        gap: 0;
    }

    form {
        max-width: 90%;
    }

    .submit {
        width: 50%;
    }

    .contact p {
        padding: 20px;
    }
}