@font-face {
    font-family: "Snell roundhand";
    src: url("./fonts/snell-roundhand/SnellBT-Regular.otf");
}

body {
    --bs-body-font-size: 1.4rem;
    overflow-y: scroll;
    --green: #918256;
}


.container {
    margin-top: 3rem;
    margin-bottom: 6rem;

    & a {
        color: var(--green);
    }

    & h1.page-title {
        margin-bottom: 2rem;
        font-size: 3rem;
        font-family: "Snell roundhand";

        &:before {
            content: "~";
            margin-right: 1rem;
        }
    }
}

.tei-link {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: white;
    border-radius: 5px;
}

/*
 * Typography
 */
.smallcaps {
    font-variant: small-caps;
}



/*****************************************
* SIDEBAR
*****************************************/

.sidebar {
    position: fixed;
    top: 80px;
    bottom: 80px;
    left: 0;
    z-index: 100;
    /* Behind the navbar */
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    /* Height of navbar */
    height: calc(100vh - 160px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
    /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    background-color: transparent;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #999;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/*****************************************
 * FOOTER
 ****************************************/

footer {
    background-size: cover;
    background-image: url('../img/papierpeint.png');
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding-top: 1rem;
    height: 80px;
    margin-top: -2rem;

    & img {
        height: 40px;
    }

    & .links a {
        color: #000;
        display: inline-block;
        padding: 5px;
        text-decoration: none;
        background-color: white;
        margin-right: 1rem;
        border-radius: 5px;
        border: 1px solid lightgrey;
        border-bottom: 4px solid transparent;
        border-top: 4px solid transparent;

        &:hover {
            border-bottom: 4px solid var(--green);
            border-top: 4px solid var(--green);
        }
    }
}

/* 
 * Gallery
 */
.gallery {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    -webkit-column-width: 33%;
    -moz-column-width: 33%;
    column-width: 33%;
}

/*****************************************
 *  SIGNATURE
*****************************************/

#signature {
    background-size: cover;
    background-image: url('../img/signature.png');
    opacity: 0.20;
    position: fixed;
    bottom: 120px;
    right: 60px;
    height: 200px;
    width: 600px;
    z-index: -1;
}

/*****************************************
* HEADER
*****************************************/

/* 
.navbar-nav {
    background-color: white;
} */



#main-nav {
    height: 120px;
    background-size: cover;
    background-image: url('../img/papierpeint.png');

    & #navbarNav {
        margin-left: -100px;
    }

    & .nav-link {
        background-color: white;
        margin-right: 1rem;
        border-radius: 5px;
        border: 1px solid lightgrey;
        border-bottom: 4px solid transparent;
        border-top: 4px solid transparent;
        padding-left: 1rem;
        padding-right: 1rem;

        &:hover {
            border-bottom: 4px solid var(--green);
            border-top: 4px solid var(--green);
        }
    }

    & .navbar-brand img {
        height: 100px;
        margin-right: 1rem;
    }
}


/*****************************************
* BIBLIO
*****************************************/
#biblio-toc {
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-left: 1rem solid var(--green);
    margin-bottom: 3rem;
    background-color: white;

    & a {
        display: block;
        margin: 1rem 0;
    }
}

#bib_primaire>h2::before,
#section_bibSecondary_pre2006>div>h2::before,
#section_bibSecondary_post2006>div>h2::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: var(--green);
    margin-right: 1rem;
}

#section_bibPrimary,
#section_bibSecondary_pre2006,
#section_bibSecondary_post2006 {
    scroll-margin-top: 8rem;

    &>h2 {
        margin-bottom: 2rem;
    }
}

#bib_primaire div h2 {
    padding-left: 2rem;
}

ol.bibl {
    list-style-position: inside;
    padding-left: 1rem;

    &>li {
        margin: 0.5rem 0;

        &::marker {
            color: gray;
        }
    }
}

/*****************************************
* NEWS
*****************************************/
figcaption {
    padding-top: 1rem;
    font-size: 1rem;
    text-align: center;
}

.date_news {
    text-align: right;
}

.event-wrapper {
    & .event-image {
        padding-right: 3rem;
    }

    & .event-desc>div {
        margin-bottom: 2rem;
    }
}

/*****************************************
* AUTRE
*****************************************/
.modal-body img {
    display: block;
    margin: auto;
    width: 50%;
}

.person-card {
    max-width: 1190px;
}

.anchor {
    padding-top: 60px;
    margin-top: -60px;
    text-align: justify;
}

xmp {
    padding: 0;
    margin: 0;
    width: 50%;
    overflow: auto;
    display: inline-block;
}

#tei_link {
    position: absolute;
    right: 10px;
    background-color: white;
    border-radius: 5px;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}