/*
Theme Name: SET
Theme URI: http://www.set-sa.com
Description: Thème développé pour la société SET
Author: Caroline BLEIER-MATHIEU
Version: 1.0
Description : Site développé pour SET - Société d'exploitation thermique
*/

@font-face {
    font-family: "comfortaaBold";
    src: url('fonts/comfortaa-bold-webfont.eot');
    src: url('./fonts/comfortaa-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('./fonts/comfortaa-bold-webfont.woff') format('woff'),
         url('./fonts/comfortaa-bold-webfont.ttf') format('truetype'),
         url('./fonts/comfortaa-bold-webfont.svg#comfortaabold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "comfortaaRegular";
    src: url('./fonts/comfortaa-regular-webfont.eot');
    src: url('./fonts/comfortaa-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('./fonts/comfortaa-regular-webfont.woff') format('woff'),
         url('./fonts/comfortaa-regular-webfont.ttf') format('truetype'),
         url('./fonts/comfortaa-regular-webfont.svg#comfortaaregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* couleurs blue : #00b0e6; vert : #76b861; */

/*---------------------------------------------------------------------
    Général
---------------------------------------------------------------------*/
html{ }
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, blockquote, th, td, p { padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 {font-size: 100%; font-family: "comfortaaRegular", Arial, sans-serif; letter-spacing: 1px; }
a { text-decoration:none; color: #00b0e6; }
a:hover { text-decoration: underline; color: #76b861; }
ul { list-style: none; }

body { font:normal 13px/18px 'Arial', sans-serif; color:#454346; }

img { border: none;}
img.alignleft, div.alignleft { float: left; margin: 0 15px 15px 0; }
img.alignright, div.alignright { float: right; margin: 15px  0 15px 15px; }
img.aligncenter, div.aligncenter { display: block; margin: 15px auto; }

/* commun */
.ombre { position: relative; }
.ombre:after { content: ''; bottom: 0px; left: 5%; width: 90%; height: 50px; position:absolute; border-radius: 125px / 12px; -moz-box-shadow: 0 0 8px #c2c2c2; -webkit-box-shadow: 0 0 8px #c2c2c2; box-shadow: 0 0 8px #c2c2c2;z-index: -10; }
.ombre:before {display: none; }

.filet { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; border: 2px solid #e9e9e9; }

/*---------------------------------------------------------------------
    Structure
---------------------------------------------------------------------*/
#container { background: url(./images/bg_header.jpg) top left repeat-x; }
#content { margin-bottom: 20px; }
#main { width: 980px; margin: 0 auto; position: relative; min-height: 800px; }

/*---------------------------------------------------------------------
   Header
---------------------------------------------------------------------*/
header { position: relative; height: 200px;  background: url(./images/header.jpg) top left no-repeat; margin-bottom:15px; }
header #logo { position: absolute; top: 42px; left: 50px;}

/*---------------------------------------------------------------------
   Menu
---------------------------------------------------------------------*/
#primary-navigation { height: 40px; line-height: 40px; border-top: 2px solid #f1f1f1; border-bottom: 2px solid #f1f1f1; margin-bottom: 25px; background: #ffffff;}
#primary-navigation.ombre:after { width: 60%; height: 20px; left: 18%;}

#primary-navigation ul { text-align: center; }
#primary-navigation ul li { display: inline-block; vertical-align: center; text-transform: uppercase; font-size: 20px; padding: 0 22px; font-family: "comfortaaBold", Arial, sans-serif;letter-spacing: 1px; }
#primary-navigation ul li.current-menu-item a { color:#00b0e6; }

#primary-navigation ul li a, #primary-navigation ul li a:link { color:#000000; }
#primary-navigation ul li a:hover { color:#76b861; }

/*---------------------------------------------------------------------
   Footer
---------------------------------------------------------------------*/
footer { height: 60px; text-align: center; padding-top: 10px; color: #ffffff;  background: #76b861 url(./images/bg_footer.jpg) top left repeat-y;}

/*---------------------------------------------------------------------
   Page INDEX
---------------------------------------------------------------------*/
/* leftColumn */
#content #leftColumn,
#content #rightColumn {display: inline-block; vertical-align: top; min-height: 20px; }
#content #leftColumn { width : 580px; margin-right: 36px; }

#content #leftColumn #slider { margin-bottom: 20px; }
#content #leftColumn #slider img {}

#content #leftColumn section { background: #f8f8f8; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; border: 2px solid #efefef; }
#content #leftColumn section article.articleMain { border-bottom: 1px dashed #cccccc; padding: 20px 0; margin: 0 20px; }
#content #leftColumn section article.articleMain:last-child { border-bottom: none;}

#content #leftColumn section article.articleMain h3 { color: #00b0e6; font-size: 18px; margin-bottom: 10px; font-weight: bold;}
#content #leftColumn section article.articleMain div.articleContent { width: 380px; display: inline-block;vertical-align: bottom; margin-right: 20px;}
#content #leftColumn section article.articleMain span.articleMore { width: 130px; height: 30px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; border: 1px solid #d9d9d9; line-height: 30px; text-indent: 10px;
background: #e8e8e8 url(images/fleche_droite.png) 102px 12px no-repeat;  display: inline-block; vertical-align: bottom; }

#content #leftColumn section article.articleMain a span.articleMore { color: #016999;  width: 130px; height: 30px;}
#content #leftColumn section article.articleMain a:hover span.articleMore { background: #016999 url(images/fleche_droite_blanche.png) 102px 12px no-repeat; color: #ffffff; }

/* rightColumn */
#content #rightColumn { width: 360px; }

#content #rightColumn #calendar,
#content #rightColumn #news { background: #f8f8f8; padding: 10px; }
#content #rightColumn #calendar {  margin-bottom: 20px; }

#content #rightColumn #calendar h3,
#content #rightColumn #news h3 { font-size: 16px; color: #000000; font-family: "comfortaaRegular", Arial, sans-serif; letter-spacing: 1px; border-bottom: 1px solid #d9d9d9; padding-bottom: 5px; margin-bottom: 10px;}

#content #rightColumn #calendar strong { color: #00b0e6; font-family: "comfortaaRegular", Arial, sans-serif; }
#content #rightColumn #calendar p {  }

#content #rightColumn #news {  }
#content #rightColumn #news ul li { margin-bottom: 5px; list-style-type: disc; }
#content #rightColumn #news ul { margin: 0 0 10px 10px; }

/*---------------------------------------------------------------------
   Page SOCIETE
---------------------------------------------------------------------*/
#content #chapo { /*background: blue;*/ text-align: center; margin-bottom: 40px; }
#content #chapo p { margin-bottom: 5px; }
#content #chapo strong { color : #00b0e6; font-weight: bold;  }

#content section.rubrique { background: #ffffff; width: 289px; margin: 0 16px 20px 0; display: inline-block; vertical-align: top; padding: 10px; }
#content section.rubrique:nth-of-type(3) { margin-right: 0; }
#content section.rubrique h2 { font-size: 14px; height: 30px; line-height: 30px; text-transform: uppercase; color: #000000; background: #00b0e6; padding-left: 10px; margin-bottom: 25px; }
#content section.rubrique h3 { color: #00b0e6;  margin: 5px 0; text-transform: uppercase;}
#content section.rubrique p, #content .rubrique ul { margin-bottom: 5px; }
#content section.rubrique ul { margin: 0 0 10px 10px; }
#content section.rubrique ul li { list-style-type: disc;}

#content #mention { text-align: center; }

/*---------------------------------------------------------------------
   Page SAVOIR-FAIRE
---------------------------------------------------------------------*/
#content div#col1, #content div#col2 { width: 48%; display: inline-block; vertical-align: top; }
#content div#col1 { margin-right: 20px; }
#content div#col1 section.savoir:first-child h2 { background: #00b0e6; }

#content section.savoir { background: #ffffff; width: 459px; margin: 0 0 20px 0; display: inline-block; vertical-align: top; padding: 10px; }
#content section.savoir:last-child { margin-right: 0; }

/*#content section.savoir { background: #ffffff; width: 456px!important; margin: 0 0 20px 0; padding: 10px;  }*/
#content section.savoir h2 { font-size: 14px; height: 30px; line-height: 30px; text-transform: uppercase; color: #000000; background: #76b861; padding-left: 10px; margin-bottom: 25px;letter-spacing: 1px; }
#content section.savoir ul { margin: 0 0 10px 10px; }
#content section.savoir ul li { list-style-type: disc;}

/*---------------------------------------------------------------------
   Page PRODUITS
---------------------------------------------------------------------*/
#content div.visuel { width: 310px ; min-height: 20px; margin: 0 21px 30px 0; display: inline-block; vertical-align: top; }
#content div.visuel:nth-child(3n) { margin-right: 0;}

#content div.visuel a { color: #454346;}
#content div.visuel a h3 { color: #00b0e6; margin-bottom: 5px;}
#content div.visuel a p { font-size: 12px; line-height: 14px;}

#content div.visuel .bg_img { background: #f3f3f3; width: 310px; width: 306px!important; height: 214px; position: relative; margin-bottom: 10px;}
#content div.visuel .bg_img img { background: gray;  margin: 8px 0 0 8px; background-size: contain; max-width: 290px; height:auto;}

#content div.visuel .ruban { z-index: 10; height: 25px; position: absolute; }
#content div.visuel .ruban_top { background: #f5150a; height: 25px; width: 180px; line-height: 25px; position: relative; left:-6px; top: 3px; box-shadow: 1px 1px 2px rgba(0,0,0,0.4); z-index: 100; }
#content div.visuel .ruban_top h3 { font-size: 15px; color: #fff; text-align: center; margin:10px;  text-transform: uppercase; letter-spacing: 1px; }
#content div.visuel .ruban_gauche { border: 6px solid; border-color: transparent #1c3d4b transparent transparent; height:0px; width:0px; position: relative; left: -11px; top: -3px; }

/*---------------------------------------------------------------------
   Page PRODUIT
---------------------------------------------------------------------*/
#content div#navPost { height: 40px;margin-bottom: 40px;}
#content div#navPost .prev, #content div#navPost .next { display: inline-block; vertical-align: top;}
#content div#navPost .prev { background: url(./images/fleche_gauche.png) 0 6px no-repeat; padding-left: 24px;}
#content div#navPost .next { background: url(./images/fleche_droite.png) right 6px no-repeat; float: right;padding-right: 24px;}

#content article.produit div.articleBloc { display: inline-block; vertical-align: top; width: 645px;}
#content article.produit div.articleBloc h1 { font-size: 16px; margin-bottom: 20px; color: #00b0e6; }

/*---------------------------------------------------------------------
   Page REFERENCES
---------------------------------------------------------------------*/
#content #leftColumn h1 { font-size: 18px; color: #00b0e6; margin-bottom: 15px;}
#content #leftColumn img { }

#content #rightColumn #references { width: 340px; padding: 10px; background: #ffffff;}
#content #rightColumn div.ref { margin-bottom: 10px; }
#content #rightColumn div.detail { display: inline-block; vertical-align: bottom;  }
#content #rightColumn img { width:80px; height:50px; display:block; background-size: contain; margin : 0 10px 0px 0; display: inline-block; vertical-align: top;  }

/*---------------------------------------------------------------------
   Page CONTACT
---------------------------------------------------------------------*/
#content section.contact { background: #f2f2f2; width: 289px; margin: 0 16px 20px 0; display: inline-block; vertical-align: top; padding: 10px; }
#content section.contact:last-child { margin-right: 0; }

#content section.contact h2 { color: #00b0e6; margin-bottom: 5px; }
#content section.contact h2:nth-of-type(2n+0) {color: #76b861;}
#content section.contact p { margin-bottom: 20px;}

#content section.contact p  { margin-bottom: 25px; }
#content section.contact:nth-child(2) p  { margin-bottom: 16px; }

/* Galeries de vignettes du site d'origine. */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 0;
    margin: 0 auto;
}
.gallery-item { padding-top: 10px; text-align: center; }
.gallery img { max-width: 95%; height: auto; border: 2px solid #cfcfcf; }
.gallery-caption { margin-left: 0; }

/* Les boutons radio natifs permettent aussi de parcourir les photos au clavier. */
.diaporama {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 580px;
    margin: 0 auto;
}
.diaporama input[type=radio] {
    order: 2;
    width: 12px;
    height: 12px;
    margin: 8px 2px;
    cursor: pointer;
    accent-color: #454346;
}
.diapositive { display: none; position: relative; flex: 0 0 100%; }
.diaporama input:checked + .diapositive { display: block; }
.diapositive img { display: block; width: 100%; height: auto; }
.diapositive .caption-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .7);
    color: white;
    padding: 5px 10px;
}
.diapositive label {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 44px;
    background: rgba(0, 0, 0, .65);
    color: white;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
}
.diapositive .precedente { left: 0; }
.diapositive .suivante { right: 0; }
.diapositive label:hover { background: #222; }

#content::after { content: ""; display: block; clear: both; }
#content #navPost { height: auto; min-height: 40px; display: flex; justify-content: space-between; gap: 12px; }
#content #navPost .next { margin-left: auto; text-align: right; }
#content .wp-caption { max-width: 100%; }
#content .refContent img, #content .articleContent img { max-width: 100%; height: auto; }

@media (max-width: 1000px) {
    #main { width: auto; max-width: 980px; min-height: 0; padding: 0 12px; }
    #primary-navigation { height: auto; }
    #primary-navigation ul li { padding: 0 12px; font-size: 16px; }
    #content #leftColumn, #content #rightColumn,
    #content div#col1, #content div#col2, #content section.savoir,
    #content #rightColumn #references, #content article.produit div.articleBloc {
        box-sizing: border-box;
        width: 100%;
        margin-right: 0;
        max-width: 100%;
    }
    #content #leftColumn { margin-bottom: 20px; }
    #content div.visuel, #content section.rubrique, #content section.contact { max-width: 100%; box-sizing: border-box; }
    #content #leftColumn section article.articleMain div.articleContent { max-width: 100%; margin-right: 0; }
    #content #leftColumn section article.articleMain span.articleMore { margin-top: 6px; }
    #content div.visuel .bg_img { box-sizing: border-box; max-width: 100%; }
    #content div.visuel .bg_img img { max-width: calc(100% - 16px); }
    #content div#col1 { margin-right: 0; }
    footer { min-height: 60px; height: auto; padding: 10px 8px; }
}
@media (max-width: 640px) {
    header { height: clamp(80px, 24vw, 125px); background-size: auto 100%; background-position: left top; }
    header #logo { top: 20%; left: 4%; height: 65%; }
    header #logo img { width: auto; height: 100%; }
    #primary-navigation { line-height: 32px; }
    #primary-navigation ul li { padding: 0 8px; font-size: 14px; }
    #content section.rubrique, #content section.contact { width: 100%; margin-right: 0; }
    #content div.visuel { margin-right: 0; }
    #content #navPost { flex-wrap: wrap; margin-bottom: 20px; }
    #content #leftColumn section article.articleMain div.articleContent { width: 100%; }
    #content img.alignleft, #content img.alignright, #content .wp-caption { float: none; margin-left: 0; margin-right: 0; }
    #content #rightColumn div.detail { max-width: calc(100% - 96px); }
}
