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

/*  page d'accueil */

body.page-accueil {
    font-family: Arial, sans-serif;
    color: #000;
    background: url(../images/pointe-du-moulin.jpg) no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    margin: 0; 
    padding: 0;
}

body.page-accueil main {
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

body.page-accueil h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

p.page-accueil {
    font-size: 1.2rem;
    color: #000000;
    /* j'ai essayé de changer la couleur, mais impossible de trouver l'erreur... */
    margin-bottom: 1rem; 
}

body.page-accueil .buttons a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #000000;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 10px;
    transition: all 0.3s ease;
}

body.page-accueil .buttons a:hover {
    background-color: #008080;
    color: #fff;
}

.main-image {
    width: 0px;
    height: auto;
    margin-bottom: 10px;
}

/* Général  */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6; 
    
}

/* pour l'entete */
header {
    background-color: #56b8a1;
    text-transform: uppercase;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: black;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

nav a:hover {
    background-color: #0e96bd;
    color: white;
}

/* Pour la typographie */
h1 {
    position: relative;
    text-transform: uppercase;
    color: #0a445e;
    font-weight: 200;
    font-size: 3rem;
    line-height: 1.25em;
    margin: 0 5vmin;
    padding: 10vmin 0 0;
}

h2 {
    text-transform: uppercase;
    color: #0a445e;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.25em;
    border-bottom: solid #0a445e 2px;
    margin: 1rem 1rem 0;  
    display: inline-block;
}

h3 {
    color: #56b8a1;
    font-weight: 600;
    font-size: 2.75rem;
    margin: .75rem 0 2rem;
}

p.page-principale {
    margin: 0 0 1rem;
}

audio {
    margin: 1rem 0 3rem;
    width: 100%;
}

/* pour les sections */
section {
    margin: 0px auto;
    padding: 20px;
    border: 1px solid #2b2626;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

section figure {
    flex: 1;
    margin: 0;
}

section .text-content {
    flex: 2;
}

@media (max-width: 768px) {
    section {
        flex-direction: column;
    }

    section figure, section .text-content {
        flex: 1;
    }
}

section h2 {
    text-align: left;
    color: #0e96bd;
    font-weight: bold;
}

figure img {
    border-radius: 24px;
    max-width: 100%;
    height: auto;
}

figcaption {
    font-size: 0.9em;
    color: #000000;
}

/* Pour le Formulaire */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

label.required::after {
    content: '*';
    color: red;
    margin-left: 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #311c1c;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to right, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

button:hover {
    background: linear-gradient(to right, #45a049, #3e8e41);
}

/* Footer */

footer {
    background-color: #56b8a1;
    color: white;
    padding: 20px;
    border-top: 5px solid #0a445e;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    
}

footer .footer-column {
    flex: 1;
    margin: 10px;
}

footer .footer-column h3 {
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000000;
    font-size: 1rem;
}

footer .footer-column p, footer .footer-column a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

footer .footer-column a:hover {
    color: #000000;
    text-decoration: underline;
}

footer p {
    margin-bottom: 1rem;
    margin-right: 2rem;
}
footer p:last-of-type {
    flex: 0 0 100%;
}
