/*
Theme Name: Dsbd
Author: David DI SAN BONIFACIO
Author URI: https://dsbd.fr
Description: Thème créé par l'agence web 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;
  overflow-x: hidden;
  color: #191919;
}
/*
  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;
}
/*
  8. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}


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

@font-face {
  font-family: "Open Sans";
  src: url('/wp-content/themes/dsbd/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
}

@font-face {
  font-family: "Petit Cochon";
  src: url('/wp-content/themes/dsbd/fonts/Petit_Cochon/PetitCochon.ttf') format('truetype');
}

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

/*Colors variables */
:root {
  --color-primary: #0055ff;
  --color-secondary: #ff5500;
  --color-accent: #00c896;

  --color-background: #ffffff;
  --color-surface: #f8f9fa;
  --color-border: #e0e0e0;

  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-inverted: #ffffff;

  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger:  #dc3545;
}

/* Fonts  variables */
:root {
  --font-family-base: 'Open Sans', sans-serif;
  --font-family-heading: 'Petit Cochon', serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 2rem;
  --font-size-xxl: 3rem;

  --line-height-base: 1.6;
  --line-height-heading: 1.3;

  --font-weight-normal: 400;
  --font-weight-bold: 700;
}

/* Buttons variables */
:root {
  --btn-padding-y: 0.75rem;
  --btn-padding-x: 1.5rem;
  --btn-border-radius: 0.5rem;
  --btn-font-size: var(--font-size-md);
  --btn-transition: all 0.3s ease;
}


 /* Transitions variables*/
:root{
  --transition-fast: 0.2s all ease-in-out;
  --transition-medium: 0.4s all ease-in-out;
  --transition-slow: 0.5s all ease-in-out;
}
/* Dark theme variables */
.theme-dark {
  --color-background: #121212;
  --color-surface: #1e1e1e;
  --color-text: #eeeeee;
  --color-border: #333;
}


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

h1 {
  font-size: 3.5rem;
  line-height: 120%;
  font-weight: 400 !important;
  font-family: var(--font-family-heading);
  margin-bottom: 0;
}

h2 {
  font-size: 3rem;
  line-height: 120%;
  font-weight: 400;
  font-family: var(--font-family-heading);
  margin-bottom: 0;
  color: #2e51bd;
}

h3 {
  font-size: 1.3rem;
  line-height: 120%;
  font-weight: 400;
  font-family: var(--font-family-base);
  margin-bottom: 0;
}

h4 {
  font-size: 1.3rem;
  line-height: 110%;
  font-weight: 500;
  font-family: var(--font-family-base);
  margin-bottom: 0;
}

h5 {
  font-size: 1.125rem;
  line-height: 140%;
  font-weight: 500;
  margin-bottom: 0;
}

h6 {
  font-size: 0.875rem;
  line-height: 150%;
  font-weight: 500;
  margin-bottom: 0;
}

p, li {
line-height: 150%;
margin-bottom: 0;
font-size: 1rem;
font-family: var(--font-family-base);
}


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

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

}

h3 {
  font-size: 1.8rem;
    line-height: 120%;

}

h4 {
  font-size: 1.3rem;
    line-height: 120%;

}

h5 {
  font-size: 0.825rem;
    line-height: 140%;

}

h6 {
    font-size: 0.825rem;
    line-height: 140%;

}

p, li {
  font-size: 1rem;
  }
  

}

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;
}

/*------------------------------------------------------------------
# Custom classes 
-------------------------------------------------------------------**/

.mw-550{
  max-width: 550px;
}

.mw-650{
  max-width: 650px;
}

.mw-750{
  max-width: 750px;
}

.mw-800{
  max-width: 800px;
}

/*------------------------------------------------------------------
# General elements 
-------------------------------------------------------------------**/

:target {
  scroll-margin-top: 100px;
}

.divider{
  height: 5px;
  width: 80px;
  background: var(--clr-gradient-1);
}

.button{
  cursor: pointer;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: max-content !important;
  max-width: 100%;
  font-weight: 500;
  height: max-content !important;
  border-radius: var(--radius-buttons);
  font-size: 0.875rem !important;
  }
  
  .button.line{
  border: 1px solid var(--clr-primary);
  color: var(--clr-black);
  transition: 0.5s all ease-in-out;
  }
  
  .button.line:hover{
    transition: 0.5s all ease-in-out;
    color: white;
  }
  
  .button.line.white{
    border: 1px solid var(--clr-white);
    color: var(--clr-white);
  }
  
  .button.line.white:hover{
    color: var(--clr-black);
  }
  
  .button.full{
    padding: 0.875rem 1.25rem;
    background: var(--clr-gradient-1);
    width: max-content;
    border-radius: 100px;
  }
  
  .button.full .mega-menu-link{
    color: white;
  }
  
  .button.full.white{
    background-color: white;
    color: black;
  }

  header.sticky .button.full.white{
    background-color: #2e51bd;
    color: white
  }
  
  .button.empty{
  background: white;
  backdrop-filter: blur(1px);
  transition: 0.5s all ease-in-out;
  border: 1px solid transparent;
  color: var(--clr-white);
  }
  
  .button.empty:hover{
    color: var(--clr-white);
  }
  
  .button.link{
  border-radius: 0;
  padding: 0;
  color: inherit;
  padding-right: 50px !important;
  padding-left: 0 !important;
  margin-top: auto !important;
  text-underline-offset: 2px;
  cursor: pointer;
  }
  
  .button.link::after{
  content: url('');
  padding-left: 5px;
  color: inherit;
  transition: all 0.2s ease-in-out;
  position: absolute;
  right: 15px;
  top: calc(50% + 5px);
  transform: translateY(-50%);
  }
  
  .button.link:hover{
  border: none;
  transform: scale(1);
  }
  
  .button.link:hover::after{
  transition: all 0.2s ease-in-out;
  right: 10px;
  text-decoration: none;
  }

  .button.read-more{
    padding: 0 !important;
  }
  
  .read-more a{
    font-size: 0.8rem;
  }
  
  .read-more .underline{
    width: 50%;
    height: 2px;
    content: '';
    background: #191919;
    transition: all 300ms ease-in-out;
  }
  
  .read-more .underline.white{
    background-color: var(--clr-white);
  }
  
  .read-more:hover .underline{
    width: 100%;
    transition: all 300ms ease-in-out;
  }
  
  .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;
  opacity: 0.3;
  transition: 0.2s all ease-in-out;
  }
  
  .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{
  clr-primary-50: transparent;
  border-bottom: 1px solid #333;  
  border-radius: 0;
  color: #333;
  }
  
  .tag{
  background: #f1f1f1;
  padding: 0.3em 0.5rem;
  border-radius: var(--radius-buttons);
  font-size: 0.7rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: block;
  width: max-content;
  height: max-content;
  flex: none;
  border: #d8d8d8;
  }
  
  .date{
  font-size: 0.8rem;
  }
  
  .separator:last-child{
  display: none;
  }
  
  .btn-rounded{
  width: max-content; 
  border : 1px solid black;
  border-radius: var(--radius-buttons);
  clr-primary-50: transparent;
  transition: all 200ms ease-in-out;
  }
  
  .btn-rounded:hover{
  width: max-content; 
  border : 1px solid black;
  clr-primary-50: black;
  border-radius: var(--radius-buttons);
  color: white;
  transition: all 200ms ease-in-out;
  }
  
  .btn-rounded.active{
  clr-primary-50: black;
  color: white;
  }
  
  .radius{
    border-radius: var(--radius-border);
  }
  
  .button.radius{
    border-radius: var(--radius-buttons);
  }

  .bottom-border {
    width: 100%;
    height: 160px;
    border-radius: 80%;
    margin-top: -80px;
  }
  
  @media screen and (max-width: 991px){
    .buttons{
      flex-wrap: wrap;
    }
    .buttons .button{
        width: 100%;
        text-align: center;
    }
    .buttons .button:first-of-type{
      margin-bottom: 1rem;
    }
    .bottom-border {
      height: 80px;
      margin-top: -40px;
    }
    header .button.full.white{
      margin-left: auto;
      margin-right: 10px;
    }
  }

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

header {
  position: sticky;
  top: 0;
  z-index: 99;
  background-color: var(--clr-white);
  color: var(--clr-black);
}

header.transparent {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 9999999;
  color: var(--clr-white);
}

header.transparent.banner-active {
  top: 80px;
}

header.sticky {
  background-color: white;
  color: black;
  position: sticky;
  top: 0 !important;
  z-index: 99;
}

/*--------------------------------------------------------------
# Header Menu Base
--------------------------------------------------------------*/

.header-menu {
  height: 100%;
  padding-top: 5px;
}

.header-menu .menu,
.header-menu.desktop-menu #menu-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
  gap: 2rem;
}

.header-menu .menu ul,
.header-menu.desktop-menu ul {
  list-style: none;
  padding: 0;
}

.header-menu.desktop-menu ul li {
  font-size: 0.9rem;
  text-align: left;
  display: flex;
  align-items: center;
  position: relative;
  color: black;
  padding: 1.5rem 0;
}

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

.mobile-menu-nav .close-icon{
  display: none;
}

.header-menu.mobile-menu.active{
  display: block;
  background-color: white;
  box-shadow: 0 10px 10px rgba(0,0,0,0.12);
  padding: 1.5rem 0 !important;
}

.mobile-menu-nav.active{
  background-color: white;
  border-bottom: 1px solid #ececec;
}

.mobile-menu-nav.active .button.full.white{
  background-color: #2e51bd;
  color: white;
}

.mobile-menu ul li{
  font-size: 1rem !important;
  text-align: center;
}

/* Buttons */

.header-menu .button,
.header-menu.desktop-menu .button.line {
  font-size: 0.9rem;
}

.header-menu.desktop-menu .button.line {
  border: 1px solid var(--clr-gradient-1);
  color: var(--clr-black);
}

.header-menu.desktop-menu .button.line a {
  color: var(--clr-black);
}

/* Current item */

.header-menu.desktop-menu ul .current-menu-item a {
  border-bottom: 2px solid var(--clr-gradient-1);
  margin-top: 2px;
}

/* Logo */

.header-menu.desktop-menu .logo {
  width: 80px;
}

/* Sticky Logo Area */

header.sticky .header-menu.desktop-menu .menu-logo {
  background: white;
  padding: 10px;
  border-radius: 100px;
  margin-bottom: -40px;
}

/* Submenus */

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

.header-menu.desktop-menu ul .menu-item-has-children:hover::after {
  transform: rotate(135deg);
}

header.transparent .header-menu.desktop-menu .menu-item-has-children:hover::after,
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 {
  border-color: var(--clr-black);
}

/* Sub-menu dropdown */

.header-menu.desktop-menu .sub-menu {
  display: none;
  position: fixed;
  background: var(--clr-white);
  width: 100vw;
  left: 0;
  top: 80px;
  opacity: 0;
  padding: 3rem 10%;
  z-index: 9;
  transition: all 0.2s ease-in;
}

.header-menu.desktop-menu ul .menu-item-has-children:hover .sub-menu {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 10px;
  top: 58px;
  left: 0;
  width: 100%;
  opacity: 1;
  z-index: 9999;
  transition: all 0.2s ease-in-out;
}

.header-menu.desktop-menu .sub-menu li {
  padding: 0;
  margin: 0;
  height: 100%;
  color: var(--clr-black);
}

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

.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: var(--radius-border);
  height: 100%;
}

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

/*--------------------------------------------------------------
# Transparent Header Specific
--------------------------------------------------------------*/

header.transparent .sub-menu,
header.transparent .header-menu.desktop-menu .sub-menu li {
  color: var(--clr-black);
}

.transparent .header-menu.desktop-menu .button.line,
.transparent .header-menu.desktop-menu .button.line a {
  border: 1px solid var(--clr-gradient-1);
  color: var(--clr-white);
}

header.transparent .header-menu.desktop-menu.highlight-background {
  background-color: var(--clr-white);
  color: var(--clr-black);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media screen and (max-width: 770px) {
  header .logo {
    width: 45px !important;
  }

  header.sticky .header-menu {
    padding: 0 !important;
  }

  header.transparent.banner-active {
    top: 32px;
  }

  header.sticky .mobile-menu-toggle .close-icon {
    filter: none;
  }
}



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

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

.infos_banner{
  color: white;
  background-color: var(--clr-primary);
  text-align: center;
  padding: 0.5rem 0;
}

.infos_banner p{
  margin: 0;
  font-size: 12px;
}

.infos_banner a{
  text-decoration : underline;
}

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

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

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

.container-xl, .container-xxl{
  max-width: 1600px;
}

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

.object-fit-contain {
  object-fit: contain;
  object-position: center;
  background-color: white;
}

.card{
border: none;
width: 100%;
}

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

.pb-6{
padding-bottom: 8rem !important;
}

.py-6{
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

@media screen and (max-width: 771px) {
  .gx-5{
    --bs-gutter-x: inherit;
  }
  .mb-6{
    margin-bottom: 5rem !important;
    }
    
}

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

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

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

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

.swiper-arrows{
  gap: 2rem;
}

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

.swiper-button-next, .swiper-button-prev{
  color: var(--clr-white);
  position: relative;
  background: var(--clr-gradient-1);
  height: 40px;
  width: 40px;
  border-radius: 5px;
}

.swiper-button-next::after, .swiper-button-prev::after{
  font-size: 1rem;
  font-weight: bold;
}

.swiper-scrollbar{
  height: 5px;
}

.swiper-scrollbar-drag{
  background: var(--clr-gradient-1);
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after{
  content: url('/wp-content/uploads/2025/03/arrow-prev.svg');
}

.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after{
  content: url('/wp-content/uploads/2025/03/arrow-next.svg');
}

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

.fancybox__container{
  z-index: 999999;
}

.swiper .nav-container{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(50%) translateX(-50%);
  z-index: 9;
}

.swiper-navigation.rounded-nav{
  gap: 30px;
  background: var(--clr-primary);
  height: 80px;
  width: 80px;
  border-radius: 80%;
  color: white;
}

.swiper-navigation.rounded-nav .swiper-button-next, .swiper-navigation.rounded-nav .swiper-button-prev{
color: black;
position: relative;
top: 9px;
color: white;
}


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

/*	Custom post global
/* -------------------------------------------------------------------------- */

.post.custom-post:hover .content{
  background: var(--clr-primary);
  color: white;
  border-radius: 0 0 var(--radius-border) var(--radius-border);
}
  
.post.custom-post:hover .content .tag{
  color: black;
}
  
.post.custom-post:hover .content .localisation .tag{
  color: white;
}
  
.post.custom-post:hover .content img, .post.custom-post:hover .content .divider{
  filter: invert();
}


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

/* Archives
/* -------------------------------------------------------------------------- */

.archive .facetwp-dropdown{
  padding: 0.5rem 0.2rem;
  border-radius: var(--radius-border);
  width: 100%;
}

.archive .post{
  border-radius: var(--Corner-Extra-small, 4px);
  border: 1px solid var(--gray-200, #E5E7EB);
  background: var(--white, #FFF);
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.10), 0px 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.archive .post .content{
  border-radius: 0 0 var(--radius-border) var(--radius-border);
  flex-grow: 2;
}

.archive .post .content p{
  font-size: 0.825rem;
}

.archive .post .thumbnail img{
  aspect-ratio: 16/ 9;
  object-fit: cover;
  border-radius: var(--radius-border) var(--radius-border) 0 0;
  transition: all 300ms ease-in-out;
}

.archive .post .category{
  font-family: var(--font-family-heading);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  width: max-content;
  background-color: var(--clr-light-grey);
  border: 1px solid var(--clr-black);
  color: var(--clr-black);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-border);
}

.archive .post .excerpt p{
  line-height: 24.3px;
}  

.archive .post:hover .thumbnail img{
  transform: scale(1.05);
  transition: all 300ms ease-in-out;  
}

.archive .post:hover .content{
  background: var(--clr-gradient-1);
  color: white;
}

.archive .post:hover .content .read-more .underline{
  background: var(--clr-white);
  width: 100%;
}


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

/*	Blog single page
/* -------------------------------------------------------------------------- */

.single-post .back-arrow{
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid;
  border-radius: 8px;
}

.single-post .back-arrow .bi-arrow-left{
  content: url('/wp-content/uploads/2024/10/back-arrow-light-line.svg');
  height: 15px;
  width: auto;
}

.single-post .breadcrumb p > span{
  display: flex;
  gap: 8px;
}

.single-post .breadcrumb p{
  font-family: var(--font-family-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 21.6px;
  text-align: left;
}

.single-post .breadcrumb_last{
 font-weight: 700; 
}

.single-post .categories{
  font-family: var(--font-family-heading);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  width: max-content;
  background-color: var(--clr-light-grey);
  border: 1px solid var(--clr-black);
  color: var(--clr-black);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-border);
}

.single-post .excerpt{
  font-family: var(--font-family-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: 27px;
  text-align: center;
}

.addtoany_list a:not(.addtoany_special_service)>span{
  border: 1px solid var(--clr-secondary);
  padding: 0.3rem;
}

.single-post .text-bloc, .single-post .quote, .single-post .conclusion, .single-post .heading{
  max-width: 720px;
  margin: auto;
}

.single-post .text-bloc, .single-post .quote, .single-post .conclusion{
  position: relative;
  z-index: 1;
}


.single-post .thumbnail{
  position: relative;
  z-index: 1;
}

.single-post .thumbnail img{
  border-radius: 1rem;
  margin: auto;
}

.single-post .top-page{
  z-index: 0;
}

.single-post .orange-shape{
  position: absolute;
  bottom: 0px;
  right: calc(-20vw);
  transform: translateY(50%);
}

.single-post .quote{
  border-left: 1px solid black;
  padding-left: 2rem;
}

.single-post .quote .quote-text{
  font-family: var(--font-family-heading);
  font-size: 32px;
  font-style: italic;
  font-weight: 500;
  line-height: 36px;
  text-align: left;
}

.single-post .quote .quote-author{
  font-family: var(--font-family-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.single-post .quote .quote-author::before{
  content: "—";
  margin-right: 0.8rem;
}

.single-post .conclusion{
  background-color: white;
  border: 1px solid black;
  border-radius: var(--radius-border) var(--radius-border);
}


.single-post .related-posts .related-post-items{
  display: flex;
  align-items: stretch;
}

.single-post .related-posts .related-post-item{
  border-radius: var(--radius-border) var(--radius-border);
}

.single-post .related-posts .related-post-item .thumbnail{
  aspect-ratio: 16/10;
}

.single-post .related-posts .related-post-item .thumbnail img{
  border-radius: var(--radius-border) var(--radius-border) 0 0;
  width: 100%;
  object-fit: cover;
}

.single-post .related-posts .related-post-item .inner{
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.single-post .related-posts .related-post-item .content{
  background-color: var(--clr-light-grey);
  border-radius: 0 0 var(--radius-border) var(--radius-border);
  flex-grow: 1;
}

.single-post .related-posts .related-post-item .categorie{
  font-family: var(--font-family-heading);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  width: max-content;
  background-color: var(--clr-light-grey);
  border: 1px solid var(--clr-black);
  color: var(--clr-black);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-border);
}

.single-post .related-posts .related-post-item .title{
  font-family: var(--font-family-heading);
  color: var(--clr-secondary);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  text-align: left;
  
}

.single-post .related-posts .related-post-item .excerpt{
  text-align: left;
  font-family: var(--font-family-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.single-post .related-posts .related-post-item .read-more{
  font-family: var(--font-family-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
}


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

/*	Contact form
/* -------------------------------------------------------------------------- */

.wpcf7{
  max-width: 750px;
  margin: auto;
}

.wpcf7-form label{
  margin-bottom: 1rem;
}

.wpcf7-form label, .wpcf7-form input, .wpcf7-form textarea{
  width: 100%;
}

.wpcf7-form .wpcf7-text, .wpcf7-form .wpcf7-number, .wpcf7-form textarea{
  border-radius: var(--radius-border);
  border: 1px solid black;
  padding: 0.5rem 1rem;
}

.wpcf7-form .next-step, .wpcf7-form .prev-step{
  border-radius: var(--radius-border);
  background-color: var(--clr-primary);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
}

.wpcf7-form .navigation{
  display: flex;
  justify-content: space-between;
}

.wpcf7-form .next-step{
  margin-left: auto;
}

.wpcf7-form input[name="acceptance"]{
  width: auto;
}

.wpcf7-form .wpcf7-submit{
  border: none;
  width: max-content;
  padding: 0.5rem 1rem;
  width: 100%;
  background-color: var(--clr-primary);
  color: white;
  border-radius: var(--radius-border);
}

.wpcf7-radio .wpcf7-list-item-label{
  display: flex;
  justify-content: center;
  align-items: center;
}

.wpcf7-radio{
  display: flex;
  margin-bottom: 3rem;
}

.wpcf7-list-item{
  display: flex;
}

.wpcf7-list-item input[type="radio"]{
  margin-right: 0.8rem;
  width: 12px;
}


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

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

footer{
  background-color: var(--clr-white);
  color: var(--clr-black);
}

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

footer .infos p{
  font-size: 0.8rem;
  line-height: 110%;
}

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{
padding-bottom: 0.5rem;
font-size: 0.8rem;
color: var(--clr-black);
}

footer p{
  font-size: 0.8rem;
}

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

footer .divider{
height: 1px;
background: none;
border-top: 1px solid var(--clr-black) !important;
opacity: 0.4;
width: 100%;
}

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

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

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

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

/* Tablets landscape */

@media screen and (min-width: 1020px) {
  .header-menu{
    width: 90%;
    max-width: none;
    display: flex;
  }
}

/* Tablets portrait */

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

  .mobile-menu-nav{
    display: flex !important;
  }

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

  .logo-mobile{
    display: block;
  }

  .header-menu .menu{
    gap: 0;
    justify-content: center;
  }

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

  .header-menu ul li{
    margin: 10px 0;
    position: relative;
    width: 100%;
    font-size: 1.2rem;
  }

  .menu-logo{
    display: none;
  }

  .header-menu ul li.menu-item-has-children > a{
    position: relative;
    display: flex;
    justify-content: space-between;
  }

  .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: white;
      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: 0.825rem;
    text-align: left;
  }

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

  .ctas-mobile{
    background-color: var(--clr-black);
  }
}

.popup {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem;
  width: 80%;
  max-width: auto;
  height: 70vh;
  animation: fadeIn 0.3s;
  border-radius: var(--radius-border);
}

.close {
  color: #aaa;
  float: right;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 0.5rem;
}

.close:hover, .close:focus {
  color: black;
}

@media screen and (max-width: 991px) {
  .popup-content{
    width: 90%;
    top: 3rem;
    transform: translateX(-50%);
    height: calc(100vh - 6rem);
    overflow: scroll;
  }
}
