/* Header, footer, nav */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: black;
}
footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 0.5rem;
}
#logo {
    width: 10rem;
}
/* Menu burger */
#menu-toggle {
    position: absolute;
    left: -9999px;
}
/* Burger button */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 36px;
    cursor: pointer;
}
.burger span {
    display: block;
    height: 3px;
    width: 35px;
    border-radius: 2px;
    transform-origin: 4px 50%;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
    background-color: white;
}
nav {
    width: 100%;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
nav ul li a {
    display: inline-block;
    width: 4rem;
    padding: .5rem 1rem;
    text-decoration: none;
    color: #111;
    background-color: white;
    border-radius: 15px;
    text-align: center;
}
nav ul li:last-child a {
    width: 4rem;
    border-radius: 15px;
}
#menu-toggle:checked + label.burger + nav ul {
    max-height: 1000px;
}
/* Burger -> X */
#menu-toggle:checked + label.burger span:nth-child(1) {
    transform: rotate(45deg)
}
#menu-toggle:checked + label.burger span:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked + label.burger span:nth-child(3) {
    transform: rotate(-45deg)
}

/* Main */

/* Style généraux*/
h1 {
    text-align: center;
    text-decoration: underline;
    margin-top: 0.5rem;
}
h2 {
    font-weight: normal;
    margin-bottom: 0;
}
section h2 {
    text-align: center;
}
h3 {
    margin-bottom: 0;
    padding: 0.25rem;
}
a {
    display: inline-block;
    border-radius: 5px;
    padding: 0.25rem;
    margin: 1rem 0;
}
ul {
    list-style: none;
}
table {
    margin: 0 auto 1rem auto;
}
tr {
    text-align: center;
}
td {
    background-color: black;
    color: white;
}
section {
    text-align: center;
}
form {
    display: flex;
    margin: 1rem;
}

/* Styles spécifiques (id/class et enfant des ces derniers) */
#barreRecherche {
    width: 15rem;
}
#connexion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#submit {
    background-color: skyblue;
    border-style: none;
    border-radius: 15px;
    padding: 1rem 0;
    transition: ease 300ms;
}
#pdp {
    display: block;
    width: 20rem;
    margin: 0 auto;
    border-radius: 15px;
}
#list-info {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    justify-content: center;
    gap: 2.5rem;
}
#list-info h2 {
    margin-top: 0;
}
#artist-link {
    text-align: start;
}
#artist-link ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#artist-link ul a {
    margin: 0.75rem 0;
}
#genres ul {
    display: flex;
    gap: 1.5rem;
}
#last-actuality ul {
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#contact-form textarea {
    width: 100%;
    height: 15rem;
    overflow-y: ;
}
#contact-form input[type="submit"] {
    width: 100%;
}
.light-shadow-border {
    border-radius: 15px;
    padding: 0.1rem 0.5rem;
    margin: 0.5rem;
    box-shadow: 0 0 10px black;
}
.center-flex {
    justify-content: center;
}
.fondRougeClair {
    background-color: lightcoral;
    color: black;
}
.fondNoir {
    background-color: black;
    color: white;
}
.fondBleuClair {
    background-color: skyblue;
    color: black;
}
.fondBlanc {
    background-color: white;
    color: black;
}
.underline {
    text-decoration: underline;
}
.vignette {
    margin: 1rem;
    border: 0.25rem solid black;
    border-radius: 15px;
    box-shadow: 10px 10px black;
}
.vignette article {
    display: flex;
    flex-direction: column;
    width: 15rem;
    margin: 0 auto;
}
.vignette img {
    width: 10rem;
    margin: 2rem auto;
    border-radius: 15px;
}
.margbottom-footer {
    margin-bottom: 14rem;
}
.font-xlarge {
    font-size: x-large;
}
.align-justify {
    text-align: justify;
}
.align-justify p {
    padding: 0.5rem;
    border-radius: 15px;
}
.actuality {
    border-radius: 1rem;
    justify-content: center;
    margin: 1rem;
    padding: 0;
    width: 20rem;
    min-height: 300px;
}
.actuality a {
    margin: 0;
    padding: 0;
}
.actuality img {
    width: 20rem;
    border-radius: 1rem 1rem 0 0;
}
.active {
    background-color: thistle;
}

/* Menu déroulant pour les filtres dans la page "artistes.html" */
.filters {
    position: relative;
}
/* checkbox invisible */
.filters-checkbox {
    display: none;
}
/* bouton unique */
.filters-toggle {
    cursor: pointer;
    user-select: none;
    display: inline-block;
}
/* panneau dans le flux, mais déplacé hors écran */
.filters-panel {
    width: 7rem;
    padding: 1rem;
    background-color: lightcoral;
    border-radius: 15px;

    transform: translateX(-125%);
    transition: transform 0.4s ease;

    position: absolute;   /* ne couvre pas la navigation car son parent n’est pas en fixed */
    top: 100%;            /* sous le bouton */
    left: 0;
    z-index: 1;
}
/* panneau ouvert */
.filters-checkbox:checked ~ .filters-panel {
    transform: translateX(0);
}
.filter span {
    display: block;
    height: 3px;
    width: 35px;
    border-radius: 2px;
    transform-origin: 4px 50%;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
    background-color: white;
}
label {
    display: block;
}
label h3 {
    border-radius: 15px;
    padding: 0.5rem;
    text-decoration: underline;
}


/* Desktop */
@media (min-width: 768px) {

/* Menu burger (désactivé pour desktop) */
.burger {
    display: none;
}
nav {
    width: auto;
}
nav ul {
    max-height: none;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
}
nav ul {
    overflow: visible;
}
nav ul li a {
    transition: ease 300ms;
}
nav ul li a:hover {
    transform: scale(1.25, 1.25);
}

/* Styles généraux */
td {
    padding: 0.25rem 1rem;
}

/* Styles spécifiques */
.align-justify {
    margin: auto;
    width: 20rem;
}
#list-article {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.vignette {
    transition: 300ms;
}
.vignette:hover {
    transform: translateX(10px) translateY(10px);
    box-shadow: 0px 0px black;
}
#phrase-contact{
    display: block;
    width: 300px;
    align-items: center;
}
#list-info > li:nth-child(3) {
    order: 2;
}
#list-info > li:nth-child(1) {
    height: min-content;
}
#artist-link-li {
    width: 125px;
    max-height: 322.617px;
}
#description {
    width: 400px;
    height: 175px;
    overflow-y: scroll;
}
#programmation {
    width: 400px;
}
#programmation ul {
    gap: 1rem;
    display: flex;
    flex-wrap: wrap;
}
#programmation li {
    padding: 0.25rem;
    border-radius: 5px;
    background-color: rgb(228, 228, 228);
}
#artist-link {
    max-height: 303.417px;
    overflow-y: scroll;
}
.actuality{
    transition: 300ms ease-in-out;
}
.actuality:hover {
    transform: scale(1.05) rotate(2deg);
}
}