/* 
Theme Name: 1651 wild wild Ouest
Author: Olivier Prêtre
Template: hello-elementor
Version: 2.0.1
Text Domain: 1651ouest
Description: on n'a jamais fait meilleur thème
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

* {
  box-sizing: border-box;
}
@font-face {
  font-family: 'Avenir';
  src: url(assets/font/AvenirLTStd-Book.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url(assets/font/Oswald-Regular.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'OswaldMedium';
  src: url(assets/font/Oswald-Medium.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'OswaldLight';
  src: url(assets/font/Oswald-ExtraLight.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.e-con > .e-con-inner {
  gap: 0 !important;
}

body {
  min-height: 100dvh;
  box-sizing: content-box;
  background-repeat: no-repeat;
  /* background-size: 1313px 911px; */
  /* background-size: auto auto; */
  background-size: auto 125dvh;
  background-attachment: fixed;
  /* background-position: 50% 0; */
  background-position: 50% -235px;
  background-image: url(assets/img/bg-1651ouest.png);
  background-color: #fff;
  font: 1.0625rem/1.5 'Avenir', Helvetica, Tahoma, Sans-serif;
}
#page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
}

ul {
  list-style-type: none;
}
a {
  color: #8c0000;
  font-weight: bold;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
header {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
}

header h1 {
  margin: 0;
}
header .logo {
  display: block;
  font-family: OswaldMedium, Sans-serif;
  text-transform: uppercase;
  font-size: 2.9375rem;
  line-height: 1;
  font-weight: bold;
  color: #8c0000;
  background-color: #fff;
  padding: 1rem 1rem 0;
}
header a:hover {
  text-decoration: none;
  color: #000;
}
#menu-button {
  position: absolute;
  /* background-color: #fff; */
  left: 119px;
  top: 25px;
  color: #000;
  font-family: OswaldMedium, sans-serif;
  font-size: 1.875rem;
  font-weight: 200;
}
#menu-button:hover {
  color: #8c0000;
}

header #openCloseMenu {
  align-self: center;
  margin-right: 1rem;
  display: none;
}
nav#site-navigation {
  position: fixed;
  width: 100%;
  max-width: 326px;
  height: 100dvh;
  text-align: right;
  background-color: black;
  padding: 8rem 3rem 0 0;
  z-index: 50;
  transition: left 0.25s ease-in-out;
}
#close-btn-inside-nav {
  position: absolute;
  width: 35px;
  right: 20px;
  top: 20px;

  svg {
    fill: #fff;
  }
}
nav.open {
  left: -0;
}
nav.close {
  left: -400px;
}
nav li {
  font: 600 1.5rem/2 'Oswald', Sans-serif !important;
  text-transform: uppercase;
}
nav a {
  color: #cdcec1;
}
nav a:hover {
  text-decoration: none;
}

main {
  flex-grow: 1;
}
#breadcrumbs {
  max-width: 980px;
  margin: 1rem auto 0;
  padding: 0 0 0 1rem;
  text-transform: uppercase;
  font: 600 1.3125rem/1.3 'Oswald', Sans-serif !important;
  letter-spacing: 0.5px;
  background-color: rgba(255, 255, 255, 0.95);
}
#breadcrumbs a {
  text-decoration: none !important;
  color: #000 !important;
}
#breadcrumbs a:hover {
  text-decoration: underline !important;
}

footer nav {
  background-color: rgba(255, 255, 255, 0.95);
}
footer nav ul {
  display: flex;
  gap: 2rem;
  justify-content: center;
}
footer nav ul a,
footer nav ul li {
  text-transform: none;
  color: #000;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
}

.one-column-main section {
  /* max-width: 1140px; */
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  background-color: rgba(255, 255, 255, 0.98);
  position: relative;
}
.one-column-main section h2,
.one-column-main section h3 {
  font-family: 'Oswald', Sans-serif;
  color: #8c0000;
  line-height: 1.2;
}
.one-column-main section h2 {
  font-size: 2.5rem;
  letter-spacing: 1px;
}
.one-column-main section h3 {
  margin-top: -10px;
  font-size: 1.6875rem;
  font-weight: 500;
}
.titleH3 {
  font-size: 1.6875rem;
  line-height: 1.1;
}
.one-column-main section p {
  text-align: justify;
}
.h1-1651ouest {
  position: absolute;
  left: -1000000px;
}

div.popup {
  position: absolute;
  left: -2500px;
  top: 0;
  opacity: 0;
  z-index: 500;
  width: 100%;
  padding: 4rem 5rem;
  transition: all 0.2s ease-in-out;
  text-align: justify;
}

div.popup.open {
  opacity: 1;
  left: 0;
  background-color: rgba(255, 255, 255, 0.96);
  z-index: 100;
}
div.popup.open > * {
  text-align: justify;
}
#close-popup {
  position: absolute;
  right: 15px;
  top: 5px;
  font-size: 36px;
  cursor: pointer;
}

/****************************/
/* Homepage */
/****************************/
#home main {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
#home main section.page-content {
  width: 400px;
  position: absolute;
  bottom: 140px;
  right: 0;
  font-family: 'Oswald', Sans-serif;
}
#home main section.page-content .focus-content {
  text-align: center;
}
#home main section.page-content h2:first-child {
  font-family: OswaldMedium, Sans-serif;
  max-width: 200px;
  margin: 0 auto;
  font-weight: bold;
}
#home main section.page-content h2:nth-child(2) {
  margin: 0;
  font-size: 1.75rem;
  text-transform: uppercase;
  color: #8c0000;
}
#home main section.page-content h2 a {
  text-transform: none;
  font-weight: 300;
  font-size: 1.75rem;
}
#home main section.page-content h3 {
  font-family: OswaldMedium, Sans-serif;
  margin: 0;
  white-space: nowrap;
}
#home main section.page-content h3 a {
  color: #000;
  font-weight: 300;
  font-size: 1.25rem;
}
#home main section.page-content h3 a:hover {
  color: #8c0000;
}

/****************************/
/* Les Ateliers */
/****************************/
.ancres p a {
  font-size: 1.0625rem;
  color: #000;
}
.ancres p a:hover {
  color: #8c0000;
}
main section.page-content .actus-ateliers h3 {
  font-size: 1.0625rem;
  letter-spacing: 0.5px;
}

/****************************/
/* Contact */
/****************************/
.first-form {
  border-right: 0.5px solid grey;
}
.contact-form h2 {
  font-size: 1.375rem !important;
  font-weight: bold !important;
}
.contact-form label span:first-child {
  display: none;
}
.contact-form input,
.contact-form textarea {
  display: block;
  border-bottom: 0.5px solid grey;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 95%;
  font-family: Avenir, sans-serif;
  font-size: 1.0625rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
}
.contact-form p {
  margin: 0;
}
.contact-form .submit-btn {
  border-radius: 5px;
  border-bottom: none;
  background-color: rgb(185, 185, 185);
  font-family: 'Oswald', sans-serif !important;
  padding: 0.5rem 1rem;
  cursor: pointer;
  justify-self: flex-end;
  width: auto;
  margin: 1rem 1.5rem 0 0;
}
.submit-btn:hover {
  color: #8c0000;
  background-color: transparent;
}

/****************************/
/* Les créations + ateliers + atelier du 12
/****************************/
.light p {
  font-family: OswaldLight, Sans-serif !important;
}
.black h3 {
  color: #000 !important;
}
.one-column-main section .creations-carcerales {
  margin-top: 2rem;
}
.one-column-main section .creations-carcerales h2,
.one-column-main section .creations-carcerales h3,
.one-column-main section .ateliers h2,
.one-column-main section .ateliers h3,
.one-column-main section .atelier12 h2,
.one-column-main section .atelier12 h3,
.one-column-main section .mentions-legales h2 {
  font-size: 1.3125rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.one-column-main section .creations-carcerales h3,
.one-column-main section .ateliers h3,
.one-column-main section .atelier12 h3,
.one-column-main section .atelier12 .col2 h3 {
  font-weight: bold;
}
.one-column-main section .ateliers h2 {
  color: #000;
}
.one-column-main section .atelier12 h2:first-child {
  text-transform: uppercase;
  color: #000;
}
.one-column-main section .atelier12 .col2 h3 {
  color: #8c0000;
  font-size: 1.0625rem;
}

/*
Media queries ***************
*/
/* @media screen and (max-width: 768px) { */
@media screen and (max-width: 800px) {
  body {
    background-size: 485%;
    background-attachment: fixed;
    background-position: 36% -290px;
    font-size: 1.3rem;
  }
  label,
  input {
    font-size: 1.3rem;
  }
  header {
    position: fixed;
    height: 70px;
    top: 0;
    z-index: 40;
    background-color: rgba(255, 255, 255, 0.96);
  }
  header #openCloseMenu {
    display: block;
  }
  #menu-button,
  #close-btn-inside-nav {
    display: none;
  }
  header .logo {
    font-size: 1.5875rem;
    letter-spacing: 1px;
    padding: 0.5rem;
  }
  #openCloseMenu img {
    width: 32px;
    height: auto;
  }
  nav#site-navigation {
    max-width: 300px;
  }
  #breadcrumbs {
    font-size: 1rem;
    margin-top: 2rem;
  }
  #home main section.page-content {
    position: static;
    margin: 76dvh 0.5rem 20dvh;
    padding: 0;
    max-width: 96dvw;
    background-color: rgba(255, 255, 255, 0.95);
  }
  #home main section.page-content h2:first-child {
    max-width: none;
    margin: 0 auto;
  }
  #home h2 a {
    white-space: nowrap !important;
  }
  #home main section.page-content h2 a,
  #home main section.page-content h2 {
    font-size: 1.3125rem;
  }
  #home main section.page-content h2:nth-child(2) {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
  #home main section.page-content h3 {
    line-height: 1.3;
  }
  #home main section.page-content h3 a {
    font-size: 1.1rem;
  }
  div.popup {
    position: fixed;
    padding: 3rem 0.5rem;
    top: auto;
    bottom: 0;
  }
  #page main {
    margin-top: 3.2rem;
  }
  #page main section {
    margin: 0 0.5rem;
    padding: 1rem 0;
  }
  .one-column-main section h2 {
    margin: 0;
    font-size: 1.5rem;
  }
  .titleH3 {
    font-size: 1.2rem;
  }
  .one-column-main section .ateliers div[id] {
    scroll-margin-top: 30px;
  }
  body p {
    font-size: 1.0625rem;
  }
  .actus-ateliers {
    margin-top: 0 !important;
  }
  .first-form {
    border-right: none;
  }
}
