:root {
    --background: #f5fffe;
/*    --background-2: #000;*/
    --texte: #239fb3;
    --strong: #4b87f3;
    --strong-background: #444;
    --p-background: #e7e7e7;
    --code-background: #adadad;
    --code-shadow: #818181;
    --link: #717bff;
    --link-hover: #7cb7f5 ;
    --icon-modify-link: grey;
    --icon-modify-link-hover: #7cb7f5;
    --epingle: #6c5aff;
    --code-menu-top: #fff;
    --code-menu-top-background: #b1b1b1;
    --code-menu-top-span: #e5e5e5;
    --contents-code-background: #383838; /*Doit être foncé*/
    --nsi-menu-background: #72d0f9;
    --menu-site-background: #d7d7d7;
    --content-menu-a: #0095ff;
    --content-menu-a-hover: #00e7a7;
    --icon-menu-google: #004c76;
    --icon-menu-google-hover: #76ceff;
    --icon-ouverture-tiroir-menu: #004c76;
    --h1: #00dcff;
    --h1-txt-shadow: #555;
    --h1-txt-shadow-2: #000;
    --h2: #00dcff;
    --h2-txt-shadow: #2a2a2a;
    --pop-up-background: #c9e5e5;
    --pop-up-h3: #4b87f3;
    --elements: #005a68;
    --elements-background: #a1d5d2;
    --footer: #bbecff;
    --footer-background: #30454e; /*Doit être foncé*/
    --name-site: #0095ff;
    --name-site-background: #e4e4e4;
    --name-site-hover: #006eff;
    --previous-next-background: #ccd9de;
    --previous-next-background-hover: #c9d1d4;
    --previous-next-border: #b1b1b1;
    --previous-next: #0082d1;
    --previous-next-hover: #0093ff;

    /*--- ^ Couleurs ^ ---*/

    --font-family: Arial;

    /*--- ^ Police du site ^ ---*/
}

/*--- Code CSS ---*/

html {
    scroll-behavior: smooth;
}

body {
    color: var(--texte);
    font-family: var(--font-family), Arial, sans-serif;
    background: var(--background); /*linear-gradient(var(--background), var(--background-2), var(--background));*/
    margin: 0;
    overflow-x: hidden;
}

strong {
    text-shadow: -1px -1px var(--strong-background); /*#3a6100;*/
    color: var(--strong); /*#00d100;*/
}

a {
    text-decoration: none; 
}

code {
    font-family: Roboto Mono, monospace;
    font-size: 0.8rem;
    color: white;
    background: var(--code-background); /*#4c4c4c;*/
    border-radius: 2px;
    box-shadow: 1px -1px 0px 0px var(--code-shadow); /*#5c5c5c;*/
}

img {
    width: 75%;
    border-radius: 5px;
}

/*----------------------------*/

.link {
    display: inline-flex;
    color: var(--link); /*#00b5ff;*/
    transition: color 150ms;
    text-align: center;
}

.icon-modify-link {
    position: relative;
    left: 0rem;
    min-width: 1.2rem;
    color: var(--icon-modify-link); /*#005454;*/
    font-size: 0.8rem !important;
    display: inline-flex !important;
    flex-direction: column-reverse;
    transition: left 200ms, color 150ms;
}

.link:hover{
    color: var(--link-hover); /*#00daff;*/
}

.link:hover .icon-modify-link{
    color: var(--icon-modify-link-hover) !important; /*#00daff !important;*/
    left: 0.4rem;
    justify-content: center;
}

.epingle {
    font-size: 0.6em;
    visibility: hidden;
    color: var(--epingle); /*#00b5ff;*/
}

h2:hover .epingle {
    visibility: visible;
}

h3:hover .epingle {
    visibility: visible;
}

.nsi-xyz-code{
    white-space: pre-wrap !important;
    background: var(--contents-code-background) !important;
    border-bottom-right-radius: 1.3rem !important;
    border-bottom-left-radius: 1.3rem !important;
}

.nsi-xyz-code-menu-top {
    background: var(--code-menu-top-background) !important; /*#838383 !important;*/
    color: var(--code-menu-top); /*white;*/
    border-top-left-radius: 1.3rem !important;
    border-top-right-radius: 1.3rem !important;
}

.long-code-menu-top{
    font-family: Roboto Mono, monospace;
    border: 1px solid #d9d9d9;
    padding: 1rem 1rem;
    background: var(--code-menu-top-background); /*#838383*/
    color: var(--code-menu-top); /*white;*/
    border-top-left-radius: 1.3rem;
    border-top-right-radius: 1.3rem;
}

.long-code-contents-code {
    padding: 0.5rem;
    font-family: Roboto Mono, monospace;
    background: var(--contents-code-background); /*#262626;*/
    color: #EEE;
    border-radius: 0 0 3px 3px;
    white-space: pre-wrap;
    font-size: 0.8rem;
    border-bottom-right-radius: 1.3rem;
    border-bottom-left-radius: 1.3rem;
}

.long-code-menu-top span {
    font-family: monospace;
    color: var(--code-menu-top-span); /*#bfbfbf;*/
} 

.long-code-contents-code span {
    color: #ff4900;
}

.code-html {
    display: flex;
    justify-content: space-between;
}

.code-html nsi-xyz[lang="html"] {
    width: 69%;
}

.code-html nsi-xyz[lang="css"] {
    max-width: 30%;
}

/*----------------------------*/

#encoche {
    display: flex;
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    width: 100%;
    overflow-x: hidden;
    height: 60px;
}

#name_site {
    height: 50%;
    font-size: 1.5rem;
    background: var(--name-site-background); /*#e4e4e4*/
    border-bottom-right-radius: 15px;
    padding: 0 1rem;
}

#name_site a {
    color: var(--name-site); /*#0095ff*/
    transition: all 200ms;
}

#name_site a:hover {
    color: var(--name-site-hover) ; /*#006eff*/
}

#background-nsi-menu {
    position: fixed;
    width: 60px;
    height: 60px;
    right: 0;
    top: 0;
    background: var(--nsi-menu-background); /*#2b2b2b;*/
    border-bottom-left-radius: 40%;
}

#menu_site {
    position: absolute;
    background: var(--menu-site-background); /*#484848;*/
    border-bottom-left-radius: 10px;
    width: 75%;
    height: 50%;
    display: inline-flex;
    align-items: center;
}

.content-menu {
    display: inline-flex;
    justify-content: space-around;
    width: calc(100% - 84px);
    font-size: 1em;
}

.content-menu a {
    color: var(--content-menu-a); /*cyan;*/
}

.content-menu a:hover {
    color: var(--content-menu-a-hover); /*#00d6d0;*/
}

.content-menu a[href="#"] {
    color: grey;
}

.icon-menu-google {
    color: var(--icon-menu-google) !important; /*#0da8ff;*/
}

.icon-menu-google:hover {
    color: var(--icon-menu-google-hover) !important; /*#76ceff;*/
}

.ouvert-tiroir{
    animation-name: ouverture-tiroir;
    animation-duration: 0.8s;
    left: 25%;
}

.ferme-tiroir{
    animation-name: fermeture-tiroir;
    animation-duration: 0.8s;
    left: calc(100% - 84px);
}

@keyframes ouverture-tiroir{
    from{
        left: calc(100% - 84px);
    }
    to {
        left: 25%;
    }
}

@keyframes fermeture-tiroir{
    from{
        left: 25%;
    }
    to{
        left: calc(100% - 84px);
    }
}

.icon-menu {
    color: var(--icon-ouverture-tiroir-menu); /*#00ff00;*/
}



/*----------------------------*/

#corps {
    margin: 2rem;
    display: flex;
}

#corps h1{
    color: var(--h1); /*#00ff00;*/
    text-shadow: 2px 2px 1px var(--h1-txt-shadow) /*#003700*/, 1px -1px 6px var(--h1-txt-shadow-2); /*white*/;
}

#corps h2{
    color: var(--h2); /*#00e000;*/
    text-shadow: 2px 1px 3px var(--h2-txt-shadow); /*#1c761c;*/
}

#corps li{
    margin-block: 0.5rem;
}

#main {
    margin-right: 5px;
    display: flex;
    flex-direction: column;
}

#main p {
    border-radius: 5px;
    padding: 1%;
    background: var(--p-background);
}

#main ul{
    padding-block: 1%;
    border-radius: 5px;
    background: var(--p-background);
}

#external_link {
    position: fixed;
    width: 30%;
    right: 0;
}

@media (min-width: 1300px){
    #external_link {
        width: 20%;
    }
}

#pop-up{
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
}

.pop-up-bouton{
    background: var(--pop-up-background); /*#272727;*/
    border-start-start-radius: 50%;
    border-end-start-radius: 50%;
    padding: 2rem 0.5rem;
}

.pop-up-contents{
    display: flex;
    flex-direction: column;
    background: var(--pop-up-background); /*#272727;*/
    border-radius: 5px;
    padding: 10px;
}

.pop-up-contents h3{
    color: var(--pop-up-h3); /*white;*/
}

.elements{
    color: var(--elements); /*white;*/
    border-radius: 10px;
    background: var(--elements-background); /*#1b1b1b;*/
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pop-up-contents div + div {
    margin-top: 5%;
}

.pop-up-contents div img {
    width: 90%;
    margin: 0 5%;
}

.separator {
  border-top: 1px solid;
  margin: 0.5em auto;
  width: 25%;
}

.anim-pop-up-ouvert{
    animation-name: pop-up-ouverture;
    animation-duration: 0.8s;
    transform: translateX(0%);
}

.anim-pop-up-ferme{
    animation-name: pop-up-fermeture;
    animation-duration: 0.8s;
    transform: translateX(calc(100% - 2.5rem));
}

@keyframes pop-up-ouverture{
    from{
        transform: translateX(calc(100% - 2.5rem));
    }
    to {
        transform: translateX(0%);
    }
}

@keyframes pop-up-fermeture{
    from{
        transform: translateX(0%);
    }
    to{
        transform: translateX(calc(100% - 2.5rem));
    }
}

h3.compte-rendu{
    margin-left: 1.5em;
}

/*----------------------------*/

#previous_next{
    display: flex;
    margin: 2rem;
    justify-content: space-evenly;
}

#previous_next a{
    background: var(--previous-next-background); /*#c0cbcf*/
    border-radius: 5px;
    border: 1px solid var(--previous-next-border); /*#b1b1b1*/
    padding: 0.6rem 2rem;
    color: var(--previous-next); /*#818181*/
    transition: all 200ms;
}

#previous_next a:hover{
    color: var(--previous-next-hover); /*#3a3a3a*/
    background: var(--previous-next-background-hover); /*#b6c2c7*/
}

.right_arrow{
    z-index: 1;
    position: relative;
    left: 0;
    transition: 200ms;
}

a:hover .right_arrow{
    left: 0.5rem;
}

.left_arrow{
    z-index: 1;
    position: relative;
    right: 0;
    transition: 200ms;
}

a:hover .left_arrow{
    right: 0.5rem;
}

/*----------------------------*/

#footer {
    display: flex;
    background: var(--footer-background); /*black;*/
    padding-block: 1%;
    align-items: center;
    flex-direction: column;
    color: var(--footer); /*cyan;*/
}

#footer div{
    margin-block: 1px;
}

.liens_footer{
    width: 100%;
    display: flex;
    justify-content: center;
}

.liens_footer a + a{
    border-left: 2px solid #aaa;
    padding-left: 10px;
    margin-left: 10px;
}

.contact_me {
    display: inline-flex;
    color: #0062ff;
    transition: all 200ms;
}

.contact_me:hover {
    color: #3278e7;
}

.contact_me:after {
    content: "mail";
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 0.8rem;
    line-height: 1; /*L'écart entre chaque ligne*/
    text-transform: none;
    display: inline-flex;
    white-space: nowrap;
    position: relative;
    left: 0rem;
    min-width: 1.2rem;
    color: #005454;
    flex-direction: column-reverse;
    transition: left 200ms, color 150ms;
}

.contact_me:hover:after{
    content: "drafts";
    color: #00daff !important;
    left: 0.4rem;
    justify-content: center;
}