@import url("reset.css");
@import url("../utils/fontello/css/fontello.css");

/*
------------------------------------------------------------------------
                                STYLE
------------------------------------------------------------------------
*/
span, a {
    display: inline-block;
}
p, span, a, h1, h2, h3, h4, i, li, button {
    color: #595959;
    font-size: 1rem;
    font-family: sans-serif;
}

/*
------------------------------------------------------------------------
                                HEADER
------------------------------------------------------------------------
*/
header {
    z-index: 10;
    /*position: sticky;
    top: 0;*/
    position: fixed;
    width: 100%;
    background-color: #fff;
}
header i {
    color: #990000;
}

/* Content */
header .content span,
header .content a {
    color: #000;
}
header .content {
    display: flex;
    max-width: 950px;
    margin: auto;
    padding: .3rem .5rem .1rem;
    text-align: center;
    align-items: center;
    justify-content: space-around;
}
header .content .items {
    border-radius: 50px;
    border: 2px solid transparent;
    transition: background .2s ease-out;
}
header .content .items .name {
    font-size: 1.1rem;
    letter-spacing: 1px;
}
header .content img {
    height: 35px;
}
header .content .phone span {
    display: none;
}
header .content .items span {
    font-size: .8rem;
    padding-bottom: 2px;
}
header .content > *:nth-child(3) .items {
    padding: .3rem .5rem;
    border-color: #990000;
}

/* Nav */
header nav span,
header nav a {
    color: #fff;
}
header nav {
    background-color: #990000;
}
header nav ul {
    display: flex;
    justify-content: space-between;
    max-width: 950px;
    margin: auto;
    justify-content: center;
}
header nav a {
    font-size: .9rem;
    padding: .7rem 1rem;
    transition: background .2s ease-out;
}
header nav a:hover {
    background-color: #b30000;
}

/* Media Screen */
@media only screen and (min-width: 800px) {
    /* Content */
    header .content > * {
        flex: 1 1 0px;
    }
    header .content a {
        pointer-events: all;
    }
    header .content img {
        height: 55px;
    }
    header .content .items {
        padding: .5rem .8rem;
    }
    header .content .items span {
        font-size: 1rem;
        width: auto;
        margin-top: 0;
    }
    header .content .items .name {
        font-size: 1.4rem;
    }
    header .content .phone span {
        display: inline-block;
    }
    header .content .items * {
        transition: color .2s ease-out;
    }
    header .content a.items:hover {
        background-color: #990000;
    }
    header .content a.items:hover * {
        color: white;
    }

    /* Nav */
    header nav a {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

/*
------------------------------------------------------------------------
                                MAIN
------------------------------------------------------------------------
*/
main {
    display: flex;
    flex-direction: column;
}

/* Accueil */
.accueil {
    position: relative;
    overflow: hidden;
}
.accueil::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 100%;
    min-width: 1300px;
    height: 100%;
    background-image: url('../images/bg1.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.accueil .content {
    padding: 5rem 2rem 2rem;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 950px;
    margin: auto;
}
.accueil .title {
    text-align: center;
    padding: 2.5rem 0;
}
.accueil .title h1 {
    color: #595959;
    font-size: 1.6rem;
    letter-spacing: .5px;
}
.accueil .title h1 span {
    font-size: 1.6rem;
    color: #990000;
    font-weight: bold;
}
.accueil .title ul {
    padding-top: .5rem;
}
.accueil .title ul li {
    letter-spacing: .5px;
    font-size: 1.4rem;
    color: #990000;
    border-radius: 25px;
    display: none;
}
/*.accueil .title ul li:first-child {
    display: inline-block;
}*/
.accueil .bloc-img {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.accueil .bloc-img img {
    height: 250px;
    max-width: 150%;
}
.accueil .bloc-img .infos {
    box-sizing: border-box;
    display: flex;
    gap: .5rem;
    /*flex-direction: column;*/
    background-color: #fff;
    padding: 1rem;
    flex-wrap: wrap;
    text-align: center;
}
.accueil .bloc-img .infos span:nth-child(2) {
    font-size: 1.5rem;
}
.accueil .bloc-img .infos > * {
    min-width: 100%;
}
.accueil .bloc-img .infos .bloc-bt a {
    color: white;
    background-color: rgba(255, 153, 51, .7);
    padding: .7rem 2rem;
    border-radius: 50px;
}

@media only screen and (min-width: 800px) {
    .accueil .content {
        padding: 7rem 2rem 2rem;
        box-sizing: border-box;
    }
    .accueil .title {
        text-align: center;
        padding: 2rem 0;
    }
    .accueil .title h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    .accueil .title h1 span {
        font-size: 2.2rem;
    }
    .accueil .title ul {
        display: flex;
        gap: .5rem;
        justify-content: center;
    }
    .accueil .title ul li {
        padding: .4rem 1.2rem;
        font-size: 1.3rem;
        color: white;
        background-color: #990000;
        display: inline-block;
    }
    .accueil .bloc-img img {
        height: auto;
        min-width: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .accueil .bloc-img .infos {
        text-align: left;
        width: 300px;
        border-radius: 3px;
        position: absolute;
        flex-direction: column;
        left: 1rem;
        bottom: 1rem;
        background-color: rgba(153, 0, 0, .9);
        padding: 1.5rem 2rem;
    }
    .accueil .bloc-img .infos span,
    .accueil .bloc-img .infos i {
        color: #fff;
    }
    .accueil .bloc-img .infos .bloc-bt a {
        margin-top: .5rem;
    }
}

/* Inter */
.inter1 {
    z-index: 8;
    background-color: #FAF0DC;
    padding: 1rem 2rem 0 2rem;
}
.inter1 .content {
    justify-content: center;
    margin: auto;
    max-width: 950px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
    flex-wrap: wrap;
}
.inter1 .content p {
    font-size: 1.1rem;
    line-height: 1.5rem;
    color: #990000;
    min-width: 100%;
    text-align: center;
}
.inter1 .content p span {
    font-size: 1.1rem;
    font-weight: bold;
    color: #990000;
}
.inter1 img {
    width: 70px;
}

@media only screen and (min-width: 800px) {
    .inter1 {
        padding-top: 3rem;
    }
    .inter1 .content {
        padding: 1rem;
        border: 2px solid #990000;
        border-radius: 12px;
        flex-wrap: nowrap;
    }
    .inter1 .content p {
        min-width: 0;
        text-align: left;
    }
    .inter1 .content p span {
        display: contents;
    }
}

/* Présentation */
.presentation {
    z-index: 7;
    background-color: #FAF0DC;
    padding-top: 7rem;
    margin-top: -4rem;
}
.presentation .content {
    max-width: 950px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 2rem;
    width: 100%;
    gap: .5rem;
}
.presentation .content:not(:first-child) {
    margin-top: 3rem;
}
.presentation .content .bloc-txt {
    max-width: 500px;
    margin: auto;
}
.presentation .content h2 {
    color: #990000;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 3px;
    padding: 1rem 0 .5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #990000;
}
.presentation .content p {
    font-size: 1.1rem;
}
.presentation .content p.autres {
    text-align: left;
}
.presentation .content p.citation {
    text-align: center;
    padding: 0 2.5rem;
    position: relative;
    font-size: 1.3rem;
    font-weight: bold;
}
.presentation .content .bloc-txt p {
    padding-bottom: 1.5rem;
}
.presentation .content .bloc-txt .bold {
    font-size: 1.1rem;
    font-weight: bold;
}
.presentation .content p.citation::before,
.presentation .content p.citation::after {
    position: absolute;
    font-family: "fontello";
    color: #990000;
}
.presentation .content p.citation::before {
    content: '\f10d';
    left: 0;
    top: 0;
}
.presentation .content p.citation::after {
    content: '\f10e';
    right: 0;
    bottom: 1.5rem;
}
.presentation .content .bloc-img { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
}
.presentation .content .bloc-img img {
    max-width: 350px;
    width: 100%;
    border-radius: 25px;
}

@media only screen and (min-width: 800px) {
    .presentation {
        padding-top: 7rem;
    }
    .presentation .content {
        gap: 2rem;
        flex-direction: row;
        margin: auto;
    }
    .presentation .content:nth-child(2) {
        flex-direction: row-reverse;
        padding-top: 1rem;
        text-align: left;
    }
    .presentation .content h2 {
        text-align: left;
    }
    .presentation .content:nth-child(2) h2 {
        text-align: left;
    }
    .presentation .content .bloc-img p,
    .presentation .content p.citation {
        text-align: center;
    }
    .presentation .content p.desc {
        text-align: left;
    }
    .presentation .content .bloc-txt {
        margin-top: 1rem;
    }
    .presentation .content:nth-child(2) .bloc-txt {
        margin-top: 0;
    }
}

/* Devis */
.devis {
    z-index: 6;
    background-color: #FAF0DC;
    padding: 7rem 2rem 0;
    margin-top: -4rem;
}
.devis .content {
    margin: auto;
    max-width: 950px;
    text-align: center;
}
.devis .content h2 {
    color: #990000;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 3px;
    padding: 1rem 0 .5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #990000;
}
.devis .content p {
    font-size: 1.1rem;
}

/* Media Screen */
@media only screen and (min-width: 800px) {
    .devis {
        padding-top: 9rem;
    }
}

/* Galerie */
.galerie {
    z-index: 5;
    background-color: #FAF0DC;
    padding: 7rem 2rem 0;
    margin-top: -4rem;
}
.galerie .content {
    margin: auto;
    max-width: 950px;
    text-align: center;
}
.galerie .content h2 {
    color: #990000;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 3px;
    padding: 1rem 0 .5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #990000;
}

/* Media Screen */
@media only screen and (min-width: 800px) {
    .galerie {
        padding-top: 9rem;
    }
}

/* Style de la liste (ul) */
.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
    gap: 10px;
    justify-content: center;
}

/* Style de chaque élément de la liste (li) */
.gallery li {
    position: relative;
    width: calc(33.333% - 10px); /* Par défaut 3 images par ligne */
    height: 200px;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    border-radius: 8px;
}

.gallery li img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    min-height: 200px;
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Responsivité - 2 images par ligne sur les tablettes */
@media (max-width: 768px) {
    .gallery li {
        width: calc(50% - 10px); /* 2 images par ligne */
    }
}

/* Responsivité - 1 image par ligne sur les petits écrans */
@media (max-width: 480px) {
    .gallery li {
        width: 100%; /* 1 image par ligne */
    }
}

/* Lightbox pour visualiser l'image en grand */
.lightbox {
    z-index: 99;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox:active, .lightbox:focus {
    display: none;
}

/*
------------------------------------------------------------------------
                                FOOTER
------------------------------------------------------------------------
*/
footer {
    width: 100%;
    background-color: #FAF0DC;
    padding: 0 2rem;
    box-sizing: border-box;
    /*box-shadow: 0 0 10px rgba(211, 141, 95, .1);*/
}
footer .content,
footer .footer {
    max-width: 950px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
footer ul {
    display: flex;
    align-items: center;
}

/* Top part */
footer .content {
    padding: 1rem 0 3rem 0;
    justify-content: space-around;
    flex-wrap: wrap;
    letter-spacing: .5px;
    gap: 1rem;
}
footer .content > * {
    z-index: 2;
    max-width: 100%;
}
footer .content h4 {
    font-weight: bold;
    padding: 1rem 0;
}
footer .content ul {
    flex-direction: column;
    gap: .5rem;
}
footer .content a {
    display: flex;
    gap: 5px;
}
footer .content p:not(:last-child) {
    margin-bottom: .5rem;
}

/* Bottom part */
footer .footer {
    flex-direction: column-reverse;
    padding: 1rem 0;
    gap: 1rem;
    border-top: 1px solid #2b6e4d;
}
footer .footer nav ul {
    justify-content: flex-end;
    gap: 1rem;
}
footer .footer nav ul li:not(:last-child)::after {
    content: '';
    display: inline-block;
    height: 1px;
    width: 4px;
    background-color: #595959;
    margin-bottom: 5px;
    margin-left: 1rem;
}

@media only screen and (min-width: 800px) {
    footer {
        padding: 0 2rem;
    }
    footer .content,
    footer .footer {
        flex-direction: row;
        align-items: normal;
        text-align: left;
    }
    footer ul {
        align-items: flex-start;
    }

    /* Top part */
    footer .content {
        padding: 1.5rem 0 3rem 0;
        gap: 0;
    }
    footer .content > * {
        padding: 0 2rem;
        max-width: calc(100% / 3 * .9);
    }

    /* Bottom part */
    footer .footer {
        justify-content: space-between;
    }
}
