@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --url-BG: "";
    --color-menu: "";
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat';
    line-height: 1.6; 
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/*** Header ***/
header { 
    background: url('../images/Baniere-accueil.jpg') no-repeat center center/cover; 
    background-size: auto 100%;
    background-color: #fff;
    position: relative;
    height: 98vh; 
    width: 100vw; 
    text-align: center; 
    transition: all 500ms ease-in-out;
    box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}
header:hover {
    background-size: auto 105%;
}

header nav { 
    position: fixed; 
    top: 0; 
    height: 80px;
    width: 100%; 
    z-index: 100; 
    background: rgba(0, 0, 0, 0);
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: background-color 0.2s linear;
}


.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-self: center; 
    width: 100%; 
    padding-left: 60px;
    padding-right: 60px;
}

.logo img { 
    height: max-content;
    max-height: 100px;
    transition: all 0.3s ease-in-out;
}

.logo:hover img {
    transform: scale(1.3) rotate(5deg);    
}

.menu {
    display: flex;
    align-self: center; 
    height: 100%;
    visibility: hidden;
}

.menu ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    justify-content: center;
}

.menu li { 
    margin: 0 1em;
}

.menu li a { 
    color: var(--color-menu);
    font-weight: 600;
    text-decoration: none; 
    padding: 1em; 
    display: block;
    transition: color 0.2s ease-in-out;
}

.menu ul li a:hover { 
    font-weight: 800; 
    color: brown;
}

.NavContact {
    font-size: 1rem;
    color: var(--color-menu);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: right;
}
.head {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--color-menu);
}

.head a {
    color: var(--color-menu);
    transition: all 0.1s linear;
}

.head a:hover {
    color: brown; 
    font-size: 1.5rem;
}


/*** Fin Header ***/

/*** Paramtere generaux ***/

section { 
    position: relative;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 100px;
    box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.title_1 {
    position: absolute;
    top: 20px;
    left: 10px;
    z-index: 10;
}

.title {
    position: relative;
    font-weight: 800;
    line-height: 40px;
    margin-left: 4vh;
}

.title::before {
    position: absolute;
    content: "";
    background-color: brown;
    border-radius: 100px;
    width: 50px;
    height: 7px;
    bottom: 0;
}

/*** Services ***/

#services {
    position: relative;
}

.services-container {
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    place-items: center;
    gap: 25px;
    animation: services linear;
    animation-timeline: view();
    animation-range-start: cover 0%;
    animation-range-end: contain 30%;
}

@keyframes services {
    from { scale: 0.8; }
    to { scale: 1.0; }
}

.services-items {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 200px;
    height: 250px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    padding-top: 30px;
    transition: all .2s linear;
}

.services-items:hover {
    transform: scale(1.1);
}

.services-icon {
    font-size: 4rem;
    flex-direction: column;
    text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 5px;
    align-items: center;
    color: brown;
    transition: all 500ms ease-in-out;
}

.services-icon:hover {
    color: rgb(255, 0, 0);
}

.services-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 500;
}

.services-popup-content {
    position: absolute;
    max-width: 80vw;
    width: 100%;
    max-height: 80vh;
    height: 100%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100px 0 0 0;
    overflow: auto;
    visibility: hidden;
}

.services-popup-content::-webkit-scrollbar {
    width: 10px;
}

.services-popup-content::-webkit-scrollbar-track {
    background-color: rgb(192, 192, 192);
}

.services-popup-content::-webkit-scrollbar-thumb {
    background-color: red;
    border-radius: 15px;
}

.services-popup-overlay.open {
    display: block !important;
}

.popup-exit {
    position: absolute;
    top: 10%;
    left: 10%;
    transform: translate(-50%, -50%);
    color: brown;
    text-decoration: none;
}

.popup-exit span{
    background-color: #aaaaaaaf;
    border-radius: 50% 50%;
    font-size: 2rem;
    padding: 10px;
}

.services-popup-content h2 {
    font-size: 2rem;
    text-shadow: rgba(0,0,0,0.6) 5px 3px 8px;
}

.services-popup-content p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    padding-bottom: 30px;
    text-align: justify;
}

.services-popup-content ul li {
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: justify;
}

.services-popup-content .ImgLeft {
    float: left;
    margin-right: 20px;
    max-width: 30%;
    border-radius: 20% 0 20% 0;
    object-fit: cover;
}

.services-popup-content .ImgRight {
    float: right;
    margin-left: 20px;
    max-width: 30%;
    border-radius: 20% 0 20% 0;
    object-fit: cover;
}

.services-popup-content .ImgSmall {
    max-width: 15%;
}
.services-popup-content .video {
    width: 100%;
    display: flex;
    justify-content: center;
}
.services-popup-content iframe {
    border-radius: 30px 0 30px 0;
}

/*** Fin Services ***/

/*** Presentation ***/

#presentation {
    position: relative;
    margin: 0 auto;
    background-color: black;
    color: white;
}

.presentation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 80vw;
    margin: 0 auto;
    margin-top: 50px;
}

.album_pres {
    width: 550px;
    height: 450px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.slides_atelier { 
    position: relative;
    display: flex; 
    width: 100%; 
}

.slide_img_atelier {
    position: absolute; 
    width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide_img_atelier img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 10px;
}

/*** Fin Presentation ***/

/*** nos réalisaions ***/

#diapo_accueil {
    position: relative;
    background-color: white;
    height: 100vh;
    padding: 0;
    color: black;
}

.real-container {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}



.carousel {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.desc {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: black;
}

.desc-inner {
    width: 80%;
    padding-left: 50px;    
    transition: all 1s ease-in-out;
}
.desc-inner a {
    text-decoration: none;
    font-weight: 700;
    color: brown;
    pointer-events: auto;
}

.desc h1 {
    font-size: 3rem;
}

.carousel button {
    position: absolute;
    background: none;
    border: none;
    outline: none;
    font-size: 4rem;
    z-index: 3;
    text-shadow: white 0 0 15px;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.1s linear;
    transform-origin: center;
}

.carousel button:hover {
    color: red;
    scale: 1.1;
}

#prev {
    left: 50%;
}

#next {
    right: 10px;
}


.material-symbols-outlined#pauseSymbole {
    font-size: 4rem;
    font-variation-settings:'FILL' 1, 'wght' 100, 'GRAD' 0, 'opsz' 20;
}

#pauseButton {
    top: 40px;
    left: 50%;
}
.carousel ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.carousel ul li {
    display: grid;
    height: 100%;
    grid-template-columns: 1fr 1fr;
    place-items: end;
    padding: 0;
    margin: 0;
    list-style: none;
}

.slide {
    position: absolute;
    min-width: 100%;
    opacity: 0;
    transition: 0.8s ease-in-out;
}

.slide.affiche {
    opacity: 1;
}

.photo {
    position: relative;
    height: 100%;
    width: 100%;
}

.blur {
    position: absolute;
    background: var(--url-BG);
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.photo img {

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    max-height: 100%;
    z-index: 2;
}


/*** Fin nos réalisaions ***/

/*** Contact ***/
#contact {
    position: relative;
    background-color: black;
    color: white;
}

.contact {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.contact div {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
}

.maps {
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
}

.maps iframe { 
    margin-top: 10px; 
}

/*** Fin Contact ***/

/*** footer ***/

.footer-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: center;
    border-top: 1px solid grey;
    background-color: black;
}

.foot {
    color: white;
    text-align: center;
    text-decoration: none;
}

.foot a {
    color: white; 
    transition: all 0.1s linear;
}

.foot a:hover {
    color: brown; 
    font-size: 1.5rem;
}

.social {
    letter-spacing: 5px;
}

/*** Fin footer ***/

/*** Responsive Mobile ***/

@media(max-width:810px) {

    .services-popup-content .ImgLeft {
        float: none;
        max-width: 100%;
    }
    
    .services-popup-content .ImgRight {
        float: none;
        max-width: 100%;
    }   
    
    .services-popup-content p { 
        font-size: 0.7rem;
    }

    .services-popup-content ul li {
        font-size: 0.7rem;
    }

    header {
        background-size: 100% auto ;
    }

    .nav-container { 
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-container ul {
        display: none;
    }

    .logo img { 
        max-height: 50px;
    }

    .NavContact {
        font-size: 0.6rem;
    }

    .head {
        font-size: 0.6rem;
        gap: 10px;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-items {
        width: 100px;
        height: 125px;
        font-size: 0.8rem;
    }

    .Services-icon {
        font-size: 2rem;
    }

    #diapo_accueil {
        height: 100vh;
    }

    .carousel ul li {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        padding-top: 100px;
    }

    .carousel button {
        top: 80%;
    }

    #prev {
        left: 2%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 3fr 1fr;
    }

    .footer-container .foot {
        font-size: 0.4rem; 
    }
}