/* footer */
.page-footer {
    color: #EEEEEE;
    background-color: rgba(46, 46, 50, 0.85);
    /* #2E2E32 converted to RGB */
    text-align: center;
    font-size: 1rem;
    position: sticky;
    top: 100vh;
    box-sizing: border-box;
    z-index: 2;
    padding: 3px;
    display: flex;
    justify-content: space-between;
}

.no-background-footer {
    padding: 5px;
}

/* footer without script */
#modal-page-footer,
#phototheque-page-footer {
    display: none;
}

#noscript-text {
    padding: 10px;
}

#noscript-text a {
    font-weight: bold;
    color: #EEEEEE;
    text-decoration: none;
}

#noscript-text a:hover,
#noscript-text a:focus{
    text-decoration: underline;
}

/* footer with script */
.js-enabled #phototheque-page-footer {
    display: block;
    align-content: center;
    border-left: 1px solid #CDD7DC;
    text-align: left;
    max-width: calc(100% / 3.8);
    width: auto;
    flex: 0 0 auto;
}

.js-enabled #modal-page-footer,
.js-enabled #modal-page-footer ul {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    flex-wrap: wrap;
}

/* footer links */
.page-footer a.page-footer-link{
    color: #EEEEEE;
    margin: 0px 10px;
    padding: 5px;
    text-decoration: none;
}

.page-footer a.page-footer-link:hover,
.page-footer a.page-footer-link:focus{
    color: #EEEEEE;
    text-decoration: underline;
}

.page-footer a.page-footer-link:focus{
    outline: 2px solid #EEEEEE;
}

/* inside phototheque*/
#phototheque p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 62px;
}

#phototheque #eye {
    float: left;
    height: 32px;
    margin-right: 10px;
    padding: 10px;
}

/* inside modal */
h2, h3, h4, h5, h6 {
    color: #00284B;
    font-family: IBM Plex Sans, serif;
}

.cnrs-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.cnrs-modal-content {
    position: relative;
    background-color: #fefefe;
    color: #2E2E32;
    margin: 2% auto;
    padding: 20px;
    border: 2px solid #CDD7DC;
    max-width: 800px;
}

.cnrs-modal-header {
    font-size: 1em;
    margin-bottom: 15px;
    border-bottom: 2px solid #CDD7DC;
    padding-bottom: 15px;
    text-align: center;
    color: #00284B;
}

.cnrs-modal-header h2{
    margin-bottom: 5px;
}

.cnrs-modal-body {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 1em;
}

.cnrs-modal-footer {
    margin-top: 15px;
    padding-top: 20px;
    padding-bottom: 5px;
    border-top: 2px solid #CDD7DC;
    text-align: right;
    font-size: 0.9em;
}

.cnrs-modal-close {
    position: absolute;
    right: 0;
    margin-right: 5px;
    font-size: 1.2em;
    margin-top: -15px;
    background: #ffffff;
    box-sizing: content-box;
    color: #6941EB;
    cursor: pointer;
    font-weight: bold;
    opacity: unset;
    font-family: "Satoshi-Variable", Verdana, Geneva, sans-serif;
    border: 2px solid #6941EB;
    border-radius: 50rem;
    padding: 5px 12px;
}

.cnrs-modal-close:hover,
.cnrs-modal-close:focus {
    background: #00284B;
    color: #ffffff;
    border: 2px solid #00284B;
    text-decoration: none;
}

.cnrs-modal-close:focus {
    outline: 3px solid #177F00;
}

/* Styles pour les liens dans les modales */
.cnrs-modal-body a {
    color: #6941EB;
    text-decoration: none;
    overflow-wrap: anywhere;
    font-size: 1em;
}

.cnrs-modal-body a:hover,
.cnrs-modal-body a:focus {
    color: #00284B;
    text-decoration: underline;
}

.cnrs-modal-body a:focus {
    outline: 2px solid #00284B;
}

/* Styles pour les paragraphes dans les modales */
.cnrs-modal-body p {
    margin: 0.8em 0;
}

/* Styles pour les listes dans les modales */
.cnrs-modal-body ul {
    list-style: square inside;
    margin: 0.8em 0;
}

.cnrs-modal-body li {
    margin-left: 10px;
}

/* Styles pour les tableaux dans les modales */
.table-wrapper {
    overflow-x: auto;
}

.cnrs-modal-content table {
    border: solid;
    border-width: 1px;
    width: 100%;
    border-collapse: collapse;
}

.cnrs-modal-content table th,
.cnrs-modal-content table td {
    border: solid 1px;
    padding: 6px;
}

.cnrs-modal-content table caption{
    font-weight: bold;
}

/* Style responsive */
@media only screen and (max-width: 800px) {
    #phototheque-page-footer {
        display: none !important;
    }
    .cnrs-modal-content {
        margin: 0;
        padding: 15px;
    }
    .cnrs-modal-header {
        text-align: left;
    }
    .cnrs-modal-close {
        position: relative;
        float: right;
        margin-right: -10px;
    }
    #cross-close-button {
        margin-top: -10px;
    }
    .cnrs-modal-footer {
        padding-bottom: 10px;
    }
    .page-footer a.page-footer-link {
        margin: 2px 10px;
    }
}
