/* @file Theme file for ERAP */

@charset "UTF-8";

@font-face {
  font-family: 'Unica One';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/UnicaOne-Regular.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/PTSansNarrow-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'PT Sans Narrow';
  font-style: bold;
  font-weight: 700;
  src: url('../fonts/PTSansNarrow-Bold.woff2') format('woff2');
}

/* Reset */

:root {
    --font-serif: "PT Sans Narrow", Verdana, serif;
    --font-sans: "Unica One", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  border-top: 0.25rem solid #C82C15;
  background: #FFF6E5;
  font-family: var(--font-serif);
  font-size: 16px;
  padding: 0;
}

.spip-admin-float {
  right: 5% !important;
}

.spip-admin-boutons {
  font-family: var(--font-sans);
  text-transform: uppercase;
}

/* Titles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: normal;
  font-feature-settings: "liga", "dlig", "kern";
  text-transform: uppercase;
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 3rem;
}

h2 {
  font-size: 3rem;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.875rem;
  line-height: 1.1;
  margin-bottom: 0.5em;
}

h5 {
  font-size: 1.5rem;
  line-height: 0.9;
  margin-bottom: 0.5em;
}

h6 {
  font-size: 1.125rem;
  line-height: 0.8;
  margin-bottom: 0.5em;
}

/* Links */
a {
  color: #C82C15;
  text-decoration: none;
  transition: 0.1s ease-in-out;
}
a:hover, a:active, a:focus {
  background: none;
  color: #101112;
  text-decoration: none;
  border-bottom: 1px dotted;
}
a:visited {
  color: rgb(153.8461538462, 33.8461538462, 16.1538461538);
  text-decoration: none;
}

.facebook a {
  color: #46619E;
}

/* Paragraphs */
.chapo {
  font-weight: normal;
}

.spip-admin-boutons:hover {
  background-color: #c2c2c2;
  color: #101112;
}

.nuage {
  font-family: var(--font-sans);
}

.similar-posts {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
@media screen and (max-width: 700px) {
  .similar-posts {
    flex-direction: column;
  }
}
.similar-posts .similar-post {
  flex: 1;
  border-right: 1px solid gray;
  padding: 1rem;
}
.similar-posts .similar-post:last-child {
  border: none;
}
@media screen and (max-width: 700px) {
  .similar-posts .similar-post {
    border-right: none;
    border-bottom: 1px solid gray;
  }
}
.similar-posts .similar-post h2 {
  font-size: 1.25rem;
  line-height: 1.1;
}
.similar-posts .similar-post .spip_logos {
  float: none;
}

.logo-article {
  float: right;
  margin: 0 0 1rem 1rem;
}

.entry + .entry {
  margin-top: 2rem;
}

.entry {
  background-color: #D8DCCF;
}
.entry .spip_logos {
  float: left;
  margin: 0 1.5rem 0 0;
}
@media (max-width: 975px) {
  .entry .spip_logos {
    display: none;
  }
}

.entry-content-wrapper {
  padding: 1rem;
}

.entry-title {
  font-size: 1.35rem;
  line-height: 1.25;
}

.entry-content {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.entry-infos {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
}

.pagination {
  font-family: var(--font-sans);
}

#formulaire_recherche {
  position: relative;
  padding: 0;
  margin: 0;
  top: 0;
  right: 0;
}
#formulaire_recherche input.text {
  max-width: 250px;
}

.main:before, .main:after {
  content: " ";
  display: table;
}
.main:after {
  clear: both;
}

.main-footer, .burger-menu, .main-nav, .header, .article-pre-footer, .main {
  padding: 2rem 1rem;
  margin: auto;
}

.main {
  max-width: 1170px;
}
@media (min-width: 50px) and (max-width: 768px) {
  .main {
    flex-direction: column;
    justify-content: center;
  }
}

.page {
  padding: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.article-pre-footer {
  max-width: 1170px;
}
@media (min-width: 50px) and (max-width: 768px) {
  .article-pre-footer {
    flex-direction: column;
    justify-content: center;
  }
}
.article-pre-footer {
  text-align: center;
  border-top: 1px solid #F5F5F5;
}

.header-container {
  background-color: #F5F5F5;
}

.header {
  max-width: 1170px;
}
@media (min-width: 50px) and (max-width: 768px) {
  .header {
    flex-direction: column;
    justify-content: center;
  }
}
.header {
  height: 10rem;
  border: none;
  color: #101112;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.header a:hover {
  border: none;
}

.logo {
  width: 300px;
  height: auto;
}
.logo:hover {
  color: #C82C15;
}

.main-nav-container {
  background-color: #C82C15;
  font-family: var(--font-sans);
  color: #FDFDFB;
  /* Align-right for burger-menu toggle */
}
@media (max-width: 670px) {
  .main-nav-container {
    text-align: right;
  }
}

.main-nav {
  max-width: 1170px;
}
@media (min-width: 50px) and (max-width: 670px) {
  .main-nav {
    flex-direction: column;
    justify-content: center;
  }
}
.main-nav {
  display: flex;
  border: none;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
}
.main-nav a {
  height: 2rem;
  line-height: 2rem;
  border: 0 transparent solid;
  border-width: 0 0.5rem 0 0;
  background-clip: padding-box;
  color: #FDFDFB;
  text-transform: uppercase;
}
.main-nav a:hover, .main-nav a:active {
  color: #101112;
}

@media (max-width: 670px) {
  .main-nav {
    display: none;
  }
}

/* This CSS HACKS */
.mobile-nav-check {
  display: none;
}

#mobile-nav-check:checked + #mobile-nav {
  width: 65%;
}

#mobile-nav-check:checked ~ .page-wrap {
  width: 35%;
}
#mobile-nav-check:checked ~ .page-wrap header img.spip_logos {
  display: none;
}
#mobile-nav-check:checked ~ .page-wrap .open-menu {
  display: none;
}
#mobile-nav-check:checked ~ .page-wrap .close-menu {
  display: block;
}

.burger-menu {
  display: none;
  cursor: pointer;
  font-size: 1.25rem;
}
.burger-menu:hover, .burger-menu:focus, .burger-menu:active {
  color: #101112;
}
@media (max-width: 670px) {
  .burger-menu {
    display: inline;
  }
}

.burger {
  font-size: 1.5rem;
}

.mobile-nav {
  /* Displays the menu but hide it for animation purposes */
  position: fixed;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #C82C15;
  overflow-x: hidden;
  padding-top: 1rem;
  font-size: 1.3rem;
  transition: all 0.25s ease-in-out;
  font-family: var(--font-sans);
}
.mobile-nav a {
  display: block;
  color: #FDFDFB;
  padding: 0.25rem;
  margin-left: 1rem;
}
.mobile-nav a:hover, .mobile-nav a:focus, .mobile-nav a:active {
  color: #101112;
  border: none;
}

.aside div + div {
  margin-top: 2rem;
}
.aside h1 {
  border-bottom: 1px solid black;
}
.aside h1, .aside h2, .aside h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.aside .formulaire_spip {
  border: none;
}

.contact-links li {
  font-size: 1.4rem;
  font-family: var(--font-sans);
}

.main-footer-container {
  background: #101112;
}

.main-footer {
  max-width: 1170px;
}
@media (min-width: 50px) and (max-width: 768px) {
  .main-footer {
    flex-direction: column;
    justify-content: center;
  }
}
.main-footer {
  color: #FDFDFB;
  font-family: var(--font-sans);
}
.main-footer a:hover {
  color: #FDFDFB;
}
.main-footer a:visited {
  color: #C82C15;
}

.colophon {
  margin: 0;
}

.agenda li + li {
  margin-top: 1rem;
}

.date {
  font-family: var(--font-sans);
}

.date-conteneur {
  padding: 1.5rem;
  background: #C82C15;
  color: #FDFDFB;
  float: left;
  margin-right: 1rem;
  text-align: center;
  height: 100%;
}

.date-jour {
  font-size: 4rem;
  margin: 0;
  line-height: 1.2;
}

.date-mois, .date-heures, .date-minutes {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}
