/*PAGE : ACCUEIL*/
/*Hero*/
section#main-hero {
    background: 50% 0 / cover no-repeat url(../images/hero.webp) rgba(40, 40, 40, 0.6);
    background-blend-mode: overlay;
    padding: 4rem 1.4rem;
    color: var(--white-grey);
    gap: 0.8rem;
}

section#main-hero p {
    font-size: 18px;
}

div#services-hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
}

div#services-hero a {
    width: 160px;
    height: 160px;
    color: var(--white-grey);
    background-blend-mode: overlay;
    text-align: center;
}

div#services-hero a:hover {
    filter: brightness(120%);
    text-decoration: none;
}

div#services-hero a:nth-child(1) {
    background: 50% 50% / cover no-repeat url(../images/tonte-accueil.webp) rgba(40, 40, 40, 0.6);
}

div#services-hero a:nth-child(2) {
    background: 50% 50% / cover no-repeat url(../images/taille-accueil.webp) rgba(40, 40, 40, 0.6);
}

div#services-hero a:nth-child(3) {
    background: 50% 50% / cover no-repeat url(../images/entretien-accueil.webp) rgba(40, 40, 40, 0.6);
}

div#services-hero a:nth-child(4) {
    background: 50% 50% / cover no-repeat url(../images/credit-accueil.webp) rgba(40, 40, 40, 0.6);
}

@media screen and (max-width: 900px) {
    div.hero {
        flex-flow: column nowrap;
        align-items: center;
    }

    div#services-hero {
        display: flex;
        flex-flow: row nowrap;
        width: 100%;
    }

    div#services-hero a {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    div#services-hero {
        flex-flow: row wrap;
    }

    div#services-hero a {
        height: 140px;
    }
}

/*Informations*/
div.informations {
    gap: 1.4rem;
}

div.informations section {
    flex: 1 1 50%;
}

@media screen and (max-width: 800px) {
    div.informations {
        gap: 2rem;
        flex-flow: row wrap;
    }
}

/*Services*/
@media screen and (max-width: 700px) {
    div#services {
        gap: 4rem;
    }

    div#services section {
        flex-flow: column wrap;
    }
}

/*Sponsors*/
div.sponsors {
    gap: 2rem;
}

/*Form*/
div#contact-form {
    position: relative;
}

form {
    flex: 2;
}

input {
    min-height: 32px;
    box-sizing: border-box;
    background: var(--white);
    border: 1px solid var(--black);
}

textarea {
    min-height: 200px;
    max-width: 1200px;
    box-sizing: border-box;
    background: var(--white);
    border: 1px solid var(--black);
}

div.field {
    gap: 0.2rem;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--green);
    border: none;
}

span#contact-message.success {
    color: var(--green);
}

span#contact-message.warning {
    color: red;
}

@media screen and (max-width: 800px) {
    div#contact {
        flex-flow: column nowrap;
        gap: 4rem;
    }
}

/*À propos*/
section#a-propos img {
    float: left;
}

/*Gallery*/
div#gallery {
    position: relative;
}

div#gallery img {
    max-height: 800px;
    width: 100%;
    object-fit: cover;
}

button.previous,
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.2rem;
    height: 3.2rem;
    border: none;
    border-radius: 50%;
    background-color: var(--green);
    color: var(--white);
    font-size: 2rem;
    padding: 0;
    cursor: pointer;
}

button.previous {
    left: 5%;
}

button.next {
    right: 5%;
}

button.previous:hover,
button.next:hover {
    background-color: var(--white);
    color: var(--green);
}

div#count {
    position: absolute;
    bottom: 2%;
    right: 2%;
    font-size: 2rem;
    text-align: center;
    color: var(--white);
    background-color: rgba(40, 40, 40, 0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 0.2rem;
}

@media screen and (max-width: 400px) {

    button.previous,
    button.next {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.4rem;
    }

    div#count {
        font-size: 1.4rem;
        padding: 0.2rem 0.4rem;
    }

}

/*PAGE : 404*/
section#error h1 {
    font-size: 12rem;
    color: var(--green);
}

section#error p {
    font-size: 2rem;
    text-align: center;
}

@media screen and (max-width: 400px) {
    section#error h1 {
        font-size: 8rem;
    }
}

/*PAGE : MENTIONS*/
div#mentions {
    gap: 2rem;
}

div#mentions a {
    font-size: 16px;
}

div#mentions a:hover {
    background: none;
    text-decoration: underline;
}