/**
 * @copyright (C) 2022, 299Ko, based on code (2010-2021) 99ko https://github.com/99kocms/
 * @license https://www.gnu.org/licenses/gpl-3.0.en.html GPLv3
 * @author Jonathan Coulet <j.coulet@gmail.com>
 * @author Maxence Cauderlier <mx.koder@gmail.com>
 * @author Frédéric Kaplon <frederic.kaplon@me.com>
 * @author Florent Fortat <florent.fortat@maxgun.fr>
 * @author ShevAbam <me@shevarezo.fr>
 * 
 * @package 299Ko https://github.com/299Ko/299ko
 */

@import url(https://fonts.googleapis.com/css?family=Roboto);

/* BASIC */

html
{
    scroll-padding-top: 48px; /* Hauteur du header pour les ancres */
}

*{
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    outline:none;
    -webkit-tap-highlight-color:transparent
}

body{
    font-family:'Roboto',sans-serif;
    font-size:18px;
    color:#333;
    background:#f7f7f7;
    margin:0;
    padding:0;
    position:relative;
    min-height: 100vh;
}

a,a:hover,a:active,a:visited{
    color:#999;
    text-decoration:none
}

a:hover{
    color:#333
}

h1{
    font-size:42px;
    font-weight:normal;
    margin-top:0;
    text-transform:uppercase;
    border-bottom:1px solid #e9e9e9;
    padding-bottom:15px;
}

h2{
    font-size:30px;
    font-weight:normal
}

h3{
    font-size:22px;
    font-weight:normal;
    font-style:italic
}

ul,ol{
    margin-left:0;
    list-style: circle outside;
}

hr{
    background:#e9e9e9;
    height:1px;
    border:0;
    margin:30px 0
}

img{
    max-width:100%
}

table{
    width:100%;
    border:1px solid #e9e9e9
}

tr{
    border-bottom:1px solid #e9e9e9
}

tr:last-child{
    border-bottom:0
}

tr:nth-child(even){
    background: #fefae2
}

th,td{
    text-align:left;
    padding:5px
}

/* FORM */

input{
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
}

input[type=text], input[type=email], input[type=password], textarea, input[type=number]{
    background: #f7f7f7;
    border: 1px solid #e9e9e9;
    padding: 5px;
    width: 100%;
}

textarea{
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    width: 100%;
    min-height: 250px;
}

input[type=submit], input[type=button]{
    text-decoration: none;
    color: #fff;
    margin: 0;
    padding: 15px;
    background: #4986b7;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    border: 0;
    cursor: pointer;
}

/* CODE */

pre{
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -o-pre-wrap;
}

code{
    font-size: 12px;
    font-family: Verdana, "Lucida Grande", Lucida, Tahoma, "Trebuchet MS", Arial, Geneva, Helvetica, sans-serif;
}

/* ALERT */

#alert-msg{
    margin: 0;
    position: absolute;
    width: 100%;
    top: 0;
    padding: 5px;
    text-align: center;
    left: 0;
}

#alert-msg .msg, #alert-msg .msg.info {
    position: relative;
    margin:18px auto;
    padding:10px;
    padding-left: 32px;
    border-radius: 3px;
    border-left:4px solid #6C6C6C;
    max-width: 800px;
    box-shadow: 0px 0 10px 5px rgba(0, 0, 0, 0.2);
    background-color: #EBEBEB;
    color: #444;
    font-size:14px;
    z-index: 996;
}

#alert-msg .msg:before, #alert-msg .msg.info:before {
    font: var(--fa-font-solid);
    content: "\f05a";
    font-size: 23px;
    display: block;
    position: absolute;
    top:0;
    bottom: 0;
    margin: auto 0;
    height: -moz-fit-content;
    height: fit-content;
    left: 10px;
    color : #6C6C6C;
}

#alert-msg .msg.success {
    background-color: #A8F1C6;
    border-left-color: #198345;
}
#alert-msg .msg.success:before {
    content: "\f058";
    color: #198345;
}

#alert-msg .msg.error {
    background-color: #F6A7A3;
    border-left-color: #8D1310;
}
#alert-msg .msg.error:before {
    content: "\f057";
    color: #8D1310;
}

#alert-msg .msg.warning {
    background-color: #FFD38A;
    border-left-color: #8C5600;
}
#alert-msg .msg.warning:before {
    content: "\f06a";
    color: #8C5600;
}

.msg a.msg-button-close {
    display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    right: 8px;
    top: 8px;
    opacity: 0.4;
    font-size: 15px;
    transition: all 0.5s ease-in-out;
}

.msg a.msg-button-close:hover {
    opacity: 0.7;
}

/* STRUCTURE */

#container{
    width: 100%;
    background: #fff;
    overflow: hidden;
}

#header{
    width: 100%;
    position: fixed;
    background: #fff;
    box-shadow: 0px 0px 12px 2px rgba(0, 0, 0, 0.30);
    z-index: 995;
}

#header_content{
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
}

#body{
    overflow: hidden;
    max-width: 800px;
    margin: 0px auto;
    padding: 5px;
}

#content{
}

#footer{
    clear: both;
    font-size: 12px;
    text-align: center;
    background: #e9e9e9;
    padding: 0px 0px;
}

#footer_content{
    max-width: 960px;
    margin: 0 auto;
}

#footer_content a{
    color: #333;
}

/* MENU */

#mobile_menu{
    display: none;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 11px;
    right: 5px;
    cursor: pointer;
}

#mobile_menu:after {
    font: var(--fa-font-solid);
    content: "\f0c9";
    font-size: 23px;
}

#navigation{
    display: block;
    list-style: none;
	position: absolute;
    margin: 0;
    width: 65%;
    font-size: 12px;
    text-transform: uppercase;
    overflow: hidden;
    transition: height 0.4s ease-in-out;
}
#navigation.active {
    display: block;
}

#navigation li{
    float: right;
}

#navigation a{
    display: block;
    color: #4986b7;
    padding: 15px;
}

#navigation a:hover{
    background: #4986b7;
    color: #fff;
}

#navigation li ul{
    display: none;
    position: absolute;
    list-style: none;
    background: #fff;
    box-shadow: 0px 0px 12px 2px rgba(0, 0, 0, 0.30);
    padding: 0;
}

#navigation li:hover ul{
    display: block;
}

#navigation li ul li{
    clear: both;
    width: 100%;
}

#siteName{
    display: block;
    margin: 0;
    width: 25%;
    float: left;
    padding: 15px 0;
    text-transform: uppercase;
    font-size: 12px;
}

/* SITE NAME */

#siteName a{
    color: #4986b7;
}

/* TOP BANNER */

#banner{

    background: url('DF_Logo.jpg') no-repeat;
	height: 250px;
    background-size: auto 175px;
	background-position: top center;
	background-position-y: top 50px;

    background-attachment: fixed;
}

/* PLUGINS */

/* Commun */

.featured{
    display: block;
    margin: 0 auto;
}

/* Galerie */

#content.galerie #list{
    margin-left: 0;
    padding-left: 0;
    list-style: none inside;
    overflow: hidden;
    width: 100%;
}

#content.galerie #list li{
    float: left;
    width: 25%;
    height: 150px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 5px solid #fff;
    position: relative;
}

#content.galerie #list li:hover{
    opacity: 0.75;
}

#content.galerie #list li a{
    display: block;
    width: 100%;
    height: 100%;
}

#content.galerie #list li span{
    display: none;
}

#content.galerie #list li:hover span{
    display: block;
    width: 100%;
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    bottom: 0;
    text-align: center;
    color: #fff;
    padding: 5px;
    font-size: 12px;
}

#content.galerie .categories{
    font-size: 12px;
    margin-left: 0;
    padding-left: 0;
    list-style: none inside;
    overflow: hidden;
}

#content.galerie .categories li{
    float: left;
    margin-right: 5px;
    margin-bottom: 15px;
}

#content.galerie .categories a{
    display: block;
    text-decoration: none;
    margin: 0;
    padding: 15px;
    background: #4986b7;
    color: #fff;
    text-transform: uppercase;
}

#content.galerie .categories a:hover{
    color: #fff;
}

/* Blog */

.blog .items > li{
    list-style: none inside;
}

.blog .items li.item{
    overflow: hidden;
    border-bottom: 1px solid #e9e9e9;
    padding-bottom: 15px;
    padding-top: 15px;
}

.blog .items li.item:first-child{
    padding-top: 0;
}

.blog .date{
    font-size: 12px;
    display: block;
}

.blog .items h2{
    display: block;
    overflow: hidden;
}

.blog .content{
    border-bottom: 1px solid #e9e9e9;
    padding-bottom: 15px;
    padding-top: 15px;
}

.blog .pagination{
    font-size: 12px;
    margin-left: 0;
    padding-left: 0;
    list-style: none inside;
    float: right;
}

.blog .pagination li{
    float: left;
    margin-right: 5px;
}

.blog .pagination a{
    display: block;
    text-decoration: none;
    margin: 0;
    padding: 15px;
    background: #4986b7;
    color: #fff;
}

.blog .pagination a:hover{
    color: #fff;
}

.blog .comment{
    background: #f7f7f7;
    padding: 15px;
    margin-bottom: 1px;
    border: 1px solid #e9e9e9;
    color:#1e1e1e;
}

.blog .comment .infos{
    font-size: 12px;
    clear: both;
    display: block;
    text-align: right;
    padding: 15px;
}

/* Contact */

.contact .acceptation{
    font-size: 12px;
    padding: 15px;
    border: 1px solid #e9e9e9;
    background: #f7f7f7;
}

.contact .acceptation input{
    margin-right: 5px;
}

/* MOBILE */

@media only screen and (max-width: 960px){

    #header{
        position: inherit;
    }

    #siteName{
        width: 100%;
    }

    #mobile_menu{
        display: block;
    }

    #navigation{
        display: none;
        width: 100%;
    }

    #navigation li{
        clear: both;
        width: 100%;
    }

    #navigation a{
        padding: 15px 0px;
    }

    #navigation a:hover{
        background: none;
        color: #4986b7;
    }

    #navigation li ul{
        display: block;
        position: inherit;
        box-shadow: inherit;
        padding-left: 30px;
    }

    #banner{

	height: 75px;
	background-size: 100%;
	background-position: top center;
	background-position-y: top 45px;

    background-attachment: fixed;
    }

    #seo_social a{
        display: none;
    }

    #seo_social a:nth-child(1), #seo_social a:nth-child(2), #seo_social a:nth-child(3){
        display: block;
    }

    #content.galerie #list li{
        width: 50%;
        height: 150px;
    }

}

/* DARK MODE */

@media (prefers-color-scheme: dark)
{
    body, #footer a{
        color: #e9e9e9;
    }

    #mobile_menu{
        color: #e9e9e9;
    }

    #container{
        background: #0f0f0f;
    }

    #header, #footer, input[type=text], input[type=email], input[type=password], textarea, input[type=number], .contact .acceptation{
        background: #1e1e1e;
        color: #e9e9e9;
    }

    h1, input[type=text], input[type=email], input[type=password], textarea, input[type=number], hr, tr, .contact .acceptation, .blog .comment, .blog .content, .blog .items li.item, #content.galerie #list li {
        border-color: #1e1e1e !important;
    }
}
