/* Variables */
html {
    --color1: #01168f;
    --color2: #7ACEE6;
    --color3: #E3D1B3;
    --color4: #ffa600;
    --color5: #565866;
    --footer-height: 6em;
    --main-height: calc(100vh - var(--footer-height) + 1em);
    min-height: 100%;
}

/* Police de caractères */
@font-face {
    font-family: GFSDidot;
    src: url(/assets/fonts/GFSDidot-Regular.ttf);
    font-display: swap;
  }
@font-face {
    font-family: Montserrat;
    src: url(/assets/fonts/static/Montserrat-Medium.ttf);
    font-display: swap;
}


/*Accessibilité focus*/
@supports selector(:focus-visible) {
    *:focus {
        outline: none;
    }

    input[type=submit]:focus,
    input[type=checkbox]:focus {
        outline: 0.20em solid #ffa600;
        outline-offset: 3px;
    }
    .dialogclose:focus {
        outline: 0.20em solid #ffa600;
        outline-offset: 3px;
    }
  
    *:focus-visible {
        outline: 0.20em solid #ffa600;
        outline-offset: 3px;
    }
  }

.skip-link {
    display: block;
    position: absolute;
    margin: 0;
    text-align: center;
    font-size: calc(12pt + 0.2vw);
    background-color: #ffa600;
    left: -999px;
    top: -999px;
  }

.skip-link:focus {
    position: relative;
    color: #01168f;
    left: 0;
    top: 0;
    height: auto;
    width: 16vh;
    margin: 1em 0.25em 0.5em 0;
    padding: 2px;
    transform: translate(0);
    overflow-wrap: break-word;
  }

body {
    margin: 0;
    font-size: 12pt;
    height: auto;
    background: rgb(0,106,255);
    background: linear-gradient(170deg, rgba(0, 106, 255, 0.404) 0%, rgba(255, 226, 171, 0.281) 30%, rgba(255, 170, 0, 0.281) 50%, rgba(255, 226, 171, 0.322) 60%, rgba(0, 106, 255, 0.322) 100%); 
}

.date {
    font-size: calc(6pt + 0.5vw);
}

.logo-site:focus-visible img,
.logo-site-img:hover {
    filter: drop-shadow(0 0 0.75rem #ffffff46);
}  

a {
    color: #2000ff;
    text-decoration: none;
}

a:visited {
    color: #8f4401;
}

p a:hover,
p a:focus-visible {
    background-color: #ffffff5d;
    border-radius: 0.2em;
}

h1, h2, h3, h4 {
    text-shadow: 0.25px 0 0 #ffa60085, 0 0.25px 0 #ffa60085, 0 -0.25px 0 #ffa60085, -0.25px 0 0 #ffa60085;
    text-align: center;
    font-family: GFSDidot, Arial;
    color: #3a3a3a
}

h1 {
    font-size: calc(18pt + 0.5vw);
}

h2 {
    font-size: calc(15pt + 0.6vw);
}

h3 {
    font-size: calc(13pt + 0.5vw);
}

h4 {
    font-size : calc(12pt + 0.5vw);
}

p, .button, .active, input, label, textarea, span, li {
    font-family: Montserrat, Arial, sans-serif;
    font-size: calc(10pt + 0.2vw);
}

p, legend {
    margin-top: 0.75em;
    text-align: left;
}

fieldset {
    display: flex;
}

/*Boutons*/
.button {
    color: #000000;
}

.button:visited {
    color: #3a3a3a;
}

.button,
input[type=submit] {
    font-size: calc(8pt + 0.5vw);
    background: linear-gradient(to bottom right, #ffffff41, #01168f41);
    background-color: transparent;
    border: solid 1px #01168f81;
    margin: 5px;
    padding: 0.25em;
    border-radius: 1em;
    display: flex;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.466);
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition-duration: 250ms;
}

.button:hover,
input[type=submit]:hover,
.button:focus-visible,
input[type=submit]:focus {
    cursor: pointer;
    box-shadow: 0.1vh 0.1vw 0.1vw rgba(0, 0, 0, 0.466);
    background: linear-gradient(to bottom right, #ffffff, #ffc14f);
    color: #01168f;
    transform: scale(1.04);
}

.button:active,
input[type=submit]:active {
    box-shadow: -0.1vh -0.1vw 0.2vw rgba(0, 0, 0, 0.466);
}

.button_achat {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: inherit;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.h3_achat {
    border-top: 0.1em #000 solid;
    padding-top: 0.5em;
    margin-bottom: 0.3em;
    margin-top: 0.3em;
}

/* HEADER */

header {
    background: linear-gradient(to bottom right, #01168fff, rgb(14, 135, 211));
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 0% 0% 15% 0%;
    box-shadow: 0.1vh 0.2vw 0.4vw rgba(0, 0, 0, 0.363);
    margin-top: -1px;
    margin-left: -1px;
}

header nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#menu-toggle input[type="checkbox"],
#menu-toggle label {
    opacity: 0;
    display: none;
}

#menu-toggle {
    display: flex;
}

/*Menu*/
.nav-menu {
    display: grid;
    align-content: center;
    justify-content: space-around;
    height: inherit;
    padding: 0.1em 0.9em 0.9em 0.5em;
    margin: 0;
}

/*Icone menu*/
.nav-menu img {
    max-width: 100%;
    width: 100%;
    height: 100%;
}

.logo-site {
    filter: drop-shadow(0 0 1rem #ffffff71);
    margin: 0 0 1em 0;
}

/*Boutons menu*/
.nav-menu li,
nav ul li .button,
nav ul li .active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 7.5vw;
    margin: 0.2em;
    padding: 0 0.1em 0 0.3em;
}

nav ul li .button img,
nav ul li .active img {
    filter: drop-shadow(0 0 1rem #ffffff6c);
    max-height: 50%;
    max-width: 50%;
    width: 50%;
    height: 50%;
}

nav ul li .button:hover img,
nav ul li .button:focus-visible img,
nav ul li .active:hover img,
nav ul li .active:focus-visible img {
    filter: drop-shadow(0 0 1rem #0000006b);
}

nav ul li .button,
nav ul li .active {
    background: unset;
    box-shadow: unset;
    font-size: calc(8pt + 0.5vw);
    border: 0;
    height: auto;
    width: 7.5vw;
    text-shadow: 0.5px 0 0 #ffa60085, 0 0.5px 0 #ffa60085, 0 -0.5px 0 #ffa60085, -0.5px 0 0 #ffa60085;
    color: #ffffff;
    transition-duration: 250ms;
}

nav ul li .button:visited {
    color: #ffffff;
}

/* Bouton page active */
nav ul li .active {
    background: linear-gradient(to bottom right, #ffffff, #ffa600);
    box-shadow: 0.1vh 0.1vw 0.1vw rgba(0, 0, 0, 0.466);
    color: #01168f;
    border-radius: 1em;
}

nav ul li .active:hover,
nav ul li .active:focus-visible {
    transform: scale(1.06);
}

nav ul li .button:hover,
nav ul li .button:focus-visible {
    cursor: pointer;
    background: linear-gradient(to bottom right, #ffffff, #ffa600);
    box-shadow: 0.1vh 0.1vw 0.1vw rgba(0, 0, 0, 0.466);
    color: #01168f;
    transform: scale(1.06);
}

nav ul li .button:active,
nav ul li .active:active {
    box-shadow: -0.1vh -0.1vw 0.2vw rgba(0, 0, 0, 0.466);
}

/* Picture */

picture {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* MAIN */

main {
    min-height: var(--main-height);
    display: flex;
    justify-items: center;
    flex-direction: column;
    align-items: center;
}

/*Division centrale*/

main div {
    margin-top: 2vh;
    margin-bottom: 2vh;
    max-width: 100em; /* Taille caractères max sur une ligne */
    width: 60vw;
    height: auto;
}

main div section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 1em;
    padding: 1em;
    margin: 1.5em 0em;
    color: #222329;
    background: linear-gradient(to bottom right, #fff9e35e, rgba(192, 226, 255, 0.507));
    box-shadow: 0.2vh 0.2vw 0.2vw rgba(0, 0, 0, 0.363);
    transition-duration: 250ms;
}

.titre-page {
    padding: 1em;
    margin-right: 6em;
    margin-left: 6em;
    margin-bottom: 1.5em;
    border-radius: 1em;
    background: linear-gradient(to bottom right, #fff9e35e, rgba(192, 226, 255, 0.507));
    box-shadow: 0.2vh 0.2vw 0.2vw rgba(0, 0, 0, 0.363);
    transition-duration: 250ms;
}

main div section:hover,
main div section:focus-within,
.titre-page,
main div > article:hover,
main div > article:focus-within {
    box-shadow: 0.3vh 0.3vw 0.2vw rgba(0, 0, 0, 0.363);
}

main div > .faq:hover,
main div > .faq:focus-within {
    box-shadow: 0.3vh 0.3vw 0.2vw rgba(0, 0, 0, 0.363);
}

main div section:hover > h3,
main div section:hover > h2,
main div section:hover > h1,
main div section:hover > article h1,
main div section:hover > article h2,
main div section:hover > article h3,
main div section:hover > form ul li h1,
main div article:hover > h4,
main div article:hover > h3,
main div article:hover > h2,
main div article:hover > h1,
.annexes:hover > h2,
.annexes:hover > h3,
main div article:focus-within > h4
main div section:focus-within > h3,
main div section:focus-within > h2,
main div section:focus-within > h1,
main div section:focus-within > article h1,
main div section:focus-within > article h2,
main div section:focus-within > article h3,
main div section:focus-within > form ul li h1,
main div article:focus-within > h3,
main div article:focus-within > h2,
main div article:focus-within > h1,
.annexes:focus-within > h2,
.annexes:focus-within > h3 {
    color: #001172;
}

/*Boutons sections*/
main div section .button {
    height: 5vh;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: bold;
}

main div section .button img {
    max-width: 80%;
    width: auto;
    height: 100%;
    margin: 0.2em;
}

main div section > img {
    margin: 0.5em;
    max-width: 30%;
    border-radius: 1%;
}

/* Images */

.cadre-img {
    margin: 0.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 60%;
}

section .cadre-img img {
    width: 65%;
    height: auto;
    border-radius: 1%;
}

.img {
    max-width: 100%;
    height: 100%;
    border-radius: 1%;
}

/*images oeuvres*/
.cadre-img-oeu {
    margin: 0.5em;
    flex-direction: column;
    align-items: center;
    max-width: 70%;
}

.oeuvres .cadre-img-oeu {
    max-width: 80%;
}

.img-oeu {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0px auto;
    border-radius: 1%;
}

.img-oeu-last {
    max-width: 100%;
    width: 80%;
    height: 100%;
    border-radius: 1%;
}

.cadre-img-oeu:hover,
.cadre-img-oeu:focus-visible{
    filter: brightness(1.15);
}

/*Articles dans sections*/
section article {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section article img{
    margin: 0.5em;
    width: 50%;
    height: auto;
    border-radius: 1%;
}

/* Articles */

main div > article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 1em;
    padding: 1em;
    margin: 1.5em 0em;
    color: #222329;
    background: linear-gradient(to bottom right, #ffffff4d, rgba(192, 226, 255, 0.301));
    box-shadow: 0.1vh 0.1vw 0.2vw rgba(0, 0, 0, 0.363);
    transition-duration: 500ms;
}

main div > article img{
    margin: 0.5em;
    width: 65%;
    height: auto;
    border-radius: 1%;
}

main div > article .button,
main div > .annexes .button {
    height: 5vh;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: bold;
}

main div > article .button img,
main div > .annexes .button img {
    max-width: 80%;
    width: auto;
    height: 100%;
    margin: 0.2em;
}

/* Texte autour image */

.img-text1 {
    max-width: 57vw;
    margin: 0 auto;
    padding: 30px;
}
.img-text1 p {
    text-align: left;
}
.img-text1::after {
    content: "";
    display: block;
    clear: both;
}
.img-text1 h2 {
    margin-bottom: 10px;
    margin-top: 5px;
}
.img-text1 p {
    line-height: 1.4;
    margin-bottom: 1em;
    margin-top: 1em;
}
.img-text1 picture,
.img-text1 img {
    object-fit: cover;
    border-radius: 5%;
    float: left;
    shape-outside: margin-box;
    margin: 0 0.5em 0.05em 0;
}
.img-text1 picture {
    width: 35%;
    padding-top: 3em;
}
.img-text1 img {
    width: 100%;
    height: 100%;
}
.img-text2 {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0;
}
.img-text2 div {
    max-width: 40vw;
}
.img-text2 picture {
    max-width: 30%;
    margin-bottom: 0.5em;
}
.img-text2 picture img {
    width: 100%;
    height: auto;
    border-radius: 3%;
}
.img-text2 p {
    margin: 0 0.5em 0.5em 0.5em;
}
.flex-text-img {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Actus page accueil */

.image_actus_accueil {
    max-width: 100%;
    height: 100%;
    border-radius: 1%;
}

/* Livres */

.retouroeuvres {
    display: flex;
    position: relative;
    left: 0;
    top: 0;
}

.retouroeuvres .button {
    padding: 0.5em;
}

.description_livre,
.description_actus {
    margin-top: 0.5em;
    text-align: center;
}

div > p {
    text-align: center;
    margin: 1em 1em 0 1em;
}

/* Annexes */

.lien-img-annexes {
    display: flex;
    justify-content: center;
}
.img-annexes {
    width: 85%;
    height: auto;
}

.annexes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
    margin-bottom: 2em;
    color: #222329;
    background: linear-gradient(to bottom right, #ffffff4d, rgba(192, 226, 255, 0.301));
    box-shadow: 0.1vh 0.1vw 0.2vw rgba(0, 0, 0, 0.363);
    transition-duration: 500ms;
}

.annexes .button {
    margin: 1.5em;
}

.annexes:hover,
.annexes:focus-within {
    box-shadow: 0.3vh 0.3vw 0.2vw rgba(0, 0, 0, 0.363);
}

.lightbox {
    /* Caché par défaut */
    display: none;

    /* Overlay sur tout l'écran */
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* Léger padding autour */
    padding: 1em;

    /* Fond translucide */
    background: rgba(0, 0, 0, 0.8);
  }

  /* Afficher quand ciblé */
  .lightbox:target {
    display: block;
  }

  .lightbox span {
    /* Affichage full */
    display: block;
    width: 100%;
    height: 100%;

    /* Taille et position de l'image de fond */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

/* Page confidentialité & mentions légales */

.long-article {
    padding: 0 1em 0 1em;
    align-items: normal;
}

/*Class liste mesoeuvres*/
.section-oeuvres {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.oeuvres {
    width: 27vw;
}

/*Navigation RS*/
main nav{
    z-index: 1;
    align-self: end;
    position: fixed;
    bottom: calc(5vh + 2vw);
    right: 1vw;
    padding: 0px;
}

.nav-main {
    display: flex;
    padding: 0;
    margin: 0;
    width: 7vw;
    flex-wrap: wrap;
    flex-direction: row;
}


.nav-main li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 6px;
}

main nav img {
    width: 2.5vw;
    height: 2.5vw;
    max-width: 2.5vw;
    transition-duration: 150ms;
}

main nav a:hover img,
main nav a:focus-visible img {
    cursor: pointer;
    transform: scale(1.1);
    filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.356));
}

/* RS alone */

.rs {
    display: flex;
    list-style-type: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: space-around;
}

.rs li {
    margin: 1em;
    width: 10vw;
    height: 10vw;
    padding: 0.5em;
}

.rs a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-rs {
    max-width: 5vw;
    width: 5vw;
    height: 5vw;
    transition-duration: 150ms;
}

a:hover .img-rs,
a:focus-visible .img-rs {
    cursor: pointer;
    transform: scale(1.1);
    filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.356));
}

/*Abonnement*/
aside {
    position: static;
    margin-bottom: 1.5em;
    max-width: 60%;
    position: static;
    min-width: 10vw;
    background: linear-gradient(to bottom right, #fff9e365, rgba(192, 226, 255, 0.37));
    box-shadow: 0.2vh 0.2vw 0.2vw rgba(0, 0, 0, 0.363);
    transition-duration: 250ms;
    padding: 0 0.5em 0.5em 0.5em;
    border-radius: 1em;
}

aside:hover,
aside:focus-within{
    color: #01168f;
    box-shadow: 0.3vh 0.3vw 0.2vw rgba(0, 0, 0, 0.363);
}

aside:hover h3,
aside:focus-within h3 {
    color: #2c42c2;
}

.dialogclose {
    font-size: calc(8pt + 0.5vw);
    background: linear-gradient(to bottom right, #ffffff5e, #01168f65);
    background-color: transparent;
    border: solid 1px #01168f81;
    margin: 5px;
    padding: 3px;
    border-radius: 1em;
    box-shadow: 0.1vh 0.1vw 0.2vw rgba(0, 0, 0, 0.466);
    cursor: pointer;
    white-space: nowrap;
    transition-duration: 250ms;
}

.dialogclose:hover,
.dialogclose:focus {
    box-shadow: 0.2vh 0.2vw 0.2vw rgba(0, 0, 0, 0.466);
    background-color: #01168f2d;
    transform: scale(1.06);
}

/*Formulaires*/
form {
    width: auto;
    padding: 0 0.5em 0.5em 0.5em;
    border-radius: 1em;
}
  
form ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form ul li p {
    text-align: center;
}

form ul li p i {
    font-size: calc(6pt + 0.4vw);
}
  
form li + li {
    margin-top: 0.5em;
}

form ul li > span {
    display: inline-block;
    text-align: center;
    font-size: calc(10pt + 0.1vw);
}

.consentement-label {
    display: inline;
}

.consentement-label span {
    font-size: calc(8pt + 0.1vw);
}

form ul li input[type=checkbox] {
    margin: 4px;
    margin-left: 1em;
}
  
label, .cf-turnstile {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align:center;
    margin-bottom: 0.2em;
}

/* Turnstile */

.cf-turnstile {
    margin-top: 0.2em;
}
  
input,
textarea {
    margin-top: 0.1em;
    border-radius: 1em;
    width: auto;
    box-sizing: border-box;
    border: 1px solid #999;
    padding-left: 0.5em;
}

input[type=email]:focus-visible,
input[type=text]:focus-visible,
input[type=number]:focus-visible,
input[type=date]:focus-visible,
textarea:focus-visible {
    background-color: #f1f6fc;
}
  
textarea {
    vertical-align: top;
    min-height: 10vh;
    max-height: 50vh;
    height: 35vh;
    min-width: 40vw;
    max-width: 55vw;
    width: 50vw;
}
  
form .button {
    margin-left: 0.5em;
}

aside form ul li p {
    margin: 0;
}

aside form ul li h3 {
    margin-top: 0.25em;
}

/* FOOTER */

footer {
    margin-top: -1em;
    height: var(--footer-height);
    min-width: 100%;
    width: 100%;
    text-align: center;
    background-image: url(images/rect20.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

footer p {
    margin: 0;
    text-align: center;
    color: white;
    text-shadow: 0.25px 0 0 #ffa60085, 0 0.25px 0 #ffa60085, 0 -0.25px 0 #ffa60085, -0.25px 0 0 #ffa60085;
    padding-top: 1.5em;
    line-height: 1.5;
}

footer a {
    color: white;
    font-weight: bold;
}

footer a:visited {
    color: #e4f9ff;
}

/* Partie adaptation en fonction de la taille d'écran */

/* Largeur max 1500 px */
@media screen and (max-width: 1500px) {
    .skip-link:focus {
        width: 14vh;
    }
    .nav-menu {
        padding: 0.2em 0.8em 0.5em 0.5em;
    }
    .nav-main {
        width: 10vw;
    }
    .nav-menu li {
        width: 7.5em;
    }
    nav ul li .button,
    nav ul li .active {
        width: 6.2em;
    }
    nav ul li .button,
    nav ul li .active {
        padding: 0 0.15em 0 0.15em;
    }
    main div {
        margin-bottom: 1em;
        width: 65vw;
    }
    main div > article img {
        margin: 0.5em;
        width: 60%;
        height: auto;
    }
    .img-text1 picture {
        width: 40%;
    }
    section article img {
        margin: 0.5em;
        width: 40%;
        height: auto;
    }
    main nav{
        align-self: end;
        position: fixed;
        bottom: calc(5vh + 2vw);
        right: 1vw;
        padding: 0px;
    }
    main nav img {
        width: 3vw;
        height: 3vw;
        max-width: 3vw;
    }
}

/* Largeur max 1200 */

@media screen and (max-width: 1200px) {
    .titre-page {
        margin-right: 3em;
        margin-left: 3em;
        margin-bottom: 1em;
    }
    main div > article img {
        margin: 0.5em;
        width: 65%;
        height: auto;
    }
    .img-text1 picture {
        width: 47%;
    }  
    main nav img {
        width: 3.5vw;
        height: 3.5vw;
        max-width: 3.5vw;
    }
}


/* Largeur max 1150 */

@media screen and (max-width: 1150px) {
    .nav-menu li {
        width: 6.5em;
    }
    .nav-main {
        width: 13vw;
    }
    .img-text1 picture {
        width: 50%;
    }
    .img-text2 div {
        max-width: 40vw;
    }
    .img-text2 picture {
        max-width: 30%;
    }
    nav ul li .button,
    nav ul li .active {
        width: 6em;
        margin: 0.15em 0 0 0;
    }
    .img-rs {
        max-width: 7.5vw;
        width: 7.5vw;
        height: 7.5vw;
    }
    section iframe {
        margin-top: 5vh;
    }
}

/* Largeur max 780 */

@media screen and (max-width: 780px) {
    header {
        box-shadow: none;
        background: none;
        z-index: 10;
    }
    /*images oeuvres*/
    .cadre-img-oeu {
        max-width: 85%;
    }
    .nav-main {
        width: auto;
        flex-direction: column;
    }
    .nav-menu li {
        width: 9em;
    }

    /* MENU HAMBURGER */
    #menu-toggle {
        display: block;
        position: relative;
        top: 5px;
        left: 5px;
        -webkit-user-select: none;
        user-select: none;
    }

    #menu-toggle label {
        justify-content: flex-start;
        display: inline-block;
        opacity: 1;
    }

    /* Checkbox au-dessus du hamburger + cachée */
    #menu-toggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0;
        z-index: 2;
        -webkit-touch-callout: none;
    }

    /* hamburger */
    #menu-toggle span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: #01168f;
        border-radius: 0.4vw;
        z-index: 1;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    opacity 0.55s ease;
    }

    #menu-toggle input[type="checkbox"] {
        display: inline-block;
    }

    #menu-toggle .sp1 {
        transform-origin: 0% 0%;
        width: 3.3em;
    }

    #menu-toggle .sp2 {
        width: 2.7em;
    }

    #menu-toggle .sp3 {
        transform-origin: 0% 100%;
        width: 2.7em;
    }

    #menu-toggle input[type="checkbox"]:focus-visible ~ span {
        outline: 0.20em solid #ffa600;
        outline-offset: 3px;
    }

    /* Transformation hamburger en croix */
    #menu-toggle input:checked ~ .sp1 {
        width: 31px;
        opacity: 1;
        transform: rotate(45deg) translate(-2px, -2px);
        background: #ffa600;
    }

    /* Cacher celui du milieu */
    #menu-toggle input:checked ~ .sp2 {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menu-toggle input:checked ~ .sp3 {
        background: #ffa600;
        width: 31px;
        transform: rotate(-45deg) translate(0, 0);
    }

    /* Affichage Menu */
    .nav-menu {
        border-radius: 1em;
        padding: 0.2em;
        padding-bottom: 0.5em;
        box-shadow: 0.1vh 0.2vw 0.4vw rgba(0, 0, 0, 0.363);
        background: linear-gradient(to bottom right, #01168fff, rgb(14, 135, 211));
        transform-origin: 0% 0%;
        transform: translate(-9999px, 0);
        width: 3.3em;
        height: 1vh;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    /* Apparition */
    #menu-toggle input:checked ~ ul,
    #menu-toggle ul:focus-within {
        width: auto;
        height: auto;
        transform: translate(0, -30px);
    }

    #menu-toggle ul:not(:focus-within) {
        transform: translate(-9999px);
    }

    /* Lien d'évitement */
    .skip-link:focus {
        width: 20vh;
        margin-left: 0.8em;
    }
    main div {
        width: 80vw;
    }
    main div > article img {
        margin: 0.5em;
        width: 70%;
        height: auto;
    }
    .img-text1 {
        max-width: 70vw;
    }
    .img-text2 div {
        max-width: 50vw;
    }
    
    .img-text2 picture {
        max-width: 30%;
    }
    .titre-page {
        margin-right: 1.5em;
        margin-left: 1.5em;
        margin-bottom: 1em;
    }
    main nav{
        bottom: calc(10vh + 7vw);
    }
    main nav img {
        width: 6vw;
        height: 6vw;
        max-width: 6vw;
    }
    .nav-main li {
        margin: 6px 4px 0 0px;
    }
    .img-rs {
        max-width: 10vw;
        width: 10vw;
        height: 10vw;
    }
    .oeuvres {
        width: 70vw;
    }
    footer {
        height: 6em;
    }
}

@media screen and (max-width: 490px) {
    .img-text1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .img-text1 picture,
    .img-text1 img {
        object-fit: cover;
        border-radius: 5%;
        float:inherit;
        margin: 0;
    }
    .img-text1 picture{
        padding-top: 0;
    }
    .img-text2 {
        flex-direction: column;
    }
    .img-text2 div {
        max-width: 75vw;
    }
    
    .img-text2 picture {
        max-width: 45%;
    }
    .img-rs {
        max-width: 10vw;
        width: 10vw;
        height: 10vw;
    }
}

/* FIX ZOOM 300%-500% & LOW HEIGHT SCREEN */

@media screen and (max-height: 440px) {

    /*Création Menu*/
    header {
        box-shadow: none;
        background: none;
        z-index: 10;
    }
    .nav-menu li {
        width: 9em;
    }

    /* MENU HAMBURGER */
    #menu-toggle {
        display: block;
        position: relative;
        top: 5px;
        left: 5px;
        -webkit-user-select: none;
        user-select: none;
    }

    #menu-toggle label {
        justify-content: flex-start;
        display: inline-block;
        opacity: 1;
    }

    /* Checkbox au-dessus du hamburger + cachée */
    #menu-toggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0;
        z-index: 2;
        -webkit-touch-callout: none;
    }

    /* hamburger */
    #menu-toggle span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: #01168f;
        border-radius: 0.4vw;
        z-index: 1;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    opacity 0.55s ease;
    }

    #menu-toggle input[type="checkbox"] {
        display: inline-block;
    }

    #menu-toggle .sp1 {
        transform-origin: 0% 0%;
        width: 3.3em;
    }

    #menu-toggle .sp2 {
        width: 2.7em;
    }

    #menu-toggle .sp3 {
        transform-origin: 0% 100%;
        width: 2.7em;
    }

    #menu-toggle input[type="checkbox"]:focus-visible ~ span {
        outline: 0.20em solid #ffa600;
        outline-offset: 3px;
    }

    /* Transformation hamburger en croix */
    #menu-toggle input:checked ~ .sp1 {
        width: 31px;
        opacity: 1;
        transform: rotate(45deg) translate(-2px, -2px);
        background: #ffa600;
    }

    /* Cacher celui du milieu */
    #menu-toggle input:checked ~ .sp2 {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menu-toggle input:checked ~ .sp3 {
        background: #ffa600;
        width: 31px;
        transform: rotate(-45deg) translate(0, 0);
    }

    /* Affichage Menu */
    .nav-menu {
        border-radius: 1em;
        padding: 0.2em;
        padding-bottom: 0.5em;
        box-shadow: 0.1vh 0.2vw 0.4vw rgba(0, 0, 0, 0.363);
        background: linear-gradient(to bottom right, #01168fff, rgb(14, 135, 211));
        transform-origin: 0% 0%;
        transform: translate(-9999px, 0);
        width: 3.3em;
        height: 1vh;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    /* Apparition */
    #menu-toggle input:checked ~ ul,
    #menu-toggle ul:focus-within {
        width: auto;
        height: auto;
        transform: translate(0, -30px);
    }

    #menu-toggle ul:not(:focus-within) {
        transform: translate(-9999px);
    }

    /* Lien d'évitement */
    .skip-link:focus {
        width: 20vh;
        margin-left: 0.8em;
    }
    main div {
        width: 80vw;
    }
    .titre-page {
        margin-right: 1.5em;
        margin-left: 1.5em;
        margin-bottom: 1em;
    }
    main nav{
        bottom: calc(10vh + 7vw);
    }
    main nav img {
        width: 6vw;
        height: 6vw;
        max-width: 6vw;
    }
    .oeuvres {
        width: 70vw;
    }
    footer {
        height: 6em;
    }

    /*Scroll*/
    #menu-toggle input:checked ~ ul,
    #menu-toggle ul:focus-within {
        overflow: scroll;
        max-height: 70vh;
    }
    /*Marge Fix*/
    .logo-site{
        margin-top: 10vh;
    }
}

@media screen and (max-height: 400px) {
    .logo-site {
        margin-top: 20vh;
    }
}

@media screen and (max-height: 350px) {
    .logo-site {
        margin-top: 100px;
    }
}

@media screen and (max-height: 300px) {
    .logo-site {
        margin-top: 150px;
    }
}

/* Largeur max de 400px */
@media screen and (max-width: 400px) {
    h1 {
        font-size: calc(18pt + 0.2vw);
    }
    
    h2 {
        font-size: calc(15pt + 0.2vw);
    }
    
    h3 {
        font-size: calc(13pt + 0.2vw);
    }
    .skip-link:focus {
        width: 24vh;
    }
    main div {
        width: 75vw;
    }
    .img-text1 {
        padding: 0;
        max-width: 57vw;
    }
    .img-text1 p {
        margin: 0 1em 0 1em
    }
    /*images oeuvres*/
    .cadre-img-oeu {
        max-width: 100%;
    }
    main div > article img {
        margin: 0.5em;
        width: 90%;
        height: auto;
    }
    section article img {
        margin: 0.5em;
        width: 60%;
        height: auto;
    }
    .titre-page {
        margin-right: 0em;
        margin-left: 0em;
    }
    .long-article article {
        padding: 0 1em 0 1em;
        max-width: 70em;
        align-items: normal;
    }
    main nav img {
        width: 8vw;
        height: 8vw;
        max-width: 8vw;
    }
    main nav{
        bottom: calc(10vh + 10vw);
    }
}

/* Grande tailles */

@media screen and (min-width: 2200px) {
    main div section .button img {
        max-width: 70%;
        height: 100%;
    }
    footer {
        height: 8em;
    }
}

@media screen and (min-width: 2600px) {
    main div section .button {
        max-height: 3vh;
    }
    main div {
        width: 65vw;
    }
    textarea {
        vertical-align: top;
        min-height: 10vh;
        max-height: 20vh;
        height: 15vh;
        min-width: 10vw;
        max-width: 20vw;
        width: 15vw;
    }
    .nav-menu li,
    nav ul li .button,
    nav ul li .active {
        width: 7vw;
    }
    nav ul li .button,
    nav ul li .active {
        width: 5vw;
    }
}

@media screen and (min-width: 3000px) {
    main div {
        width: 70vw;
    }
    footer {
        height: 9em;
    }
}
