/*
 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.0.6
 License: GPLv3
 License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/**
 * Beautiful lists.
 */

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

/**
 * Beautiful inputs.
 */

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

/**
 * Beautiful Blockquotes.
 */

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

/**
 * Add missing space.
 */

.wp-block-image,
.wp-block-embed {
  margin-bottom: 1.5em;
}

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

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

.entry-content p a[target="_blank"]::after,
.entry-content li a[target="_blank"]::after {
   display: inline-block;
   margin-left: .25em;
   content: "\2197";
   font-size: .8em;
   font-weight: 700;
   border: 1.5px solid currentColor;
   border-radius: 4px;
   line-height: 1.1em;
   speak: never;
   font-family: monospace;
 }

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

/**
 * Separator.
 */

 .separator {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  grid-gap: 0;
  align-items: center;
  text-align: center;
  width: 100%;
  overflow: hidden;
  margin-top: var(--spacing);
  margin-bottom: var(--spacing);
  opacity: .25;
}

.separator:before,
.separator:after {
  content: "";
  border-top: 3px solid var(--contrast-3);
}

.separator span {
  display: block;
  margin-top: -1px;
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2379 2379" fill="%239b9bc5" width="36" height="36"><path d="M4611.61 1126.06c-920-3-1871-6-2778-7-50 0-92 35-103 83l-110 526-1 1-296-1643c-20-109-175-117-204-9l-321 1156-142-498c-16.01-55.73-74.18-87.93-129.91-71.92a105.02 105.02 0 0 0-68.09 60.92l-166 406h-325l-45 209h511l105-256 161 565c29 101 173 101 201-1l298-1073 311 1719c20 113 181 115 205 3l204-967c881 0 1801 3 2693 6 859 3 1745 6 2597 6l44-209-2641-6z"/></svg>');
}

/**
 * Simple lists in footer.
 */

.site-footer ul {
	list-style-type: none;
	margin-left: 0;
}

/**
 * Beautiful SVGs in menus.
 */

.menu-item-icon {
  width: 22px;
  height: 22px;
  margin-right: .5em;
  fill: currentColor;
  vertical-align: sub;
}

/**
 * Featured images full width.
 */

.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: 1em;
  border-left: 4px solid var(--primary);
}

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

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

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 20px
  }

  h5 {
    font-size: 18px
  }
}

/**
 * Custom code.
 */

 b, strong {
  font-weight: 600;
}

/**
 * Compatibilité old CSS variables.
 */

:root {
  --primary: var(--contrast);
  --secondary:var(--contrast-2);
  --lightest:var(--base-3);
  --light:var(--base);
  --medium:var(--contrast-3);
  --dark:var(--contrast-2);
  --darkest:var(--contrast);
}