/*
 Theme Name:   GeneratePerf Child Theme
 Theme URI:    https://agencewebperformance.fr/prestations/creation-site-performant/
 Author:       Agence Web Performance
 Author URI:   https://agencewebperformance.fr/
 Template:     generatepress
 Text Domain:  generateperf_child
 Version:      1.2.3
 License: GPLv3
 License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/**
 * Components spacing based on root 10px (1 rem).
 */

:root {
  --spacing-100: .5rem; /* 8px */
  --spacing-200: 1rem; /* 16px */
  --spacing-300: 1.5rem; /* 24px */
  --spacing-400: 2rem; /* 32px */
  --spacing-500: 2.5rem; /* 40px */
  --spacing-600: 3rem; /* 48px */
  --spacing-700: 3.5rem; /* 56px */
  --spacing-800: 4rem; /* 64px */
  --spacing-900: 5rem; /* 80px */
  --spacing-1000: 7rem; /* 112px */
}

/**
 * Scrollbar color.
 */

:root {
  scrollbar-color: var(--primary) var(--lightest);
}

/**
 * Beautiful lists.
 */

li::marker {
  color: var(--primary);
}

/**
 * Beautiful inputs.
 */

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
}

/**
 * Add missing space.
 */

.wp-block-image,
.wp-block-embed {
  margin-bottom: var(--spacing-300);
}

/**
 * Add external icons to _blank links.
 */

.entry-content p a[target="_blank"]::after,
.entry-content li a[target="_blank"]::after {
  display: inline-block;
  content: "";
  margin-left: .25em;
  width: .8em;
  height: .8em;
  aspect-ratio: 1;
	clip-path: shape(from 62.5% 0%,arc by 0% 12.5% of 6.25% large ccw,hline by 16.15%,line to 39.34% 51.84%,arc by 8.85% 8.85% of 6.25% small ccw,line to 87.5% 21.35%,vline to 37.5%,arc by 12.5% 0% of 6.25% large ccw,vline to 6.25%,arc by -6.25% -6.25% of 6.25% small ccw,hline to 62.5%,close,move to 15.63% 6.25%,arc by -15.63% 15.63% of 15.63% small ccw,vline by 62.5%,arc by 15.63% 15.63% of 15.63% small ccw,hline by 62.5%,arc by 15.63% -15.63% of 15.63% small ccw,vline to 62.5%,arc by -12.5% 0% of 6.25% large ccw,vline by 21.88%,arc by -3.13% 3.13% of 3.13% small cw,hline to 15.63%,arc by -3.13% -3.13% of 3.13% small cw,vline to 21.88%,arc by 3.13% -3.13% of 3.13% small cw,hline by 21.88%,arc by 0% -12.5% of 6.25% large ccw,hline to 15.63%,close);
  vertical-align: -.075em;
  background-color: currentColor;
 }

/**
 * Improve default links style
 */

 .entry-content a:not(.simple) {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  text-underline-offset: .25em;
}

.gb-loop-item a:not(:hover) {
  text-decoration-color: transparent !important;
}

.entry-content a:not(.simple):hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

.gb-loop-item:hover a {
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 2px;
}

/**
 * Separators.
 */

.separator {
  background-color: var(--light);
}

.meta-separator {
  opacity: .5;
  margin-inline: .15rem;
}

/**
 * Featured images.
 */

.featured-image img {
	width: 100%;
  border-radius: var(--border-radius);
}

/**
 * Custom subtitles styling.
 */

p[role="doc-subtitle"] {
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.36px;
}

/**
 * Beautiful SVGs in menus.
 */

.menu-item-icon {
  width: 22px;
  height: 22px;
  margin-right: var(--spacing-100);
  fill: currentColor;
  vertical-align: sub;
}

/**
 * Prevent footer rendering on initial rendering.
 */

.site-footer {
  content-visibility: auto;
  contain-intrinsic-height: 400px;
}

@media(min-width: 768px) {
  .site-footer {
    contain-intrinsic-height: 300px;
  }
}

/**
 * Citation.
 */

blockquote {
  border-left-color: var(--primary);
}

blockquote .icon {
  color: var(--primary);
  margin-bottom: var(--spacing-200);
}

 blockquote cite {
  display: block;
  font-style: normal;
  font-size: 1rem;
  margin-top: var(--spacing-200);
  color: var(--dark);
}

/**
 * Custom code.
 */

.site-header {
  box-shadow: rgba(0, 0, 0, 0.07) 0px 0px 10px 0px;
}

@media(min-width: 1025px) {
  #site-navigation {
    margin-left: 20px !important;
  }
  .sf-menu > .menu-item {
    transition: border-bottom 0.2s ease-in-out;
  }

  .sf-menu > .menu-item:hover {
    border-bottom: 5px solid var(--primary);
  }
  .site-logo {
    margin-bottom: -7px;
  }
}

.menu-bar-items {
  display: none !important;
}

.mobile-menu-control-wrapper {
  order: -1;
  margin-left: -20px !important;
}

.entry-header .entry-meta {
  margin-top: 12px !important;
}

body:not(.logged-in) .site-header {
  position: sticky;
  top: 0;
  z-index: 5;
}

.main-navigation,
.menu-toggle {
  background-color: var(--lightest) !important;
}

.main-navigation:not(.toggled) + .open-with-menu {
  display: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}