/*
Theme Name: Dsbd
Author: David DI SAN BONIFACIO
Author URI: https://dsbd.fr
Description: Thème créé par l'agence Dsbd
Requires at least: WordPress 5.0
Version 1.0
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------

	0. 	CSS Reset
	1. 	Document Setup
	2. 	Element Base
	3.	Site Header
    4.  Site Footer		
	7. 	Page Home
	8.	Page Archives Woocommerce
	9.	Page Single Product Woocommerce
	14.	Cart
	15.	Cart checkout
	17.	Search template
	18. Error 404
	19. Site Footer
	20. Responsivity / Media Queries

----------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */

/*	0. CSS Reset
/* -------------------------------------------------------------------------- */

/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
  }
  /*
    2. Remove default margin
  */
  * {
    margin: 0;
  }
  /*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  /*
    5. Improve media defaults
  */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    width: 100%;
  }
  /*
    6. Remove built-in form typography styles
  */
  input, button, textarea, select {
    font: inherit;
  }
  /*
    7. Avoid text overflows
  */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    margin-bottom: 0;
  }
  /*
    8. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }

table{
  width: 100%;
}

/*------------------------------------------------------------------
# Font face
-------------------------------------------------------------------**/

@font-face {
    font-family: 'Ubuntu';
    src: url('/wp-content/themes/dsbd/fonts/Ubuntu/Ubuntu-Regular.ttf') format('ttf'),
}

/*------------------------------------------------------------------
# Variables
-------------------------------------------------------------------**/

/* Variables pour les couleurs */
:root {
    --clr-primary: #f7a920;
    --clr-secondary: #6c757d;
    --background-color: #f8f9fa;
    --clr-gradient: linear-gradient(90deg, #ef8e29 , #fbcc0f);
    --text-color: #333;
  }
  
/* Variables pour les polices */
:root {
    --main-font: "Libre Baskerville", serif;
    --heading-font: 'Abril Fatface', sans-serif;
}

/*------------------------------------------------------------------
# Typography
-------------------------------------------------------------------**/

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark p {
    color: #fff
}

h1.big-title {
    font-size: 90px;
    font-style: normal;
    font-weight: 700;
    line-height: 100px;
    margin-left: -7px;
    margin-top: 20px;
    margin-bottom: 69px;
    padding-right: 10px;
}


h1 {
    font-size: 3.5rem;
    line-height: 120%;
    font-weight: bold;
    font-family: "Rubik", serif;
}

h2 {
    font-size: 3rem;
    line-height: 120%;
    font-weight: bold;
    font-family: "Rubik", serif;
}

h3 {
    font-size: 2.5rem;
    line-height: 120%;
    font-weight: bold;
}

h4 {
    font-size: 2rem;
    line-height: 130%;
    font-weight: bold;
}

h5 {
    font-size: 1.5rem;
    line-height: 140%;
    font-weight: bold;
}

h6 {
    font-size: 1rem;
    line-height: 150%;
    font-weight: bold;
}

p {
  line-height: 120%;
  margin-bottom: 1rem;
}


@media screen and (max-width: 770px) {
  h1 {
    font-size: 2.5rem;
    line-height: 120%;
    font-weight: bold;
  }

  h2 {
      font-size: 2.25rem;
      line-height: 120%;
      font-weight: bold;
  }

  h3 {
      font-size: 2rem;
      line-height: 120%;
      font-weight: bold;
  }

  h4 {
      font-size: 1.5rem;
      line-height: 120%;
      font-weight: bold;
  }

  h5 {
      font-size: 1.25rem;
      line-height: 140%;
      font-weight: bold;
  }

  h6 {
      font-size: 1.125rem;
      line-height: 140%;
      font-weight: bold;
  }

  p {
    font-size: 1rem;
    line-height: 140%;
}

}

a{
    color: inherit;
    text-decoration: none;
}

a:hover{
    color: inherit;
}

img{
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
}

section{
  position: relative;
}

/*------------------------------------------------------------------
# Google fonts
-------------------------------------------------------------------**/

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

/*------------------------------------------------------------------
# Header
-------------------------------------------------------------------**/

header.transparent{
  position: absolute;
  width: 100%;
  background-color: transparent;
  z-index: 9999999;
  color: white;
}

header.transparent .sub-menu{
  color: black;
}

header.sticky .header-menu ul li{
  height: 60px;
}

header.sticky .header-menu ul .tickets{
  height: max-content;
} 

header.sticky .header-menu ul .menu-item-has-children:hover .sub-menu{
  top: 60px;
}

@media screen and (max-width: 770px){
  header.sticky .header-menu ul li{
    height: auto;
  }
}


/*------------------------------------------------------------------
# Menu
-------------------------------------------------------------------**/

.header-menu{
    height: 100%;
}

/**** Desktop ****/

.desktop-menu .sub-menu{
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 1);
  width: 100vw;
  left: 0;
  top: 70px;
  opacity: 0;
  transition: all 0.2s ease-in;
}

.admin-bar .desktop-menu .sub-menu{
  top: calc(70px);
}

.admin-bar.home .desktop-menu .sub-menu{
  top: calc(70px);
}

.header-menu.desktop-menu .header-menu{
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  margin: 0;
}

.header-menu.desktop-menu  #menu-header{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.header-menu.desktop-menu ul li{
  margin: auto 2rem;
  font-size: 0.9rem;
  padding: 0;
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 0 1rem;
  height: 70px;
  display: flex;
  align-items: center;
}

.header-menu.desktop-menu.highlight-background {
  background-color: white;
  color: black;
}

.header-menu.desktop-menu .menu-item-has-children::after{
  content: '';
  border: solid black;
  border-width: 0 2px 2px 0;
  padding: 2px;
  display: inline;
  margin-left: 0.5rem;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.2s ease-in-out;
}

.header-menu.desktop-menu ul .menu-item-has-children:hover::after{
  transform: rotate(135deg);
  -webkit-transform: rotate(-135deg);
  transition: transform 0.2s ease-in-out;
}

header.transparent .header-menu.desktop-menu .menu-item-has-children::after{
  content: '';
  border: solid white;
  border-width: 0 2px 2px 0;
  padding: 2px;
}

header.transparent.sticky .header-menu.desktop-menu .menu-item-has-children::after,
header.transparent .header-menu.desktop-menu.highlight-background .menu-item-has-children::after{
  content: '';
  border: solid black;
  border-width: 0 2px 2px 0;
  padding: 2px;
}


.header-menu.desktop-menu ul .menu-item-has-children:hover .sub-menu{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1.5rem 5%;
  z-index: 9999;
  opacity: 1;
  transition: all 0.2s ease-in-out;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100vw;
  gap: 20px;
}

.header-menu.desktop-menu ul .menu-item-has-children:hover .sub-menu li{
  height: 100%;
  margin: 0;
}

.header-menu.desktop-menu .sub-menu a{
  display: flex;
  transition: all 0.2s ease-in;
  height: 100%;
}

.header-menu .sub-menu a .menu-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 1rem;
  font-weight: 700;
  flex-basis: 120%;
}

.header-menu.desktop-menu .sub-menu li a .menu-thumbnail{
  flex-basis: 80%;
}

.header-menu.desktop-menu .sub-menu li a .menu-thumbnail img{
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  height: 100%;
}

.header-menu.desktop-menu .sub-menu a .menu-content .menu-excerpt{
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.header-menu.desktop-menu .logo{
  margin-top: -10px;
  width: 150px;
}

/**** Sticky ****/

header.sticky{
  position: fixed;
  background: white;
  color: black;
  width: 100vw;
  z-index: 999999;
}

header.sticky .header-menu.desktop-menu .sub-menu{
  top: 80px;
}

@media screen and (max-width: 770px){

  .header-menu.mobile-menu li{
    padding: 0;
    list-style: none;
  }
  
  .menu-item-has-children::after{
    
  }

  .header-menu.mobile-menu ul{
    padding: 0;
  }

  .header-menu.mobile-menu ul li{
    height: auto;
  }

  .header-menu.mobile-menu .sub-menu {
    display: none;
  }

}

/**** Mobile ****/

/* Styles pour l'icône burger et la croix */
.burger-icon,
.close-icon {
  cursor: pointer;
}

.close-icon {
  display: none;
  position: absolute;
  z-index: 9;
  right: 1rem;
  top: 30px;
}

.mobile-menu{
    display: none;
    position: absolute;
    left: 0;
    max-height: 100vh;
    overflow-y: auto;
    width: 100vw;
    list-style: none;
    background: white;
    z-index: 99;
    top: 88px;
    padding-left: 1rem;
    height: 100vh;
}

.mobile-menu.active{
    display: flex;
}

.mobile-menu.active + .mobile-menu-toggle .burger-icon {
  display: none; /* Masquer l'icône burger lorsque le menu est ouvert */
}

.mobile-menu.active + .mobile-menu-toggle .close-icon {
  display: block; /* Afficher la croix lorsque le menu est ouvert */
}

/* Styles pour les trois barres de l'icône burger */
.burger-icon .bar,
.close-icon .bar {
  width: 30px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: transform 0.3s; /* Animation de rotation pour la croix */
}
.close-icon .bar:nth-child(1) {
  transform: rotate(45deg);
}
.close-icon .bar:nth-child(2) {
  transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------- */

/*	Infos banner
/* -------------------------------------------------------------------------- */

.infos-banner{
  width: 100%;
  position: relative;
  background-color: black;
  color: white;
  text-align: center;
}

/* -------------------------------------------------------------------------- */

/*	Bootstrap reset
/* -------------------------------------------------------------------------- */

.rounded-5{
  border-radius: 0.5rem;
}

.card{
  border: none;
}

.mb-6{
  margin-bottom: 8rem !important;
}

@media screen and (max-width: 770px) {
  .mb-6{
    margin-bottom: 4rem !important;
  }

  .w-75{
    width: 100% !important;
  }
}
/* -------------------------------------------------------------------------- */

/*	Components
/* -------------------------------------------------------------------------- */

.button{
  /* border-radius: 30px; */
  padding: 0.5rem 1.2rem !important;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: 0.2s all ease-in-out;
  width: max-content;
  font-weight: 500;
  height: max-content !important;
  border-radius: 8px;
}

.button.line{
  border: 1px solid white;
  color: white;
}

.button.line:hover{
  border: 1px solid white;
  color: var(--clr-primary);
  background-color: white;
}

.button.full{
  background-color: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  transition: 0.2s all ease-in-out;
  color: white;
}

.button.empty{
  background: white;
  backdrop-filter: blur(1px);
  transition: 0.2s all ease-in-out;
  border: 1px solid transparent;
  color: var(--clr-primary);
}

.button:hover{
  transform: scale(1.05);
  border: 1px solid transparent;
  color: inherit;
  transition: 0.2s all ease-in-out;
  color: white;
}

.button.empty:hover{
  color: var(--clr-primary);
}

.button.link{
  border-radius: 0;
  padding: 0;
  color: inherit;
  padding-right: 30px !important;
}

.button.link::after{
  content: '\003E';
  padding-left: 5px;
  color: inherit;
  transition: all 0.2s ease-in-out;
  position: absolute;
  right: 15px;
}

.button.link:hover{
  border: none;
  transform: scale(1);
  text-decoration: underline;
}

.button.link:hover::after{
  transition: all 0.2s ease-in-out;
  right: 10px;
  text-decoration: none;
}

.card.box-shadow-light{
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.2);
}

.card.box-shadow-spread{
  box-shadow: 0 0 50px 0px rgba(0, 0, 0, 0.1);
}

.text-white{
  color: white;
}

.bg-cover{
  background-size: cover;
}

.bg-center{
  background-position: center;
}

.fit-cover{
  object-fit: cover;
}

.overlay{
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: black;
  opacity: 0.3;
  transition: 0.2s all ease-in-out;
  border-radius: 16px;
}

.z-index-9{
  z-index: 9;
}

.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}

.arrow .right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.arrow .left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.arrow .up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.arrow .down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.sticky-100{
  position: sticky;
  height: max-content;
  top: 100px;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
  background-color: transparent;
  border-bottom: 1px solid #333;  
  border-radius: 0;
  color: #333;
}

.tag{
  background: #f1f1f1;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: block;
  width: max-content;
  height: max-content;
  flex: none;
}

.date{
  font-size: 0.8rem;
  margin-left: 10px;
  display: flex;
}

.date li{
  width: max-content;
  display: flex;
}

.date p{
  line-height: 90%;
  margin-bottom: 0.2rem;
}

.separator:last-child{
  display: none;
}

.btn-rounded{
  width: max-content; 
  border : 1px solid black;
  border-radius: 20px;
  background-color: transparent;
  transition: all 200ms ease-in-out;
}

.btn-rounded:hover{
  width: max-content; 
  border : 1px solid black;
  background-color: black;
  border-radius: 20px;
  color: white;
  transition: all 200ms ease-in-out;
}

.btn-rounded.active{
  background-color: black;
  color: white;
}

.shape-1{
  -webkit-mask: url('/wp-content/uploads/2024/03/round-shape-brown.svg') center / contain no-repeat;
  mask: url('/wp-content/uploads/2024/03/round-shape-brown.svg') center / contain no-repeat;
}


.shape-2{
  -webkit-mask: url('/wp-content/uploads/2024/03/round-shape-2.svg') center / contain no-repeat;
  mask: url('/wp-content/uploads/2024/03/round-shape-2.svg') center / contain no-repeat;
}

.shape-3{
  -webkit-mask: url('/wp-content/uploads/2024/03/round-shape-3.svg') center / contain no-repeat;
  mask: url('/wp-content/uploads/2024/03/round-shape-3.svg') center / contain no-repeat;
}

@media screen and (max-width: 770px){
  .shape-1, .shape-2, .shape-3{
    -webkit-mask: none;
    mask: none;
  }
}

/* -------------------------------------------------------------------------- */

/*	Swiper reset
/* -------------------------------------------------------------------------- */

.swiper-wrapper{
  box-sizing: inherit;
}

.swiper-slide.col-10{
  width: 80%;
}

.swiper-button-next, .swiper-button-prev{
  color: black;
}

.swiper-button-next::after, .swiper-button-prev::after{
  font-size: 1.2rem;
}

.swiper-pagination-bullet-active{
  background: var(--clr-primary);
}

@media screen and (min-width: 768px){
  .swiper-slide.col-md-3{
    width: 30%;
  }
}

/* -------------------------------------------------------------------------- */

/*	Hero
/* -------------------------------------------------------------------------- */

.hero{
  height: 100vh;
  width: 100%;
}

.hero h1{
  font-size: clamp(2rem, 10vw, 4rem);
  text-transform: uppercase;
  font-weight: 400;
}

.hero video{
  object-fit: cover;
}

.hero .edito{
  z-index: 9;
  color: white;
}

.hero .subtitle{
  max-width: 500px;
  text-align: center;
  font-weight: 700;
}

/* -------------------------------------------------------------------------- */

/*	Text center
/* -------------------------------------------------------------------------- */

.text-center .top-title{
  width: max-content; 
  border : 1px solid black;
  border-radius: 20px;
}

@media screen and (max-width: 770px){
  .text-center{
    text-align: left !important;
  }
}


/* -------------------------------------------------------------------------- */

/*	3 cards
/* -------------------------------------------------------------------------- */

.cards-3 .card{
  width: 100%;
  aspect-ratio: 1/1;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: 0.2s all ease-in-out;
}

.cards-3 .card .content{
  color: white;
  border-radius: 0 0 0.5rem 0.5rem;
  text-align: center;
}

.cards-3 .card:hover{
  transition: 0.2s all ease-in-out;
}

.cards-3 .card .content .title{
  transition: 0.2s all ease-in-out;
  position: relative;
  margin: 0;
}

.cards-3 .card:hover .content .title{
  position: relative;
}

.cards-3 .card .text{
  display: none;
  margin: 0;
  opacity: 0;
  transition: 0.4s all ease-in-out;
  margin: 1rem 0;
}

.cards-3 .card:hover .text{
  display: block;
  opacity: 1;
  transition: 0.4s all ease-in-out;
  position: relative;
}

.cards-3 .card .button{
  display: none;
  margin: 0;
  opacity: 0;
  transition: 0.4s all ease-in-out;
}

.cards-3 .card:hover .button{
  display: block;
  opacity: 1;
  transition: 0.4s all ease-in-out;
}

.cards-3 .overlay{
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: black;
  opacity: 0.3;
  transition: 0.2s all ease-in-out;
  border-radius: 0.5rem 0.5rem;
}

.cards-3 .card:hover .overlay{
  opacity: 0.6;
  transition: 0.2s all ease-in-out;
}

@media screen and (max-width: 1200px) {
  .cards-3 .card .content .title{
    font-size: 1rem;
  }
  .cards-3 .card .content .text{
    font-size: 14px;
  }
}

/* -------------------------------------------------------------------------- */

/*	2 cards
/* -------------------------------------------------------------------------- */

.cards-2 .card img{
  aspect-ratio: 16/10;
  object-fit: cover;
}

.cards-2 .card{
  height: 100%;
}

.cards-2 .card .button{
  margin-top: auto;
}

@media screen and (max-width: 770px){
  .cards-3 .row{
    flex-wrap: nowrap;
    overflow: scroll;
  }
}

/* -------------------------------------------------------------------------- */

/* Cards picto thirds
/* -------------------------------------------------------------------------- */

.cards-picto-third .picto{
  border-radius: 50%;
  height: max-content;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid black;
}

/* -------------------------------------------------------------------------- */

/*	Scrolling banner
/* -------------------------------------------------------------------------- */

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scroller[data-animated="true"] {
  overflow: hidden;
  /* -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent); */
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 60s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

.tag-list {
  margin: 0;
  padding-inline: 0;
  list-style: none;
}

.tag-list li{
  font-size: 3.5rem;
  font-weight: bold;
}

/* -------------------------------------------------------------------------- */

/*	Activities slider
/* -------------------------------------------------------------------------- */


@media screen and (max-width: 770px){
  .swiper-activities .heading{
    display: block !important;
  }
  .swiper-activities .button{
    position: relative !important;
    right: 0 !important;
    padding: 0 !important;
  }
  .swiper-activities .button.link::after{
    position: relative;
  }
}

/* -------------------------------------------------------------------------- */

/*	CTA
/* -------------------------------------------------------------------------- */

.cta .container{
  z-index: 9;
}

.cta .bg-cover{
  border-radius: 16px;
}

.brachiosaure{
  mix-blend-mode: multiply;
  bottom: -60px;
  height: calc(100% + 20vw);
  max-height: calc(100% + 10rem);
  width: auto;
  left: -150px;
  opacity: 0.1;
}

.cta .text-center{
  text-align: center !important;
}


/* -------------------------------------------------------------------------- */

/*	FAQ
/* -------------------------------------------------------------------------- */

.accordion-button:not(.collapsed){
  color: white;
}

.accordion-button:not(.collapsed){
  background-color: var(--clr-primary);
}

.accordion-button:not(.collapsed)::after{
  filter: brightness(200);
}

/* -------------------------------------------------------------------------- */

/*	Carousel
/* -------------------------------------------------------------------------- */

.carousel .swiper-slide{
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 60%;
}
.carousel .swiper-slide.full{
  width: 100%;
}

.carousel .swiper-slide img{
  aspect-ratio: 16/9;
  object-fit: cover;
}

.fancybox__container{
  z-index: 999999;
}

@media screen and (max-width: 770px) {
  .carousel .swiper-slide img{
    aspect-ratio: 16/15;
  }
}

/* -------------------------------------------------------------------------- */

/*	Long text
/* -------------------------------------------------------------------------- */

.long-text .sticky-100{
  position: sticky;
  top: 100px;
  height: max-content;
}

.long-text .amonite{
  position: absolute;
  bottom: -200px;
  width: 250px;
  mix-blend-mode: multiply;
  opacity: 0.2;
}

/* -------------------------------------------------------------------------- */

/*	Schools
/* -------------------------------------------------------------------------- */

@media screen and (max-width: 770px) {
  .button-group .container{
    overflow: auto;
    justify-content: flex-start !important;
  }
  
  .button-group .container button{
    width: max-content;
    text-wrap: nowrap;
    flex-shrink: 0;
  }
}


/* -------------------------------------------------------------------------- */

/*	Grid third
/* -------------------------------------------------------------------------- */

.grid-component .container{
  display: grid;
  grid-template-columns: 5fr 5fr 5fr;
  gap: 20px;
}

.grid-component .box-three{
  background-color: #f1f1f1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  grid-column: 3;
  grid-row-start: 1;
}

@media screen and (max-width: 770px){
  .grid-component .container{
    display: block;
  }

  .grid-component .box{
    margin-bottom: 2rem;
  }
}

/* -------------------------------------------------------------------------- */

/*	Illustration
/* -------------------------------------------------------------------------- */

.illustration{
  width: 100%;
  opacity: 0.2;
}

.illustration img{
  width: 400px;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

.illustration.left img{
  margin-right: auto;
}

.illustration.center img{
  margin-left: auto;
  margin-right: auto;
}

.illustration.right img{
  margin-left: auto;
}

@media screen and (max-width: 770px){
  .illustration img{
    width: 200px;
  }
  .illustration{
    display: none;
  }
}

/* -------------------------------------------------------------------------- */

/*	Activities list
/* -------------------------------------------------------------------------- */



/*----- Grid with filters ------*/
.activities-list .facetwp-selections ul{
  padding: 0;
}

.activities-list .facetwp-selections ul li{
  padding-bottom: 10px;
}

.activities-list .card h4{
  font-size: 1.3rem ;
}

.activities-list .active-filters{
  margin-bottom: 2rem;
  overflow: scroll;
}

.activities-list.facetwp-selection-value{
  display: flex;
  margin-right: 1rem;
  background: #f1f1f1;
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  white-space: nowrap;
}

.activities-list .facetwp-selections .facetwp-selection-value{
  padding-right: 30px !important;
  background-position: right 10px center !important;
}

.activities-list .facetwp-selection-label{
  display: none;
}

.activities-list .post-container .post-content{
  overflow: hidden;
}

.activities-list .post-hover-content{
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 500ms ease-in-out;
  pointer-events: none;
  background-color: var(--clr-primary);
}

.activities-list .post-container .post-content:hover .post-hover-content{
  visibility: visible;
  transform: translateY(0);
  transition: all 500ms ease-in-out;
  pointer-events: all;
}

/* ------ List ------ */

.activities-list .calendar {
  display: flex;
  flex-wrap: wrap;
}
.activities-list .year {
  margin-bottom: 20px;
}
.activities-list .year-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.activities-list .months {
  display: flex;
  flex-wrap: wrap;
}
.activities-list .month {
  margin: 5px;
  padding: 10px;
  border: 1px solid #000;
  cursor: pointer;
  text-transform: capitalize;
  border-radius: 8px;
}
.activities-list .month.active {
  background-color: black;
  color: white;
}
.activities-list .items {
  margin-top: 20px;
}
.activities-list .item {
  box-shadow: 2px 2px 20px 0px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  margin-bottom: 2rem !important;
}
.activities-list .item-day {
  display: flex;
  gap: 30px;
  margin-top: 10rem;
  margin-bottom: 2rem;
}
.activities-list .item-day:first-child{
  margin-top: 0;
}
.activities-list .item-day p {
  font-weight: bold;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.activities-list .item-day::after {
  content: '';
  margin-bottom: 5px;
  font-size: 1.5rem;
  border-bottom: 1px solid black;
  clear: both;
  height: 20px;
  position: relative;
  display: block;
  width: 100%;
}
.activities-list .item {
  margin-bottom: 10px;
}
.activities-list .item a{
  display: flex;
}
.activities-list .thumbnail{
  margin: auto;
}
.activities-list .thumbnail img{
  object-fit: cover;
  width: 150px;
  aspect-ratio: 1/1;
  border-radius: 8px;
}
.activities-list .time{
  width: 100px;
  height: 35px;
  border-radius: 0 0 8px 8px;
  background: var(--clr-primary);
  padding-top: 8px;
  text-align: center;
  padding-left: 0;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  margin-top: -2rem;
}
.activities-list .tag {
  border: none;
  margin-top: 10px;
  border-radius: 0 0 8px 8px;
  background: var(--clr-primary);
  padding-top: 8px;
  text-align: center;
  padding-left: 0;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
}
.activities-list .content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.activities-list .content .title{
  margin-top: 1rem;
}

.activities-list .content .excerpt{
  max-width: 700px;
}

.activities-list .tag {
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  display: inline-block;
  margin-top: 5px;
  color: black;
}

@media screen and (max-width: 773px){
  .activities-list .thumbnail{
      margin-left: 2rem;
      width: 120px;
  }

  .activities-list .item a{
      flex-direction: column;
  }

  .activities-list .item .content{
      order: 2;
  }

  .activities-list .item .thumbnail{
      width: 100%;
      order: 1;
      margin-left: 0;
  }

  .activities-list .item .thumbnail img{
    width: 100%;
    height: 100px;
  }

  .activities-list .time{
    margin-bottom: 2rem;
  }
}

/* -------------------------------------------------------------------------- */

/*	Single activite
/* -------------------------------------------------------------------------- */

.single-activity .content-container{
  top: 100px;
  height: max-content;
}

.single-activity .dates{
  overflow-x: auto;
}

/* -------------------------------------------------------------------------- */

/*	Scolaires list
/* -------------------------------------------------------------------------- */

.scolaires-list .public, .scolaires-list .themes{
  flex-grow: 2;
}

.scolaires-list .public select, .scolaires-list .themes select{
  width: 100%;
  height: 30px;
}

.scolaires-list .facetwp-facet-pagination{
  margin: auto;
  border: 1px solid var(--clr-primary);
  border-radius: 20px;
}

.scolaires-list .facetwp-facet-pagination button{
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
}

.scolaires-list .facetwp-facet-pagination button:hover{
  border: none;
  background: var(--clr-primary);
  border-radius: 20px;
  color: white;
}



/* -------------------------------------------------------------------------- */

/*	Top-banner
/* -------------------------------------------------------------------------- */

.top-banner img{
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.top-banner .content{
  color: white;
}

.top-banner .overlay{
  width: 100%;
  height: 100%;
  background: linear-gradient(900deg, black, transparent);
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
}

.macaron{
  position: absolute;
  bottom: -75px;
  right: 20%;
  background: black;
  border: 8px solid white;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  width: 150px;
  color: white;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 600;
  text-wrap: balance;
  transform: rotate(-15deg);
}

.macaron p{
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0;
}

@media screen and (max-width: 770px) {
  .macaron{
    max-width: 120px;
  }
  .macaron p{
    font-size: 0.8rem;
  }
}

/* -------------------------------------------------------------------------- */

/*	Cookies
/* -------------------------------------------------------------------------- */

.cky-btn-revisit-wrapper{
  background-color: var(--clr-primary) !important;
}

.cky-btn-preferences{
  border-color: var(--clr-primary) !important;
  color: var(--clr-primary) !important;
}

/* -------------------------------------------------------------------------- */

/*	WPML
/* -------------------------------------------------------------------------- */

.header-menu.desktop-menu ul .wpml-ls-item{
  position: relative;
}

.header-menu.desktop-menu ul .wpml-ls-item:hover .sub-menu{
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 70px;
  left: -10px;
  border-radius: 0 0 8px 8px;
}

.header-menu.desktop-menu ul .wpml-ls-item:hover .sub-menu li a .menu-content{
  display: none;
}

/* -------------------------------------------------------------------------- */

/*	Footer
/* -------------------------------------------------------------------------- */

footer ul{
  list-style: none;
  padding: 0;
}

footer #menu-copyright-footer{
  display: flex;
}


footer #menu-copyright-footer li{
  margin: 0 0.5rem;
}

footer .email{
  flex-grow: 1;
  margin-right: 1rem;
}

footer ul li, footer p{
  padding-bottom: 0.5rem;
  font-size: 0.8rem;
}

footer .optin{
  font-size: 12px;
  line-height: 150%;
}

footer .divider{
  border-top: 1px solid black;
}

footer .copyright{
  font-size: 0.9rem;
}

.newsletter-form{
  gap: 10px;
}

.newsletter-form input, .newsletter-form .submit{
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    border: 1px solid grey;
}


@media screen and (max-width:770px) {
  footer #menu-copyright-footer{
    flex-direction: column;
  }
  footer .copyright{
    flex-direction: column;
  }
  footer .copyright p{
    order: 2;
  }
  footer .partners{
    flex-wrap: wrap;
    justify-content: flex-start !important;
    align-items: center;
    width: 100% !important;
  }
  footer .partners img{
    width: 50px;
  }
}

/* -------------------------------------------------------------------------- */

/*	Responsivity
/* -------------------------------------------------------------------------- */

/* Tablets landscape */

@media screen and (max-width: 1199px) {
}

/* Tablets portrait */

@media screen and (max-width: 767px) {
    .desktop-menu{
        display: none;
    }

    .mobile-menu-toggle{
        display: block;
    }

    .header-menu ul{
        flex-direction: column;
    }

    .header-menu ul li{
        margin: 20px 0;
        position: relative;
        width: max-content;
        font-size: 1.2rem;
    }

    .header-menu ul li > a{
      display: flex;
    }

    .header-menu ul li.menu-item-has-children > a{
      position: relative;
      font-size: 1.2rem;
    }

    .header-menu ul li.menu-item-has-children.active > a::after{
      transform: rotate(-135deg);
      top: 12px;
    }

    .header-menu ul li.menu-item-has-children > a::after{
        content: '';
        box-sizing: border-box;
        display: block;
        height: 8px;
        width: 8px;
        border-style: solid;
        border-color: black;
        border-width: 0px 1px 1px 0px;
        transform: rotate(45deg);
        position: relative;
        right: -20px;
        top: 8px;
    }


    .header-menu.mobile-menu .sub-menu li{
      margin: 10px 0;
      font-size: 1rem;
    }

    .header-menu.mobile-menu .sub-menu.active {
      display: block;
    }
}

/* Mobile */

@media screen and (max-width: 599px) {
}

/* -------------------------------------------------------------------------- */

/*	WooCommerce - General items
/* -------------------------------------------------------------------------- */

.woocommerce span.onsale{
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-primary);
}

/* -------------------------------------------------------------------------- */

/*	WooCommerce - Single Page
/* -------------------------------------------------------------------------- */

.single-product .content-area{
  margin-bottom: 8rem;
}

.single-product .product{
  margin-top: 3rem;
}

.single-product select,
.single-product.woocommerce form .form-row select{
  border-radius: 2px;
  border: 1px solid #ccc;
  padding: 0.5rem;
}

.single-product .woocommerce-product-gallery__image{
  margin-bottom: 1rem;
}

.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2){
  margin-right: 1rem;
}

.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image:last-child{
  margin-right: 0;
}

.single-product .product_title{
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.single-product.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.single-product.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price{
  color: var(--clr-primary);
  margin-top: 1rem;
}

.single-product.woocommerce div.product form.cart .variations{
  margin-bottom: 0;
}

.single-product.woocommerce div.product form.cart .variations tr{
  display: flex;
  flex-direction: column;
}

.single-product.woocommerce div.product form.cart .variations select{
  width: 100%;
}

.single-product.woocommerce div.product form.cart .button{
  background-color: var(--clr-primary);
}

.single-product.woocommerce div.product form.cart div.quantity,
.single-product.woocommerce div.product form.cart .button{
  margin-top: 1rem;
}

.single-product h2{
  font-size: 2rem;
  margin-bottom: 1rem;
}

.single-product .product-type-variable .price{
  display: none;
}

.single-product .product-type-variable .woocommerce-variation-price .price{
  display: block;
}

.single-product .summary .product_meta{
  display: none;
}

.single-product .woocommerce-tabs{
  margin-bottom: 8rem;
}

.single-product .woocommerce-tabs #tab-title-additional_information,
.single-product .woocommerce-tabs #tab-title-woocommerce_events{
  display: none;
}

/* -------------------------------------------------------------------------- */

/*	WooCommerce - Order received page
/* -------------------------------------------------------------------------- */

.woocommerce-order-received h2{
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------- */

/*	WooCommerce - Checkout page
/* -------------------------------------------------------------------------- */

.woocommerce-checkout #order-notes {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/*  Cart Drawer
/* -------------------------------------------------------------------------- */

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.cart-drawer.active {
    transform: translateX(0);
}

/* Header */
.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.cart-drawer__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.cart-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    width: auto;
}

.cart-drawer__close:hover {
    color: var(--clr-primary);
    background: #f8f9fa;
}

/* Items */
.cart-drawer__items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-drawer__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.cart-drawer__item-image {
    width: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.cart-drawer__item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-drawer__item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cart-drawer__item-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.3;
}

.cart-drawer__item-name:hover {
    color: var(--clr-primary);
}

.cart-drawer__item-qty {
    font-size: 0.875rem;
    color: var(--clr-secondary);
}

.cart-drawer__item-meta {
    margin: 0.4rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    list-style: none;
    padding: 0;
}

.cart-drawer__item-meta-value {
    color: var(--clr-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

.cart-drawer__item-remove {
    flex-shrink: 0;
    align-self: flex-start;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    width: auto;
    margin-top: 2px;
}

.cart-drawer__item-remove:hover {
    color: #dc3545;
    background: #fff0f0;
}

.cart-drawer__item-remove:disabled {
    pointer-events: none;
}

.cart-drawer__empty {
    text-align: center;
    color: var(--clr-secondary);
    padding: 2rem 0;
    font-size: 0.95rem;
}

/* Footer */
.cart-drawer__footer {
    border-top: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-drawer__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color);
}

.cart-drawer__total-amount .woocommerce-Price-amount {
    color: var(--clr-primary);
}

.cart-drawer__actions {
    display: flex;
    gap: 0.75rem;
}

.cart-drawer__btn-cart,
.cart-drawer__btn-checkout {
    flex: 1;
    text-align: center;
    justify-content: center;
}

@media screen and (max-width: 480px) {
    .cart-drawer {
        width: 100vw;
    }
}

/* -------------------------------------------------------------------------- */
/*  FooEvents — Masquer les labels partout sur le front
/* -------------------------------------------------------------------------- */

/* Calendrier FullCalendar (FooEvents) */
.fooevents-event-time-label,
.fooevents-event-date-label,
.fooevents-event-label,
.fc-event-label,
[class*="fooevents-"] label,
[class*="fooevents-"] .label {
    display: none !important;
}

/* Liste d'événements FooEvents */
.fooevents-booking-summary .fooevents-booking-key,
.fooevents-event-details .fooevents-event-key,
.fooevents-event-details dt,
.fooevents-summary dt,
.fooevents-details dt,
.fooevents-event-info .key,
.fooevents-event-info label {
    display: none !important;
}

/* Single événement FooEvents */
#fooevents-checkout-attendee-info-val-trans strong{
  margin-right: 8px;
}

/* Panier WooCommerce natif et page checkout */
/* -----------------------------------------------------------------------
   FooEvents Calendar — vue liste FullCalendar (listWeek / listMonth)
   ----------------------------------------------------------------------- */

/* Colonne date */
.fc-list-heading-main{
  margin-right: 4px;
  text-transform: capitalize;
}

.fc-ltr .fc-list-heading-alt{
  float: none; 
}

/* Colonnes supplémentaires : Durée et Places */
.dsbd-fooevents-calendar .fc-list-table .dsbd-fc-duration,
.dsbd-fooevents-calendar .fc-list-table .dsbd-fc-stock {
    white-space: nowrap;
    text-align: center;
    width: 5rem;
    padding: .5rem .75rem;
    vertical-align: middle;
}

/* En-têtes des nouvelles colonnes (cellules des lignes de jour) */
.dsbd-fooevents-calendar .fc-list-table .dsbd-fc-col-hdr {
    white-space: nowrap;
    text-align: center;
    width: 5rem;
    padding: .4rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Stock épuisé */
.dsbd-fooevents-calendar .dsbd-fc-stock--empty {
    color: #c0392b;
    font-weight: 600;
}

/* -----------------------------------------------------------------------
   FooEvents Calendar — vue liste PHP (dsbd-calendar-list — shortcode fooevents_events_list)
   ----------------------------------------------------------------------- */

.dsbd-calendar-list {
    width: 100%;
}

.dsbd-calendar-day {
    margin-bottom: 2rem;
}

.dsbd-calendar-day__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
    margin: 0 0 .5rem;
    padding-bottom: .375rem;
    border-bottom: 2px solid currentColor;
}

.dsbd-calendar-day__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
}

.dsbd-calendar-day__table thead th {
    padding: .5rem .75rem;
    text-align: left;
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e0e0e0;
}

.dsbd-calendar-day__table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s ease;
}

.dsbd-calendar-day__table tbody tr:last-child {
    border-bottom: none;
}

.dsbd-calendar-day__table tbody tr:hover {
    background: #fafafa;
}

.dsbd-calendar-day__table td {
    padding: .625rem .75rem;
    vertical-align: middle;
}

/* Colonnes */
.dsbd-col-time     { white-space: nowrap; width: 6rem; }
.dsbd-col-event    { width: auto; }
.dsbd-col-duration { white-space: nowrap; width: 5rem; text-align: center; }
.dsbd-col-stock    { white-space: nowrap; width: 5rem; text-align: center; }

.dsbd-col-event a {
    text-decoration: none;
    color: inherit;
}

.dsbd-col-event a:hover {
    text-decoration: underline;
}

/* Événement épuisé */
.dsbd-calendar-event.fooevents_out_of_stock .dsbd-col-stock {
    color: #c0392b;
}

.dsbd-calendar-empty {
    color: #888;
    font-style: italic;
}

/* -------------------------------------------------------------------------- */
/*  FooEvents — Liste
/* -------------------------------------------------------------------------- */

.fc-button-group{
  display: flex;
  gap: .75em;
}

/* -----------------------------------------------------------------------
   WooCommerce — masquer les labels des méta-données panier / checkout
   ----------------------------------------------------------------------- */

.wc-item-meta .wc-item-meta-label,
.woocommerce-cart-form .wc-item-meta dt,
.woocommerce-checkout .wc-item-meta dt,
.cart_item .wc-item-meta dt,
.order_item .wc-item-meta dt {
    display: none !important;
}

/* Page order-received — message de confirmation billetterie */
.dsbd-thankyou-notice {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Page order-received — texte injecté par FooEvents (champ "Thank You Text" du produit) */
.dsbd-fooevents-thankyou p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}