body {
    font-family: 'Gothic A1', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #7E7A6E;
    background-size: cover;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: fixed;
    width: 100%;
    z-index: 100;
}

.p1 {
    margin-left: 10%;

}

.p2 {
    margin-right: 10%;
}

.section1 {
    background-image: url(../img/alina-khezina-PiT-eXanSf4-unsplash.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center 50%;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 20%;
    padding-top: 80px;
    padding-bottom: 80px;
}

.logo {
    width: 420px;
    height: 420px;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.section1 .logo {
    margin: 0 0 20px;
}

.section1 h2 {
    margin: 0 0 15px;
    color: white;
    font-size: 60px;
}

.section1 p {
    margin: 0;
    color: white;
    font-size: 27px;
}

.section2 {
    background-color: white;
    padding: 80px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.container0 {
    width: min(1100px, 90vw);
    text-align: center;
    margin-bottom: 10px;
}

.Bienvenue {
    font-size: 12px;
    color: #7E7A6E;
    margin: 0 0 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.container0 h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    margin: 0 0 12px;
    color: #1f1f1f;
}

.container0 p {
    margin: 0;
    color: #4d4d4d;
    font-size: 1.05rem;
    line-height: 1.7;
}

.container1,
.container2,
.container3 {
    width: min(1100px, 90vw);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px 45px;
    background-color: #7E7A6E;
    box-sizing: border-box;
    transition: 0.5s ease;
}

.container1,
.container3 {
    flex-direction: row-reverse;
}

.container2 {
    flex-direction: row;
}

.container1>div,
.container2>div,
.container3>div {
    flex: 1;
    max-width: 560px;
}

.container1::before,
.container2::before,
.container3::before {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.container1:hover::before,
.container2:hover::before,
.container3:hover::before {
    opacity: 1;
}

.container1>img,
.container1>div,
.container2>img,
.container2>div,
.container3>img,
.container3>div {
    position: relative;
    z-index: 1;
}

.container1>div,
.container2>div,
.container3>div {
    transition: none;
}

.section2-img {
    width: 300px;
    min-width: 300px;
    height: 300px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.section2 h1 {
    margin: 0 0 15px 0;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    line-height: 1.15;
    color: white;
    transition: 0.5s ease;
}

.section2 p {
    color: white;
    transition: 0.5s ease;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 8px;
}

.container1 div p:first-child,
.container2 div p:first-child,
.container3 div p:first-child {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d9c6a2;
    font-weight: 600;
    margin-bottom: 12px;
}

.container1:hover h1,
.container2:hover h1,
.container3:hover h1 {
    color: black;
}

.container1:hover p,
.container2:hover p,
.container3:hover p {
    color: #555;
}

.container1:hover .section2-img,
.container2:hover .section2-img,
.container3:hover .section2-img {
    filter: brightness(1.05);
}

.container1:hover div p:first-child,
.container2:hover div p:first-child,
.container3:hover div p:first-child {
    color: #8c7355;
}

.section3 {
    background-image: url(../img/gennady-zakharin-hc1_yRNTL-Y-unsplash.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center 30%;
    background-repeat: no-repeat;

    padding: 80px 5vw;
    color: white;
}

.section-txt {
    text-align: center;
    margin-bottom: 60px;
}

.section-txt h2 {
    font-size: 50px;
    margin-bottom: 10px;
}

.section-txt p {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 14px;
    opacity: 0.8;
}

.section-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
    row-gap: 40px;
}

.membre {
    text-align: center;
    width: 160px;
}

.membre img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    transition: 0.3s ease;
}

.membre p strong {
    display: block;
    margin-top: 10px;
    font-size: 16px;
}

.membre p:last-child {
    font-size: 13px;
    opacity: 0.8;
}

.membre:hover img {
    transform: translateY(-8px);
    filter: brightness(1.1);
}

.section4 {
    background-color: white;
    padding: 40px 0;
}

.section4 .img {
    width: 50px;
    height: 50px;
}

.container4 {
    max-width: 900px;
    width: 100%;
    margin: auto;
    background-color: #7E7A6E;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 30px 5%;
    color: white;
    box-sizing: border-box;
    text-spacing-trim: normal;
}

.container4-img {
    width: 320px;
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
}

hr {
    width: 180px;
    border: none;
    border-top: 2px solid black;
    margin: 40px auto 40px auto;
}

.c4.txt {
    text-align: center;
}

.section5 {
    width: 100%;
    background-color: #f7f3eb;
    padding: 0;
}

.map-embed {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

footer {
    background-color: #7E7A6E;
    width: 100%;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.footer-txt a {
    color: white;
    text-decoration: underline;
}

.logo-footer {
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
    margin: 0 0 20px;
}

.footer-txt {
    color: white;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-style: normal;
    text-decoration: underline;
    margin: 0;
}

/* ========================================= */
/*               RESPONSIVE                  */
/* ========================================= */

/* Supprime le scroll horizontal */
html,
body {
    overflow-x: hidden;
}

/* ---------- Tablette ---------- */

@media (max-width: 992px) {

    .section1 {
        min-height: 100vh;

        justify-content: center;
        align-items: center;

        text-align: center;

        padding: 120px 25px 60px;
    }

    .section1 .logo {
        width: 260px;
        /* était 180px */
        height: auto;
        margin: 0 0 30px;
    }

    .section1 h2 {
        margin: 0;

        font-size: clamp(2rem, 5vw, 3rem);
        line-height: 1.2;

        max-width: 650px;
    }

    .section1 p {
        margin-top: 20px;

        font-size: 1.2rem;

        max-width: 500px;
    }

    /* Les blocs image + texte passent en colonne pour éviter l'écrasement */
    .container1,
    .container2,
    .container3 {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 25px;
    }

    .container1>div,
    .container2>div,
    .container3>div {
        max-width: 100%;
    }

    .section2-img {
        width: 100%;
        max-width: 320px;
        min-width: 0;
        height: 260px;
    }

    .section-img {
        gap: 40px;
    }

}

.container4-img {
    max-width: 100%;
    aspect-ratio: 16 / 10;
}


/* ---------- Téléphone ---------- */

@media (max-width: 768px) {

    header {
        font-size: 12px;
    }

    .section1 .logo {
        width: 200px;
        /* était 140px */
    }

    .section1 h2 {
        font-size: 2rem;
    }

    .section1 p {
        font-size: 1rem;
    }

    .container0 h2 {
        font-size: 30px;
    }

    .section2 h1 {
        font-size: 28px;
    }

    .section2 p {
        font-size: 15px;
    }



    .section-img {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        justify-items: center;
        align-items: start;
    }

    .membre {
        width: 100%;
        max-width: 180px;
    }

    .membre img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/5;
        object-fit: cover;
    }

    .container4 {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .container4-img {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
        margin-left: 0;
        margin-top: 20px;
    }

    .container4 h1 {
        font-size: 28px;
    }

    .container4 p {
        font-size: 16px;
    }

    .map-embed {
        height: 300px;
    }

    footer {
        min-height: auto;
        padding: 30px 20px;
    }

    .footer-txt {
        gap: 15px;
        text-align: center;
    }
}

/* ---------- Très petits téléphones ---------- */

@media (max-width: 480px) {

    .section1 h2 {
        font-size: 26px;
    }

    .section1 p {
        font-size: 16px;
    }

    .section1 .logo {
        width: 160px;
    }

    .section2 {
        padding: 50px 15px;
    }

    .container1,
    .container2,
    .container3 {
        padding: 20px;
    }

    .section2-img {
        width: 100%;
        max-width: 100%;
        height: 220px;
    }

    .section-txt h2 {
        font-size: 28px;
    }

    .container4 {
        padding: 20px;
    }
}