header img,
footer img {
    height: 128px;
    width: 128px;
}

body {
    margin: 0;
}

html,
body {
    overflow-x: hidden;
}

/* Section principale */
main {
    margin: 20px;
    padding: 0px;
    background-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
}

p,
li,
small,
strong,
td,
label,
a {
    font-family: "Roboto", sans-serif;
    font-style: normal;
}

h2 {
    font-size: 36px;
    display: flex;
    justify-content: center;
}

h3 {
    font-size: 27px;
    display: flex;
    justify-content: center;
}

h4 {
    font-size: 25px;
}

p {
    font-size: 20px;
}

li {
    font-size: 20px;
}

/* Section de l’en-tête de la page et de la bannière */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #1976d2 0%, #90caf9 100%);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    width: 100%;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(44, 62, 80, 0.12);
}

/* À propos de l’entreprise */
.main-cambouis-icon {
    width: 46px;
    vertical-align: middle;
}

.main-cambouis-icons {
    width: 30px;
    vertical-align: middle;
}

.main-text {
    text-align: justify;
}

.main-section {
    border: 2px solid #ccc;
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.lists {
    display: flex;
    gap: 2rem;
}

.list {
    flex: 1;
}

.main-ul {
    list-style: none;
    padding: 0;
}

.main-ul li {
    background: url('../images/a-propos/settings.webp') no-repeat left center;
    background-size: 16px 16px;
    padding-left: 30px;
    margin-bottom: 10px;
}

.main-div-image {
    display: flex;
    width: 100%;
}

.main-image {
    margin-left: auto;
    margin-right: auto;
    width: 45%;
    height: 400px;
    border-radius: 1rem;
    box-shadow: 2px 2px 5px rgba(28, 28, 28, 0.2);
}

/* À propos de l’entreprise */
.equipe-text {
    text-align: justify;
}

.equipe-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    border: 2px solid #ccc;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.equipe-div-text {
    text-align: justify;
}

.equipe-div-image {
    flex: 1;
}

.equipe-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.equipe-div-text {
    flex: 1;
    padding-right: 20px;

}

.equipe-div-text p {
    padding-left: 20px;
}

/* Informations sur les espaces disponibles à la location */
.carousel-main {
    display: flex;
    justify-content: center;
    margin: 10px;
}

.carousel {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bouton-carousel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffe092;
    border: 2px solid black;
    color: black;
    padding: 7px 17px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.bouton-carousel:hover {
    box-shadow: 0 2px 5px rgba(15, 15, 15, 0.5);
    color: #00695c;
}

.carousel .nav {
    position: absolute;
    top: 50%;
    width: 90%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    margin: 0 auto;
    background-color: transparent;
}

.nav button {
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    z-index: 2;
    padding-left: 1rem;
    padding-right: 1rem;
}

.carousel .nav button:hover {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 5px rgba(15, 15, 15, 0.5);
}

/* Bouton universel pour toutes les pages */
.button,
.btn,
.btn-primary,
.bouton-carousel {
    background: linear-gradient(90deg, #ffe092 60%, #f39c12 100%);
    color: #222;
    border-radius: 20px;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    font-size: 1.08rem;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    cursor: pointer;
    display: inline-block;
}

.button:hover,
.btn:hover,
.btn-primary:hover,
.bouton-carousel:hover {
    background: #f39c12;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .main-h1 {
        font-size: 2rem;
    }

    .main-slogan {
        font-size: 1.5rem;
    }

    .main-h1-div {
        height: 250px;
    }

    .lists {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .main-h2,
    .main-h3,
    .equipe-h2 {
        font-size: 1.4rem;
    }

    .main-div-image {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .main-image {
        /* flex: 1; */
        height: auto;
    }

    .equipe-div {
        flex-direction: column;
        text-align: center;
    }

    .reverse {
        flex-direction: column-reverse;
    }

    .equipe-div-text,
    .equipe-div-image {
        flex: 1 1 100%;
    }

    .main-cambouis-icon,
    .main-cambouis-icons {
        width: 20px;
        height: 20px;
    }

    .carousel .nav button {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .carousel {
        height: 250px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1000px) {
    .carousel .nav button {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .carousel {
        height: 300px;
    }

    .main-div-image {
        display: flex;
        justify-content: space-between;
    }

    .main-image {
        /* flex: 1; */
        height: auto;
    }
}

@media screen and (min-width: 1400px) {
    main {
        width: 1400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 1rem auto;
        padding: 0;
    }
}