/*
Theme Name: Thème Les Chtis Drôles
Theme URI: https://devsense.fr
Author: DevSense - Anthony SLIMANI
Author URI: https://devsense.fr
Description: Thème Les Chtis Drôles pour wordpress.
Version: 1.0
*/

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.header {
  background-color: #333;
  color: #fff;
  padding: 15px;
  text-align: center;
}

.content {
  padding: 20px;
}

/* Footer Styles */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  margin: 0;
  border: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.footer * {
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto; /* Centrer le conteneur */
  padding: 0 20px; /* Padding intérieur */
}

#tribe-events-footer {
  margin-bottom: 50px;
}

.tribe-events-sub-nav {
  background: none;
}

.tribe-events-nav-next a:hover,
.tribe-events-nav-previous a:hover {
  text-decoration: none;
  color: inherit;
  background-color: inherit;
}

.tribe-events-c-top-bar__nav-list {
  background-color: transparent; /* Retire la couleur de fond */
}

.tribe-events-c-top-bar__nav-list a:hover {
  text-decoration: none; /* Enlève le soulignement */
  color: inherit; /* Conserve la couleur du texte telle qu'elle est définie par le parent */
  background-color: transparent; /* Retire la couleur de fond au survol */
}

.tribe-events-c-top-bar__nav-list a {
  background-color: transparent; /* Assure que la couleur de fond est transparente */
}

.tribe-events-c-nav__list {
  background-color: transparent; /* Retire la couleur de fond */
}

.tribe-events-c-nav__list a:hover {
  text-decoration: none; /* Enlève le soulignement */
  color: inherit; /* Conserve la couleur du texte telle qu'elle est définie par le parent */
  background-color: transparent; /* Retire la couleur de fond au survol */
}

.tribe-events-c-nav__list a {
  background-color: transparent; /* Assure que la couleur de fond est transparente */
}

.tribe-events-calendar-month__day-cell--desktop {
  background-color: #fff; /* Changer la couleur de fond */
  border-color: #000; /* Changer la couleur de bordure */
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

form > * {
  outline: none;
}

a {
  text-decoration: none;
  color: white;
}

ul,
li {
  list-style: none;
}

/* --- Clearfix for floated Elements --- */

/* I never ended up using this for the nav-bar */
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

.small-caps {
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 0.7rem;
}

.bolder {
  font-weight: bolder;
}

.lighter {
  font-weight: lighter;
}

.text-center {
  text-align: center;
}

.site-logo {
  font-size: 2rem;
  font-weight: bolder;
  text-transform: uppercase;
  letter-spacing: 0.8rem;
  margin: 0 1rem;
}

/* --- Elements --- */

.container {
  /* max-width: 1200px; */
  margin: 0 auto; /* centered horizontally  */
}

.nav-bar {
  position: fixed; /* lock to top */
  top: 0;
  width: 100%; /* full width */
  background-color: #14b0bf;
  height: 150px;
  z-index: 2;
}

.nav-bar .container {
  display: flex;
  align-items: center; /* vertically center */
  height: 100%;
}

.sub-menu  a {
  color: #14b0bf; 
}
/* Hide checkbox that controls Mobile Nav Button*/
#drop-down-cbox {
  display: none;
}
.dropdown-menu{
  margin-left: 10px;
}
/* Mobile Nav Button */
#drop-down-cbox + label {
  position: relative;
  display: none;
  width: 60px;
  height: 60px;
  overflow: hidden;
  background-color: transparent;
  transition: all 300ms ease-in-out;
}

/* Mobile Nav Button Bars */
#drop-down-cbox + label span {
  position: absolute;
  display: block;
  background-color: white;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  left: 50%;
  transform: translate(-50%, -50%); /* centering trick */
  transition: all 300ms ease-in-out;
}

/* Mobile Nav Button Bars Invididually */
#drop-down-cbox + label span:nth-child(1) {
  top: 35%; /* evenly spaced */
}
#drop-down-cbox + label span:nth-child(2) {
  top: 50%; /* evenly spaced */
}
#drop-down-cbox + label span:nth-child(3) {
  top: 65%; /* evenly spaced */
}

#drop-down-cbox:checked + label span {
  background-color: white;
}

/* Transform the bars into an 'X' */
#drop-down-cbox:checked + label span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg); /* center, then rotate */
}
#drop-down-cbox:checked + label span:nth-child(2) {
  left: -150%; /* move center bar out of the picture */
}
#drop-down-cbox:checked + label span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg); /* center, then rotate */
}

/* Main Nav Desktop */
.main-nav {
  flex-grow: 1; /* fill remaining space */
  display: flex;
  justify-content: space-around; /* evenly space items */
  align-items: center; /* center vertically */
}

.main-nav li {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 60px; /* vertically center text, matches height */
  text-align: center;
}

.main-nav li a,
.main-nav li span {
  display: block;
  width: 100%;
  height: 100%;
}

.main-nav li a:hover,
.main-nav li span:hover {
  border-bottom: 4px solid #666;
}

.main-nav li > ul {
  max-height: 0px; /* max-height instead of height, height can't transition to auto */
  transition: all 500ms ease-in-out;
  overflow: hidden; /* make it so nav doesn't show beyond the 0px max-height */
}

.main-nav li:hover > ul {
  max-height: 180px; /* height x how many links */
  height: auto;
}

.main-nav li > ul li a,
.main-nav li > ul li span {
  background-color: white;
}

.main-nav li > ul li a:hover,
.main-nav li > ul li span:hover {
  background-color: #666;
  color: white;
  border-bottom: none;
}

.main-nav .site-name {
  color: black;
  font-size: 1.2em; /* Taille du texte réduite pour les écrans mobiles */
  margin-left: 0; /* Retirer l'espacement latéral sur mobile */
  margin-top: 10px; /* Ajouter un espace au-dessus du nom du site */
  text-align: center; /* Centrer le texte */
  width: 100%; /* Assurez-vous que l'élément prend toute la largeur */
}

/* Tablet and Mobile View */
@media (max-width: 768px) {
  .site-logo {
    font-size: 1.5rem;
    flex-grow: 1;
    text-align: center;
    display: none;
  }

  #drop-down-cbox + label {
    display: block; /* unhide the mobile nav button */
  }

  .main-nav {
    max-height: 0px; /* same vertical grow transition trick as above */
    height: calc(
      100vh - 60px
    ); /* take full vertical viewport height, -60px for nav-bar */
    overflow: hidden;
    position: absolute;
    top: 60px;
    line-height: auto;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #14b0bf;
    transition: all 500ms ease-in-out;
  }

  #drop-down-cbox:checked ~ .main-nav {
    max-height: calc(100vh - 60px);
    transition: all 500ms ease-in-out;
  }

  .main-nav li span {
    position: relative;
  }

  /* design and position downward arrow */
  .main-nav li span:after {
    content: "";
    width: 6px;
    height: 6px;
    position: absolute;
    top: 50%;
    margin-top: -2px;
    margin-left: 8px;
    transform: translateY(-50%) rotate(-45deg);
    border-left: 2px solid #666;
    border-bottom: 2px solid #666;
  }

  .main-nav li a:hover,
  .main-nav li span:hover {
    background-color: #666;
    color: white;
    border-bottom: none;
  }

  .sub-menu  a:hover {
    color: #14b0bf; 
  }

  .main-nav li > ul li {
    position: relative;
  }

  .main-nav li > ul li a,
  .main-nav li > ul li span {
    background-color: #eee;
  }
}
