* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    
}
.FooterSite {
    margin-top: auto;
}

.cursive, .navMenu a, .navMenuFooter a, .bloc1-text h1, .bloc2 h2, .bloc3 h3 {
    font-family: "Quintessential", serif;
    font-weight: 400;
}

header, .FooterSite {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

header {
    background: #b63132;
    position: sticky;
    top: 0;
    z-index: 100;
    justify-content: center;
}

.FooterSite {
    background: #6d3a39;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.navMenu a, .navMenuFooter a {
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    transition: 0.3s;
}

.navMenu a { color: #fff; }
.navMenu a:hover { color: #b63132; }
.navMenuFooter a { color: #df7d7e; }
.navMenuFooter a:hover { color: #5f0808; }

.menuToggle { display: none; }

.burger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 20px;
    padding: 10px 15px;
    border: 2px solid rgb(209,79,79);
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}
.burger:hover { background-color: rgb(209,79,79); color: #141414; }

.menuLinks {
    display: none;
    position: absolute;
    top: 60px;
    left: 20px;
    background-color: #b63132;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    flex-direction: column;
    gap: 12px;
    z-index: 150;
}

.menuToggle:checked + .burger + .menuLinks {
    display: flex;
    border: 1px solid white;
}
form h1,
table h1 {
    text-align: center;
}

.menuLinks a {
    color: white;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none; 
}
.menuLinks a:hover {
    background-color: rgb(209,79,79);
    color: #b63132;
}

.bloc1 {
    position: relative;
    height: 25rem;
    overflow: hidden;
}
.bloc1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bloc1-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.bloc1-text h1 { font-size: 3rem; color: white; }
.bloc1-text p { font-size: 1.2rem; color: white; }

.bloc2, .bloc3 {
    margin: 30px auto;
    max-width: 1100px;
    padding: 20px;
    border-radius: 10px;
}
.bloc2 { background: #b63132; color: white; }

.bloc2 a, .bloc2 a strong, .bloc2 strong {
    color: white;
    background: none;
    border: none;
    text-decoration: none;
}

.bloc3 { border: 2px solid #b63132; }

.bloc2 h2, .bloc3 h3 {
    text-align: center;
    font-family: "Quintessential", serif;
}
.bloc2 h2 { color: white; }
.bloc3 h3 { margin-bottom: 20px; font-size: 28px; }

.bloc2 p { text-align: center; margin: 10px 0 20px; font-size: 20px; }

.bloc2 ul, .bloc3 ol {
    display: flex;
    gap: 20px;
    list-style: none;
}
.bloc2 li, .bloc3 li {
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.bloc2 li { background: rgba(133,131,131,.7); padding: 20px; font-size: 20px; }

.bloc3 li { background: #eee; overflow: hidden; }
.bloc3 img { width: 100%; height: 250px; object-fit: cover; display: block; }

.carte-img { position: relative; border: 1px solid #000; }
.carte-titre {
    position: absolute;
    top: 0; left: 0;
    background: rgba(255,255,255,.7);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}
.carte-desc {
    background: #d36b6b;
    padding: 10px;
    text-align: center;
    border: 1px solid #000;
}

.navMenuFooter ul { display: flex; gap: 1.5rem; }
.navMenuFooter p {
    display: flex;
    justify-content: center;
    color: aliceblue;
}

table {
    width: 90%;
    margin: 40px auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

tr:first-child {
    background: #b63132;
    color: white;
    font-weight: bold;
    text-align: center;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1d0d0;
    transition: 0.3s;
}

/* FORMULAIRE */

form {
    max-width: 700px;
    margin: 40px auto;
}

fieldset {
    border: none;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

legend {
    font-family: "Quintessential", serif;
    font-size: 22px;
    color: #b63132;
    margin-bottom: 10px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
    color: #b63132;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #b63132;
    box-shadow: 0 0 5px rgba(182,49,50,0.5);
}

textarea {
    resize: vertical;
}

button {
    margin-top: 20px;
    padding: 12px;
    width: 100%;
    background: #b63132;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #6d3a39;
}

@media (max-width: 768px) {
    .burger { display: block; }
    .menuLinks { display: none; }
    nav ul, .bloc3 ol { flex-direction: column; gap: 20px; }

    .bloc2 ul { display: grid; }
    .navMenuFooter ul { flex-direction: column; align-items: center; gap: 10px; }
    .navMenuFooter { text-align: center; }
    .FooterSite { padding: 20px; }
    .navMenuFooter p { margin-top: 15px; font-size: 14px; }

    .bloc1 { height: 18rem; }
    .bloc1-text { width: 90%; padding: 10px; }
    .bloc1-text h1 { font-size: 1.8rem; }
    .bloc1-text p { font-size: 1rem; }

    .bloc3 li { width: 100%; }
    .bloc3 img { height: 200px; }
}

@media (min-width: 769px) {
    .burger { display: none; }
    .menuLinks {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 1.5rem;
        box-shadow: none;
        padding: 0;
    }
}