 /* 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;
}

@font-face {
    font-display: block;
    font-family: Roboto;
    src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff")
}

@font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 600;
    src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff")
}

@font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 700;
    src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff")
}

#sib-container input:-ms-input-placeholder {
    text-align: left;
    font-family: "Garamond", serif;
    color: #c0ccda;
}

#sib-container input::placeholder {
    text-align: left;
    font-family: "Garamond", serif;
    color: #c0ccda;
}

#sib-container textarea::placeholder {
    text-align: left;
    font-family: "Garamond", serif;
    color: #c0ccda;
}


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

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

    .sib-form-block__button:focus-visible {
        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 {
    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(16pt + 0.9vw);
}

h2 {
    font-size: calc(14pt + 0.8vw);
}

h3 {
    font-size: calc(13pt + 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;
}

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.06);
}

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

/* 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);
}

/* MAIN */

main {
    min-height: var(--main-height);
    justify-items: center;
}

/*Division centrale*/


main div div > #sib-container {
    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 div > #sib-container:hover,
main div div > #sib-container:focus-within {
    transform: scale(1.02);
    box-shadow: 0.3vh 0.3vw 0.2vw rgba(0, 0, 0, 0.363);
}

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

.nav-main {
    display: grid;
    padding: 0;
    margin: 0;
}

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

main nav img {
    max-width: 2.5vw;
    width: 2.5vw;
    height: 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));
}
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(4pt + 0.4vw);
}

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;
}

/* 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-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 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) {
    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 ul li .button,
    nav ul li .active {
        width: 6em;
        margin: 0.15em 0 0 0;
    }
}

/* Largeur max 820 */

@media screen and (max-width: 820px) {
    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 nav{
        bottom: calc(10vh + 7vw);
    }
    main nav img {
        width: 6vw;
        height: 6vw;
        max-width: 6vw;
    }
    footer {
        height: 6em;
    }
}

/* 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: auto;
    }
    .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) {
    .skip-link:focus {
        width: 24vh;
    }
    .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) {
    footer {
        height: 8em;
    }
}

@media screen and (min-width: 2600px) {
    .nav-menu li,
    nav ul li .button,
    nav ul li .active {
        width: 7vw;
    }
    nav ul li .button,
    nav ul li .active {
        width: 5vw;
    }
    aside {
        min-width: 10vw;
    }
}
