body {
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern";
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-family: HelveticaNeue, sans-serif;
    font-size: .75rem;
    line-height: 1.0625rem;
}

.logo {
    font-size: 1.5em;
    display: flex;
    flex-direction: row;
}

#imglogo {
    width: 100px;
    height: auto;
    margin-right: 10px;
}

.global-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.first-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: white;
    padding-bottom: 0;
    padding-top: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 1px #F2F2F2;
}

.left-buttons, .right-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav li {
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: black;
}

.second-header {
    color: black;
    padding-bottom: 12px;
    padding-top: 12px;
    align-items: center;
    background-color: white;
    box-shadow: 0 1px 1px #F2F2F2;
}

.additional-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-left: 111px;
    width: 100%;
}

.filter {
    padding-right: 0;
}

.first-header nav a:hover {
    font-weight: bold;
}

.second-header nav a:hover {
    text-decoration: underline;
    font-weight: bold;
}

.global-footer {
    width: 100%;
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.upper-footer {
    padding: 15px;
    color: black;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.upper-footer .left-buttons ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.upper-footer .left-buttons li {
    margin-right: 20px;
}

.upper-footer .left-buttons a {
    text-decoration: none;
    color: black;
}

.upper-footer .right-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
}

.lower-footer {
    padding: 15px;
    color: black;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.lower-footer .left-buttons ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.lower-footer .left-buttons li {
    margin-right: 20px;
}

.lower-footer .left-buttons a {
    text-decoration: none;
    color: black;
}

.lower-footer .right-content {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 10px;
}

.upper-footer .left-buttons a:hover {
    font-weight: bold;
}

.lower-footer .left-buttons a:hover {
    font-weight: bold;
}

.lower-footer .right-content a:hover {
    font-weight: bold;
}

main {
    margin-top: 110px;
}

figure {
    display: inline-block;
    margin: 10px;
    text-align: center;
}

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

figcaption {
    margin-top: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding-right: 30px;
    padding-left: 30px;
}

.image-grid figure {
    text-align: center;
}

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

.image-grid figure a {
    text-decoration: none;
}

.image-grid figcaption {
    text-align: left;
    color: black;
    text-decoration: none;
}

figcaption p {
    margin-top: 0;
}

figcaption p.titre {
    font-weight: bold;
    margin-bottom: 0;
}

figcaption p:last-child {
    margin-top: 0;
}

.sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 40%;
    background-color: #f1f1f1;
    padding: 20px;
}

.sidebar-content {
    max-height: calc(100% - 80px);
    overflow-y: auto;
    position: relative;
}

#applyFiltersButton {
    position: absolute;
    bottom: 54px;
    right: 0;
    width: 54%;
    padding-top: 3%;
    padding-bottom: 3%;
    padding-right: 24%;
    padding-left: 24%;
    cursor: pointer;
    background-color: black;
    color: white;
    border: 1px solid black;
}

#resetFiltersButton {
    position: absolute;
    bottom: 54px;
    left: 0;
    width: 54%;
    padding-top: 3%;
    padding-bottom: 3%;
    padding-right: 24%;
    padding-left: 24%;
    border: none;
    cursor: pointer;
    background-color: white;
    color: black;
}

#applyFiltersButton,
#resetFiltersButton {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
}

.sidebar-content.overflowed-buttons #applyFiltersButton,
.sidebar-content.overflowed-buttons #resetFiltersButton {
    position: fixed;
    bottom: 0;
    width: 50%;
    z-index: 1003;
}

#filterSidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 350px;
    background-color: #fff;
    z-index: 1;
}

.sidebar-open {
    overflow: hidden;
}

#applyFiltersButton:hover,
#resetFiltersButton:hover {
    background-color: grey;
    border: none;
}

.sidebar-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
    width: 20%;
    position: fixed;
}

.sidebar-buttons button {
    flex-grow: 1;
    margin-top: 10px;
}

.sidebar-buttons button#applyFiltersButton,
.sidebar-buttons button#resetFiltersButton {
    width: 48%;
    margin-top: 10px;
}

.sidebar-buttons #applyFiltersButton,
.sidebar-buttons #resetFiltersButton {
    width: 48%;
    margin-right: 0;
}
