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

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

/**
 * Featured images.
 */

.featured-image img {
	width: 100%;
  border: 1px solid var(--light);
}

/**
 * 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);
  font-weight: 600;
}

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

/**
 * Custom code.
 */

.related-articles {
  max-width: var(--gb-container-width);
  width: 100%;
  margin: var(--spacing-1000) auto 0;
  padding: 40px 20px 20px;
}

.related-articles-container {
  background-color: var(--light);
  margin-bottom: -64px;
}

.inside-header .main-navigation:last-child {
  margin-left: auto;
}

@media(max-width: 768px) {
  html:not(.mobile-menu-open) #submenu-bar {
    display: none;
  }
  .menu-bar-item > a,
  .menu-toggle {
    padding-left: 11px !important;
    padding-right: 11px !important;
    line-height: 44px !important;
  }
  .menu-toggle {
    margin-right: -11px;
    font-size: 20px !important;
  }
}

.cat-label {
    position: absolute;
    left: 0;
    bottom: -1px;
}

body.home .entry-content a {
  text-decoration-line: none !important;
}

.site-footer ul {
  column-count: 2;
  column-gap: 16px;
}