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

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

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

/**
 * 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;
   content: "";
   margin-left: .25em;
   width: .8em;
   height: .8em;
   mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M320 0a32 32 0 1 0 0 64h82.7L201.4 265.4a32 32 0 0 0 45.3 45.3L448 109.3V192a32 32 0 1 0 64 0V32a32 32 0 0 0-32-32H320zM80 32a80 80 0 0 0-80 80v320a80 80 0 0 0 80 80h320a80 80 0 0 0 80-80V320a32 32 0 1 0-64 0v112a16 16 0 0 1-16 16H80a16 16 0 0 1-16-16V112a16 16 0 0 1 16-16h112a32 32 0 1 0 0-64H80z"/></svg>') no-repeat 50% 50%;
   mask-size: cover;
   -webkit-mask-size: cover;
   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(--accent);
  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 80px 1fr;
  grid-gap: 20px;
  align-items: center;
  text-align: center;
  width: 100%;
  overflow: hidden;
  margin-top: var(--spacing);
  margin-bottom: var(--spacing);
}

.separator:before,
.separator:after {
  content: "";
  border-top: 1px solid #aaaaaa;
}

.separator span {
  display: block;
  content: url('data:image/svg+xml;utf8,<svg aria-hidden="true" focusable="false" width="80" height="58" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="m450.4 269.4-7-4.8.3-10.8a180.8 180.8 0 0 0-339.5-86.6l-.3-.9c-73.4 2.2-96 26.9-102 47.1-6 20.3-.6 53.2 59.7 95.2a408 408 0 0 0 35.6 22 180.8 180.8 0 0 0 263.6 79.6 435.9 435.9 0 0 0 47.3 1.5c73.4-2.3 96-26.9 102-47.1 6-20.3.6-53.2-59.7-95.2zm27.1 85.5c-2 7-12 11.8-17.7 14.1-12.8 5-31 8-52.7 8.7-47.6 1.5-107.9-7.9-169.7-26.3C175.6 333 120.1 308 81 280.7a164.2 164.2 0 0 1-39.4-36c-8.3-11.8-8-18.6-7.1-21.6 2-7 12-11.8 17.7-14 9.7-3.9 22.5-6.6 37.7-7.9a180.6 180.6 0 0 0-7.7 56.7c3 2.4 6.3 4.8 9.7 7.2 28 19.5 65 37.9 106.8 53.4l1.4.4V190.1c0-13.9 15.1-22.6 27.2-15.6l58.8 34 59 34c12 7 12 24.4 0 31.3l-59 34-43.7 25.3h.4c55.6 16.6 110.4 25.7 154.4 25.7a311.6 311.6 0 0 0 13-.3c12.1-17 21.4-36.1 27-56.7 14.8 11 26.2 21.8 33.2 31.6 8.3 11.7 8 18.5 7.1 21.5z" fill="%23aaaaaa"></path><path d="m359 259.6-5-2.8a18 18 0 0 1-9 17l-58.8 34-43.7 25.3h.4c9.7 3 19.4 5.7 29 8L300 325l59-34c12-7 12-24.4 0-31.4z" fill="%23666666"></path><path d="m242.5 333 43.7-25.2 58.8-34c12.1-7 12.1-24.4 0-31.3l-58.8-34-59-34c-12-7-27 1.7-27 15.7V319l40 13.4 2.3.7zM147.7 140.9a133.4 133.4 0 0 1 29.2-26.3 148.2 148.2 0 0 1 61.6-22 170.6 170.6 0 0 1 60.3 1.6 182 182 0 0 1 34 10.3 259.6 259.6 0 0 0-43-5.5 204 204 0 0 0-142.1 42zM347.8 398.1a133.3 133.3 0 0 1-34.5 18.7 148 148 0 0 1-65 7.2 170 170 0 0 1-58.4-15.6c-8.4-4-19.1-9.6-30.6-18 10 4.8 23.6 10.6 40.5 15.4a203.8 203.8 0 0 0 148-7.7z" fill="%23fff"></path></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
  }
}

/**
 * Header.
 */

.top-desktop {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .top-desktop {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .menu-bar-items {
    display: none !important;
  }
  .inside-header {
    flex-direction: row !important;
    justify-content: space-between !important;
  }
}


/**
 * Custom code.
 */

 .menu-item-has-children .dropdown-menu-toggle {
  padding-right: 4px;
 }

b, strong {
  font-weight: 600;
}

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

.wp-block-embed figcaption {
  font-size: 13px;
  text-align: center;
}

.inside-article li {
	margin-bottom: 1em;
}

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

.featured-image figcaption {
  color: var(--darkest) !important;
}
.meta-separator {opacity: .5;margin-inline: .15rem;}
