html, body {
    height: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url(/front/img/background-CTX.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

::selection {
  background: rgb(252, 163, 17); /* ton jaune */
  color: rgb(19, 31, 56);       /* ton bleu */
}

body::before{
    content:"";
    position: fixed;
    inset: 0;
    background: url(/front/img/background-CTX.png) center top / cover no-repeat;
    z-index: -1;
}

.nav-h-mob {
    display: none;
}

/*HEADER*/

.all-header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1rem;
/* Background bleu ? */
    color: white;    
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-family: 'Times New Roman', Times, serif;
    color: rgb(252, 163, 17);
    cursor: pointer;
    position: relative;
    width: 300px;
    padding: 10px;
}

/* Menu déroulant*/
.menu-deroulant {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgb(19, 31, 56);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
    font-weight: 200;
    border-bottom: 6px solid rgb(252, 163, 17);
    border-right: 3px solid rgb(252, 163, 17);
    border-left: 3px solid rgb(252, 163, 17) ;
}

.menu:hover .menu-deroulant {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

span {
    font-size: 1.6rem;
    display: inline-block;
    transition: color .4s ease;
}

span:hover {
    color: rgb(229, 229, 229);
}

.menu-deroulant li {
    padding: 0.5rem;
    list-style: none;
}

.menu-deroulant li a {
    display: inline-block;
    color: rgb(252, 163, 17);
    transition: transform .4s ease, color .4s ease;
    width: 100%;
    font-size: 1.4rem;
}

.menu-deroulant li a:hover {
    text-decoration: none;
    transform: scale(1.1);
    color: rgb(229, 229, 229);
}

/* LOGO */
.part-logo {
    display: flex;
    justify-content: center;
    padding: 2rem;
    width: 50%;
}

.part-logo a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: rgb(252, 163, 17);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.part-logo a:hover {
    text-decoration: none;
    color: rgb(252, 163, 17);
}

.part-logo a img {
    width: 500px;
    height: 80px;
}

/* Partie coordonnées */
.coordonnees-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    font-family: 'Times New Roman', Times, serif;
    color: rgb(252, 163, 17);
    font-size: 1.4rem;
}

.coordonnees-header i {
    padding: 0.6rem;
    font-size: 1.3rem;
}

/* MAIN */

main {
/* Background bleu ? */
    margin: 0;
    padding: 0;
    border: solid 6px rgb(19, 31, 56);
    border-top: solid rgb(252, 163, 17) 2px;
    border-bottom: solid rgb(252, 163, 17) 6px;
}

/*bouton "Nous contacter"*/
.cta-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
}

.bouton-contact,
.bouton-accueil {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 50px;
  margin: 0;
  padding: 0.6rem;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: rgb(19, 31, 56);
  background-color: rgb(252, 163, 17);
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(0,0,0,.5);
  transition: color .3s ease;
}

.bouton-contact:hover,
.bouton-accueil:hover {
  text-decoration: none;
  color: rgb(229, 229, 229);
}

/* CONTENU */
.titre-page h2 {
    margin: 1rem;
    padding: 1rem;
    text-align: center;
    color: rgb(252, 163, 17);
    font-family: 'Times New Roman', Times, serif;
    font-size: 4rem;
}

.container-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.container-image img {
    width: 100%;
    height: 500px;
    box-sizing: border-box;
    border-radius: 3px;
    border-left: 8px solid rgb(19, 31, 56);
    border-right: 8px solid rgb(19, 31, 56);
    border-top: 8px solid rgb(252, 163, 17);
}

.text-locpro {
    margin: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenu {
    border: 7px solid rgb(252, 163, 17);
    color: rgb(252, 163, 17);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: .5rem;
    padding: 1.3rem;
    width: 80%;
    text-align: justify;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.4rem;
    text-indent: 3rem;
    border-radius: 3px;
}

.contenu h4 {
    font-weight: 700;
    font-size: 1.9rem;
}

.contenu li {
    list-style: none;
}

/* RDV */ 
.rdv-devis {
    margin: 2rem;
    text-align: center;
    background-color: rgb(252, 163, 17);
    border-radius: 3px;
}

.rdv-devis a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    color: rgb(19, 31, 56);
    font-size: 1.8rem;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    text-decoration: none;
    transition: transform .4s ease;
}

.rdv-devis a:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: rgb(19, 31, 56);
}

.bi-arrow-right-circle,
.bi-arrow-left-circle {
    margin-right: 2rem;
    margin-left: 2rem;
}

.bi-facebook {
    font-size: 2rem;
}

/* FOOTER */
.container-footer {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 3rem;
    background-color: rgb(19, 31, 56);
    color: rgb(252, 163, 17);

}

.section-footer-1,
.section-footer-2,
.section-footer-3 {
    width: 33%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    height: 100%;
}

.section-footer-1, 
.section-footer-2 {
    border-right
    : 2px solid rgb(252, 163, 17);
}

.section-footer-1 a,
.section-footer-2 a,
.section-footer-3 a {
    display: inline-block;
    color: rgb(229, 229, 229);
    transition: color .4s ease, transform .4s ease;
}

.section-footer-1 a:hover,
.section-footer-2 a:hover,
.section-footer-3 a:hover {
    color: rgb(252, 163, 17);
    transform: scale(1.05);
    text-decoration: none;
}

.text-footer-2 {
    text-align: center;
}

.section-footer-2 li {
    list-style: none;
}

/* MEDIA QUERIES */
@media screen and (max-width: 767px) {

    body {
        overflow-x: hidden;
    }

    /* Affichage du menu mobile */
    .nav-h-mob {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background-color: rgb(19, 31, 56);
        color: rgb(252, 163, 17);
    }

    .bloc-menu-mobile {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-h-btn-service {
        background-color: rgb(19, 31, 56);
        border-radius: 6px;
    }
    .nav-h-mob i {
        font-size: 2rem;
        color: rgb(252, 163, 17);
        background-color: rgb(19, 31, 56);
    }

    .service-mob-deroulant {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgb(19, 31, 56);
        overflow: hidden;
        max-height: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition:max-height .35s ease, padding .35s ease, opacity .25s ease, visibility 0s linear .35s;
        z-index: 999;
        box-shadow: 0 4px 8px rgba(0,0,0,.3);
    }

    .service-mob-deroulant.is-open {
        max-height: 500px;
        width: 300px;
        padding: 8px 12px;
        border-left: 3px solid rgb(252, 163, 17);
        border-right: 3px solid rgb(252, 163, 17);
        border-bottom: 6px solid rgb(252, 163, 17);
        opacity: 1;
        font-family: 'Times New Roman', Times, serif;
        font-size: 1.1rem;
        visibility: visible;
        transition:max-height .35s ease, padding .35s ease, opacity .25s ease, visibility 0s;              /* visible immédiatement */
    }

    .li-non-cliquable {
        background-color: rgb(252, 163, 17);
        border-radius: 3px;
        color: rgb(19, 31, 56) !important;
        text-align: center;
        font-family: 'Times New Roman', Times, serif;
        font-size: 1.2rem;
        font-weight: 550;
    }

    .service-mob-deroulant a,
    .service-mob-deroulant a:link,
    .service-mob-deroulant a:visited,
    .service-mob-deroulant a:hover,
    .service-mob-deroulant a:active,
    .service-mob-deroulant a:focus {
        color: rgb(252, 163, 17);
        text-decoration: none;
        outline: none;
}

    .service-mob-deroulant ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .service-mob-deroulant li {
        padding: 0.5rem 0;
        color: rgb(252, 163, 17);
    }

    body.noscroll {
        overflow: hidden;
    }

    .logo-mobile {
        display: block;
        text-align: center;
        padding: 1rem;
    }

    .logo-mobile img {
        width: 200px;
        height: auto;
    }

    /* Bouton nous contacter = caché */
    .cta-row {
        display: none;
    }

    /* Cacher le MENU header desktop */
    .all-header {
        display: none;
    }

    /* Logo */
    .part-logo a img {
        width: 250px;
        height: auto;
    }

/* MAIN */

  /* Titre de page */
    .titre-page h2 {
        font-size: 3rem;
        text-align: center;
        padding: 1rem;
        color: rgb(252, 163, 17);
    }

    /* Image */

    .container-image {
        width: 100%;
        height: 200px;
    }
  
    .container-image img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 4px;
        box-shadow: 0 0 6px rgba(0,0,0,0.3);
    }

    /* Texte principal */
    .text-locpro {
        padding: 1rem;
    }

    .contenu {
        display: flex;
        flex-direction: column;
        text-indent: 0;
    }

    .contenu h4 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 1rem;
        color: rgb(252, 163, 17);
    }

    .contenu p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
        color: rgb(252, 163, 17);
    }

    .contenu ul {
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .contenu li {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: rgb(252, 163, 17);
    }

    .contenu i {
        margin-right: 0.5rem;
        color: rgb(252, 163, 17);
    }

    /* Lien de prise de rendez-vous */
    .rdv-devis {
        margin: 2rem 1rem;
        text-align: center;
    }

    .rdv-devis a {
        display: inline-block;
        font-size: 1rem;
        color: rgb(19, 31, 56);
        text-decoration: none;
        padding: 0.8rem 1rem;
        border: 2px solid rgb(252, 163, 17);
        border-radius: 4px;
    }

    .rdv-devis a:hover {
        transform: inherit;
    }

    .rdv-devis i {
        margin: 0 0.3rem;
    }
    
/* Footer en colonne */
    .container-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .section-footer-1,
    .section-footer-2,
    .section-footer-3 {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgb(252, 163, 17);
    }

    .section-footer-3 {
        border-bottom: none;
    }
}