/*
Theme Name: ContesCalumet 2.3
Author: Nicolas Latchimy (Artcode)
Author URI: https://www.artcode.re
Description: Thème personalisé contes calumet
Version: 2.5
*/

/* INSPIRATION */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: auto;
  font-family: 'Red Hat Text', sans-serif;

}

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;700&display=swap');

:root{
--color: #333; 
}

.container {
  text-align: center;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("../../uploads/2023/08/JMZ0057.jpg");
  background-size: cover;
  background-position: top;
  gap: 10px;
  box-shadow: 0px 50px 40px -1px rgba(0,0,0,0.5);
  
/*  this is where the magic happens:  */
  background-attachment: fixed;
}

.container p {
  text-align: justify;
}

h1 {
  font-weight: 700;
  font-size: 3rem;
  text-align: center;
}

p {
  line-height: 1.5;
  padding: 1em;
}

a {
  display: inline-block;
  padding: 1em 1em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 0.3em;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: .875rem;
}

.fc .fc-button-primary {
  background-color: brown;
  border-color: brown;
  color: white;
}

.fc .fc-button-primary:disabled {
  background-color: brown;
  border-color: brown;
  color: white;
}

.fc .fc-button-primary:hover {
  background-color: rgb(97, 25, 25);
  border-color: rgb(97, 25, 25);
  color: white;
}

.blank,
.other {
  width: 100%;
  min-height: 100vh;
  background-image: url("../../uploads/2023/09/MontageCC.png");
  background-size: cover;
  background-position: top;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  /*color: whitesmoke;*/
  gap: 1rem;
  box-shadow: 0px 50px 40px -1px rgba(0,0,0,0.5);
  background-attachment: fixed;
  position: relative;
  z-index: 2;
}

.other {
  background-image: url("../../uploads/2023/08/JMZ0369.jpg");
  background-size: cover;
  background-position: top;
  color: var(--color);
  position: relative;
  z-index: 1;
}

footer {
  width: 70%;
  padding: 3em 0;
  display: flex;
  flex-direction: column;
  background-color: rgba(255,255,255,0.5);
}

/*
.blank h1 {
  margin: 0;
  padding: 0.3em;
  text-align: center;
  background-color: #1a1a1a;
  border-bottom: 2px dashed white;
}
*/

.blank .program {
  width: 50%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 5em 0;
}

.program h1 {
  color: whitesmoke;
}

.blank .list {
  background-color: rgba(255,255,255,0.3);
  color: black
}

.edge {
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 1rem;
}

.edge * {
  margin: 0;
}

.edge img {
  width: 7em;
  border-radius: unset;
  background-size: cover;
  background-position: center;
}

.blank .calendar {
  max-width: 400px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5em 0;
}

.fc .fc-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  color: whitesmoke;
}

.fc .fc-toolbar * {
  width: 100%;
}

.fc .fc-toolbar .fc-toolbar-chunk:first-child {
  text-align: center;
}

.fc .fc-toolbar .fc-toolbar-chunk:last-child {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.fc .fc-view-harness {
  background-color: rgba(255,255,255,0.3);
}

.fc .fc-daygrid-day.fc-day-today {
  background-color: rgba(255,255,255,0.8);
}

.fc .fc-bg-event {
  background-color: rgba(123, 227, 219,0.6);
  opacity: 1;
}

.second {
  /*background-image: url("../../uploads/2023/08/JMZ9834.jpg");*/
  background-attachment: fixed;
  /*height: 1200px;*/
}

.second h2, .second h3, .second h4, .second h5, .second h6 {
  /*background-color: #1a1a1a;*/
  /*padding: 1em 1em;*/
  border-radius: 0.3em;
  background-color: unset;
  color: brown
}

.second a, footer a, .page a {
  padding: unset;
  color:#732e2b;
  background-color: unset;
  text-decoration: underline;
}

.topbar a {
  background-color: var(--color);
  padding: 1em 1em;
  color: white;
  text-decoration: none;
}

.calendar a {
  background-color: unset;
  color: unset;
  text-decoration: none;
}

.my-logo a {
  background-color: unset;
}

h3 {
  font-weight: 700;
  font-size: 1.6rem;
  margin-top: 1em;
}

.card > a {
  margin-bottom: 2em;
}

.item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: rgba(255, 255, 255, 0.5);
  flex-direction: column;
  align-items: flex-start;
  border-radius: .5em;
  -webkit-box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
  -moz-box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
  box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
  /*color: whitesmoke;*/
}

.item p {
  text-align: left;
}

article {
  padding: 3em;
}

img {
  width: 90%;
  height: auto;
  background-color: lightgrey;
  background-size: cover;
  background-position: center;
  margin-top: 20px;
  border-radius: .3em;
  margin: 0;
}

.second {
  flex-direction: row;
  gap: 1.6em;
}

/*--- ANCIEN THEME ---*/

header * {
  background-color: unset;
}

.content-area {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 7em;
}

.titre-article {
  display: flex;
  justify-content: center;
  width: 100%;
  color: brown;
}

/* NEWRULES */

.topbar {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 150px;
  position: fixed;
  gap: 0.5rem;
  z-index: 20;
}

.searchform div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.searchform div input {
  height: 2rem;
  border: unset;
  border-radius: 5px;
}

#s {
  border: 1px solid var(--color);
}

.event {
  color: whitesmoke;
}

.event em {
  color: #666;
}

li {
  text-align: left;
}

nav.pagination {
  width: 100%;
  padding: 3em;
}

.logo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo img {
  width: 60%;
}

figure.wp-block-gallery {
  padding: 20px;
}

.audio {
  width: 100%;
}

footer p {
  text-align: center;
}

.avoid {
  height: 150px;
  background-color: unset;
}

.bottombutton1 {
  position: fixed;
  display: flex;
  top: 50%;
  flex-direction: column;
  justify-content: center;
}

.bottombutton1 nav ul {
  list-style: none;
  padding: 0;
}

.bottombutton1 nav ul li a {
  width: 100%;
  background-color: unset;
  color: unset;
  background-color: whitesmoke;
  padding: 0.5em;
  margin: 0.1em;
  text-align: center;
  font-size: x-small;
}

.bottombutton1 nav ul li a:hover {
  color: cadetblue;
  text-decoration: underline;
}

.door {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOGO */

.my-logo {
  display: flex;
  justify-content: center;
  height: 150px;
}

.my-logo h1 {
  display: flex;
  align-items: center;
}

.my-logo a {
  padding: 0;
}

.my-logo img {
  width: 100px;
  display: block;
  margin: 0 auto;
  transition: transform .2s;
}

.my-logo img:hover {
  transform: scale(1.1);
}

.archive .wrap .container .content-area .item {
  max-width: 400px;
}

/* BOUTON MENU */

.menub {
  visibility: hidden;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  position: relative;
  top: -10px;
  width: 100%;
}
.line {
  fill: none;
  stroke: #ac9622;
  stroke-width: 6;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line1 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
.line2 {
  stroke-dasharray: 60 60;
  stroke-width: 6;
}
.line3 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
.opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
.opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: 6;
}
.opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}

/* MENU */

.menu-menu-principal-container {
  padding: 5% 2%;
}

.menu-menu-principal-container ul {
  list-style: none;
  display: flex;
}

.menu-menu-principal-container ul {
  padding-left: 0;
  justify-content: space-evenly;
  margin: 0 auto;
}

.menu-menu-principal-container ul li {
  padding: 10px 2%;
  border-right: 1px solid #ccc;
  text-align: center;
  display: flex;
}

.menu-menu-principal-container ul li a {
  font-size: xx-small;
}

.menu-menu-principal-container ul li a:hover {
  background-color: #ccc;
  color: #333;
}

.menu-menu-principal-container ul li:last-child {
  border-right: none;
}

.menu-menu-principal-container ul li .sub-menu {
  visibility: hidden;
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: initial;
  margin-top: 30px;
  box-shadow: initial;
  border: initial;
  padding: 10px;
}

.menu-menu-principal-container ul li .sub-menu li {
  border: initial;
  margin: 0;
  background-color: initial;
  width: 100%;
  box-shadow: initial;
  border-radius: initial;
  background-color: rgba(0,0,0,0);
  border-bottom: 1px dotted #cccccc;
  padding: 2% 2%;
  text-align: initial;
  width: 100%;
  justify-content: center;
}

.menu-menu-principal-container ul li .sub-menu li:last-child {
  border-bottom: initial;
}

.menu-menu-principal-container ul li .sub-menu li:hover {
  z-index: 1;
}

.menu-menu-principal-container ul li .sub-menu li a{
  width: 100%;
  border-bottom: initial;
  text-align: left;
}

.menu-menu-principal-container li:hover > .sub-menu,
.menu-menu-principal-container li ul:hover {
  visibility: visible;
}