* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}


[data-inviewport="fade"] {
    opacity: 0;
    transition: opacity 1.2s;
  }
  
  [data-inviewport="fade"].is-inViewport {
    opacity: 1;
  }

/* Styles globaux */
body {
    font-family: 'Trebuchet MS';
    line-height: 1.6;
    background-color: #f0f0f0;
    transition: all 10s ease;
}

.body-no-scroll {
    position: fixed; /* Empêche le défilement du contenu */
    overflow-y: scroll; /* Affiche la barre de défilement, même si le contenu n'est pas défilable */
    width: 100%; /* Force la largeur du corps à 100% pour éviter tout débordement horizontal */
}

.anchor {
    position: absolute;
    transform: translateY(-150px);
}

a {
    text-decoration: none;
}

h1, h2, h3 {
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container .cta-button {
    padding: 12px 30px;
}

/* Styles pour le header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: auto;
    position: sticky;
    top: 0;
    z-index: 1000;  
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 1000;  
}

/* Styles pour la div .logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    padding: 10px;
}

.title {
    font-family: 'Source Sans Pro', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #333;
    font-weight:lighter;
    font-size: 32px;
    transition: color 0.3s ease;
    margin-left: 5px;
    white-space: nowrap;
}

.logo:hover .title{
    color: #d8b06a;
}

/* Styles pour la liste <ul> */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

/* Styles pour chaque élément de la liste */
nav ul li {
    margin-right: 25px;
}

nav ul li a {
    color: #333;
    font-weight: normal;
    font-size: 20px;
    transition: color 0.3s ease;
    margin-right: 15px;
}

nav ul li a:hover:not(.cta-button){
    transition: color 0.3s ease;
    color: #d8b06a;
}

/* Styles spécifiques à la section "Accueil" */
#accueil {
    text-align: center;
    padding: 250px 0 325px;
    background: rgba(54,54,54,0.3);
    background-image: url('images/building3.jpg');
    background-blend-mode:difference;
    background-size: cover;
    color: #fff;
    background-attachment: fixed; /* L'image reste fixe lors du défilement */
    margin-bottom: -25px;
}

#accueil h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
    display: inline-block;
}

.cta-button {
    margin-top: 5px;
    display: inline-block;
    padding: 10px 25px;
    background-color: #d8b06a;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.5s ease;
}

li>a.cta-button {
    margin-top: 0px;
}

.cta-button:hover {
    background-color: #c89a4a;
    transform: scale(1.1);
}

/* Styles pour la section "Services" */
#services {
    margin: -50px 0 -50px;
    text-align: center;
    padding: 50px 0;
    background-color: #d8b06a;
    transform: skewY(3deg);
    transform-origin: center center; /* Centre la transformation */
}

.services2 {
    transform: skewY(-3deg) !important;
}

#services h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

#services a {
    border: 1px solid white;
}

#services > * {
    transform: skewY(-3deg) ;
    transform-origin: center center;
}

.services2 > * {
    transform: skewY(3deg) !important;
}

#services .cta-button {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 30px;
    transition: 0.5s ease;
}

#services .cta-button:hover {
    transition: 0.5s ease;
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}


/* Styles pour la popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Source Sans Pro', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.popup-content {
    padding: 20px 0 20px;
    height: 85%;
    background-color: #fff;
    position: relative;
    max-width: 1000px; /* Largeur fixe de la popup */
    width: 90%; /* Largeur en pourcentage pour une mise en page réactive */
}

.close {
    position: absolute;
    top: -40px;
    right: 30px;
    font-size: 100px;
    font-weight: lighter;
    cursor: pointer;
    z-index: 1; 
    user-select: none;
    -moz-user-select: none; /* Firefox */
    -webkit-user-select: none; /* Chrome, Safari, Opera */
    -ms-user-select: none; /* Internet Explorer/Edge */
    transition: 0.3s ease;
}

.close:hover {
    transition: 0.3s ease;
    color: #d8b06a;
    transform: scale(1.3);
}

/* Styles pour le formulaire dans la popup */
.popup-content h2 {
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: normal;
    text-align: center;
    color: black;
}

.popup-content form {
    height:100%;
    overflow-y: auto; /* Ajoute une barre de défilement vertical si nécessaire */
}

.form {
    padding: 0 10% 0 10%;
    grid-gap: 0px;
}

.form > .endForm {
    grid-column: span 2; /* Fait occuper les deux colonnes */
}

.form > .endForm > input{
    width: 100%;
    padding: 8px; 
    border: 1px solid gray;
}

.form > .endForm > input:focus, #message:focus{
    outline: #d8b06a;
    border: 1px solid #d8b06a; /* Ajoute une bordure */
    box-shadow: 0px 0px 3px #d8b06a; /* Ajoute une ombre */
}


.form > div > * {
    margin-bottom: 10px;
}


.form > h4, .form > div{
    margin: 10px;
}

.send{
    color: white;
    background-color: #4b4b4b;
    border: none!important; 
    font-family: 'Trebuchet MS' !important;
    padding: 10px 25px;
    cursor: pointer;
    text-transform:none;
    font-weight: normal;
}

.send:hover {
    background-color: #d8b06a;
    border: none    !important; 
}

#message{
    border: 1px solid gray; /* Ajoute une bordure */
    padding: 8px; 
    width: 100%; 
    height: 300px; 
}


/* Style des boutons radio personnalisés */
.custom-radio > input{
    margin-left: 20px;
    opacity: 0; /* Masque l'input radio par défaut */
    width: 0;
    height: 0;
}


label {
    display: inline-block;
    position: relative;
    padding-left: 30px; 
    cursor: pointer;
    transform: translateX(-10px);
    -webkit-transform: translateX(-10px);
    -moz-transform: translateX(-10px);
    -ms-transform: translateX(-10px);
}

.custom-radio > input + label::before {
    content: "";
    display: inline-block;
    width: 10px; /* Largeur du cercle */
    height: 10px; /* Hauteur du cercle */
    border: 2px solid #fff; 
    border-radius: 50%; /* Arrondir le cercle */
    position: absolute;
    left: 0;
    transform: translateY(7px) translateX(-4px);
    -webkit-transform: translateY(7px) translateX(-4px);
    -moz-transform: translateY(7px) translateX(-4px);
    -ms-transform: translateY(7px) translateX(-4px);
    
    /* Ajouter une deuxième bordure de 2px noire avec box-shadow */
    box-shadow: 0 0 0 2px black;
}

input[type="radio"]:checked + label::before {
    background-color: black;
    border-color: white; 
    box-shadow: 0 0 0 2px black;
}


/* Styles pour la section "contact" */
.contact {
    padding: 250px 0 300px;
    background: rgba(54,54,54,0.74);
    background-image: url('images/bureau.jpg');
    background-blend-mode:difference;
    background-size: cover;
    color: #fff;
    background-attachment: fixed; /* L'image reste fixe lors du défilement */
    text-align: center;
    font-size: 36px;
}

#contact {
    background-color: rgba(216, 176, 106, 0.75);
    max-width:min-content;
}

#contact    p {
    width: 350px;
    font-size: 20px;
  
}

#contact a {
    color: white !important;
}

#contact p :hover{
    text-decoration:underline   ;
}


.portfolio-item img {
    max-width: 100%;
    height: auto;
}


.portfolio-item p {
    font-size: 18px;
    color: #ddd;
}

/* Styles pour le footer */
footer {
    margin-top: 20px;
    background-color: #d8b06a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.titleReview {  
    padding: 10px;
    font-size: 40px;
    margin: 30px 0 0 0 ;
    color: #202124;
    font-weight: lighter;
    text-align: center;
}

#avis {
    padding: 30px 0 30px;
    font-family: arial,sans-serif;
    display: flex;
    justify-content:space-evenly;
    align-items: center;
}

/* Style pour les blocs d'avis */
.avis {
    height: 375px;
    width: 350px;
    border: 1px solid #ccc;
    margin: 10px;
    padding: 10px;
    text-align: left;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    text-align: center;
}

/* Style pour les informations de l'avis */
.avis-info {
    margin-top: 10px;
    margin-bottom: 2vh;
    font-size: 16px;
}

.avis-auteur {
    font-weight: bold;
    margin-bottom: 1vh;
}

.avis-note {
    color :#fbbc04;
    font-size: 20px;
}

.avis-date {  
    color: #70757a;
}

.avis-corps {
    color: #202124;
    font-size: 16px;
}

/* Style pour les images d'utilisateur */
.avis img {
    display: block;
    margin: 2vh auto;
    height: 65px;
}

.footer-content {
    width: auto;
    display: flex;
    align-items: center;
}




footer {
    background: rgba(0, 0, 0, 0.6);
    background-image: url("images/building7.jpg");
    background-blend-mode:darken;
    background-size: 100%;
    background-position:center;
    color: #fff;
    padding: 20px 0;
    user-select: none; /* Empêche la sélection de texte */
}

.containerFooter {
    max-width: 60%;
    margin: 0 auto;
    padding: 0 20px;
}

.center-vertically {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin: 0;
  }

  .center-vertically h2 {
    font-size: 30px;
  }


  .logoFooter {
    object-fit: contain;
    height: 2.5vw;
    width: auto;
    margin-block: 20px;
  }

.row {
  display: flex; 
  justify-content: space-around;
}

.column, .row a {
  max-width: 33%; /* Limiter la largeur à 33% au maximum */
  margin-inline: 0.5vw; 
  display: flex;
  text-decoration: none;
  transition: 0.5s;
}


.row a .column .center-vertically p {
    font-size: 20px;
    transition: 0.5s;
    color: white;
}

.row a:hover .column .center-vertically p {
    transition: 0.5s;
    color: #d8b06a;
}

.row a .column .center-vertically img {
    transition: 0.5s;
}

.row a:hover .column .center-vertically img {
    transition: 0.5s;
    transform: scale(1.3); 
}


/* Pour supprimer la marge droite du dernier .column */
.column:last-child {
  margin-right: 0;
}

.icon {
    height: 5vw;
    transition: 0.5s;
    border-radius: 0px;
    box-shadow: none;
  }
  .icon:hover {    
    transform: scale(1.1);
    transition: 0.5s;
    border-radius:10px;
    box-shadow: 0px 0px 10px white, inset  0px 0px 10px white;
}


.legal {
    max-width: 33%;
    margin-inline: 0.5vw;
    display: flex;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
  }

  .center-vertically a, .legal, .center-vertically .legal p {
    padding: 0;
    margin: 0;
    padding-top: 1px;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    font-size: 15px;
    color: rgba(175, 175, 175, 0.95);
    transition: 0.3s;
    padding-inline: 0;
  }

  .center-vertically a {
    margin-top: -10px;
  }

  .center-vertically .legal:hover p {
    color: #d8b06a;
    transition: 0.3s;
    text-decoration: underline;
  }


  .menu {
    display: none;
  }





  @media (max-width: 1600px) {
    .containerFooter {
        max-width: 80%;
    }
}

@media (max-width: 1500px) {
    .avis {
        height: 425px;
    }
}

@media (max-width: 1200px) {
    .containerFooter {
        max-width: 100%;
    }
    .icon {
        height: 70px;
    }
    .logoFooter {
        height: 40px;
    }
    .avis {
        height: 500px;
    }
}


@media (max-width: 1100px) {
    .overflow {
        max-width: 100%;
        overflow: hidden;
    }
    header {
        position: fixed;
        width: 100%;
    }
    nav {
        height: 80px;
        align-items: initial;
    }
    nav ul {
        display: block;
        width: 40%;
        padding-bottom: 20px;
    }
    nav ul li {
        display: flex;
        transform: translateY(-10px);
        padding-block: 20px;
        background-color: #fff;
        margin-right: 0;
        width: 100%;
        align-items: center;
        align-content: center;
        justify-content: center;
        text-align: center;
        transition: 1s;
        opacity: 0;
        transform: translateX(100%);
    }
    ul.opened li {
        transform: translateX(0);
        display: flex;
        transition: 1s;
        opacity: 1;
    }
    nav ul.opened {
        transition: 1s;
    }
    ul.opened li::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 40%;
        width: 20%; 
        border-bottom: 1px solid black;
    }
    
    nav ul li:first-of-type {
        background-color: transparent;
        height: 80px;
        transform: translateX(0);
        justify-content: space-evenly;  
        margin: 0;
        padding: 0;
        display: flex;
        opacity: 1;
    }
    nav ul li:first-of-type::after {
        border: none;
    }
    nav ul li:first-of-type a{
        margin-left: 20px;

    }
    nav ul li:last-of-type::after {
        border: none;
    }
    nav ul li a {
        margin-right: 0;
    }


    /* Copyright (c) 2024 by Mikael Ainalem (https://codepen.io/ainalem/pen/bGmzRbE)

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

        
    .menu {
        background-color: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        padding: 0;
        padding-inline: 5px;
    }
    .line {
        fill: none;
        stroke: black;
        stroke-width: 6;
        transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    .line1 {
        stroke-dasharray: 60 207;
        stroke-width: 6;
    }
    .line2 {
        stroke-dasharray: 60 60;
        stroke-width: 6;
    }
    .line3 {
        stroke-dasharray: 60 207;
        stroke-width: 6;
    }
    .opened .line1 {
        stroke-dasharray: 90 207;
        stroke-dashoffset: -134;
        stroke-width: 6;
    }
    .opened .line2 {
        stroke-dasharray: 1 60;
        stroke-dashoffset: -30;
        stroke-width: 6;
    }
    .opened .line3 {
        stroke-dasharray: 90 207;
        stroke-dashoffset: -134;
        stroke-width: 6;
    }

    /* End of Copyright */
    

    #services {
        padding: 20px 0;
    }

}

@media (max-width: 900px) {
    .containerFooter {
        max-width: 100%;
    }
    .icon {
        height: 70px;
    }
    .logoFooter {
        height: 40px;
    }
    .row {
        display: grid;
    }
    .row, .column, .center-vertically, .row a{
        width: 100%;
        max-width: none;
        justify-content: center;
        text-align: center;
        text-align: center;
        align-items: center;
    }
    .column{
        margin-top: 10px;
    }
    a .column {
        justify-content: center;
        text-align: center;
        width: min-content;   
        text-align: center;
        align-items: center;
        max-width: 100%;
        display: flex;
    }
    .center-vertically p {
        margin-inline: 2vw;
    }
    .social-icons {
        margin-top: 15px;
    }
    #avis {
        display: block;
        padding: 30px 0 0px;
    }
    .avis {
        margin-bottom: 30px;
        height: auto;
        width: auto;
        max-width: 100%;
        margin-inline: 7%;
    }
    .avis-corps p {
        padding: 10px;
    }
    nav ul {
        width: 50%;
    }
    
    #accueil,
    .contact {
        background-attachment: scroll; 
    }
    #accueil {
        background-position: center center;
    }
}



@media (max-width: 768px) {
    .popup-content h2 {
        padding-top: 10%;
    }
    .close{
        font-size: 70px;     
        top: -20px;
        right: 20px;
    }
}


@media (max-width: 700px) {
    .title {
        font-size: 18px;
        white-space: pre-wrap;
        width: 95px;
    }
    
    .title::after {
        content: "\A";
        white-space: pre;
    }
    #accueil {
        padding: 150px 0 225px;
    }
    .contact {
        padding: 200px 0 250px;
    }
    #map iframe {
        height: 600px !important;
    }
    nav ul {
        width: 60%;
    }
    footer {
        background-size: cover;
    }
}

@media (max-width: 570px) {
    li > a.cta-button {
        font-size: 15px;
        padding: 10px 15px;
      }
    nav ul {
        width: 70%;
    }
    #services {
        padding: 10px 0;
    }
    #services h2 {
        font-size: 30px;
    }
}

@media (max-width: 400px) {
    .logo img {
        height: 60px;
    }
    .title {
        font-size: 15px;
        white-space: pre-wrap;
        width: 85px;
    }
    li > a.cta-button {
        font-size: 15px;
        padding: 10px 7px;
      }
      
    nav ul li:first-of-type a{
        margin-left: 15px;

    }
    
    #contact p { 
        width: 100%;
    }
    #devisForm {
        padding-inline: 0;
        margin-inline:0;
    }
    .popup-content{
        padding-bottom: 0;
    }
    .popup-content h2 {
        padding: 30px 20px 0 20px;
    }
    .custom-radio {
        display: grid;
    }
    .form > div > * {
        margin-bottom: 2px;
    }
    .form > div {
        margin-left: 50px;
    }
    .form > h4 {
        margin-top: 20px;
        margin-bottom: 0px;
    }
    .form > div.endForm {
        margin: 10px;
      }
}

@media (max-width: 350px) {
    .logo img {
        height: 50px;
    }
    .title {
        width: 80px;
        padding: 0;
        margin: 0;
    }
    #contact h3 {
        font-size:12vw;
    }
}

@media (max-width: 325px) {
    .logo img {
        height: 40px;
    }
    .title {
        width: 70px;
    }
    .menu {
        padding-left: 0px;
    }
    #contact p { 
        font-size: 6vw;
    }
    
}
@media (max-width: 300px) {
    .title {
        margin-left: 5px;
    }
    .logo img {
        display: none;
    }
    .form > div {
        margin-left: 40px;
    }
}


