body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #3d3d3d;
    overflow-x: hidden;
    --height-header: 140px;
    --sidebar-width: 350px;
    --max-width: 600px;
    --line-height: 40px;
    --line-height-body: 25px;
    --rule-height: 1px;
    --side-padding: 35px;
    --color-menu: #251F5D;
    --blog-header-height: 200px;
    --padding-title: 20px;
    --padding-paragraph: 10px;
    --important-color-1: rgb(145, 34, 135);
    --important-color-2: #b42222;
    --important-color-3: #e7972d;
    --important-color-4: #dfdb1e;
    --important-color-5: #215659;
    --important-color-last: #bc30e7
}

/*https://stackoverflow.com/questions/643879/css-to-make-html-page-footer-stay-at-bottom-of-the-page-with-a-minimum-height-b?page=1&tab=scoredesc#tab-top*/

body>* {
    flex: 1
}

body,
button {
    font-family: Poppins;
    font-size: 16px;
}

.overflow-body {
    overflow: hidden
}

/*common mise en page*/

.flex {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.container {
    margin: 0 calc(50% - var(--max-width));
    padding: 0 var(--side-padding);
}

@media screen and (max-width: 1200px) {
    .container {
        margin: 0 0;
    }
}

.surcouche {
    background-color: var(--surcouche-color);
    min-height: calc(100vh - var(--height-header) - var(--line-height));
}

.title {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: var(--padding-title);
    padding-bottom: var(--padding-title);
    line-height: var(--line-height);
    text-align: left;
}

h2,
h3,
h4 {
    font-family: 'Gloria Hallelujah';
}

h2,
h3 {
    font-style: italic;
}

h2 {
    color: var(--color-menu) !important;
    font-size: 30px;
}

h3 {
    color: #3d3d3d;
    font-size: 23px;
}

.paragraph {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: var(--padding-paragraph);
    padding-top: var(--padding-paragraph);
    line-height: var(--line-height-body);
    text-align: justify;
}

.hline:after {
    content: "";
    display: block;
    border-bottom: 1px solid black;
}

ul,
ol {
    list-style-position: inside;
    padding: 0 0;
    margin: 0 0
}

li {
    padding: 0;
    margin: 0
}

a {
    color: inherit !important
}

.source {
    text-align: right;
    font-style: italic;
    margin-left: auto;
    margin-right: auto;
    width: 80%
}

@media screen and (max-width:480px) {
    .paragraph {
        text-align: left;
    }

    .source {
        width: unset;
    }
}

/*background image properties*/

.insolences20222023 {
    background: url(/INsolences/background.png);
    --surcouche-color: rgb(230, 227, 207, 0.75);
}

.insolences20232024 {
    background-color: rgb(226, 151, 111);
    --surcouche-color: rgb(255, 255, 255, 0.75);
}

.insolences20242025 {
    background-color: rgb(79, 168, 174);
    --surcouche-color: rgb(255, 255, 255, 0.75);
}

.evars {
    background: linear-gradient(#9FD581, #C794B3);
}

.hap20222023 {
    background: url(/hap/Logo.png);
    --surcouche-color: rgb(255, 255, 255, 0.75);
    background-attachment: fixed;
    background-position: center !important;
}

.hap2023 {
    background: url(/hap/logo-2023.png);
    --surcouche-color: rgb(255, 255, 255, 0.75);
}

.international-background {
    background: linear-gradient(#e66465, rgb(145, 152, 229));
}

.as-background {
    background: linear-gradient(#e66465, rgb(145, 152, 229));
}

.oceans-poles20222023 {
    background: url(/edd/oceans-poles-tryptique-2.jpg);
    --surcouche-color: rgb(230, 227, 207, 0.75)
}

#presentation {
    background-image: url(/devel/renan.jpg);
    background-attachment: fixed;
    background-position: center !important;
    --surcouche-color: rgb(255, 255, 255, 0.75)
}

#historique {
    background-image: url(/lycee/historique-2.jpg);
    background-position: center !important;
    --surcouche-color: rgb(255, 255, 255, 0.75)
}

.insolences20222023,
.hap20222023,
.oceans-poles20222023,
#presentation,
.international-background,
#historique,
.hap2023 {
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media screen and (max-width: 960px) {

    .insolences20222023,
    .hap20222023,
    .oceans-poles20222023,
    #presentation,
    .international-background {
        background-image: none;
        --surcouche-color: unset
    }

}

/*common icon*/

#sidebar .accordion:after,
.download-icon:after,
.serie-flex .accordion:after,
.follow-icon:after {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit !important;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

/*common href download or follow link animation
https://www.dannyguo.com/blog/animated-multiline-link-underlines-with-css*/

.href-animation {
    text-decoration: none;
    color: inherit;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size .3s;
    font-style: italic;
    font-weight: bold;
}

#footer-yl .href-animation {
    font-style: normal;
    font-weight: normal;
}

.href-animation:hover {
    background-size: 100% 1px;
}

/*old href download or follow link animation
multi line doesnot work
.href-animation {
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.href-animation:after {
    position: absolute;
    content: "";
    width: 0;
    height: 3px;
    background-color: currentColor !important;
}

.href-animation:hover:after {
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}
*/

.download-icon:after {
    content: '\f019';
    color: currentColor
}

.follow-icon:after {
    content: '\f054';
    color: currentColor
}

@media screen and (pointer:coarse) {

    .href-animation:hover {
        background-size: 0% 1px;
    }

    .href-animation {
        background-size: 100% 1px;
    }

    /*old href download or follow link animation
    .href-animation {
        cursor: default
    }

    .href-animation:hover:after {
        display: none;
    }
    */

}

/*reseaux sociaux*/

.social-color,
.social-white {
    margin-left: 0 !important
}

.social-box {
    filter: grayscale(100%);
}

.social-box:hover {
    filter: none;
}

@media (pointer:coarse) {

    .social-box {
        filter: unset;
        cursor: default;
    }

    .social-color {
        display: unset;
    }

    .social-white {
        display: none !important;
    }

}

/*common tableau*/

table {
    margin: 0;
    padding-bottom: var(--padding-paragraph);
    color: black;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    text-align: left;
}

.evars-table,
.evars-table th,
.evars-table td {
    border: 1px solid
}

tr {
    padding: 8px;
    height: var(--line-height);
}

/*header & footer*/

.bandeau {
    margin: 0;
    padding: 0 calc(50% - var(--max-width) - var(--side-padding));
    max-width: 100%;
    height: var(--height-header);
    max-height: var(--height-header);
    background-color: rgba(255, 255, 255, 1);
    color: var(--color-menu);
    box-sizing: content-box;
    position: sticky;
    top: 0;
    z-index: 10000;
}

#logo {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.next-to-logo {
    padding-left: 5px;
}

.next-to-logo a,
.follow a,
#header-yl a,
#sidebar a {
    text-decoration: none;
    color: white;
}

/*header*/

#header-yl {
    border-bottom: solid var(--rule-height) black;
}

.next-to-logo h3,
.next-to-logo h4 {
    text-align: center;
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-style: italic;
    font-family: Poppins !important;
    color: white !important;
}

/*menu et item*/

.bandeau #hamburger {
    display: none;
}

#header-yl ul,
#sidebar ul {
    list-style: none;
}

.primary-menu {
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    /*avoid submenu shutdown before accessing it*/
    line-height: var(--line-height);
    cursor: default;
}

.primary-menu:after {
    position: absolute;
    bottom: 0px;
    content: "";
    width: 0;
    height: 3px;
    background-color: var(--color-menu);
}

.primary-menu:hover:after {
    display: block;
    width: 24px;
    transition: all 0.3s ease;
}

.sub-menu {
    display: none;
    position: absolute;
    width: 300px;
    padding-left: var(--side-padding);
    top: calc(- var(--line-height));
    background-color: white;
    color: black;
    text-align: left;
    line-height: var(--line-height);
    text-transform: none;
    border-radius: 5px;
    border: solid var(--rule-height) black;
    z-index: 10000;
    margin-left: -100px;
}

#header-yl li:hover .sub-menu {
    display: block
}

#header-yl li:hover #formations,
#header-yl li:hover #vie-lycee {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

#header-yl li:hover #formations {
    width: 575px;
    margin-left: -183.417px;
}

#header-yl li:hover #vie-lycee {
    width: 450px;
    margin-left: -183.417px;
}

#header-yl .sub-menu a,
#header-yl .sub-menu li {
    color: black;
    font-weight: normal;
}

#header-yl .sub-menu a:hover li {
    color: var(--color-menu);
}

#CPGE-bts,
#info-pratiques {
    min-width: 300px;
}

#edd-cesc-eac {
    min-width: 250px;
}

#lycee-submenu {
    margin-left: -50px;
}

#infos-pratiques-submenu {
    margin-left: -150px;
}

/*sidebar*/

#sidebar {
    display: unset;
    box-sizing: content-box;
    width: var(--sidebar-width);
    max-width: 100%;
    height: calc(100vh - var(--height-header) + var(--line-height));
    overflow-y: scroll;
    position: absolute;
    top: calc(var(--height-header) - var(--line-height) + 1px);
    left: 100%;
    background-color: white;
    transition: 1s all ease;
    z-index: 10000;
    border: 1px solid;
    border-top: 0px
}

#sidebar button {
    margin: 0;
    padding: 0 var(--side-padding);
    line-height: var(--line-height-body);
    border: 0px;
    color: var(--color-menu);
    background-color: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
    text-transform: uppercase;
    font-weight: bold;
}

#sidebar .accordion:after {
    content: '\f0da';
    line-height: var(--line-height-body);
    float: right;
}

.no-triangle:after {
    content: '' !important;
}

#sidebar .active:after {
    content: '\f0d7' !important;
}

/*footer specifics*/

#footer-yl {
    height: calc(2 * var(--line-height));
    max-height: calc(2 * var(--line-height));
    line-height: calc(2 * var(--line-height));
    border-top: solid var(--rule-height) black;
    /*font-size: small;*/
    cursor: default;
}

.follow {
    max-width: 100%;
    width: 300px;
    height: var(--line-height);
    justify-content: space-between;
    margin-left: auto;
    margin-right: var(--side-padding);
}

#footer-yl .follow {
    display: none
}

.follow img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    /*override precedent*/
    margin-left: 0;
}

.follow a {
    position: relative;
}

.message-on-hover {
    display: none;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    left: 0;
    top: calc(-0.4 * var(--line-height) - 15px);
    font-size: small;
    line-height: calc(0.4 * var(--line-height));
    width: fit-content;
}

.follow a:hover .message-on-hover {
    display: block;
}

.fa {
    line-height: calc(0.4375*var(--line-height));
}

@media screen and (max-width: 1024px),
(pointer : coarse) {

    #header-yl {
        margin-left: unset;
        height: calc(var(--height-header) - var(--line-height));
    }

    /*https://stackoverflow.com/questions/38069213/add-padding-top-to-scroll-when-using-href-id*/
    #bourses,
    #breizhgo,
    #tarifs,
    #paiement-en-ligne,
    #rencontre,
    #hypokhagne,
    #khagne,
    #info,
    #paroles-anciens,
    #resultats-cpge,
    #debouches,
    #bel,
    #conventions,
    #hors-bel,
    #universite,
    #pdes,
    #sciences-po,
    #actu {
        scroll-margin-top: calc(var(--height-header) + - var(--line-height));
    }

    #header-yl nav {
        display: none;
    }

    .primary-menu:hover:after {
        display: none
    }

    #header-yl #hamburger {
        display: block;
    }

    .active-sidebar {
        transform: translateX(calc(-1*(var(--sidebar-width))));
    }

    .sub-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        display: block;
        top: unset;
        background-color: inherit;
        border-radius: 0px;
        border: unset;
        width: unset;
        margin-left: 0;
        z-index: unset;
        position: unset;
    }

    /*footer specifics*/
    .footer-adress {
        flex-direction: column;
        height: unset;
        text-align: center;
        line-height: var(--line-height);
    }

    .follow {
        display: none;
    }

    .serie-description .follow {
        display: flex;
    }

    #footer-yl .follow {
        display: flex;
        margin-right: auto;
    }

}

b {
    margin-right: -4px;
}

/*bandeau IMPORTANT : &#x26A0; html character pour IMPORTANT*/
#bandeau-important {
    color: #FFCD2E;
    background-color: salmon;
    border-bottom: 1px solid black;
    position: sticky;
    top: var(--height-header);
    z-index: 1000;
    width: 100%;
    display: none;
}

@media screen and (max-width: 1024px),
(pointer : coarse) {
    #bandeau-important {
        top: calc(var(--height-header) - var(--line-height));
        position: static
    }
}

/*specifique aux formations*/

.serie-flex {
    background-color: white;
    color: black;
    line-height: var(--line-height-body);
}

.specialites,
.options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.accordion {
    --line-height-body: 30px;
    font-weight: bold;
    padding: var(--padding-paragraph) 0;
    background-color: inherit;
    border: 0px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    line-height: var(--line-height-body);
}

.serie-flex .accordion:after {
    content: '\002B';
    /*unicode for +*/
    font-weight: bold;
    line-height: 30px;
    font-size: 30px;
    float: right;
}

.serie-flex .active:after {
    content: "\2212" !important;
    /*unicode for -*/
}

.line {
    width: 3px;
    flex-shrink: 0;
    margin-right: calc(var(--side-padding) - 3px);
    align-self: stretch;
}

.circle {
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: -10px;
    margin-right: calc(var(--side-padding) - 10px);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid;
    background-color: white;
}

#circle-0 {
    border-color: var(--color-menu);
}

#circle-1 {
    border-color: var(--important-color-1);
}

#circle-2 {
    border-color: var(--important-color-2);
}

#circle-3 {
    border-color: var(--important-color-3);
}

#circle-4 {
    border-color: var(--important-color-4);
}

#circle-5 {
    border-color: var(--important-color-5);
}

#last-circle {
    border-color: var(--important-color-last);
}

.important-text-0 {
    color: var(--color-menu);
}

.important-text-1 {
    color: var(--important-color-1) !important;
}

.important-text-2 {
    color: var(--important-color-2) !important;
}

.important-text-3 {
    color: var(--important-color-3) !important;
}

.important-text-4 {
    color: var(--important-color-4) !important;
}

.important-text-5 {
    color: var(--important-color-5) !important;
}

.important-text-last {
    color: var(--important-color-last) !important;
}

#line-0 {
    background: linear-gradient(var(--color-menu), white);
}

#line-1 {
    background: linear-gradient(var(--important-color-1), white);
}

#line-2 {
    background: linear-gradient(var(--important-color-2), white);
}

#line-3 {
    background: linear-gradient(var(--important-color-3), white);
}

#line-4 {
    background: linear-gradient(var(--important-color-4), white);
}

#line-5 {
    background: linear-gradient(var(--important-color-5), white);
}

#last-line {
    background: linear-gradient(var(--important-color-last), var(--color-menu));
}

/*specifique aux formations : animation de la ligne à gauche à la github*/

.revealY {
    transform: scaleY(0);
    transition: 1s all ease;
    transform-origin: 0 0;
}

.activeY {
    transform: scaleY(1);
    opacity: 1;
}

.revealX {
    transform: translateX(calc(13px - var(--side-padding)));
    transition: 1s all ease;
    opacity: 0;
}

.activeX {
    transform: translateX(0);
    opacity: 1;
}

/*https://stackoverflow.com/questions/43809612/prevent-a-child-element-from-overflowing-its-parent-in-flexbox*/
.serie-description {
    min-width: 0;
    width: 100%;
}

.serie-description th,
.evars-table th {
    background-color: #bc30e7;
}

.serie-description table {
    width: 48%
}

.serie-description th:nth-child(2),
.serie-description td:nth-child(2) {
    width: 75px;
    text-align: center;
}

#table-seconde {
    width: 100%
}

@media screen and (max-width: 1024px) {
    .serie-description table {
        width: 100%
    }
}

tr:nth-child(2n) {
    background-color: var(--color-menu);
    color: white;
}

tr:nth-child(2n+1) {
    color: black;
}

td,
th {
    text-align: center;
}

.resultats td:first-child,
.resultats th:first-child {
    text-align: left;
}

/*Slider*/

.slider-image,
.standalone-image {
    background-color: unset;
    max-width: calc(0.75 * 1320px);
    height: auto;
    position: relative;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
}

#greta {
    background-color: unset;
    width: calc(0.75 * 1320px);
    height: auto;
    position: relative;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
}

#bts-ndrc-logo {
    width: calc(0.5 * 1320px);
}

.slider-image {
    border: solid 1px black;
}

.slider-image img,
.slider-actu img,
.standalone-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.slider-image .fa-angle-right,
.slider-image .fa-angle-left,
.photo-number {
    position: absolute;
    color: white;
    background-color: rgba(0, 15, 51, .5);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    line-height: 40px !important;
    text-align: center
}

.slider-image .fa-angle-right {
    top: calc(50% - 20px);
    right: 8px;
}

.slider-image .fa-angle-left {
    top: calc(50% - 20px);
    left: 8px;
}

.slider-image .fa-angle-right:hover,
.slider-image .fa-angle-left:hover {
    cursor: pointer;
}

@media (pointer : coarse) {

    .slide .fa-angle-right,
    .slide .fa-angle-left {
        display: none !important;
    }

}

.photo-number {
    top: 8px;
    right: 8px;
    min-width: 50px;
}

.slider-actu {
    align-items: baseline;
    overflow-x: hidden;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    transition: transform 1s ease-in-out;
}

.slide-image {
    cursor: pointer;
    padding-left: calc(2*var(--side-padding));
}

.slide-content {
    color: inherit;
    text-align: justify;
    justify-content: space-between;
    line-height: var(--line-height-body);
}

.slide-title,
.slide-date {
    font-size: 20px;
    font-style: italic;
    font-weight: bold;
}

#presentation button {
    width: 150px;
    height: 40px;
    margin: var(--padding-paragraph) 2px;
    padding: 0 0;
    border-radius: 50px;
    border: 0;
    background-color: rgba(0, 15, 51, .5);
    text-align: center;
    color: white;
    cursor: pointer;
    line-height: var(--line-height-body);
}

@media screen and (max-width: 1024px) {

    #presentation button {
        display: none;
    }

    #button-blog {
        display: block !important;
    }

    .slider-image,
    .slider-actu {
        padding: 0 0;
        width: 100%;
        box-sizing: border-box;
        align-items: flex-start;
        flex-shrink: 1;
        max-width: unset;
    }

    .slider-image {
        margin-left: calc(-1 * var(--side-padding));
        margin-right: 0;
        width: calc(100% + 2 * var(--side-padding)) !important
    }

    .slide-title,
    .slide-text,
    .slide-date {
        padding-left: var(--side-padding);
        padding-right: var(--side-padding)
    }

    .slide-content {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .slider-actu {
        flex-direction: column;
    }

    .slider-actu .slide:nth-child(2n+1) {
        background-color: var(--color-menu);
        color: white
    }

    .slider-actu .slide:nth-child(2n) .slide-text {
        color: black;
    }

    .slide-image {
        padding-top: 0;
        padding-bottom: var(--padding-paragraph);
        align-self: center;
        padding-left: 0;
    }

    .slide-image img {
        max-width: unset;
        width: 100%;
    }

    #presentation .hline:after {
        display: none;
    }

    #header-yl {
        position: relative;
    }

}

.lycee {
    min-height: calc(100vh - 100px);
}

.lycee h2,
.lycee h3,
.lycee h4 {
    margin: 0 0;
    line-height: calc(0.3333*var(--blog-header-height) - 0.6666*var(--blog-header-padding));
    color: white !important;
    text-align: center;
}

.lycee h4 {
    text-align: left;
}

.row-to-column {
    justify-content: space-around;
}

.row-to-column a,
.row-to-column .slider-image {
    width: 45%;
}

.row-to-column .video {
    max-width: 30%
}

.row-to-column img {
    width: 100%;
}

/*Vignettes*/
.post-blog {
    display: none;
    margin: 15px 15px;
    max-width: 30%;
    border-radius: 5px;
    border: 2px solid;
    position: relative;
    flex: 1 0 calc(30% - 30px);
    box-shadow: 0px 8px 30px 0px var(--blog-color-transparency);
    text-align: left;
    transition: 0.5s ease;
    background-color: white;
    overflow-y: hidden;
}

.list-blog {
    flex-wrap: wrap;
    align-items: stretch;
}

.post-blog img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    vertical-align: bottom;
    transition: transform 0.25s ease;
}

.post-blog:hover img {
    transform: scale(1.1);
}

.blog-date {
    color: gray;
    font-size: small;
    margin: 10px 10px;
}

.blog-title {
    font-size: larger;
    color: var(--blog-color-title);
    margin: 10px 10px;
    margin-bottom: 100px;
}

.post-blog button {
    height: 50px !important;
    margin: 0px 0 !important;
    border: 0px !important;
    width: 100% !important;
    display: block !important;
    bottom: 0px !important;
    position: absolute !important;
    background-color: var(--blog-color-transparency) !important;
    border-radius: 0px !important;
    font-weight: bold !important;
    color: var(--blog-color-title);
    font-size: medium;
    cursor: pointer;
}

.post-blog:hover button,
#all:hover {
    background-color: var(--blog-color) !important;
    transition: 1s ease !important;
}

.card-content {
    margin: 10px 10px;
    line-height: var(--line-height-body);

}

.card-title {
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.card {
    display: block;
    background: linear-gradient(#3AA9B6, #D3A489);
    text-align: center
}


/*Specifites blog page */
.blog-header>* {
    text-align: center !important;
    color: black !important;
}

@media screen and (max-width: 1024px) {

    .post-blog {
        flex: 1 0 calc(45% - 30px);
        max-width: 45%;
    }

}

@media screen and (max-width: 600px) {

    .post-blog {
        flex: 1 0 100%;
        margin: 15px -4px;
        max-width: 100%
    }

    .row-to-column a {
        width: 100%;
    }

    .row-to-column .video {
        max-width: 60%
    }

}

.infirmerie {
    font-weight: bold;
    color: var(--color-menu)
}

.show {
    display: block;
}

/*https://stackoverflow.com/questions/38069213/add-padding-top-to-scroll-when-using-href-id*/
#bourses,
#breizhgo,
#tarifs,
#paiement-en-ligne,
#rencontre,
#hypokhagne,
#khagne,
#info,
#paroles-anciens,
#resultats-cpge,
#debouches,
#bel,
#conventions,
#hors-bel,
#universite,
#sciences-po,
#pdes,
#sections,
#actu {
    scroll-margin-top: calc(var(--height-header) + var(--line-height));
}

.video {
    width: 80%;
    display: block;
    margin: 0 auto;
    max-height: 75vh;
}

@media screen and (max-width: 1024px) {

    .video,
    #actu-slide-container,
    .standalone-image,
    #bts-ndrc-logo {
        margin-left: calc(-1 * var(--side-padding));
        margin-right: 0;
        width: calc(100% + 2 * var(--side-padding))
    }

    .serie-description .video,
    .serie-description .standalone-image,
    #bts-ndrc-logo {
        margin-left: calc(-2 * var(--side-padding));
        width: calc(100% + 3 * var(--side-padding))1
    }

}

@media screen and (max-width: 512px) {

    #greta {
        margin-left: calc(-1 * var(--side-padding));
        margin-right: 0;
        width: calc(100% + 2 * var(--side-padding))
    }
}

#sommaire {
    width: 100%;
    border: 1px solid;
    border-radius: 10px;
}

#sommaire ul {
    padding: var(--padding-title) var(--side-padding);
}

#sommaire ul {
    list-style-type: none;
}

.sommaire-debouches,
.sommaire-anciens,
#sommaire-resultats,
#sommaire-debouches,
#sommaire-anciens,
.sommaire-link {
    border-left: 2px white solid;
}

#sommaire ol li {
    padding-left: 15px;
}

#sommaire a {
    padding-left: 5px
}

.sommaire-debouches:hover,
.sommaire-anciens:hover,
#sommaire-resultats:hover,
#sommaire-debouches:hover,
#sommaire-anciens:hover,
.sommaire-link:hover {
    border-left: 2px var(--line-color) solid;
}

#sommaire a {
    text-decoration: none;
}

.logo-ext-fa {
    display: none;
}

#main_logo_container {
    width: 100%;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    overflow-x: hidden
}

#logo_container {
    justify-content: space-around;
    align-items: center;
    min-height: 150px;
    width: 100%;
}

.logo {
    border-radius: 5px;
    height: 100px;
    box-shadow: 0px 0px 15px grey;
    flex: 0 0 clamp(250px, (960px - 100vw)*1000, 50% - 2*var(--side-padding));
    margin-right: var(--side-padding);
    margin-left: var(--side-padding);
    background-color: white
}

#repeat_logo {
    display: none;
}

.logo a {
    display: block;
    height: 70px;
    text-align: center;
    margin-top: 15px;
}

#logo_container img {
    width: 90%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%)
}

#logo_container img:hover {
    filter: grayscale(0)
}

@media (pointer:coarse) {

    #logo_container img {
        filter: grayscale(0)
    }

}

@media screen and (max-width: 960px) {

    #repeat_logo {
        display: block;
    }

    .logo-ext-fa {
        padding-left: var(--side-padding);
        padding-right: var(--side-padding);
        width: 40px;
        height: 100px;
        line-height: 100px !important;
        z-index: 100;
        text-align: center;
        cursor: pointer;
        background-color: white;
        display: block;
    }

    .logo-ext-fa .fa-angle-right {
        top: calc(50% - 0.21875*var(--line-height));
        right: 0;
        position: relative;
    }

    .logo-ext-fa .fa-angle-left {
        top: calc(50% - 0.21875*var(--line-height));
        left: 0;
        position: relative;
    }

    #main_logo_container {
        padding-left: 0;
        padding-right: 0;
    }

    #logo_container {
        justify-content: flex-start;
    }

}

@media screen and (max-width: 840px) {

    .logo {
        flex: 0 0 calc(100% - 2*var(--side-padding))
    }

}

.mobile-cards {
    display: none;
}

@media screen and (max-width: 600px) {
    .evars-table {
        display: none;
    }

    .mobile-cards {
        display: block;
    }

    .table-alternative {
        background-color: #fff;
        margin: 15px 0px;
        max-width: 100%;
        border-radius: 5px;
        border: 2px solid;
        padding: 10px
    }

    .table-alternative h3 {
        color: #3498db;
        margin-top: 0;
        font-size: 1.2em;
    }

    .axe-title {
        font-weight: bold;
        margin-top: 10px;
        color: #2c3e50;
    }
}

.sub-list {
    margin-left: var(--side-padding);
}

.flex-right-item-left-margin {
    padding-left: calc(2*var(--side-padding));
}

@media screen and (max-width: 840px) {

    .flex-right-item-left-margin {
        padding-left: 0;
    }

    .row-to-column {
        flex-direction: column;
        align-items: center;
    }

    .row-to-column .slider-image {
        align-self: flex-start;
    }

    .row-to-column a {
        width: 80%;
    }

    .row-to-column .video {
        max-width: 50%
    }

    .row-to-column a {
        margin-left: calc(-1 * var(--side-padding));
        margin-right: 0;
        width: calc(100% + 2 * var(--side-padding))
    }

}

.container-pictos {
    text-align: center;
    margin-top: 10px
}

.pictos {
    width: auto !important;
    height: 60px !important;
}