/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


@font-face {
    font-family: "Siliwangi";
    src: url('../fonts/siliwangi.eot');
    src: url('../fonts/siliwangi.eot?#iefix') format('embedded-opentype'),
         url('../fonts/siliwangi.woff2') format('woff2'),
         url('../fonts/siliwangi.woff') format('woff'),
         url('../fonts/siliwangi.ttf') format('truetype'),
         url('../fonts/siliwangi.svg#siliwangi_engineeringregular') format('svg');
}

/******************************************************************************/
/*********************            GENERALITES            **********************/
/******************************************************************************/

/*         Initiation du box-sizing et du REM           */
html {
    box-sizing: border-box;
    font-size:62.5%;
    font-family: Verdana, sans-serif;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* nettoyage des listes */
ol, ul {
	list-style: none;
    padding-left:0;
    margin: 0;
}

body{
    background: #000 ;
    font-size: 1.2rem;
    color:#D8D8D8; 
}

/* nettoyage des liens */
a {
    text-decoration: none;
}

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

/* centrage du container */
.container {
    max-width: 120rem;
    width:100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

figure{
    margin: 0;
}

.flex{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

header, footer{
    background: #000;
}

input, textarea, select{
    color: #303030;
}

/******************************************************************************/
/*********************              HEADER               **********************/
/******************************************************************************/

h1{
    width: 249px;
    height: 97px;
    text-indent: -10000px;
    background: url("../img/logo_TJL_.png") no-repeat center center;
    Background-size: contain;
    margin: 0;
    overflow:hidden;
    order: 2;
}

header{
    border-bottom: 1px solid red;
    padding-bottom: 0.5rem;
}

header>div.flex{
    justify-content: space-between;
    align-items: center;
}

header>div>p{
    text-transform: capitalize;
    font-size: 3.6rem;
    margin: 0;
    font-weight: bold;
    order: 1;
}

header>div>p span{
    display: block;
    font-size: 4.6rem;
    text-transform: uppercase;
    line-height: 2rem;
}

header>div aside{
    order: 3;
}

header>div aside>p:first-child{
    font-size: 1.6rem;
    font-weight: bold;
    position: relative;
    margin-bottom: 2rem;
}

header>div aside>p:first-child::before, header>div aside>p:first-child::after{
    content:"\"";
}


header>div>aside>div:last-child{
    font-size: 1rem;
    text-align: right;
    position: relative;
    cursor: pointer;
    width: 9rem;
    float: right;
}

header>div>aside>div:last-child>p{
    margin:0;
}

header>div>aside>div:last-child div{
    display: block;
    background: #303030;
    text-align: left;
    font-size: 1.2rem;
    position: absolute;
    right: 0;
    top: -99rem;
    width: 28rem;
    padding: 1rem;
    border: 1px solid #F00;
    border-radius: .5rem;
    box-shadow: 1px 1px 5px 6px #F00;
}

header>div>aside>div:last-child div p:first-child{
    text-decoration: underline;
    margin-top:0;
}

header>div>aside>div:last-child div p:not(:first-child){
    padding:0;
    margin:0;
}

header>div>aside>div:last-child div p:nth-child(2), header>div>aside>div:last-child div p:nth-child(4){
    font-weight: bold;
}


header>div>aside>div:last-child:hover div{
    top: 2rem;
}

header>p{
    color: green;
    font-weight: bold;
}

nav ul{
    justify-content: space-between;
}

nav li{
    padding: .5rem 1.5rem;
}

nav li a{
    color: #F00;
    font-weight: bold;
    font-size: 3rem;
}

nav li a:hover{
    color: #FFF;
}

nav, h2{
    font-family: "Siliwangi",sans-serif;
}

.menu-icon{
    display:none;
}

/******************************************************************************/
/*********************              SECTION              **********************/
/******************************************************************************/

section{
    background: url(../img/pano-atelier_.jpg) no-repeat center top #303030;
    background-size: contain;
    color: #FFF;
}

section a{
    color: #999;
    font-weight: bold;
}

.mentions a{
    text-decoration: underline;
}

.main{
    border-top: 1px solid red;
    background: #303030;
    padding: 3rem 0 1.5rem;
}

h2{
    /*font-family: Arial, sans-serif;*/
    text-transform: uppercase;
    font-size: 5rem;
    padding: 0 0 2rem;
    width: 100%;
    min-height: 10rem;
    line-height: 10rem;
}

h2>span{
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.6);
	display: inline-block;
	padding: .8rem 1rem;
	line-height: 3.5rem;
    border-radius: .5rem;
}

h2>span>span{
    font-family: Verdana, sans-serif;
    font-size: 3.8rem;
    color: #FF0000;
}

.tarif h3{
    font-family: "Siliwangi",sans-serif;
    font-size: 3.6rem;
    margin: 0;
}

.accueil h4, .news h4{
    font-family: "Siliwangi",sans-serif;
    font-size: 3.6rem;
    margin: 0;
    border-bottom: 1px solid #303030;
}

.slides li{
    color: #303030;
}

.slides li article{
    padding: 2rem 1rem;
}

.accueil>div>aside p:first-child{
    font-size: 1.6rem;
}

article.flex{
    justify-content: space-around;
    align-items:center;
}

.flexslider {
    max-width: 64rem;
}

figure{
    text-align: center;
    padding-bottom: 7rem;
}
figure>p{
    font-size: 1.6rem;
    font-weight: bold;
}

.contact .flex, .tjladmin .flex{
    justify-content: space-around;
}

.contact figure{
    padding-bottom: 0;
}
.contact figcaption>p{
    margin: 0;
}

.contact figcaption>a{
    display: block;
    color: #FFF;
    font-weight: bold;
}

.contact figcaption>a:hover{
    color: red;
}

.contact figcaption iframe{
    max-width: 30rem;
    width: 100%;
    height: 30rem;
}

.contact form p.flex, .tjladmin form p.flex{
    justify-content: space-between;
    align-items:flex-start;
}

.tjladmin form p.flex{
    flex-direction: column;
}

.contact form{
    width: 40%;
}

.contact form input[type='text'], .contact form input[type='email'], .contact form textarea{
    width: 100%;
}

button{
    color: #000;
}

.contact form p:first-child, .tjladmin form h4:first-child{
    margin: 0 0 3rem 0;
}

.contact form p:nth-child(6){
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px dotted #666;
    border-bottom: 1px dotted #666;
}

.contact iframe{
    margin: 2rem 0 0;
}

.tjladmin #upload{
    max-width: 50rem;
    width: 100%;
}

.tjladmin #upload input[type="text"], .tjladmin #upload textarea{
    width: 100%;
}

.tjladmin article.flex{
    justify-content: space-between;
    align-items: flex-start;
}

.galerie>div>ul{
    background: url(../img/logo_marques.png) no-repeat left 1rem top #303030;
    padding-left: 20rem;
    overflow: auto;
    height: 54rem;
    margin-bottom: 1rem;
}

.galerie>div>ul>li{
    background: rgb(200,200,200);
    background: rgba(200,200,200, 0.2);
    padding: 0.1rem 1rem;
}

.galerie h3{
    color: red;
    text-transform: uppercase;
    margin-bottom: 0;
}

.galerie a{
    color: #FFF;
}

.galerie .flex{
    flex-wrap: wrap;
}

.galerie .flex li{
    padding: 0 1rem;
    position: relative;
}

.galerie .flex li:not(:last-child)::after{
    content:"-";
    color: red;
    position: absolute;
    right: -0.1rem;
}

.sousGal .flex{
    justify-content: space-around;
}

.sousGal li{
    margin: .5rem 0 2rem;
}

.sousGal li p{
    margin:0;
    padding:0 1rem;
}

.titreFbox{
    font-size: 1.8rem;
}

.prixFbox span, .com3Fbox, .titreFbox, .modelFbox span{
    font-weight: bold;
}

table{
    max-width: 80rem;
    width: 80%;
    margin: 0 auto 2rem;
    background: #ccc;
    border-collapse: collapse;
}

.tarif table caption{
    text-align: left;
}

.tarif tr td:last-child{
    width: 30%;
    text-align: right;
}

.tarif tr td:first-child{
    width: 70%;
    text-align: left;
}

td, th{
    color: #000;
    padding: 1rem;
    border: 1px solid #303030;
}

.tarif td span{
    font-weight: bold;
}

.padLeft{
    padding-left: 4rem;
}

.no-border td{
    border: none;    
}

.no-border td:first-child{
    border-left: 1px solid #303030;
    border-right: 1px solid #303030;
}

.no-border td:last-child{
    border-left: 1px solid #303030;
    border-right: 1px solid #303030;
}

.no-border-top td{
    border-top: none;    
}

.no-border-bottom td{
    border-bottom: none;    
}

.center{
    text-align: center !important;
}

.login input{
    display: block;
}

.login label{
    display: block;
    margin: 1rem 0;
}

.about .flex{
    justify-content: space-around;
    align-items:center;
}

.about p{
    width : 50%;
}

.about img{
    margin: .5rem auto;
}

#imgPreview{
    max-width: 50rem;
    width: 100%;
    display: block;
}

#listUser table, #listMsg table, #listNews table, #listSelle table{
    max-width: 100%;
    width: 100%;
    margin:0;
}

#listUser th, #listUser td, #listMsg th, #listMsg td, #listNews th, #listNews td, #listSelle th, #listSelle td{
    padding: .5rem 1rem;
    text-align: center;
}

#listUser td a, #listMsg td a, #listNews td a, #listSelle td a{
    color: #303030;
    font-weight: bold;
}

#listSelle img{
    max-height: 10rem;
}

.news{
    background: url(../img/slider/slider0.jpg) no-repeat center top #303030;
    background-size: cover;
    padding: 1rem 0;
}

.news article{
    margin: 1rem auto;
    padding: 0 1rem;
    background: rgb(204, 204, 204);
    background: rgba(204, 204, 204, .8);
    border: 1px solid red;
    border-radius: .3rem;
    color: #303030;
    max-width: 80rem;
    width: 100%;
}

.news article aside, .accueil article article aside{
    font-size: .9rem;
    font-style: oblique;
}

.news .pagination ul{
    background: rgb(48, 48, 48);
    background: rgba(48, 48, 48, .8);
    text-align: center;
}

.pagination li{
    display: inline-block;
    padding: 0;
}

.pagination a{
    display: block;
    padding: .5rem 1rem;
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: normal;
    color: #CCC;
}

.pagination a:hover{
    background: #FF0000;
    border-radius: 1rem;
    
}

.bnav_activ{
    border-bottom: 2px solid #FF0000;
}

#update label{
    display: inline-block;
    min-width: 10rem;
    
}

.actionUpload, .actionList, .actionPublier, .actionListNews{
    cursor:  pointer;
}

/*********************              page404              **********************/
.p404{
    background: url("../img/slider/slider0.jpg") no-repeat center center #303030;
    background-size: cover;
    min-height:54.5rem;
    padding: 1.5rem;
}

.p404 article{
    max-width: 47rem;
    width: 100%;
    padding: 2rem 1rem;
    background:  rgb(0, 0, 0);
    background:  rgba(0, 0, 0, 0.5);
    border-radius: 2rem;
}

.p404 h2{
    min-height: 5rem;
    line-height: 5rem;
}

.p404 a{
    color: #FFF;
    font-weight: bold;
    text-decoration: underline;
}

.p404 a:hover{
    color: red;
}

.autocomplete-suggestions { border: 1px solid #999; background: #666; overflow: auto; }
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.autocomplete-selected { background: #F0F0F0; }
.autocomplete-suggestions strong { font-weight: normal; color: #f24b58; }

/******************************************************************************/
/*********************               FOOTER              **********************/
/******************************************************************************/

footer{
    border-top: 1px solid red;
}


/* ----------- lien FACEBOOK ------------ */
footer>a{       
    display: block;
    padding: 1rem 1rem 1rem 4rem;
    margin: 1rem auto 0;
    background: url(../img/icon-fb30.png) no-repeat left 10px center #3B5998;
    max-width: 14rem;
    width: 100%;
    color: #FFF;
    font-weight: bold;
    border-radius: 1rem;
}
footer>a:hover{
    text-decoration: underline;
    /*color :red;*/
    background-color: #303030;
}
/* ---------- fin lien FACEBOOK ---------- */

footer .flex{
    justify-content: center;
    align-items: center;
}

footer ul a{
    display: inline-block;
    padding-left: 2rem;
    position: relative;
    color: #FFF;
    font-weight: bold;
}

footer ul a::before{
    content:"|";
    position: absolute;
    left:.7rem;
}




















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


/************************************************************************************
MOBILE
*************************************************************************************/
@media screen and (max-width: 600px) {
    header>div.flex{
        flex-direction: column;
        justify-content: center;
    }
    
    header>div>p{
        font-size: 2.5rem;
    }
    
    header>div>p span{
        display: inline-block;
        font-size: 2.5rem;
        margin-left: 1rem;
    }
    
    header>div aside>p:first-child{
        font-size: 1rem;
    }
    /* ------- HEADER NAV TOGGLE ------- */
    nav{
        font-family: Verdana, Arial, sans-serif;
        position: relative;
    }
    nav li a{
        font-size: 1.6rem;
    }
    .menu-icon{
        display: block; /* show menu icon */
        background: url(../img/mobile-menu-icon.png) no-repeat left 7px top #CCC;
        padding: .5rem .5rem .5rem 4.5rem;
        color: #303030;
        max-width: 10rem;
        border: 1px solid #FF0000;
        border-radius: .3rem;
        cursor: pointer;
    }
    .menu-icon.active {
		background: url(../img/mobile-menu-icon.png) no-repeat left 7px bottom #999;
	}
    nav ul.flex{
        display: none;
        position: absolute;
		top: 3rem;
		width: 20rem;
		z-index: 10000;
		padding: .5rem;
		background: #CCC;
        border: 1px solid #FF0000;
        border-radius: .3rem;
    }
    /* ------- /HEADER NAV TOGGLE ------- */
    
    /* -------    CONTACT FLEX    ------- */
    .contact .flex{
        flex-direction: column;
        justify-content: center;
    }
    .contact form{
        width: 100%;
        margin-top: 2rem;
    }
    /* -------    /CONTACT FLEX    ------- */
    
    section{
        background: url(../img/pano-atelier-mini.jpg) no-repeat center top -20px #303030;
        background-size: contain;
    }

    .about .flex{
        justify-content: center;
    }

    .about p{
        width : 100%;
    }
}