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

/**
 * Improve default links style
 */

.entry-content a:not(.simple):not(.wp-block-latest-posts__post-title) {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--darkest);
  text-underline-offset: .25em;
}

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

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

/**
 * Separator.
 */

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

/**
 * 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.
 */

h1 {
  line-height: 1.08em;
  letter-spacing: -.008em;
}

html:not(.dark) body:not(.mce-content-body) {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231d5bd8' fill-opacity='0.033' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

html:not(.dark) .site-content {
  box-shadow: 0 0 20px var(--light);
}

.main-navigation {
  position: relative;
  z-index: 1;
}

.related-articles h2 {
  color: var(--primary);
}

.menu-item-5283 .menu-item-label {
  display: none;
}

.menu-item-5283 .menu-item-icon {
  margin-right: 0;
}

.entry-header .entry-meta {
	display: flex;
	flex-wrap: wrap;
}

.related-articles-container {
	max-width: 1200px;
	padding-left: 20px;
	padding-right: 20px;
	margin: 40px auto;
}

html.dark .is-logo-image {
	fill: white;
}
