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-menu {
    font-size: 1.6rem;
    display: inline-block;
    transition: color .4s ease;
}

.span-menu: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;
}

/* 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;
}

.card-contact {
    border-radius: 3px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2rem;
    padding: 1rem;
    margin: 1rem;
}

/* ICONES CONTACT */ 
.icone-contact {
    display: grid;
    justify-content: center;
    align-items: center;
    width:35%;
    gap: 1rem;
}

/* Telephone */
.telephone {
    border: 2px solid rgb(252, 163, 17);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    width:  230px;
    height: 230px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-family: 'Times New Roman', Times, serif;
    color: rgb(252, 163, 17);
    transition: transform .4s ease, color .4s ease;
}

.telephone:hover {
    transform: scale(1.1);
    color: rgb(249, 190, 96);
}

.bi-telephone,
.bi-pin-map-fill,
.bi-envelope-at-fill {
    font-size: 40px;
}

/* Adresse */ 
.adresse {
    border: 2px solid rgb(252, 163, 17);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    width: 230px;
    height: 230px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    text-align: center;
    color: rgb(252, 163, 17);
    font-size: 1.2rem;
    font-family: 'Times New Roman', Times, serif;
    transition: transform .4s ease, color .4s ease-in;
}

.adresse:hover {
    transform: scale(1.1);
    color: rgb(249, 190, 96);
}

/* Messagerie */
.messagerie {
    border: 2px solid rgb(252, 163, 17);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    width: 230px;
    height: 230px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    text-align: center;
    color: rgb(252, 163, 17);
    font-size: 1rem;
    font-family: 'Times New Roman', Times, serif;
    transition: transform .4s ease, color .4s ease-in;
}

.messagerie:hover {
    transform: scale(1.1);
    color: rgb(249, 190, 96);
}

/* FORMULAIRE */
.formulaire-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: rgb(252, 163, 17);
    border-radius: 3px;
    width: 55%;
}

.formulaire-contact form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: rgb(19, 31, 56);
    align-items: stretch;
}

.nom, .email, .choix, .message {
    display: flex;
    flex-direction: column;
}

.nom label, 
.email label, 
.choix label,
.message label {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    font-weight: 550;
}

.nom input,
.email input,
.choix select {
    width: 100%;
    padding: .2rem .5rem;
    font-size: 1.1rem;
    background-color: rgb(19, 31, 56);
    border: none;
    color: rgb(252, 163, 17);
    border-radius: 6px;
    font-family: 'Times New Roman', Times, serif;
    border: 2px solid rgb(252, 163, 17);
}

input::placeholder {
    color: rgb(252, 163, 17);
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
}

/* Partie CHOIX */
.choix select {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: .6rem .8rem;
    font-size: 1rem;
    color: rgb(252, 163, 17);
    background-color: rgb(19, 31, 56);
    border: 2px solid rgb(252, 163, 17);
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.choix select {
    font-size: 1.2rem;
}

.choix select:hover,
.choix select:focus {
    border-color: rgb(252, 163, 17);
    outline: none;
}

.choix select option {
    font-size: 1.2rem;
    background-color: rgb(19, 31, 56);
    color: rgb(252, 163, 17);
    border: 2px solid rgb(252, 163, 17);
    padding: 0.5rem;
}

.choix select option:checked,
.choix select option:focus,
.choix select option:hover {
    background-color: rgb(252, 163, 17) !important;
    color: rgb(19, 31, 56) !important;
}

.choix select option:hover {
    background-color: rgb(252, 163, 17) !important;
    color: rgb(19, 31, 56) !important;
}

.bouton-form {
    display: flex;
    width: 100%;
    justify-content: center;
    height: 40px;
}

.bouton-form button {
    width: 70%;
    background-color: rgb(252, 163, 17);
    border: 2px solid rgb(252, 163, 17);
    border-radius: 6px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    color: rgb(252, 163, 17);
    background-color: rgb(19, 31, 56);
    font-weight: 550;
    transition: border .4s ease, color .4s ease;
}

.bouton-form button:hover {
    color: rgb(229, 229, 229);
    border: 2px solid rgb(19, 31, 56);
}

/* TEXTAREA */
.message {
    display: flex;
    flex-direction: column;
}

textarea {
    padding: .6rem .8rem;
    background-color: rgb(19, 31, 56);
    border: 2px solid rgb(252, 163, 17);
    color: rgb(252, 163, 17);
    border-radius: 6px;
}

textarea::placeholder {
    color: rgb(252, 163, 17);
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.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) {
        *, *::before, *::after {
        box-sizing: border-box;
    }

    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: 2rem;
        padding: 1rem;
        margin: 0.5rem;
    }

    /* Conteneur principal en colonne */
    .card-contact {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 1rem;
        margin: 0.5rem;
    }

    /* Icônes contact en colonne */
    .icone-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .telephone,
    .adresse,
    .messagerie {
        width: 90%;
        height: auto;
        padding: 1rem;
        font-size: 1rem;
    }

    .bi-telephone,
    .bi-pin-map-fill,
    .bi-envelope-at-fill {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    /* Formulaire */
    .formulaire-contact {
        width: 100%;
        padding: 1rem;
    } 

    .formulaire-contact form {
        gap: 1.5rem;
        max-width: 100%;
    }

    .formulaire-contact input,
    .formulaire-contact select,
    .formulaire-contact textarea {
        max-width: 100%;
    }

    .nom label,
    .email label,
    .choix label,
    .message label {
        font-size: 1.1rem;
    }

    .nom input,
    .email input,
    .choix select,
    textarea {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .choix select option {
        font-size: 1rem;
    }

    .bouton-form {
        height: auto;
    }

    .bouton-form button {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.8rem;
    }

/* 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;
    }
}