/*
 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(--darker);
  --secondary:var(--accent);
  --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(--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);
}

/**
 * Separator.
 */

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

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

.separator span {
  display: block;
  content: url('data:image/svg+xml;utf8,<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 881.5 881.5"><path d="M419 39c3 1 34 10 47 59 14 54-4 111-20 137l-15 26a19 19 0 0 0 23 28c2-1 61-24 93-85 37-70 17-125 6-145A129 129 0 0 0 417 2c-8 3-14 11-13 20s7 16 15 17zM545 356c0 10 9 18 19 19 0 0 18 0 38 8 26 10 44 27 54 50 13 30-4 92-11 113a19 19 0 0 0 34 16c37-64 68-130 93-200a19 19 0 0 0-18-25H564c-10 0-19 8-19 19zM366 807c-1 0-72-2-111-26-21-14-38-31-52-52-20-30-33-64-39-100-8-48 1-97 26-140a19 19 0 0 0-27-26c-3 2-63 47-89 103-16 36-24 75-22 114a201 201 0 0 0 87 158c44 33 86 43 121 43 43 0 84-14 118-40a19 19 0 0 0-12-34z" fill="%23bb1541"></path><path d="M826 796c-6-7-15-10-23-5-2 0-12 3-35 2-26-1-40-11-64-33-24-24-81-81-102-108l-9-11a7416 7416 0 0 1-273-355c-31-47-67-109-67-172 0-40 36-71 37-71a19 19 0 0 0-19-33c-5 2-50 18-73 41a147 147 0 0 0-53 117c0 61 31 125 48 150s270 378 354 467c72 76 115 91 157 91l25-1c50-6 94-52 95-54 7-7 8-18 2-25z" fill="%23bb1541"></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 {
  background-color: var(--lightest) !important;
  border-bottom-right-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

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

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

/* Affichage de contenus à la Une sur 2 colonnes au lieu de 1/3 dans les blocs derniers articles Gutenberg */

@media(min-width: 600px) {
  .featured-first li:first-child {
    width: calc(66.66666% - .416665em) !important;
  }
  .featured-first li:nth-child(3n) {
    margin-right: 1.25em !important;
  }
  .featured-first li:nth-child(3n+2) {
    margin-right: 0 !important;
  }
}

/**
 * Custom code.
 */

.inside-navigation {
  border-top: 2px solid var(--base-2);
  border-bottom: 2px solid var(--base-2);
}

.entry-meta {
  font-size: 1rem;
}

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

blockquote .icon-quote {
	margin-bottom: 12px;
	color: var(--darker);
}
.meta-separator {opacity: .5;margin-inline: .15rem;}
