@import url('smallscreen.css') screen and (max-width: 640px);

* {
    box-sizing: border-box;
}

@font-face {
    font-family: "Titres";
    src: url("../fonts/Xhers.otf");
}

body {

    background: linear-gradient(135deg, #e8e8e855 25%, transparent 25%) -10px 0/ 20px 20px, linear-gradient(225deg, #e8e8e8 25%, transparent 25%) -10px 0/ 20px 20px, linear-gradient(315deg, #e8e8e855 25%, transparent 25%) 0px 0/ 20px 20px, linear-gradient(45deg, #e8e8e8 25%, #cbcbd2 25%) 0px 0/ 20px 20px;
}

main {
    padding: 15px;
    width: 80%;
    min-width: 500px;
    max-width: 1000px;
}

cite {
    background-color: yellow;
}

p {
    margin-top: 25px;
    color: black;
    background-color: #FFF5E2;
    box-shadow: 0 0 10px white;
    padding: 6px;
    border-radius: 15px;
}

li {
    padding: 5px;
    font-size: 1.15em;
}

h2 {
    background-color: #FFF5E2;
    border-color: #fce1af;
    border-style: solid;
    color: black;
    padding: 5px;
    margin-top: 35px;
    box-shadow: 0 0 3px black;
}

h1 {
    font-size: 2.3em;
    font-family: "Titres", "Times", serif;
    /* On veut mettre un cadre coloré au titre. */
    border-color: #fce1af;
    /* Par défaut, le cadre est invisible ; on le rend visible. */
    border-style: solid;
    /* On modifie la couleur d'arrière plan des titres */
    background-color: #FFF5E2;
    /* On mets le texte en blanc */
    color: black;
    /* On centre le texte dans le cadre. */
    text-align: center;
    box-shadow: 0 0 3px black;

    margin: auto;
    width: calc(80% - 40px);
}

h1:hover {
    color: red
}

/* Colorer guillemets avant les citations */
cite::before {
    content: " «";
    color: red;
}

cite::after {
    content: " »";
    color: red;
}

#moi {
    display: block;
    margin: auto;
    border-radius: 7px;
    border: solid 3px red;
    box-shadow: 10px 5px 5px black;
}

#chien {
    float: right;
    border-radius: 3px;
}

#legende {
    width: 53.5%;
    margin-left: 46.5%;
    background-color: red;
    color: white;
    text-align: center;
    clear: right;
}


/* Partie pour le menu */
nav {
    padding-top: 9px;
    border-top: solid 4px #00008B;
    position: fixed;
    /* Pour que le menu reste même lorsque l'on défile la page */
    top: 0;
    width: 100%;
    z-index: 2;

}

nav>div {
    display: inline;
    color: black;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 15px;
    padding: 13px;
    margin-left: calc(5%);
    background-color: #6495ED;
    box-shadow: 0 0 10px black;
}

nav>div~div {
    margin-left: 2px;
    background-color: #6495ED;
}

nav>div~div~div {
    margin-left: 2px;
    background-color: #6495ED;
}

nav>div~div~div~div~div~div {
    margin-left: 2px;
    background-color: #FFA500;
}

#td1 {
    border-radius: 4px;
    padding-right: 35px;
    margin-top: 12px;
    padding-top: 5px;
    background-color: #6495ED;
    margin-left: 5%;
    display: none;
}

nav>div:hover #td1 {
    display: block;
    position: absolute;
}

#td2 {
    border-radius: 4px;
    padding-right: 35px;
    margin-top: 12px;
    padding-top: 5px;
    background-color: #6495ED;
    margin-left: calc(5% + 68px);
    display: none;
}

nav>div~div:hover #td2 {
    display: block;
    position: absolute;
}

#td3 {
    border-radius: 4px;
    padding-right: 35px;
    margin-top: 12px;
    padding-top: 5px;
    background-color: #6495ED;
    margin-left: calc(5% + 136px);
    display: none;
}

nav>div~div~div:hover #td3 {
    display: block;
    position: absolute;
}

#td4 {
    border-radius: 4px;
    padding-right: 35px;
    margin-top: 12px;
    padding-top: 5px;
    background-color: #6495ED;
    margin-left: calc(5% + 204px);
    display: none;
}

nav>div~div~div~div:hover #td4 {
    display: block;
    position: absolute;
}

#td5 {
    border-radius: 4px;
    padding-right: 35px;
    margin-top: 12px;
    padding-top: 5px;
    background-color: #6495ED;
    margin-left: calc(5% + 272px);
    display: none;
}

nav>div~div~div~div~div:hover #td5 {
    display: block;
    position: absolute;
}

ul>li:hover a {
    border-radius: 5px;
    background-color: #00008B;
    color: white;
}

a {
    font-size: 20px;
    color: black;
    text-decoration: none;
}

input:invalid {
    border: dashed 2px red;
}

footer {
    font-size: 1.4em;
    color: black;
    background-color: white;
    width: 100%;
}

ol {
    color: black;
    background-color: #FFF5E2;
    padding: 5px;
    border-radius: 5px;
}

#a_propos {
    padding: 10px;
    border-radius: 10px;
    font-size: 20px;
    text-decoration: none;
    color: white;
    background-color: #F97106;
    box-shadow: 0 0 10px black;
}

.header {
    margin-top: 60px;
}

#infos {
    text-align: center;
    background-color: white;
    padding: 5px;
}

#infos>ul>li {
    list-style-type: none;
    padding: 0px;
}

#sommaire {
    background-color: #FFF5E2;
    border-color: #fce1af;
    border-style: solid;
    color: black;
    padding: 5px;
    margin-top: 35px;
    box-shadow: 0 0 3px black;
    text-align: center;
    list-style: none;
}

.tds {
    width: 100%;
}

.tds:hover {
    width: 100%;
    background-color: #dfc28d;
}

#sommaire>li:hover a {
    background-color: #dfc28d;
    color: black;
}