/*
    soft-reset
*/
html,
body {
  margin: 0;
  padding: 0;
}
ul,
ol {
  padding-left: 2em;
}
img {
  vertical-align: middle;
  border: 0;
  max-width: 100%;
}
audio,
canvas,
video {
  display: inline-block;
}
/* IE9 bug fix */
svg:not(:root) {
  overflow: hidden;
}
@media print {
  img {
    max-width: 100% !important;
  }
}


/*--------------------------------------------------------------
## VARS
--------------------------------------------------------------*/

/* --color: #A93000AB; */
:root {
  --color-main: #A93000;
  --color-txt: #222222;
}

 
body {
  background: #ffffff;
}

@font-face {
  font-family: main;
  src: url('../fonts/Open_Sans/static/OpenSans-Medium.ttf');
}
@font-face {
  font-family: title;
  src: url('../fonts/Ruthie/Ruthie-Regular.ttf');
}

.shadow-s {
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.shadow-in-s {
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.24);
          box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.24);
}
.shadow-m {
  -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
          box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.shadow-in-m {
  -webkit-box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.19), inset 0 6px 6px rgba(0, 0, 0, 0.23);
          box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.19), inset 0 6px 6px rgba(0, 0, 0, 0.23);
}
.shadow-l {
  -webkit-box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
          box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
.shadow-in-l {
  -webkit-box-shadow: inset 0 14px 28px rgba(0, 0, 0, 0.25), inset 0 10px 10px rgba(0, 0, 0, 0.22);
          box-shadow: inset 0 14px 28px rgba(0, 0, 0, 0.25), inset 0 10px 10px rgba(0, 0, 0, 0.22);
}


/*--------------------------------------------------------------
## TYPO
--------------------------------------------------------------*/

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
figure,
li,
label,
legend,
select,
option,
input,
textarea,
button,
blockquote {
  font-family: main;
  text-decoration: none;
  font-weight: normal;
  line-height: 200%;
}

/* tout le corps de texte */
p,
ol,
ul,
figure,
li,
label,
legend,
select,
option,
input,
textarea,
button,
blockquote {
  font-size: 1rem;
}

a {
  text-decoration: none;
  font-weight: normal;
}

/* tous les titres */
h1,
h1 a,
h2,
h2 a,
.site-title a,
.site-descriptionh3,
h3 a,
h4,
h4 a,
h5,
h5 a,
h6,
h6 a {
  /*
    _s override
    il ne faut pas donner des margin/padding top aux titres
    c'est un anti-pattern qui crée des décalage et des whitespaces
    Les containers doivent donner l'espacement. Pas les éléments enfants.
  */
  margin-top:0px !important;
  padding-top:0px !important; 
  font-family: title;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}

/* WP rules */
h1,
h1 a,
.site-title a {
  font-size: 3rem ;
}
h2,
h2 a,
.site-description {
  font-size: 2rem ;
}
.h1.entry-title,
.h1.entry-title a {
  font-size: 3rem ;
}
.entry-title,
.entry-title a {
  font-size: 1.3rem ;
}
.entry-title {
  margin: .5rem 0;
}
h3,
h3 a {
  font-size: 1.1rem ;
  margin-top:0px !important;
  padding-top:0px !important; 
}
.widget-title {
  font-size: 1rem ;
}

/* footers, small texts... */
.entry-meta span,
.entry-meta a {
  font-size: .7rem;
  opacity: .6;
}
.entry-footer {
  line-height: 1.5;
}
.entry-footer span,
.entry-footer a {
  font-size: .7rem;
}
.entry-footer span .label {
  opacity: .4;
}
.entry-footer a {
  color: var(--color-main) !important;
}

@media only screen and (min-device-width: 768px) {
  h1,
  h1 a,
  .site-title a {
    font-size: 3rem ;
  }
  h2,
  h2 a,
  .site-description {
    font-size: 2rem ;
  }
  h1.entry-title,
  h1.entry-title a {
    font-size: 4rem ;
  }
  .entry-title,
  .entry-title a {
    font-size: 1.6rem ;
  }
  h3,
  h3 a {
    font-size: 1.4rem ;
  }
}

@media only screen and (min-device-width: 1280px) {
  h1,
  h1 a,
  .site-title a {
    font-size: 4rem;
  }
  h1.entry-title,
  h1.entry-title a {
    font-size: 5rem ;
  }
  h2,
  h2 a,
  .site-description {
    font-size: 3rem;
  }
  h3,
  h3 a {
    font-size: 1.5rem;
  }
  .widget-title {
    font-size: 1.3rem;
  }
}


/* links overrider */
a {
	color: #222222;;
}

a:visited {
	color: #222222;
}

a:hover,
a:focus,
a:active {
	color: #222222;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}


#secondary a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.circle {
  border-radius: 50%;
}
.rounded-s {
  border-radius: 1px;
}
.rounded-m {
  border-radius: 4px;
}
.rounded-l {
  border-radius: 8px;
}


@media only screen and (max-device-width: 768px) {
  .container.rounded-s,
  .block.rounded-s,
  .container.rounded-m,
  .block.rounded-m,
  .container.rounded-l,
  .block.rounded-l {
    border-radius: 0;
  }
}

.btn {
  cursor: pointer;
  -webkit-transition: all 0.5s linear;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.btn:hover {
  background: #edb02d;
}
.shadow-s.btn:hover {
  -webkit-box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
          box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
.btn-interface {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}
::-moz-selection {
  background: #ffffff;
  color: #222222;
  text-shadow: none;
}
::selection {
  background: #ffffff;
  color: #222222;
  text-shadow: none;
}
blockquote {
  clear: both;
  margin: 1em 0;
  padding: 0.5em 1em;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
blockquote::after,
blockquote::before {
  color: var(--color-main);
  font-size: 4rem;
  line-height: 0.1em;
}
blockquote::before {
  content: open-quote;
  margin-right: 0.5em;
  vertical-align: -0.4em;
}
blockquote::after {
  content: close-quote;
  margin-left: 0.5em;
  vertical-align: -0.6em;
}
blockquote p {
  display: inline;
  font-style: italic;
}
.separator {
  width: 80%;
  margin: 1em auto 4em;
}
.separator div {
  display: inline-block;
  vertical-align: meedle;
}
.separator div:nth-child(1),
.separator div:nth-child(3) {
  width: 40%;
  height: .1em;
  background: var(--color-main);
}
.separator div:nth-child(2) {
  width: 20%;
  text-align: center;
  color: var(--color-main);
  font-size: .8em;
}
@media only screen and (min-device-width: 768px) {
  .separator div:nth-child(1),
  .separator div:nth-child(3) {
    width: 45%;
  }
  .separator div:nth-child(2) {
    width: 10%;
  }
}

/*--------------------------------------------------------------
## LAYOUT
--------------------------------------------------------------*/
* {
  /* border-box */
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
/* main page container */
#content.site-content {
  margin: auto;
  max-width: 1200px;
}
#content.site-content.full-width {
  max-width: 100%;
}
/* the content */
#main {
  position: relative;
  top: 0;
  left: 0;
}
#primary {
  float: left;
  width: 100%;
  padding: 0rem;
}
@media only screen and (max-device-width: 1200px) {
    /* add space around site content for mobile */
  #primary {
    padding: 0 2rem;
  }
}
/* widgets area */
#secondary {
  float: right;
  padding: 2rem;
}
#secondary h2 {
  font-size: 1.8rem;
}
#secondary ul li a {
  font-size: 1rem;
  list-style: none;
}

/* site header */
#masthead.site-header {
  text-align: center;
  -webkit-box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
          box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  margin-bottom: 3rem;
  background-size: cover;
}

@media only screen and (min-device-width: 768px) {
  #masthead.site-header {
    background-size: cover;
  }
}
.site-title {
  /* fixer une inconsistance dans la taille du header single vs multi-post */
  margin-top: 2em !important;
  margin-bottom: 2rem !important;
  /* line-height: 3rem !important; */
  /* height: 4rem; */
  text-align: center;
  /* � priori c'est �a h1 et p n'ont pas la m�me hauteur */
}
.site-branding,
.site-description {
  /* modif ci-dessus inop�rante c'est au niveau de site-branding qu'il y a une couille velue */
  line-height: 3rem !important;
  /* non, je sais pas en fait. */
}
/* site footer */
#colophon {
  display: block;
  margin-top: 2rem;
  width: 100%;
  clear: both;
  text-align: center;
}
#virtual-viewport {
  position: relative;
  left: 0;
  top: 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
#virtual-viewport.unfocus {
  left: -128px;
}


header,
footer {
  padding: 1rem;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}
.iframe-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.comment-form label,
.comment-form textarea,
.comment-form input:not(.submit) {
  display: block;
  width: 100%;
  max-width: 100%;
}
.comment-form textarea,
.comment-form input:not(.submit) {
  background: none;
  border: 1px solid #888;
  border-radius: 2px;
}
textarea {
  resize: vertical;
}
.comment-body {
  padding: 1rem;
}
.comment-metadata time {
  font-size: .8rem;
  opacity: .5;
}


/*--------------------------------------------------------------
## forms
--------------------------------------------------------------*/
button,
input[type=submit] {
  height: 48px ;
  margin: 8px ;
  padding: 8px ;
  border: 1px solid #222222;
  background: none;
  cursor: pointer ;
}
button[type=reset] {
  background-color: grey ;
}

/*--------------------------------------------------------------
##  button
    https://uiverse.io/buttons
    https://uiverse.io/nikk7007/blue-mayfly-40
--------------------------------------------------------------*/
.button-fancy {
 display: inline-block;
 padding: 0.3em 1.4em;
 background-color: transparent;
 border-radius: .3em;
 position: relative;
 overflow: hidden;
 cursor: pointer;
 transition: .5s;
 border: 1px solid var(--color-main);
 color: var(--color-main) !important;
 z-index: 1;
}

.button-fancy::before, .button-fancy::after {
 content: '';
 display: block;
 width: 50px;
 height: 50px;
 transform: translate(-50%, -50%);
 position: absolute;
 border-radius: 50%;
 z-index: -1;
 background-color: var(--color-main);
 transition: 1s ease;
}

.button-fancy::before {
 top: -1em;
 left: -1em;
}

.button-fancy::after {
 left: calc(100% + 1em);
 top: calc(100% + 1em);
}

.button-fancy:hover::before, .button-fancy:hover::after {
 height: 410px;
 width: 410px;
}

.button-fancy:hover {
 color: #fff !important;
}

.button-fancy:active {
 filter: brightness(.8);
}


/*--------------------------------------------------------------
## shader
--------------------------------------------------------------*/
#shade-all {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
#shade-all.shade {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  z-index: 10;
}

/*--------------------------------------------------------------
## return to top
--------------------------------------------------------------*/
#return-to-top {
  display: none;
  position: fixed;
  bottom: 2em;
  right: 1em;
  z-index: 29;
  width: 4em;
  height: 4em;
  -webkit-transition: all 0.3s linear;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 4em;
  /* center v */
  padding-top: 1.3em;
}
#return-to-top:hover {
  background: rgba(0, 0, 0, 0.9);
}

/*--------------------------------------------------------------
## responsive widget side-bar
--------------------------------------------------------------*/
.main-menu-responsive {
  position: fixed;
  top: 0;
  right: -240px;
  width: 240px;
  height: 100%;
  bottom: 100%;
  background: #ffffff;
  overflow: auto;
  -webkit-box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
          box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 32;
}
.main-menu-responsive.display {
  right: 0px;
}
#menu-responsive-icon {
  position: fixed;
  top: 3em; /* must also fit wp navbar */
  right: 1em;
  width: 4em;
  height: 4em;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 31;
}
#menu-responsive-icon.open {
  right: 256px;
}
#menu-responsive-icon span {
  display: block;
  position: absolute;
  left: 25%;
  height: 1px;
  width: 50%;
  background: #FFF;
  opacity: 1;
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.3s cubic-bezier(0.21, 1.6, 0.57, -0.56);
  transition: all 0.3s cubic-bezier(0.21, 1.6, 0.57, -0.56);
}
#menu-responsive-icon span:nth-child(1) {
  top: 25%;
}
#menu-responsive-icon span:nth-child(2) {
  top: 50%;
}
#menu-responsive-icon span:nth-child(3) {
  top: 75%;
}
#menu-responsive-icon.open span:nth-child(1) {
  width: 70.71067811865475%;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
#menu-responsive-icon.open span:nth-child(2) {
  width: 0;
  opacity: 0;
}
#menu-responsive-icon.open span:nth-child(3) {
  width: 70.71067811865475%;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
@media only screen and (min-device-width: 420px) {
  .main-menu-responsive {
    right: -320px;
    width: 320px;
  }
  #menu-responsive-icon.open {
    right: 336px;
  }
}

/*--------------------------------------------------------------
## Menus forked from _s
--------------------------------------------------------------*/
.main-navigation {
  clear: both;
  display: inline-block;
  width: 100%;
}
#site-navigation {
  margin: auto;
}
#primary-menu {
  margin: auto;
}
#primary-menu li {
  font-size: 1rem;
  padding-right: 1rem;
}
#secondary ul,
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.main-navigation li {
  display: inline-block;
  position: relative;
}
.main-navigation a {
  display: block;
  text-decoration: none;
}
.main-navigation ul ul {
  -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
          box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: left;
  position: absolute;
  top: 1.5em;
  left: -999em;
  z-index: 99999;
}
.main-navigation ul ul ul {
  left: -999em;
  top: 0;
}
.main-navigation ul ul a {
  width: 200px;
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  left: auto;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
  left: 100%;
}
/* Small menu. */
.main-navigation.toggled ul {
  display: block;
}
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
  overflow: hidden;
}
.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  float: left;
  width: 50%;
}
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  float: right;
  text-align: right;
  width: 50%;
}



/*--------------------------------------------------------------
## project specifics
--------------------------------------------------------------*/

article.hentry {
  -webkit-box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
          box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  margin-top: 0;
  padding-top: 1rem;
}
article.hentry.category-lire {
  -webkit-box-shadow: none;
          box-shadow: none;
  background: none;
  margin-bottom: 6rem;
}
.entry-header,
.entry-content {
  margin: 0 2rem 1rem;
  padding: 0;
}
.entry-header {
  margin-bottom: 2rem;
}
.entry-header.compact {
  margin: 0 2rem 1rem;
  line-height: 100%;
}
.entry-header.compact h3 {
  line-height: 100%;
}
.post-thumbnail {
  overflow: hidden;
  display: block;
  margin: auto;
}
.post-tags {
  /* background: @color-primary; */
}
.post-tags p {
  margin: 0;
  font-size: .8rem;
}
#s {
  border: none;
  padding-bottom: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  width: 70%;
  border-radius: 0;
  background: none;
}
#searchsubmit {
  float: left;
  border: none;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}
#searchsubmit i {
  border: none;
  height: 2rem;
  margin: auto;
}
#searchsubmit:hover i {
  color: var(--color-main);
}
.more-link {
  display: block;
  font-size: .9rem;
  opacity: .8;
}
.lettrine:first-letter {
  float: left;
  margin: 1rem;
  margin-bottom: 0;
  font-size: 3rem;
  color: var(--color-main);
}
.lettrine.secondary:first-letter {
  color: #46004c;
}


/*--------------------------------------------------------------
## Helpers
--------------------------------------------------------------*/

.txt-center {
    text-align: center;
}

.txt-s {
  font-size: .8rem;
  opacity: .9;
}

.txt-color {
  color: var(--color-main);
}

.txt-color.secondary {
  color: #46004c;
}

.bold {
  font-weight: bold;
}

.thumbnail {
    height:200px;
    width:200px;
    overflow:hidden;
}

.padding {
  padding: 2rem;
}

.padding-l {
  padding-left: 1rem;
}
.padding-t {
  padding-top: 2rem;
}
.padding-r {
  padding-right: 1rem;
}

.margin-auto {
    margin:auto;
}

.border {
  border: 1px solid var(--color-main);
  border-radius: 2px;
  padding: 2em;
}
.border.secondary {
  border: 1px solid #46004c;
}

.img-full {
  width: 100%;
}

.img-full-50 {
  width: 100%;
  height: 50vh;
  -o-object-fit: cover;
     object-fit: cover;
}

.img-full-25 {
  width: 100%;
  height: 25vh;
  -o-object-fit: cover;
     object-fit: cover;
}

.img-left-2 {
  float: left;
  width: 50%;
  padding-right: 2em;
}

.img-right-2 {
  float: right;
  width: 50%;
  padding-left: 2em;
}
h1.page-title {
    margin-bottom : 0px !important;
}
h1.page-title,
.entry-title {
    text-align: center;
}
img.attachment-post-thumbnail {
    min-width: 100%;
}