/*
=> HEADER
*/
header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #000000;
    width: 100%;
    height: 80px;

    & div {
        width: 100px;
        height: 100px;
        background-image: url(./assets/images/Logo-simple.svg);
    }

    & nav {
        color: #ffffff;
    }
}

/* .deco-header {
    position: absolute;
    top: 77px;
    width: 768px;
    height: 6px;
    background-color: #1F4E3D;
} */

nav ul {
    display: flex;
    gap: 35px;

    & li:hover {
        color: #1F4E3D;
    }
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: flex;
    height: 4px;
    background: white;
    transition: 0.4s ease;
    transform-origin: center;
}

/*
=> Qui suis-je
*/
.section-presentation {
    padding: 50px 12px;
}

.presentation {
    display: flex;
    justify-content: space-between;
}

.left-presentation {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 60%;
    height: auto;

    & div p {
        text-align: justify;
        font-size: 14px;
    }

    & div h3 span {
        font-size: 28px;
    }
}

.deco-presentation {
    height: auto;
    width: 1px;
    margin: 0px 12px;
    border: solid 1px #1F4E3D;
}

.right-presentation {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 40%;

    & img {
        overflow: hidden;
    }
}

/*
=> Services
*/
.section-services {
    padding: 50px 12px;
}

.parent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
}

.enfant {
    width: 208px;
    height: 250px;
}

.data-description{
    padding: 5px;

    display: flex;
    align-items: end;
}

.bg-style{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: bisque;
    color: #fff;
}

.Service1 {
    grid-row: span 2 / span 2;
    background-image: url(./assets/images/peinture-intérieur.webp);
}

.Service2 {
    grid-row: span 2 / span 2;
    transition: background-image 1s ease-in-out;
    background-image: url(./assets/images/enduit-intérieur-_2_.webp);

}

.Service3 {
    grid-row: span 2 / span 2;
    transition: background-image 1s ease-in-out;
    background-image: url(./assets/images/revêtement-mural.webp);
}

.Service4 {
    grid-row: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 3;
    background-image: url(./assets/images/plafond-ancien.webp);
}

.Service5 {
    grid-row: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 3;
    background-image: url(./assets/images/fauxplafondcloison.webp);
}

.Service6 {
    grid-row: span 2 / span 2;
    grid-column-start: 4;
    grid-row-start: 3;
    background-image: url(./assets/images/travaux-de-façade.webp);
}

.presentation-service {
    grid-row: span 4 / span 4;
    width: 400px;
    height: 508px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
    background-color: #1F4E3D;
    overflow: hidden;
}

.presentation-service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* filtre foncé */
    z-index: 1;
}

.presentation-service .content {
    position: relative;
    z-index: 2;
}

.presentation-service h3 {
    margin: 0;
    font-size: 24px;
}

.presentation-service p {
    margin-top: 10px;
    font-size: 16px;
}

/*
=> Références
*/
.section-references {
    display: flex;
    flex-direction: column;
    background-color: #1F4E3D;
    padding: 50px 0px;
}

.info-reference{
    display: flex;
}

.accordion {
    max-width: 768px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
}

.accordion-header {
    background-color: #1F4E3D;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #2a6a53;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    text-align: justify;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 15px 20px;
}

footer{
    background-color: #020202;
    color: #fff;
}

.footer-div{
    display: flex;
    justify-content: space-between;
    padding: 50px 0px;
}

.logo-footer{
    & div {
        width: 300px;
        height: 250px;
        background-image: url(./assets/images/-Logo\ Green\ Work\ Project-.svg);
        overflow: hidden;
    }
}

.logo-res{
    width: 50px;
}

.contact-res{
    display: flex;
    gap: 15px;
}
@media only screen and (max-width: 1024px) {
    .parent {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .presentation-service {
        order: -1;
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    .enfant {
        width: 100%;
        height: 200px;
    }

    .marque-text{
        padding-left: 12px;
    }
}

@media only screen and (max-width: 768px) {

    /*HEADER*/
    .burger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #000;
        display: none;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        padding: 1rem;
        border-top: 1px solid #1F4E3D;
    }

    nav.active {
        display: flex;
    }

    /*PRESENTATION*/
    .presentation {
        flex-direction: column;
    }

    .left-presentation {
        max-width: 100%;
    }

    .deco-presentation {
        height: 1px;
        width: auto;
        margin: 12px 0px;
        border: solid 1px #1F4E3D;
    }

    .right-presentation {
        max-width: 100%;
    }

    .accordion {
        max-width: 768px;
    }
    
    .accordion-item.active .accordion-content {
        max-height: 300px;
        padding: 8px 20px;
    }

    .footer-div{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
}