body {
    margin: 1%;
}

/* couleur surlignage texte*/
/* pour Firefox */
::-moz-selection {
    background-color: black;
    color: white;
   }
   /* pour Safari et Chrome */
   ::selection {
    background-color: black;
    color: white;
   }

@font-face {
    font-family: neueHaasMedium;
    src: url(TYPO/NeueHaasDisplayMediu.ttf);
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: neueHaasMediumItalic;
    src: url(TYPO/NeueHaasDisplayMediumItalic.ttf);
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: neueHaasRoman;
    src: url(TYPO/NeueHaasDisplayRoman.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: neueHaasRomanItalic;
    src: url(TYPO/NeueHaasDisplayRomanItalic.ttf);
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: neueHaasLight;
    src: url(TYPO/NeueHaasDisplayLight.ttf);
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: neueHaasLightItalic;
    src: url(TYPO/NeueHaasDisplayLightItalic.ttf);
    font-weight: lighter;
    font-style: italic;
}


/* Styles de la popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible; /* Rendre visible au début */
    opacity: 1;
    transition: visibility 0.3s, opacity 0.3s;
}

.popup-content {
    background-color: black;
    padding: 20px;
    border-radius: 0px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;

    color: white;
    font-family: neueHaasLight;
    font-size: 1em;
    line-height: 1.4;

}

/* Bouton pour fermer la popup */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: color 0.3s;
}

.close-button:hover {
    color: white;
}

/* Masquer la popup */
.popup.hidden {
    visibility: hidden;
    opacity: 0;
}




header {
    margin-bottom: 4%;
}

header h1 {
    font-family: neueHaasMedium;
    font-size: 1.4em;
}

header h2 {
    font-family: neueHaasLight;
    font-size: 1em;
    max-width: 60%;
    line-height: 1.4;
}

@media (orientation: portrait) {
    header h2 {
        max-width: 100%;
    }
}

header h2 a {
    color: black;
}

header h2 a:hover {
    background-color: black;
    text-decoration: none;
    color: var(--hover-color, white);
}


#myButton {
    background: none;
    border: solid 2px black;
    padding: 10px;
    font-family: neueHaasMedium;
    color:black;
    font-size: 1em;

    margin-bottom: 1%;
}

#myButton:hover {
    background-color: black;
    color: var(--hover-color, white);
    cursor: pointer;
}

.actif {
    background: none;
    border: solid 3px black;
    color: black;
    padding: 10px;
    font-family: neueHaasMedium;
    font-size: 1em;

    margin-bottom: 1%;
}

 .actif:hover {
    background: none;
    border: solid 3px black;
    color: black;

    cursor: auto;
}


table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    border-collapse: collapse;
    padding: 8px;
    margin-top: 2%;
    margin-bottom: 4%;

    line-height: 1.4;
}

table tr {
    border-bottom: 1px solid black;
}

table tr:hover {
    color: var(--hover-color, white);
    background-color: black;
    cursor: pointer; 
}

table th {
    font-family: neueHaasLight;
    font-size: .8em;
    color: black;

    padding: 1%;
    vertical-align: top;
}

#th:hover {
    background-color: var(--hover-color, white);
    color: black;
    cursor: default;
}

table td {
    font-family: neueHaasMedium;
    font-size: 1.2em;

    padding: 1%;
    vertical-align: top;
}

table a {
    color: inherit;
}
table a:hover {
    color: white;
}


.affiches {
    margin-top: 2%;
    
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:flex-start;
}

.element {
    width: 15%;
    height: auto;
    padding-right: 1%;
    padding-bottom: 1%;
    filter: grayscale(100%);
}

@media (orientation: portrait) {
    .element {
        width: 49%;
        filter: none;   
    }
}

.element:hover {
    
    filter: none;   
    text-decoration: underline;
    cursor: pointer;
}

.element a {
    text-decoration: none;
    color: black;
}

.element a:hover {
    text-decoration: underline;
    color: black;
}

.element img {
    max-width: 100%;
    height: auto;
}

.element h1 {
    font-family: neueHaasMedium;
    font-size: 1em;
}

footer {
    position: fixed;
bottom: 1%;
right: 1%;
}

footer button {
    background-color: var(--hover-color, white);
    border: solid 2px black;
    padding: 10px 14px;
    font-family: neueHaasMedium;
    font-size: 1em;

    margin-bottom: 1%;
}

footer button:hover {
    background-color: black; 
    color: var(--hover-color);
    cursor: pointer;
}