
.sub-menu {
  display: none;
}

/****** HEADER ******/
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white-color);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 99;
}

@media (min-width: 782px) {
  header {
    height: 80px;
  }
}

header ul li {
  list-style-type: none;
}

/*** Logo ***/
.site-logo img.custom-logo {
  display: block;
  width: auto;
}

@media (min-width: 782px) {
  .site-logo img.custom-logo {
    height: 115px;
    transition: height 0.3s ease;
  }

  header.sticky .site-logo img.custom-logo {
    height: 70px;
  }

  .site-logo .custom-logo-link {
    position: absolute;
    top: 0;
    left: 32px;
    z-index: 999;
    border-radius: 200px;
    background-color: var(--white-color);
    padding: 10px;
    height: 140px;
    display: block;
    transition: height 0.3s ease;
  }

  header.sticky .site-logo .custom-logo-link {
    height: 0;
    padding: 5px;
  }
}

/*** Navigation ***/
.site-nav {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

@media (max-width: 781px) {
  .site-nav {
    gap: 15px;
  }
}

@media (min-width: 782px) {
  .site-nav {
    gap: 15px;
    font-size:80%;
  }
}

@media (min-width: 1300px) {
  
  .site-nav{
    gap: 30px;
    font-size:100%;
  }
}

/*** Menu principal ***/
.menu-menu_header-container,
.menu-principal {
  height: 100%;
}

.menu-principal {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}

@media (min-width: 992px) {
  .menu-principal .menu-item:not(.menu-ctc) {
    height: 100%;
    display: flex;
    align-items: center;
  }
}

.menu-principal .menu-item a {
  position: relative;
  z-index: 2;
  line-height: 1.6;
  font-weight: 500;
  transition: color 0.3s ease-out;
}

.menu-principal .menu-item:not(.menu-ctc) a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--green-dark-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.menu-principal .menu-item:not(.menu-ctc) a:hover::after {
  transform: scaleX(1);
}

.menu-item:not(.menu-ctc) > a:hover {
  color: var(--green-dark-color);
}

.current-menu-ancestor > a,
.current-menu-item > a,
.current-page-ancestor > a {
  color: var(--green-dark-color);
}

.current-menu-ancestor a::after,
.current-menu-ancestor .current-menu-item a::after {
  transform: scaleX(1);
}

/*** Sous-menus ***/
.menu-item-has-children {
  position: relative;
}

@media (min-width: 992px) {
  .menu-item-has-children:hover .sub-menu {
    display: flex;
    width: max-content;
    border: 1px solid var(--blue-light-color);
    border-radius: 0 0 6px 6px;
  }
}

.sub-menu {
  flex-direction: column;
  gap: 15px;
  position: absolute;
  z-index: 5;
  top: 100%;
  left: -28px;
  background-color: var(--white-color);
  padding: 20px 28px;
}

/*** Bouton boutique ***/
.menu-ctc {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: var(--btn-color);
  border-radius: 10px;
}

.menu-ctc::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--blue-dark-color);
  transition: all 0.4s ease-out;
  z-index: 0;
}

.menu-ctc:hover::after {
  left: 0;
}

.menu-ctc a, .menu-ctc a:visited {
  color: var(--white-color);
  padding: 8px;
  display: block;
}

.menu-ctc a:hover {
  color: var(--white-color);
}

/*** Menu téléphone, recherche et panier ***/
.menu-tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.menu-phone-number a {
  color: var(--green-dark-color);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
}

.search-toggle {
  cursor: pointer;
}

.search-toggle svg {
  width: 25px;
  height: 25px;
}

.espace li {
  list-style-type: none;
}

.espace a {
  font-weight: 500;
  color: var(--blue-dark-color);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease-out;
  height: 100%;
  width: 100%;
}

.espace svg {
  width: 25px;
  height: 25px;
}

@media (max-width: 781px) {
  .espace svg path {
    stroke: var(--green-dark-color);
  }
  .espace svg circle + path {
    stroke: var(--white-color);
  }

  .espace a span {
    display: none;
  }
}

@media (min-width: 782px) {
  .espace a {
    padding: 0 15px;
    font-size:0.7rem;
  }
  .espace svg{width:20px; height:20px;}
  .espace svg path {
    stroke: var(--blue-dark-color);
    transition: stroke 0.3s ease-out;
  }
  .espace svg circle + path {
    stroke: var(--white-color);
  }

  .espace:hover {
    background-color: var(--blue-dark-color);
  }

  .espace:hover svg path {
    stroke: var(--white-color);
  }

  .espace:hover a {
    color: var(--white-color);
  }
}

@media (min-width: 1300px) {
  .espace a {
    font-size: 0.875rem;
  }
  .espace svg{width:25px; height:25px;}
}


.espace img,
.shop-cart svg {
  height: 25px;
  width: 25px;
}

.shop-cart {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.cart-icon {
  position: relative;
  display: inline-block;
  width: 34px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--blue-mid-color);
  color: var(--green-dark-color);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
  border-radius: 50%;
  border: 1px solid var(--white-color);
  width: 18px;
  height: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.espace.logged{position:relative; font-weight:500; color:var(--blue-dark-color); display:flex; flex-direction:row; align-items:center; gap:8px; transition:color 0.3s ease-out; height:100%; padding:0;}
.espace.logged:hover{color:var(--white-color)}
.espace.logged:hover a{color:var(--blue-dark-color)}
.espace.logged > span{display:none;}
.espace-quicknav{display:none; position:absolute; top:100%; right:-30px; padding-top:15px; width:250px; z-index:5;}
.espace-quicknav-bg{position:relative; display:flex; background-color:var(--white-color); border:1px solid var(--blue-dark-color); border-radius:14px; color:var(--blue-dark-color); flex-direction:column; justify-content:center; padding:20px; line-height:1;}
.espace-quicknav-bg:before{content:""; height:20px; width:20px; background-color:var(--white-color); border:1px solid var(--blue-dark-color); border-right-color:var(--white-color); border-bottom-color:var(--white-color); rotate:45deg; position:absolute; top:-11px; right:30px;}
.espace-quicknav a{display:block; padding:10px;}
.espace.logged:hover .espace-quicknav a:hover{background-color:var(--blue-dark-color); color:var(--white-color);}
.espace.logged:hover .espace-quicknav{display:block;}
.espace-quicknav__user{width:40px; height:40px; background-color:var(--blue-light-color); border:1px solid var(--blue-dark-color); color:var(--blue-dark-color); font-size:80%; display:flex; justify-content:center; align-items:center; border-radius:50px; margin:0 auto 5px;}
.espace-quicknav__name{font-size:130%; font-weight:bold; margin:0 auto; text-align:center;}
.espace-quicknav__mail{font-size:80%; margin:0 auto 20px;}
.espace-quicknav__btn{padding:5px 0; margin-top:20px;}
.espace-quicknav__btn a{width:max-content; border:1px solid var(--blue-dark-color); padding:10px; font-size:80%;}

@media (min-width: 992px) {
  .espace {
    height: 100%;
    display: flex;
    align-items: center;
    background-color: var(--blue-mid-color);
    transition: background-color 0.3s ease-out;
  }
  .espace-quicknav{right:10px;}
  .espace.logged{padding:0 15px;}
  .espace.logged > span{display:block;}
}

/*** Recherche ***/
.menu-search-bar {
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 72px;
  padding: 10px 20px;
  background-color: var(--blue-dark-color);
  opacity: 0;
  visibility: hidden;

  z-index: 5;
}

@media (max-width: 781px) {
  .menu-search-bar {
    transform: translateY(-20px);
    top: 72px;
    left: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out,
      visibility 0s linear 0.3s;
  }

  .menu-search-bar.open {
    transform: translateY(0);
  }
}

@media (min-width: 782px) {
  .menu-search-bar {
    top: 50%;
    left: 50%;
    max-width: 500px;
    border-radius: 10px;
  }

  .menu-search-bar.open {
    transform: translate(-50%, -50%);
  }
}

.menu-search-bar.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.menu-search-bar form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.menu-search-bar button {
  width: 25px;
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
}

.menu-search-bar button svg path {
  stroke-width: 0.5px;
  stroke: var(--green-dark-color);
}

.menu-search-bar label {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-radius: 10px;
  padding: 5px 11px;
  background-color: var(--white-color);
  height: 42px;
  width: 100%;
}

.menu-search-bar input {
  font-family: var(--epilogue-font);
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--grey-color);
}

.menu-search-bar #search-close {
  cursor: pointer;
}

/*** Menu mobile ***/
@media (max-width: 1099px) {
  .site-nav{line-height:1;}
  .menu-phone-number a{display:block; font-size:0;}
  .menu-phone-number a:before{content:""; display:block; height:25px; width:25px; background:url(../images/phone.svg) scroll no-repeat center center / contain;}
}

@media (max-width: 991px) {
  header {
    padding: 0 20px;
  }

  .site-logo img {
    height: 72px;
  }

  .menu-principal{
    display: none;
  }

  /*** Icône menu burger ***/
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    width: 24px;
    height: 16px;
    cursor: pointer;
    order: 2;
  }

  .menu-toggle span {
    display: block;
    height: 1.25px;
    background-color: var(--green-dark-color);
    border-radius: 1px;
    transition: width 0.3s ease-out;
  }

  .menu-toggle span:last-child {
    width: 66.66%;
  }

  .menu-toggle span:first-child,
  .menu-toggle span:nth-child(2) {
    width: 100%;
  }

  .menu-toggle.active span:last-child {
    width: 100%;
  }

  /*** Menu volet ***/
  .menu-menu_header-container .menu-principal {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width:500px;
    background: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    padding: 15px 30px;
    z-index: 5;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    pointer-events: none;
  }

  .menu-menu_header-container.open .menu-principal {
    transform: translateX(0);
    pointer-events: auto;
  }

  .menu-menu_header-container.open .menu-principal::after {
    content: "";
    position: absolute;
    bottom: 75px;
    right: -100px;
    width: 250px;
    height: 250px;
    background-image: url(../images/goutte_02.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /*** Sous-menu volet ***/
  .menu-principal .menu-item:not(.menu-ctc).menu-item-has-children > a:after{content:""; height:15px; width:15px; background:url(../images/circle_arrow_green.svg) scroll no-repeat center / contain; position:relative; bottom:auto; left:auto; transform:none; margin-left:10px; display:inline-block; vertical-align:middle;}
  .menu-item-has-children .sub-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - 72px);
    background: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    padding: 15px 30px;
    z-index: 5;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    pointer-events: none;
  }

  .menu-item-has-children.open .sub-menu {
    transform: translateX(0);
    pointer-events: auto;
  }

  .sub-menu-back {
    font-family: var(--epilogue-font);
    color: var(--green-dark-color);
    outline: none;
    border: none;
    background: none;
    position: relative;
  }

  .sub-menu-back::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--green-dark-color);
  }

  .sub-menu-back-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 10px;
  }

  .sub-menu-back-icon {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 992px) {
  .menu-principal {
    display: flex;
  }
}

@media (max-width:450px) {
  header{padding:0 15px 0 0}
  .site-nav{gap:20px;}
}


.overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(2px);
}

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

/* Espacement */
@media (max-width: 781px) {
  .wp-block-spacer[style*="height:120px"] {
    height: 60px !important;
  }

  .wp-block-spacer[style*="height:80px"] {
    height: 40px !important;
  }

  .wp-block-spacer[style*="height:40px"] {
    height: 24px !important;
  }
}

/****** Bannière home ******/
.banner-home.wp-block-columns {
  position: relative;
  gap: 0;
}

@media (max-width: 781px) {
  .banner-home::after {
    background: url(../images/vague_mobile.svg);
    height: 80px;
  }
}

@media (min-width: 782px) {
  .banner-home::after {
    background: url(../images/vague.svg);
    height: 115px;
  }
}

.banner-home::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
}

.banner-home .wp-block-cover {
  overflow: hidden;
  position: relative;
}

.banner-home img.wp-block-cover__image-background {
  transition: transform 0.5s ease;
  will-change: transform;
}

.banner-home .wp-block-cover:hover img.wp-block-cover__image-background {
  transform: scale(1.05);
}

@media (max-width: 781px) {
  .banner-home .wp-block-cover {
    min-height: 450px;
    padding: 30px;
  }
}

@media (min-width: 782px) {
  .banner-home .wp-block-cover {
    min-height: 720px;
    padding: 60px 60px 140px 60px;
  }
}

.banner-home-content {
  padding: 36px;
  border-radius: 10px;
}

/****** Bannière en-tête ******/
.banner-hero.wp-block-cover,
.banner-hero.wp-block-group {
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 781px) {
  .banner-hero.wp-block-cover,
  .banner-hero.wp-block-group {
    min-height: 250px;
  }

  .banner-hero::after {
    background: url(../images/vague_mobile.svg);
    height: 90px;
  }
}

@media (min-width: 782px) {
  .banner-hero::after {
    background: url(../images/vague.svg);
    height: 115px;
  }
}

.banner-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 2;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
}

/****** Bannière en-tête mosaïque images ******/
@media (max-width: 781px) {
  .banner-hero-boutique h2 {
    margin-top: 40px;
  }

  .banner-hero .banner-hero-mosaique {
    display: none;
  }

  .banner-hero-boutique {
    padding-bottom: 80px;
  }
}

@media (min-width: 782px) {
  .banner-hero-boutique.wp-block-group {
    height: 500px;
  }

  .banner-hero-boutique .wp-block-columns {
    transform: translateY(-15%);
  }

  .banner-hero .banner-hero-mosaique .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .banner-hero-boutique-simple.wp-block-group {
    height: 350px;
    min-height: 350px;
  }

  .banner-hero-boutique-simple .wp-block-columns {
    transform: translateY(-25%);
  }

  .banner-hero-boutique-simple h2 {
    margin-bottom: 40px;
  }
}

.banner-hero .banner-hero-mosaique figure:nth-child(1) {
  margin-left: auto;
}

.banner-hero .banner-hero-mosaique figure:nth-child(2) {
  margin-left: auto;
  margin-right: auto;
}

.banner-hero .banner-hero-mosaique figure:nth-child(3) {
  margin-right: auto;
}

.banner-hero .banner-hero-mosaique img {
  width: 280px;
  height: 192px;
  border-radius: 20px;
}

/****** Fil d'ariane ******/
#breadcrumbs {
  position: relative;
  padding-bottom: 40px;
  z-index: 1;
}

nav#breadcrumbs ul {
  list-style: none;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
}

nav#breadcrumbs ul li > span {
  position: relative;
  transition: color 0.3s ease-out;
}

nav#breadcrumbs ul li > span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--blue-dark-color);
  bottom: -5px;
  left: 0;
  transition: background-color 0.3s ease-out;
}

#breadcrumbs li + li::before {
  font-size: 0.6875rem;
  content: ">";
  margin: 0 5px;
  color: var(--blue-dark-color);
}

nav#breadcrumbs ul a:hover {
  color: var(--green-dark-color);
}

/****** Pages internes : image d'en-tête ******/
.en-tete {
  position: relative;
  height: 550px;
  background-size: cover;
  background-position: center;
}

.en-tete::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

.separateur-vague img {
  position: absolute;
  height: 96px;
  width: 100%;
  bottom: -2px;
  object-fit: cover;
  object-position: top;
  z-index: 1;
}

/****** PAGES ESPACES ******/
/****** Top Bar Espaces ******/
@media (min-width: 782px) {
  .top-bar-espaces {
    position: relative;
    transform: translateY(-50%);
  }
}

.top-bar-espace-card {
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--blue-light-color);
}

.top-bar-espace-card h3 {
  text-transform: lowercase;
}

@media (max-width: 781px) {
  .top-bar-espaces.wp-block-columns {
    gap: 8px;
    margin-top: 20px;
  }

  .top-bar-espaces.wp-block-columns:not(.is-not-stacked-on-mobile)
    > .wp-block-column {
    flex-basis: calc(50% - 16px) !important;
  }

  .top-bar-espace-card {
    padding: 24px 8px;
  }
}

@media (min-width: 782px) {
  .top-bar-espace-card {
    padding: 20px 20px 30px 20px;
  }
}

/****** Pages internes : carte fixe ******/
.ctc-phone {
  min-height: 420px;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  z-index: 5;
}

.ctc-phone.fixed {
  z-index: 1000;
}

.ctc-phone h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
}

.ctc-phone p {
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 781px) {
  .columns-ctc-phone.wp-block-columns {
    gap: 20px !important;
  }

  .columns-ctc-phone > .wp-block-column:nth-child(1) {
    flex-basis: 100%;
    flex-grow: 0;
    padding-right: 0;
  }

  .columns-ctc-phone > .wp-block-column:nth-child(2) {
    flex-basis: 100%;
    flex-grow: 0;
  }
}

@media (min-width: 782px) {
  .columns-ctc-phone > .wp-block-column:nth-child(1) {
    flex-basis: 75%;
    flex-grow: 0;
    padding-right:60px;
  }

  .columns-ctc-phone > .wp-block-column:nth-child(2) {
    flex-basis: 25%;
    flex-grow: 0;
  }
  
  .ctc-phone{padding:20px;}
  .ctc-phone h2{font-size:1.1rem;}
  .ctc-phone p{font-size:0.8rem;}
  .ctc-phone .toggle {
    display: none;
  }
}

@media (min-width: 1200px) {
  .ctc-phone h2{font-size:1.7rem;}
  .ctc-phone p{font-size:0.9375rem;}
}

@media (min-width: 782px) and (max-width: 1024px) {
  .columns-ctc-phone.wp-block-columns {
    gap: 0 !important;
  }

  .columns-ctc-phone > .wp-block-column:nth-child(1) {
    flex-basis: 70%;
    flex-grow: 0;
    padding-right: 60px;
  }

  .columns-ctc-phone > .wp-block-column:nth-child(2) {
    flex-basis: 30%;
    flex-grow: 0;
  }
}

@media (min-width: 1200px) {
  .columns-ctc-phone.wp-block-columns {
    gap: 0 !important;
  }

  .columns-ctc-phone > .wp-block-column:nth-child(1) {
    flex-basis: 66.66%;
    flex-grow: 0;
    padding-right:120px;
  }

  .columns-ctc-phone > .wp-block-column:nth-child(2) {
    flex-basis: 33.33%;
    flex-grow: 0;
  }
}


@media (max-width: 781px) {
  .ctc-phone {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: calc(100dvh - 112px);
    transition: transform 0.3s ease-in-out;
    transform: translateY(-20px);
    z-index: 4;
    padding:15px;
  }

  .ctc-phone.hidden {
    transform: translateY(calc(100% - 40px)); /* tout caché sauf 40px */
  }

  .ctc-phone.hidden .toggle img {
    transform: rotate(180deg);
    transform-origin: center;
  }

  .ctc-phone .toggle img {
    transition: transform 0.3s ease-in-out;
  }

  .ctc-phone .toggle {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    transition: top 0.3s ease-in-out;
  }

  .ctc-phone.hidden .toggle {
    top: 10px;
  }

  .ctc-phone h2{font-size:1.1rem;}
  .ctc-phone p{font-size:0.8rem;}
}

.grecaptcha-badge{display:none !important;}