/** Copyright Silent Strength 2013. All Rights Reserved. */

/**
 * Layout of the site Silent Strength.
 *
 * @author Michael Ortali
 */

/** Copyright Silent Strength 2013. All Rights Reserved. */

/**
 * Layout of the site Silent Strength.
 *
 * @author Michael Ortali
 */

/**
 * Generic styles.
 */

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

fieldset {
  border: 0;
}

body,
p input,
button {
  font-family: 'Open Sans', arial, sans-serif;
  color: #444;
  -webkit-font-smoothing: subpixel-antialiased;
}

header,
article,
section,
summary {
  display: block;
}

#header {
  position: fixed;
  left: 0;
  width: 379px;
  height: 100%;
  border-right: 1px solid #e0e0e0;
  background: #fff;
}

#header-content {
  padding: 40px;
}

#header h1 a {
  color: #fff;
  text-decoration: none;
  font-size: 35px;
  letter-spacing: -1px;
}

#header h1 span {
  display: block;
  color: #999;
  font-size: 13px;
  font-weight: 100;
  letter-spacing: 0;
  text-transform: uppercase;
}

#header summary {
  margin: 10px 0 20px;
}

#header-nav {
  list-style-type: none;
}

#header-nav a,
#cv .tag {
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  background: #819aff;
  color: #fff;
}

#header-illustration {
  margin: -40px -40px -43px;
  width: 380px;
  border-bottom: 1px solid #eee;
}

#main-container {
  min-height: 100%;
}

#main {
  overflow: hidden;
  margin-left: 380px;
  padding-bottom: 160px;
}

#main .main-context {
  padding: 40px;
}

#main .main-context + .main-context {
  border-top: 1px solid #eee;
}

#location {
  display: none;
}


/**
 * Footer
 */

#footer {
  margin-left: 380px;
  background: #222;
  color: #EEE;
  margin-top: -133px;
  padding-bottom: 15px;
}

#footer h2 {
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 14px;
}

#footer ul,
#footer p {
  font-size: 13px;
}

#footer li {
  list-style-type: none;
  margin-bottom: 2px;
}

#footer p {
  margin-top: 2px;
  margin-bottom: 10px;
}

#footer > div {
  margin: 0 40px;
  font-size: 15px;
  overflow: hidden;
}

#footer h2 {
  float: left;
  width: 105px;
  margin-top: 2px;
}

#footer ul,
#footer li {
  display: inline-block;
  vertical-align: top;
  vertical-align: middle;
  *display: inline;
  *zoom: 1;
}

#footer div:first-child {
  padding-top: 30px;
}

#footer a {
  color: #819AFF;
  text-decoration: none;
  background: #111;
  padding: 3px 7px;
}

#footer a:hover {
  text-decoration: underline;
}


/**
 * Homepage specific
 */

#homepage {
  position: relative;
  width: 550px;
}

#homepage h1,
#article h1 {
  font-size: 40px;
  font-weight: 900;
  color: #000;
  margin-top: -10px;
  line-height: 40px;
  margin-bottom: 15px;
}

#homepage summary {
  font-size: 23px;
  line-height: 1.2em;
  margin-bottom: 20px;
}

#homepage p,
#homepage ul {
  margin-bottom: 15px;
  color: #666;
  font-size: 16px;
}

#homepage ul {
  margin-left: 25px;
}

#homepage h2 {
  margin-bottom: 15px;
}

#homepage-avatar {
  float: left;
  width: 40px;
  border-radius: 50%;
  margin: 5px 10px 0;
}

#homepage-illustration {
  position: absolute;
  left: 555px;
  bottom: -6px;
  overflow: hidden;
}

#homepage-illustration img {
  position: relative;
  width: 520px;
  z-index: -1;
}

#homepage-illustration p {
  position: absolute;
  font-size: 11px;
  text-align: center;
  width: 100%;
  margin-top: -25px;
  background: rgba(255, 255, 255, .6);
  opacity: .5;
}

#homepage-illustration p:hover {
  opacity: 1;
}

#homepage-carnet h2 {
  font-size: 36px;
  color: #000;
  font-weight: 900;
  margin-bottom: 30px;
  text-transform: uppercase;
  line-height: 34px;
}

#homepage-carnet h3 a {
  color: #000;
  text-decoration: none;
  margin-bottom: 5px;
  display: block;
  font-size: 18px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

#homepage-carnet h3 a:hover:after {
  content: '»';
}

#homepage-carnet li {
  display: inline-block;
  vertical-align: top;
  list-style-type: none;
  margin-bottom: 30px;
  margin-right: 30px;
  width: 450px;
}

#homepage-carnet date {
  color: #fff;
  background: #819AFF;
  display: inline-block;
  margin-right: 4px;
  font-size: 15px;
  padding: 5px 10px;
}

#homepage-carnet p {
  font-size: 15px;
  width: 450px;
}

#homepage-carnet .preview {
  height: 250px;
  overflow: hidden;
  margin: 10px 0;
}

#homepage-carnet .preview img {
  width: 100%;
}

#homepage p a,
#homepage-carnet p a,
#homepage li a {
  color: #819AFF;
}


/**
 * Blog post
 */

 .blog #homepage {
  padding: 40px 40px 20px;
  min-height: 310px;
 }

.main-blog {
  padding: 20px;
}

#article {
  width: 550px;
  overflow: hidden;
  background: #fff;
}

#article p {
  margin-bottom: 15px;
}

#article li,
#article p {
  color: #555;
  font-size: 14px;
  line-height: 21px;
}

#article h1 a {
  color: #000;
  text-decoration: none;
}

#article h2 {
  margin-bottom: 15px;
}

#article date,
#article .infos {
  position: absolute;
  margin-left: 590px;
  padding: 5px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, .5);
  border-left: 5px solid #6C7FCE;
}

#article .infos {
  margin-top: 40px;
}

#article .infos a {
  display: block;
}

#article .infos + .warning + .preview + p,
#article .infos + .preview + p,
#article .infos + p[class=""] {
  color: #333;
  font-size: 18px;
  line-height: 24px;
}

#article a {
  color: #6C7FCE;
  text-decoration: none;
}

#article a:hover {
  text-decoration: underline;
}

#article .warning {
  padding: 8px 12px;
  background: #FFB364;
  color: white;
  border-radius: 2px;
}

#article .warning + .preview,
#article .infos + .preview {
  z-index: -1;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: 0;
}

#article .warning + .preview img,
#article .infos + .preview img {
  min-height: 100%;
  min-width: 100%;
}

#article .warning + .preview span,
#article .infos + .preview span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(http://subtlepatterns.com/patterns/kindajean.png);
  opacity: .4;
}

#article ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

#article li {
  margin-bottom: 5px;
}

#article pre {
  display: block;
  margin: 15px -40px;
  padding: 8px 40px;
  border-left: 5px solid #819AFF;
  background: #F2F2F5;
}

#related {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 20px -40px;
  padding: 20px 40px;
}

#related h2 {
  margin-bottom: 20px;
}

#related ul {
  margin: 0;
  overflow: hidden;
  list-style-type: none;
}

#related li {
  float: left;
}

#related li.center {
  margin: 0 35px;
}

#related a {
  background: #FF9356;
  color: #fff;
  font-size: 14px;
  padding: 5px 10px;
  width: 140px;
  display: block;
}

#related a:hover {
  background-color: #819AFF;
  text-decoration: none;
}

/**
 * Comments.
 */

#comments {
  margin-top: 20px;
}

#comments h2 {
  margin-bottom: 20px;
}

.comment {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: -1px -40px;
  padding: 20px 40px;
}

#comments .gravatar {
  position: relative;
  float: left;
  left: -15px;
}

#comments h4 small {
  float: right;
  color: #bbb;
}

#comments blockquote {
  margin-top: 5px;
  overflow: hidden;
  *zoom: 1;
}

#comments blockquote p {
  font-size: 13px;
  width: 430px;
}

#comments .reply {
  font-size: 12px;
  text-transform: uppercase;
  float: right;
  cursor: pointer;
}

#add-comment {
  background: #E0E0E0;
  margin: 0 -40px -40px;
  padding: 20px 40px;
}

#add-comment .infos {
  position: relative;
  margin: 15px 0;
}

#add-comment h3 {
  margin: 10px 0 20px;
}

#add-comment label {
  display: block;
  margin: 5px 0;
}

#add-comment p input {
  width: 350px;
}

#add-comment textarea {
  width: 530px;
  height: 240px;
  resize: vertical;
}

#add-comment p input,
#add-comment textarea {
  padding: 5px 10px;
  border: 1px solid #BBB;
  outline: none;
  font-size: 13px;
}

#add-comment p input.error,
#add-comment p textarea.error {
  border-color: darkred;
}

#add-comment textarea:focus,
#add-comment textarea:hover,
#add-comment p input:focus,
#add-comment p input:hover {
  border-color: #819AFF;
}

#add-comment button {
  margin-top: 5px;
  padding: 6px 9px;
  border: 1px solid #6180FF;
  color: white;
  font-weight: bold;
  background: #819AFF;
  cursor: pointer;
  text-transform: uppercase;
}
/**
 * Remove the sidebar
 */

#sidebar {
  display: none;
}

/**
 * List of articles.
 */
#article.index {
  width: auto;
}

.post {
  display: inline-block;
  vertical-align: top;
  margin-bottom: 30px;
  margin-right: 30px;
  width: 450px;
  overflow: hidden;
}

.post .preview {
  height: 230px;
  overflow: hidden;
}

.post .preview img {
  width: 100%;
}


/**
 * Resume
 */

#cv {
  padding: 0 40px;
}

#cv h2 {
  text-transform: uppercase;
  font-weight: 900;
  color: #000;
  margin-left: -40px;
  margin-right: -40px;
  padding: 25px 40px 15px;
  border-top: 1px solid #EEE;
  margin-bottom: 0;
}

#cv .separator {
  clear: both;
  margin-top: -1px;
}

#cv .c4 {
  margin-right: -5%;
}

#cv .c4 h3 {
  margin: 10px 0;
}

.col {
  float: left;
}

#cv .c4 .col {
  width: 20%;
  margin-right: 5%;
  margin-bottom: 25px;
  width: 160px;
}

#cv .c4 li {
  font-size: 13px;
  margin-bottom: 5px;
  list-style-position: inside;
}

#cv .c2,
#cv .c3 {
  overflow: hidden;
}

#cv .c3 .col {
  width: 30%;
  margin-left: 3%;
}

#cv .c2 .col {
  width: 45%;
  margin-right: 5%;
  margin-bottom: 15px;
}

#cv .experiences .c2 {
  padding: 25px 40px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: -1px -40px 0;
}

#cv .separator h2 + div.c2 {
  border-top: 0;
}

#cv .description {
  font-size: 14px;
  line-height: 20px;
}

#cv .tags span {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: -2px;
  margin-bottom: 2px;
}

#cv .infos img {
  border: 1px solid #EEE;
  float: left;
  margin-right: 10px;
  width: 70px;
  height: 70px;
}

#cv .inline {
  font-size: 14px;
  list-style-position: inside;
  list-style-type: disc;
  margin-left: 2px;
  overflow: hidden;
  clear: both;
  padding-top: 10px;
}

#cv .inline li {
  float: left;
  margin-bottom: 4px;
  margin-right: 10px;
}

#cv .recommendations {
  clear: both;
  padding-top: 15px;
  background: #EFEFEF;
  overflow: hidden;
  margin: 0 -40px -25px;
  padding: 25px 40px;

}

#cv .recommendations h2 + div {
  border-top: 0;
}

#cv .recommendations h3 {
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 16px;
  color: #333;
}

#cv .recommendations p {
  font-size: 14px;
}

#cv .recommendations cite {
  font-size: 13px;
  display: block;
  line-height: 1.6;
  font-style: normal;
  margin-top: 10px;
  border-left: 5px solid #666;
  padding-left: 15px;
}

#cv a {
  color: #6C7FCE;
  text-decoration: none;
}

#cv a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1430px) {
  #homepage-carnet li,
  #homepage-carnet p {
    width: 400px;
  }

  #homepage-carnet .preview {
    height: 200px;
  }
}

@media screen and (max-width: 1400px) {
  #homepage-carnet li {
    width: 45%;
  }

  #homepage-carnet p {
    width: 100%;
  }

  #homepage-carnet .preview {
    height: 200px;
  }
}

@media screen and (max-width: 1100px) {
  #homepage-carnet li {
    width: 100%;
  }

  #homepage-carnet p {
    width: 100%;
  }

  #homepage-carnet .preview {
    height: 200px;
  }
}

@media screen and (max-width: 1024px) {
  #homepage {
    width: 470px;
  }

  #cv .c2 .col {
    float: none;
    width: auto;
  }
}

@media screen and (max-width: 900px) {
  #article {
    width: 430px;
  }

  #related a {
    width: 100px;
  }

  #header {
    position: static;
    height: auto;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
  }

  #header-content a span,
  #header-content summary {
    display: none;
  }

  #header-content {
    padding-bottom: 0;
    padding-top: 20px;
    min-width: 550px;
  }

  #header-content h1 {
    text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
    margin-bottom: 10px;
  }

  #header-nav li {
    display: inline-block;
    margin-bottom: 20px;
  }

  #header > * {
    position: relative;
    background: #fff;
    z-index: 1;
  }

  #header-illustration {
    position: absolute;
    top: -100px;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    z-index: -1;
  }

  #main,
  #footer {
    margin-left: 0;
    min-width: 550px;
  }

  #article date,
  #article .infos {
    display: none;
  }

  #add-comment textarea {
    width: 410px;
  }
}

/**
 * Admin things.
 */
.admin-link {
  margin-bottom: 20px;
}