/* Page en elle-même */
body {
    background-image: linear-gradient(-45deg,limegreen, orange 70%, darkred);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Paramètres de base */
body, body * {
    /* cursor: url(../images/pomme-curseur.png) 25 25, auto; */
    cursor: url(../images/pomme-curseur.png), auto;
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: white;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
header nav a, h1, h2 {
    font-family: "Lucida Calligraphy";
}
p, b, main li, main a {
    display: inline;
}

/* ------------------------------------------------------ */

/* Entête */
header {
    width: 100%;
}

/* Menu de naviguation de l'entête */
header nav {
    width: 100%;
    background-color: green;
}
header nav ul {
    flex-direction: row;
    align-content: center;
    justify-content: center;
    gap: 3vw;
    list-style: none;
    padding: 1.5vh;
}
header nav ul li {
    height: 50%;
}
header nav ul li a {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px;
    height: 80%;
    border-radius: 10px;
    border: solid 2px wheat;
}
header nav ul li #current-page {
    background-color: rgba(0, 0, 0, 0.1);
}
header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Bannière de l'entête */
header div {
    width: 100%;
    height: 40vh;
    justify-content: center;
    background-image: url(../images/pommes-bannière.png);
    background-position: center;
    background-size: cover;
}
header div * {
    text-shadow: 2px 2px 2px black;
}

/* ------------------------------------------------------ */

/* Paramètres de base de la partie principale */
main {
    gap: 2vh;
    margin-block: 2vh;
    width: 100%;
}

/* Paramètres de base des sections */
main section {
    width: 80%;
    border-radius: 10px;
    background-color: green;
    padding: 2%;
    gap: 10px;
}
main section ul, main section ol {
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
}
main section li {
    width: 25%;
    min-width: 200px;
    height: 10%;
    border-radius: 5px;
    background-color: darkgreen;
    padding: 1%;
    text-align: left;
}

/* Lien de la première section vers la fiche de détails*/
section a {
    background-color: darkgreen;
    border-radius: 20px;
    padding: 1.5%;
    font-size: 1.2rem;
    color: white;
}
section a:hover {
    background-color: darkolivegreen;
}

/* Deuxième section de la partie principale */
main #tailles-pommes {
    border: 3px solid green;
}
main #tailles-pommes * {
    color: black;
}
main #tailles-pommes ol li {
    background-color: lightyellow;
}
main #tailles-pommes ol li article {
    align-items: start;
    border: 1px solid darkgreen;
    border-radius: 5px;
}
main #tailles-pommes ol li b {
    position: absolute;
    border-radius: 5px 0 10px 0;
    background-color: rgba(255, 200, 200, 0.5);
    padding: 1%;
}
main #tailles-pommes ol li p {
    order: 1;
    width: 100%;
    border-radius: 0 0 5px 5px;
    background-color: rgb(100, 200, 100);
    padding: 3% 0;
}
main #tailles-pommes ol li img {
    width: 100%;
    border-radius: 4px 4px 0 0;
}

/* ------------------------------------------------------ */

/* Tableau de la partie principale de la page de détail 1 */
main section table {
    width: 100%;
    max-width: fit-content;
    border: 1px solid;
    border-radius: 20px;
}
main section table tr {
    width: 100%;
    border: 1px solid;
    flex-flow: row;
}
main section table tr:first-child {
    border-radius: 20px 20px 0 0;
    background-color: darkgreen;
}
main section table tr:last-child {
    border-radius: 0 0 20px 20px;
}
main section table tr td {
    width: 20%;
    padding: 1%;
    justify-content: center;
}

/* ------------------------------------------------------ */

/* Formulaire de la page de contact */
main section form {
    align-items: center;
    gap: 10px;
}
main section form input, select, option, textarea {
    /* padding: 2%; */
    text-align: left;
    font-size: 1.3rem;
    color: black;
}

/* entrée des informations personnelles */
main section form .enter-text {
    width: 50vw;
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
}
main section form .enter-text input {
    width: 45%;
    min-width: 150px;
    height: 30px;
}

/* Ensemble de champs de "Votre commande" et "Barquette de choix" */
main section form fieldset, main section form fieldset article:first-child article {
    padding: 2%;
    gap: 10px;
}

/* "Barquette de choix" et "Mode de paiement" */
main section form fieldset label {
    flex-flow: row;
    gap: 5px;
    text-align: left;
}

/* Différentes parties de l'ensemble de champs */
main section form fieldset .in-rows, textarea {
    width: fit-content;
    flex-flow: row wrap;
    justify-content: center;
    gap: 20px;
}
main section form fieldset article article, main section form fieldset fieldset {
    align-items: start;
    justify-content: start;
}

/* Partie du message à envoyer */
main section form fieldset article:nth-child(4), textarea {
    width: 90%;
} 

/* ------------------------------------------------------ */

/* Pied de page */
footer {
    width: 100%;
    background-color: darkgreen;
    padding-block: 1%;
    gap: 10px;
}
footer ul {
    flex-flow: row wrap;
    justify-content: center;
    gap: 20px;
}
footer ul li a {
    color: lightgreen;
}
footer ul li a:hover {
    color: greenyellow;
}