@font-face {
    font-family: "Bachelorette";
    src: url("../font/Bachelorette.otf");
}

@font-face {
    font-family: "Comic";
    src: url('font/comic.ttf');
}

@font-face {
    font-family: "Comic";
    font-style: italic;
    src: url('font/comici.ttf');
}

@font-face {
    font-family: "Comic";
    font-weight: bold;
    src: url('font/comicbd.ttf');
}

@font-face {
    font-family: "Comic";
    font-style: italic;
    font-weight: bold;
    src: url('font/comicz.ttf');
}

body {
    background-color: rgb(240, 255, 255);
    margin: auto;
}

/* header */
header {
    display: flex;
    justify-content: center;
    font-family: bachelorette;
    background: linear-gradient(rgb(236, 231, 231)70%, rgb(240, 255, 255));
    width: 100%;
    padding-top: 30px;
    margin-bottom: 20px;
}

.taille {
    height: 300px;
    margin-top: 20px;
}

.bloc1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header p {
    text-align: center;
    font-size: 40px;
    margin-top: 0px;
    padding-top: 20px;
    margin-bottom: 20px;
}

/* nav */
nav {
    max-width: 750px;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0px;
    padding: 5px;
    gap: 5px;
}

nav li {
    display: flex;
    justify-content: center;
    border: solid black 2px;
    border-radius: 10px;
    width: 120px;
    list-style: none;
    margin-right: 5px;
}

nav a {
    text-decoration: none;
    padding: 5px;
    font-size: 20px;
    color: black;
}

nav li:hover {
    background-color: rgb(196, 190, 190);
}

#en-cours a {
    color: red;
}

/* main */
main {
    display: flex;
    justify-content: center;
    margin-left: 5px;
    margin-right: 5px;
}

main br {
    margin-bottom: 5px;
}

.bloc2 {
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    font-family: Comic Sans MS, Comic;
}

video {
    max-width: 450px;
    max-width: 100%;
    height: auto;
}

p {
    margin-top: 8px;
}

.responsive {
    max-width: 100%;
    height: auto;
    margin-top: 0;
}

.responsive2 {
    max-width: 100%;
    max-height: 100%;
    margin-top: 0;
}

.center {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.centerbis {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.centerter {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

figcaption {
    text-align: center;
}

caption {
    text-align: left;
    margin-bottom: 5px;
}

table {
    border-collapse: collapse;
}

.tableau {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tableau p {
    margin-left: 20px;
}

td {
    border: 1px solid black;
    padding: 10px;
    white-space: nowrap;
}

.retrait {
    margin-left: 20px;
    margin-bottom: 50px;

}

.border {
    border: solid grey 2px;
    border-radius: 5px;
}

.toplarge {
    margin-top: 50px;
}

main ul {
    margin-top: 0px;
}

.margebottom {
    margin-bottom: 5px;
}

/* footer */
footer {
    margin-top: 40px;
    background-color: rgb(236, 231, 231);
    display: flex;
    justify-content: center;
    font-family: Comic Sans MS, Comic;
    height: 40px;
}

footer img {
    margin-top: 10px;
}

.bloc3 p {
    margin-top: 0;
    margin-bottom: 40px;
}

/* modal */
main img {
    display: block;
}

.reduit {
    cursor: zoom-in;
}

.grand img {
    cursor: zoom-out;
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    background: rgb(240, 255, 255, 1);
    padding: 10px;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    visibility: hidden;
    opacity: 0;
    transition: all .4s;
    pointer-events: none;
}

.modal:target {
    cursor: context-menu;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.back {
    position: absolute;
    top:10px;
    right: 10px;
    margin-bottom: 10px;
    border-radius: 15px;
    padding: 10px;
    border: solid black 0.5px;
    text-decoration: none;
    font-family: Comic Sans MS, Comic;
    color: black;
    font-size: 10px;
}

@media screen and (max-width: 806px) {
    header {
        padding-top: 60px;
    }
}

@media screen and (max-width: 800px) {
    .tableau {
        flex-wrap: wrap;
    }
    .centerbis {
        margin: auto;
    }
}

@media screen and (max-width: 672px) {
    header p {
        font-size: 30px;
    }
    nav a {
        font-size: 15px;
    }
    .taille {
        height: 250px; 
    }

}

@media screen and (max-width: 520px) {
    .taille {
        display: none;
    }
}