:root{
    --header-height: 135px;
    --site-orange: #ff6600;
    --site-background: #222;
}

html{
    scroll-padding-top: calc( var(--header-height) + 10px);
}

body{
    background-color: var(--site-background);
    color: #d5d5d5;
    height: 100%;
    width: 100%;
    font-family: 'Lora', sans-serif;
    font-size: 1em;
}

p, li{
    font-size: 1em;
}

#main-wrapper p{
    text-align: justify;
}

h2{
  font-size: 2.4em;
}

h3{
    font-size: 2em;
    color: white;
}

main{
    width: 100%;
    position: relative;
    top: var(--header-height);
    padding-top: 10px;
    height: 100%;
    max-height: 100%;
    overflow: auto;
}

header{
    width: 100%;
    position: fixed;
    height: var(--header-height);
    background-color: #1c1c1c;
    filter: drop-shadow(0 0 7px black);
    z-index: 30;
}

.bold{
    font-weight: 700;
    color: white;
}

/*Mobile navigation */
/* Style the navigation menu */
.mobile-nav {
    overflow: hidden;
    background-color: #333;
    position: relative;
    display: none;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.mobile-nav #myLinks {
    display: none;
}

/* Style navigation menu links */
.mobile-nav a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
}

/* Style the hamburger menu */
.mobile-nav a.icon {
    background: black;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 3.2em;
    padding: 0.7em;
    height: 3.15em;
}

.mobile-nav a.icon img{
    width: 100%;
    height: 100%;
}

/* Add a grey background color on mouse-over */
.mobile-nav a:hover {
    background-color: #ddd;
    color: black;
}

.mobile-nav .telephone{
   text-align: center;
}

.mobile-nav .telephone img{
    height: 1.5em;
}


/* Style the active link (or home/logo) */
.active {
    background-color: #444444;
    color: white;
}

#mobile-nav-home-link{
    height: 3.15em;
    /*font-family: 'Dancing Script';*/
    /*font-size: 16px;*/
}

#mobile-nav-home-link img{
    height: 180%;
    margin-top: -0.5em;
    margin-left: -0.8em;
}


div.section{
    margin-bottom: 5.6em;
}


#accueil  .text-block,
#accueil  .text-block p{
    text-align: center;
}

#accueil .flex-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

#accueil .main-title{
    font-size: 4em;
    margin-bottom: 0;
    font-family: 'Dancing Script';
}

#accueil .subtitle{
    font-family: 'Dancing Script';
    font-size: 2em;
}

#header-nav{
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#header-nav .nav-button{
    height: 30px;
    border-radius: 4px 4px 0 0;
    margin-left: 3px;
    padding: 6px;
    padding-bottom: 25px;
    background-color: #DDDDDD;
    transition: all 0.05s ease-in-out;
}

#header-nav .nav-button.active{
    padding-top: 10px;
    /*line-height: 40px;*/
    background-color: var(--site-orange);
}

#header-nav .nav-button:hover{
    background-color: #FFFFFF ;
    color: black;
    filter: drop-shadow(0 0 2px #AAA);
    padding-top: 15px;
    /*line-height: 64px;*/
}

#header-nav .nav-button a{
    text-decoration: none;
    font-size: 1em;
    color: #101010;
    position: relative;
    text-align: center;
}

#header-nav .nav-button.active:hover{
    background-color: var(--site-orange);
    filter: drop-shadow(0 0 2px var(--site-orange));
}

#site-title{
    width: 600px;
    font-family: 'Dancing Script';
    padding-top: 5px;
}

#site-title img{
    position: absolute;
    top: calc(10px);
    /*top: calc(3em + 10px);*/
    /*left: 2px;*/
    height: calc(var(--header-height) - 10px);
    z-index: -1;
}

#site-title h1,
#site-title h2
{
    text-align: center;
    margin: 0;
    color: #AAAAAA;
}

#site-title h1{
    font-size: 3em;
    text-align: left;
    padding-top: 0.35em;
    padding-left: 3.2em;
}

#site-title h2{
    font-weight: initial;
    font-size: 1.5em;
}

#coordinate{
    position: absolute;
    right: 0;
    top: 0;
    padding: 10px;
    padding-top: 20px;
    display: block;
}

#coordinate .phone{
    display: flex;
    cursor: pointer;
}

#coordinate .phone:hover{
    opacity: 0.7;
}

#coordinate .phone img {
    height: 2em;
}

#coordinate .phone a{
    width: calc(100% - 2.5em);
    color: #DDDDDD;
    font-size: 1em;
    position: relative;
    top: 0.16em;
    text-align: center;
}

#coordinate .phone a:hover{
    text-decoration: none;
    /*color: #BBB;*/
    /*font-weight: bold;*/
}


#coordinate .location{
    display: flex;
    cursor: pointer;
}

#coordinate .location:hover{
    opacity: 0.7;
}

#coordinate .location img{
    height: 2em;
    position: relative;
    top: 0.5em;
    opacity: 0.8;
}

#coordinate .location p{
    width: calc(100% - 2.5em);
    margin: 0;
    display: inline;
    text-align: center;
    padding: 5px;
    color: #DDDDDD;
}

footer{
    width: 100%;
    position: relative;
    top: 80px;
    font-size: 0.8em;
    text-align: center;
}

footer .mention{
    display: flex;
    flex-direction: column;
}

footer .mention p:first-child{
    margin-top: 1rem;
}

footer .mention p:last-child{
    margin-bottom: 2em;
}



.full-center h1{
    padding: 15px;
    margin-top: 25%;
    text-align: center;
    user-select: none;
}

.full-center h2{
    text-align: center;
    user-select: none;
}

.full-center p.ip{
    color: #444;
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin-bottom: 0;
}

form{
    max-width: 900px;
    margin: 0 auto;
}

form input[type=text],
form input[type=email],
form textarea
{
    margin-bottom: 15px;
}

.flex-end{
    display: flex;
    justify-content: flex-end;
}

h2{
    color: var(--site-orange);
}

#main-wrapper{
    max-width: min(1050px, 80%);
    margin: 0 auto;
    padding: 5px;
}

.panel h3{
    text-align: center;
    margin-bottom: 30px;
}

.panel{
    margin-top: 3.75em;
}

.panel li:nth-child(n+6){
    display: none;
}

.panel.unfold li:nth-child(n+6){
    display: list-item;
}

#domaines-intervention .panel li.button{
    margin-top: 10px;
    background-color: #DDDDDD;
    color: #333333;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.15s;
    list-style-type: none;
    text-align: center;
    display: list-item;
}

#domaines-intervention .panel li.button .unfolded{
    display: none;
}

#domaines-intervention .panel.unfold li.button .unfolded{
    display: contents;
}

#domaines-intervention .panel.unfold li.button .folded{
    display: none;
}


#domaines-intervention .panel li.button img{
    height: 1em;
    margin-right: 5px ;
}

#domaines-intervention .panel li.button:hover{
    opacity: 0.8;
}

#domaines-intervention .panel li.button:active{
    opacity: 0.5;
}

.panel.unfold li.button img{
    transform: rotate(180deg);
}


/***************************
*         slideshow
***************************/

@keyframes fader {
    from { opacity: 1.0; }
    to   { opacity: 0.0; }
}

.fading-slideshow {
    position: relative;
    margin: 1em auto;
    padding: 0;
    list-style-type: none;
    width: 300px;
    min-width: 300px;
    height: 300px;
}

.fading-slideshow > li {
    position: absolute;
    border-radius: 9px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--site-background);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fading-slideshow img {
    height: 100%;
    width: 100%;
}

/* current slide */

.fading-slideshow > li:first-of-type {
    animation-name: fader;
    animation-delay: 5s;
    animation-duration: 3s;
    z-index: 20;
}

/* next slide to display */

.fading-slideshow > li:nth-of-type(2) {
    z-index: 10;
}

/* all other slides */

.fading-slideshow > li:nth-of-type(n+3) {
    display: none;
}

#mentions-legales{
    position: fixed;
    text-align: justify;
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    z-index: 50;
    top: 0;
    background-color: rgba(0, 0, 0, 0.95);
}

#mentions-legales .container{
    margin: 0 auto;
    width: min(800px,70%);
}


#mentions-legales h2{
    text-align: center;
    margin-top: 1.6em;
    margin-bottom: 1.5em;
}

#mentions-legales h3{
    margin-top: 1.5em;
}

#mentions-legales .container{
    margin-bottom: 2em;
}

.close-button{
    position: fixed;
    top: 10px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.07s;
    background-color: #666;
}

.close-button img{
    height: 60%;
    width: 60%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-button:hover{
    filter: invert(0.7);
}

.close-button:active{
    filter: invert(1);
}

.overlay-button:hover{
    text-decoration: none;
}

#contact-form{
    position: relative;
}

.flash-notice{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--site-background);
    animation: fade-out 2s 1s ease-out forwards;
    pointer-events: none;
}

.flash-notice p{
    position: absolute;
    text-align: center !important;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: white;
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@media (max-width: 1325px) {
    #coordinate{
        padding-top: 5px;
    }
}


@media (max-width: 806px) {
    * {
        box-sizing: border-box;
    }

    :root {
        --header-height: 2.5em;
    }

    /* passer body (et tous les éléments de largeur fixe) en largeur automatique */

    body {
        width: auto;
        margin: 0;
        padding: 0;
    }

    /* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */

    /*img,*/
    table,
    td,
    blockquote,
    code,
    pre,
    textarea,
    input,
    iframe,
    object,
    embed,
    video {
        max-width: 100%;
    }

    /* conserver le ratio des images */

    img {
        height: auto;
    }

    /* gestion des mots longs */

    textarea,
    table,
    td,
    th,
    code,
    pre,
    samp {
        -webkit-hyphens: auto; /* césure propre */
        -moz-hyphens: auto;
        hyphens: auto;
        word-wrap: break-word; /* passage à la ligne forcé */
    }

    code,
    pre,
    samp {
        white-space: pre-wrap; /* passage à la ligne spécifique pour les éléments à châsse fixe */
    }

    ul{
        padding-inline-start: 5px;
    }
    /* Passer à une seule colonne (à appliquer aux éléments multi-colonnes) */

    .element1,
    .element2 {
        float: none;
        width: auto;
    }

    /* masquer/afficher les éléments  */

    .u-mobile {
        display: block;
        display: revert !important; /* affichage des éléments */
    }
    .u-no-mobile
    {
        display: none !important; /* masquage des éléments */
    }

    #main-wrapper{
        max-width: 90%;
    }

    #main-wrapper p{
        text-align: left;
    }

    #accueil .subtitle{
        font-size: 1.6em;
    }

    .flex-wrapper{
        flex-direction: column;
    }

    div.section{
        margin-bottom: 3em;
        padding-top: 0.5em;
    }

    .panel{
        margin-top: 2em;
    }

    h2{
        font-size: 1.8em;
    }

    h3{
        font-size: 1.5em;
    }

    header{
        height: var(--header-height);
        background-color: #1c1c1c;
        filter: drop-shadow(0 0 2px black);
        z-index: 30;
    }

    #accueil .main-title{
        line-height: 1.2em;
    }

    #mentions-legales .container{
        margin: 0 auto;
        width: 90%;
    }

    .close-button{
        position: fixed;
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        transition: all 0.07s;
        background-color: #666;
    }
}
