/*
 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):not(.wp-block-latest-posts__post-title) {
  color: var(--darkest);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--secondary);
  text-underline-offset: .25em;
}

.entry-content a:not(.simple):not(.wp-block-latest-posts__post-title):hover {
  color: var(--primary);
  text-decoration-color: var(--darkest);
}

/**
 * Separators.
 */

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

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

/**
 * Featured images.
 */

.featured-image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.featured-image img {
	width: 100%;
}

/**
 * Custom design for main images captions.
 */

.featured-image figcaption::before {
  content: "";
  display: block;
  position: absolute;
  top: -24px;
  left: 25px;
  height: 0px;
  width: 0px;
  border-right: solid 25px transparent;
  border-left: solid 25px transparent;
  border-bottom: solid 25px var(--light);
}

/**
 * Custom subtitles styling.
 */

p[role="doc-subtitle"] {
  padding-left: var(--spacing-200);
  border-left: 4px solid var(--primary);
}

/**
 * Reduce titles size for mobile.
 */

@media(max-width: 768px) {
  h1 {
    font-size: 2.125rem;
  }

  h2 {
    font-size: 1.813rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1.125rem;
  }
}

/**
 * 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);
}

/* Classic Editor compatibility, to remove */
blockquote:not(:has(.icon))::before {
  content: "";
  display: block;
  aspect-ratio: 1.278;
	clip-path: shape(from 39.07% 50.08%,vline by 49.92%,hline to 0%,vline to 47.48%,curve by 35.16% -47.48% with 0% -25.35%/15.61% -46.13%,vline by 11.53%,curve by -26.14% 35.95% with -14.59% 1.35%/-26.14% 16.94%,curve by 2.03% 2.6% with 0% 1.45%/0.89% 2.6%,close,move by 60.93% 0%,vline by 49.92%,hline by -39.07%,vline to 47.48%,curve by 35.2% -47.48% with 0% -25.35%/15.61% -46.13%,vline by 11.53%,curve by -26.18% 35.95% with -14.63% 1.35%/-26.18% 16.94%,curve by 2.03% 2.6% with 0% 1.45%/0.89% 2.6%,close);
  width: 48px;
  background-color: var(--primary);
  margin-bottom: var(--spacing-200);
}

/**
 * Custom code.
 */

