/* Définition des variables CSS */
:root {
    --primary-color: #AF1A22;
    --secondary-color: #FFFDEE;
    --text-color: #333;
    --text-color-light: #FFFDEE;
    --background-color: #FFFDEE;
    --highlight-color: #b30000;
    --font-family-primary: 'Pacifico', sans-serif;
    --font-family-secondary: 'Lato', sans-serif;
    --font-size-xl: 50px;
    --font-size-lg: 40px;
    --font-size-md: 28px;
    --font-size-sm: 16px;
    --font-size-xs: 14px;
    --line-height-lg: 2.2;
    --line-height-md: 1.8;
    --line-height-sm: 1.6;
    --padding-lg: 50px 10%;
    --padding-md: 20px 10%;
    --padding-sm: 20px 5%;
    --margin-lg: 100px;
    --margin-md: 50px;
    --margin-sm: 20px;
    --margin-xs: 30px;
    --border-radius: 8px;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-secondary);
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1 {
    font-family: var(--font-family-primary);
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    text-align: center;
    margin-top: var(--margin-sm);
}

.logo img {
    height: 50px;
}

.specialties {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--padding-lg);
    background-color: var(--background-color);
    text-align: left;
    flex-wrap: wrap;
    margin-top: var(--margin-lg);
}

.specialties .text-content,
.specialties .image-content {
    width: 45%;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
    text-align: justify;
    margin-bottom: var(--margin-sm);
}

.specialties .text-content {
    width: 40%;
    font-size: var(--font-size-xs);
}

.specialties .image-content {
    width: 50%;
}

.specialties h1,
.specialties h2 {
    color: var(--highlight-color);
    text-align: center;
}

.specialties p {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-lg);
    text-align: justify;
    color: var(--text-color);
}

.image-gallery {
    display: flex;
    justify-content: space-around;
    margin: var(--margin-sm) 0;
    flex-wrap: wrap;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: var(--margin-sm);
}

.heros {
    color: var(--text-color-light);
    text-align: left;
    padding: 0 10%;
    background: url('/image/page_de_garde.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    height: 70vh;
    margin-top: var(--margin-md);
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.section-below-heros {
    justify-content: center;
    align-items: center;
    padding: var(--padding-md);
    background-color: var(--background-color);
    flex-wrap: wrap;
    margin-top: var(--margin-sm);
}

.section-below-heros h2 {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 26.4px;
    color: var(--primary-color);
    margin-bottom: 30px;
    margin-top: 40px;
    width: 100%;
    text-align: center;
}

.content-areas {
    flex-basis: 100%;
    color: var(--text-color);
    text-align: center;
    line-height: var(--line-height-md);
    margin-bottom: var(--margin-sm);
    padding: 0 5%;
}

section {
    position: relative;
    padding: var(--padding-lg);
    background-color: var(--background-color);
}

section::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    border-bottom: 1px solid rgb(120, 107, 107);
    width: auto;
}

.menu img {
    width: 70%;
    height: auto;
    margin-bottom: var(--margin-sm);
}

/* Media Queries pour rendre la page responsive */
@media (max-width: 1024px) {
    .specialties {
        flex-direction: column;
        padding: var(--padding-sm);
        margin-top: var(--margin-lg);
    }

    .specialties .text-content,
    .specialties .image-content {
        width: 100%;
        text-align: center;
    }

    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    .heros {
        padding: 0 5%;
        height: 50vh;
        margin-top: var(--margin-md);
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .section-below-heros {
        padding: var(--padding-sm);
        margin-top: var(--margin-md);
    }

    .section-below-heros h2 {
        font-size: var(--font-size-md);
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .heros {
        padding: 0 5%;
        height: 40vh;
        margin-top: var(--margin-md);
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .specialties .text-content,
    .specialties .image-content {
        font-size: var(--font-size-xs);
    }

    .section-below-heros h2 {
        font-size: var(--font-size-md);
        margin-top: 40px;
    }

    .menu img {
        width: 90%;
    }
}
@media (max-width: 480px) {
    .menu:nth-child(1) {
        /* Cible le premier menu, soit le bloc Corse */
        margin-top: 50px;
        /* Ajuste la marge supérieure */
    }
@media (max-width: 480px) {
    .heros {
        padding: 0 5%;
        height: 30vh;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .specialties {
        padding: var(--padding-sm);
        margin-top: var(--margin-xs);
    }

    .specialties .text-content,
    .specialties .image-content {
        font-size: var(--font-size-xs);
        width: 100%;
    }

    .section-below-heros h2 {
        font-size: var(--font-size-lg);
        margin-top: 110px;
    }

    .menu img {
        width: 100%;
    }
}