:root {
    --primary-color:    #7b5a39;
    --primary-dark:     #4d3824;
    --primary-light:    #bd9975;
    --primary-bg:       #fff;
    --accent-color:     #b8912f;
    --texte-dore:       #fff;
    --texte-dore-hover: #e6d85a;
    --dark-color:       #2b1b12;
    --danger-color:     #e50f25;
    --light-color:      #f8f9fa;
    --police-application: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --bloc-rayon:   8px;
    --bloc-bordure: 1px solid var(--bs-border-color, #dee2e6);
    --bloc-ombre:   0 2px 4px rgba(43, 27, 18, 0.12);
    --hauteur-bandeau: clamp(240px, 165px + 19vw, 400px);
    --hauteur-element-barre: 2.5rem;
    --barre-padding-y: 0.6rem;
}

html {
    overflow-y: scroll;
}

body {
    font-family: var(--police-application);
    background-color: var(--primary-bg);
    color: var(--dark-color);
    padding-bottom: 30px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

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

a:hover {
    color: var(--primary-dark);
}

#bandeau-menu {
    background-color: #fff;
    min-height: calc(var(--hauteur-element-barre) + 2 * var(--barre-padding-y));
}

#page-header {
    background-image: url('/resources/images/wallpaper.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
    width: 100%;
    min-height: var(--hauteur-bandeau);
}

#page-logo {
    background-image: url('/resources/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 800px;
    max-width: 100%;
    height: var(--hauteur-bandeau);
    margin: auto;
}

.container {
    max-width: 1900px;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 20px;
}

#contenu-page > .col-12 {
    min-width: 0;
}

.card {
    border: var(--bloc-bordure);
    border-radius: var(--bloc-rayon);
    box-shadow: var(--bloc-ombre);
}

.page-texte-legal p {
    text-align: justify;
}

.btn-copyright {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
}

.btn-copyright:hover {
    text-decoration: underline;
}

.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    min-height: 30px;
    line-height: 22px;
}

.site-footer .lien-pied {
    color: #ffffff;
}

.site-footer .groupe-pied {
    white-space: nowrap;
}

@media (min-width: 992px) {
    .site-footer .pied-legaux {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
    }

    .site-footer .pied-legaux .groupe-pied {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--texte-dore);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--texte-dore-hover);
}

.code-erreur {
    font-size: 100px;
    font-weight: 700;
    line-height: 1;
}

.code-erreur-primaire {
    color: var(--primary-color);
}

.code-erreur-danger {
    color: var(--danger-color);
}

@media (max-width: 991.98px) {
    .site-footer {
        font-size: 0.7rem;
    }

    .site-footer > .container-fluid > .row {
        flex-wrap: nowrap;
        --bs-gutter-x: 0;
    }

    .site-footer .pied-legaux {
        display: contents;
    }

    .site-footer .pied-legaux > .groupe-pied {
        flex: 0 0 auto;
    }

    .site-footer .pied-legaux > .groupe-pied:first-of-type {
        order: 1;
    }

    .site-footer .pied-copyright {
        flex: 1 1 0;
        order: 2;
        min-width: 0;
        overflow: hidden;
        text-align: center;
        white-space: nowrap;
    }

    .site-footer .pied-legaux > .groupe-pied:last-of-type {
        order: 3;
    }

    #page-logo {
        width: 100%;
    }
}
