/* -------------------- */
/* BASE DU SITE */
/* -------------------- */

body {
    margin: 0;
    font-family: "Lora", serif;
    background-color: #f5e9d3;
    color: #4b2e19;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* -------------------- */
/* HEADER */
/* -------------------- */

header {
    background-color: #c8a97e;
    padding: 20px;
}

/* On centre uniquement le titre, pas tout le header */
header h1 {
    margin: 0;
    color: #4b2e19;
    text-align: center;
}

/* Empêche le header de casser le menu déroulant */
header nav {
    text-align: left;
}


/* -------------------- */
/* IMAGES */
/* -------------------- */

img {
    width: 250px;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
}

/* -------------------- */
/* FOOTER */
/* -------------------- */

footer {
    background-color: #c8a97e;
    text-align: center;
    padding: 10px;
    margin-top: 40px;
}

/* -------------------- */
/* FORMULAIRE */
/* -------------------- */

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

input, textarea {
    padding: 10px;
    border: 2px solid #c8a97e;
    border-radius: 8px;
    font-family: "Lora", serif;
    background-color: #fff7ec;
}

button {
    padding: 12px;
    background-color: #7a4f2b;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background-color: #4b2e19;
}

.hidden {
    display: none;
}

#confirmation {
    margin-top: 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #4b2e19;
}

/* -------------------- */
/* BOUTONS */
/* -------------------- */

.button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #7a4f2b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.button:hover {
    background-color: #4b2e19;
}

/* -------------------- */
/* CARTES */
/* -------------------- */

.cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.button-card {
    display: block;
    width: 260px;
    padding: 25px;
    background-color: #fff7ec;
    border: 3px solid #c8a97e;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #4b2e19;
    font-family: "Montserrat", sans-serif;
    transition: transform 0.2s, background-color 0.2s;
}

.button-card h3 {
    margin: 0;
    font-size: 1.5rem;
}

.button-card p {
    margin-top: 10px;
    font-family: "Lora", serif;
}

.button-card:hover {
    transform: scale(1.05);
    background-color: #f0dfc4;
}

.small-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.button-card.small {
    width: 200px;
    padding: 15px;
    border-radius: 10px;
}

.button-card.small h3 {
    font-size: 1.2rem;
}

.button-card.small p {
    font-size: 0.9rem;
}

/* -------------------- */
/* MENU DÉROULANT */
/* -------------------- */

/* Structure du menu */
/* MENU PRINCIPAL */
.menu > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.menu > ul > li > a {
    text-decoration: none;
    color: #4b2e19;
    font-weight: 600;
    padding: 10px;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff7ec;
    border: 2px solid #c8a97e;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    z-index: 10;
}

.submenu li {
    display: block;
}

.submenu li a {
    display: block;
    padding: 8px 15px;
    color: #4b2e19;
    text-decoration: none;
}

.submenu li a:hover {
    background-color: #f0dfc4;
}

/* AFFICHAGE AU SURVOL */
.dropdown:hover .submenu {
    display: block;
}

}
.dropdown:hover .submenu,
.dropdown .submenu:hover {
    display: block;
}
.center {
    text-align: center;
}

/* Bouton fixe en bas sur ordinateur */
.retour-accueil {
    display: block;
    width: fit-content;
    margin: 0 auto;
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

/* Sur téléphone : le bouton redevient normal */
@media (max-width: 600px) {
    .retour-accueil {
        position: static;        /* il redevient normal */
        margin: 130px auto 20px;  /* espace au-dessus + centré */
        transform: none;
        display: block;
        text-align: center;
    }
}