/*
 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
 Version:      1.0.4
 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
 */

body:not(.home) .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;
}

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

/**
 * Separator.
 */

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

/**
 * 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.
 */
body {
  background-image: url('data:image/svg+xml,%3Csvg%20id%3D%27patternId%27%20width%3D%27100%25%27%20height%3D%27100%25%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cdefs%3E%3Cpattern%20id%3D%27a%27%20patternUnits%3D%27userSpaceOnUse%27%20width%3D%2740%27%20height%3D%2780%27%20patternTransform%3D%27scale(2)%20rotate(30)%27%3E%3Crect%20x%3D%270%27%20y%3D%270%27%20width%3D%27100%25%27%20height%3D%27100%25%27%20fill%3D%27hsla(0%2C0%25%2C100%25%2C1)%27/%3E%3Cpath%20d%3D%27M-4.798%2013.573C-3.149%2012.533-1.446%2011.306%200%2010c2.812-2.758%206.18-4.974%2010-5%204.183.336%207.193%202.456%2010%205%202.86%202.687%206.216%204.952%2010%205%204.185-.315%207.35-2.48%2010-5%201.452-1.386%203.107-3.085%204.793-4.176%27%20stroke-width%3D%271%27%20stroke%3D%27hsla(158%2C%20100%25%2C%2097%25%2C%201)%27%20fill%3D%27none%27/%3E%3Cpath%20d%3D%27M-4.798%2033.573C-3.149%2032.533-1.446%2031.306%200%2030c2.812-2.758%206.18-4.974%2010-5%204.183.336%207.193%202.456%2010%205%202.86%202.687%206.216%204.952%2010%205%204.185-.315%207.35-2.48%2010-5%201.452-1.386%203.107-3.085%204.793-4.176%27%20stroke-width%3D%271%27%20stroke%3D%27hsla(333%2C%20100%25%2C%2098%25%2C%201)%27%20fill%3D%27none%27/%3E%3Cpath%20d%3D%27M-4.798%2053.573C-3.149%2052.533-1.446%2051.306%200%2050c2.812-2.758%206.18-4.974%2010-5%204.183.336%207.193%202.456%2010%205%202.86%202.687%206.216%204.952%2010%205%204.185-.315%207.35-2.48%2010-5%201.452-1.386%203.107-3.085%204.793-4.176%27%20stroke-width%3D%271%27%20stroke%3D%27hsla(0%2C%200%25%2C%2097%25%2C%201)%27%20fill%3D%27none%27/%3E%3Cpath%20d%3D%27M-4.798%2073.573C-3.149%2072.533-1.446%2071.306%200%2070c2.812-2.758%206.18-4.974%2010-5%204.183.336%207.193%202.456%2010%205%202.86%202.687%206.216%204.952%2010%205%204.185-.315%207.35-2.48%2010-5%201.452-1.386%203.107-3.085%204.793-4.176%27%20stroke-width%3D%271%27%20stroke%3D%27hsla(158%2C%2067%25%2C%2095%25%2C%201)%27%20fill%3D%27none%27/%3E%3C/pattern%3E%3C/defs%3E%3Crect%20width%3D%27800%25%27%20height%3D%27800%25%27%20transform%3D%27translate(0%2C0)%27%20fill%3D%27url(%23a)%27/%3E%3C/svg%3E');
}

.single-post .inside-article { background: white; padding: 10px; } .related-article { color: #ffbadc !important; } .related-article:hover { color: white !important; }.inside-article a { color: #55b792; } a.related-article.simple { background: #827c80; }

.main-navigation {
  position: relative;
}

.main-navigation::after {
  content: "";
  display: block;
  top: 62px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,100) 0%, rgba(255,255,255,0) 100px);
  z-index: -10;
}
 
.inside-navigation {
  border-top: 1px solid var(--darkest);
  border-bottom: 1px solid var(--darkest);
}