/* Reset CSS */
@charset "UTF-8";

/* Styles globaux */
body {
    margin: 0;
    padding: 0;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1em;
    color: #112637;
    background-color: #FFFCF1;
}

/* En-tête */
header {
    margin-top: 60px;
    background-image: url('img/header.gif');
    background-size: cover;
    background-position: center top;
    text-align: center;
    padding: 20px 0;
}

h2 {
    font-size: 2.3em;
}

header a img {
    height: auto;
}

/* Menu de navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #81A8A9;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

nav li {
    margin-right: 60px;
}

nav a {
    display: block;
    padding: 10px 20px;
    font-size: 1.3em;
    font-family: 'Josefin Slab', serif;
    color: #FFFCF1;
    text-decoration: none;
    border: 2px solid #FFFCF1;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    color: #81A8A9;
    background-color: #FFFCF1;
}

/* Sous-menu déroulant */
.sousmenu {
    position: absolute;
    display: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sousmenu li a {
    display: block;
    text-decoration: none;
    color: #FFFCF1;
    background-color: #E0992F;
    border: none;
}

.sousmenu li a:hover {
    color: #E0992F;
    background-color: #FFFCF1;
}

nav li:hover ul {
    display: block;
}

/* Section principale */
section {
    margin: 20px auto;
    padding: 20px;
    max-width: 1140px;
    background-color: #FFF;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

section h2 {
    text-align: center;
    color: #BD6242;
    font-family: 'Josefin Slab', serif;
}

.recettes {
    text-align: left;
}

section .troisMots,
section .typesPates {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.troisMots li {
    font-size: 1.5em;
    font-weight: bold;
    color: #81A8A9;
}

section .typesPates article {
    text-align: center;
    margin: 20px;
}

button {
    padding: 12px 24px;
    font-size: 1.5em;
    font-weight: bold;
    color: #112637;
    background-color: #FFFCF1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

button:hover {
    color: #BD6242;
    background-color: #81A8A9;
    transform: scale(1.05);
}

button[type="reset"]:hover {
    color: #FFFCF1;
    background-color: #BD6242;
    transform: scale(1.05);
}

section p {
    color: #112637;
}

section blockquote {
    margin-top: 20px;
    font-style: italic;
    font-weight: bold;
    color: #BD6242;
}

form img {
    padding: 10px 20px;
    background-color: #E0992F;
    border-radius: 5px;
}

figure {
    float: right;
}

figure img {
    margin: 0;
    padding: 10px 20px;
    background-color: #FFFCF1;
    border-radius: 5px;
}
figcaption {
    text-align: center;
    font-style: italic;
    color: #81A8A9;
}

/* Pied de page */
footer {
    padding: 20px;
    text-align: center;
    background-color: #BD6242;
    color: #FFFCF1;
    position: relative;
}

footer div {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    max-width: 1140px;
}

footer section {
    margin: 15px;
    flex-grow: 1;
}

footer h3 {
    color: #E0992F;
}

footer p {
    margin: 10px 0;
}

footer a {
    text-decoration: none;
}

.social-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.social-icons a {
    margin: 0 10px;
}

.social-icons img {
    width: 30px;
}

.footer-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

/* Formulaire */
.formulaire-section,
.commentaire-section {
    margin: 20px auto;
    padding: 20px;
    background-color: #FFF;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
}

.commentaire-section textarea {
    width: 100%;
}

.coordonnees label,
.coordonnees input,
.coordonnees select {
    display: block;
    margin-bottom: 10px;
}

.coordonnees input,
.coordonnees select {
    width: 100%;
}

/* Styles pour les champs de saisie */
input,
select {
    margin: 8px 0;
    padding: 12px;
    width: 100%;
    border: 1px solid #81A8A9;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

select {
    font-size: 1.2em;
}

/* Styles pour les boutons */
input[type="submit"],
input[type="reset"] {
    padding: 12px 24px;
    font-size: 2em;
    color: #FFFCF1;
    background-color: #81A8A9;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

input[type="submit"]:hover {
    color: #BD6242;
    background-color: #FFFCF1;
    transform: scale(1.05);
}

input[type="reset"]:hover {
    color: #FFFCF1;
    background-color: #BD6242;
    transform: scale(1.05);
}

/* Styles pour les groupes de champs */
fieldset {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #BD6242;
    border-radius: 5px;
}

fieldset legend {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #BD6242;
}