/*
 Theme Name:   GP Child par Eroan Boyer
 Theme URI:    https://generatepress.com/premium/?ref=4657
 Description:  Thème enfant GeneratePress optimisé pour la web performance et le SEO. Intègre des fonctionnalités avancées qui n’impactent pas les temps de chargement et améliorent l’architecture du site.
 Author:       Eroan Boyer
 Author URI:   https://www.eboyer.com
 Template:     generatepress
 Version:      1.3.3
*/

/*--------------------------------------------------------------
# Global improvements over GeneratePress main.css
--------------------------------------------------------------*/

/**
 * Set links backgroud to transparent in Chrome.
 */body.page-template-default main#main .entry-title {
    margin-bottom: 20px;
}
h2.gb-headline.gb-headline-text a {
    background: #5cad95;
    border-radius: 10px;
    padding: 2px 10px 2px 10px;
    color: white !important;
}
.inside-article img.attachment-full.size-full {
    max-height: 425px;
    object-fit: cover;
}body.post-template-default.single.single-post .wp-block-post .generate-columns-container .inside-article, .wp-block-latest-posts__list li {
    max-height: 240px;
}
header.entry-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}.featured-image.page-header-image-single {
    margin-bottom: 10px !important;
}
.entry-content:not(:first-child), .entry-summary:not(:first-child), .page-content:not(:first-child) {
    margin-top: 0.2em !important;
}
.site-logo {
    margin-left: auto;
    margin-right: auto;
}
main#main .entry-title {
  flex-basis: 100%;
  order: 1;
  font-weight: 900;
  line-height: 32px;
}

main#main .entry-meta {
  order: 2;
font-size: 14px !important;
}

main#main .post-categories {
  order: 3;
  flex-grow: 1; /* donne à post-categories la capacité de croître */
  margin-bottom: 0;
order: 3; flex-grow: 1; margin-left: 10px !important; padding-top: 10px;
}

p[role="doc-subtitle"] {
  order: 4;
  margin-bottom: 0;
  margin-top: 2px !important;
  flex-basis: 100%;
}


.post-image-below-header.post-image-aligned-center .inside-article .featured-image {margin-top:8px !important}

h1 {
    font-size: 30px !important;
}
p.wp-block-tag-cloud a {
    background-color: #dd456b !important;
    font-size: 12px !important;
    border-radius: 104px;
    padding: 4px 11px 4px 10px;
    border: none !important;
    box-shadow: 0 0 12px 1px rgb(0 0 255 / 27%);
    text-align: center;
    color: white;
}
.toc li::before {
    background-color: #309d7d !important;
    border-radius: 20% !important;
}

span.tags-links a {
    border-left: 8px solid #309d7d !important;
    background-color: #e8ddff !important;
    font-size: 1.1rem !important;
    border-radius: 8px;
    box-shadow: -1px -1px 11px 4px #b2fdff3d;
    padding: 10px;
	color:black;
}
a.related-article.simple {
background-color: #ffffff !important;
    font-size: 20px !important;
    border-radius: 104px;
    padding: 7px;
    border: none !important;
    box-shadow: 0 0 12px 1px rgba(0, 0, 255, .2);
    text-align: center;
}a.related-article.simple:hover {
    color: #309d7d;
}
p[role="doc-subtitle"]::before { display:none}
nav.related-articles a {
    color: white;
}
p[role="doc-subtitle"] {
    background-color: #ffffff !important;
    font-size: 17px !important;
    border-radius: 104px;
    padding: 10px 20px 10px 20px;
    border: none !important;
    box-shadow: 0 0 12px 1px rgba(0, 0, 255, .2);
    text-align: center;
    margin-bottom: 7px;
    margin-top: 7px !important;
}
 html {
  -webkit-tap-highlight-color: transparent;
}
ul.post-categories a {
    border-left: 8px solid #309d7d !important;
    background-color: #e8ddff !important;
    font-size: 1.1rem !important;
    border-radius: 8px;
}
/**
 * Balance titles for better UI.
 */


a.author-name {
    background: white;
    padding: 3px 14px 3px 14px;
    border-radius: 20px;
}
.related-article .label {
    background-color: #dd456b !important;
    color: white;
}
/**
 * Add a cursor to logo since link is managed by JS.
 */

 .site-branding-container {
  cursor: pointer;
}

/**
 * Display a rounded image on authors pages main title avatar.
 */

h1 img {
  margin-right: .75em;
}

h1 .avatar {
  border-radius: 50%;
}

/**
 * Center navigation and provide a generic class to center elements.
 */

.paging-navigation,
.text-center {
  text-align: center;
}

/**
 * Correct a bad margin on featured images.
 */

.no-featured-image-padding .featured-image {
  margin-left: 0 !important;
}

/**
 * Add a top margin to right sidebar on desktop.
 */

@media(max-width: 768px) {
  .sidebar {
    margin-top: 40px;
  }
}

/**
 * Prevent useless repaints and reflows.
 */

.sidebar,
.widget {
  contain: layout style;
}

/**
 * Prevent overflow-x out of screen.
 */

body .wp-block-search__label {
  width: auto;
}

/**
 * Improve default links style
 */

a {
  text-decoration-thickness: 3px;
	text-underline-offset: .25em;
}

.inside-article p:not(.simple) a:not(.simple):not(.wp-block-latest-posts__post-title),
.inside-article ul:not(.az-columns):not(.az-links) a:not(.simple):not(.wp-block-latest-posts__post-title):not([rel*="category"]) {
  text-decoration-line: underline;
}

/*--------------------------------------------------------------
# Web performance optimization
--------------------------------------------------------------*/

/**
 * Prevent footer rendering on initial rendering.
 */

.site-footer {
  content-visibility: auto;
  contain-intrinsic-height: 400px;
  contain-intrinsic-width: 100%;
}

@media(min-width: 768px) {
  .site-footer {
    contain-intrinsic-height: 300px;
  }
}

/**
 * Optimize Google Ads inserts to prevent CLS.
 */

.site-content ins.adsbygoogle,
.site-content .adsbygoogle {
  contain: content;
  display: block;
  height: 280px;
  width: 100%;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

.woocommerce div.product p.price ins,
.woocommerce ul.products li.product .price ins,
.woocommerce .related ul.products li.product .price ins,
.woocommerce .up-sells ul.products li.product .price ins,
.woocommerce span.price ins {
  contain: none;
  display: inline;
  height: auto;
  width: auto;
  margin: 0;
}

/**
 * Reduce CLS and layout changes with embeds
 */

.instagram-media,
.twitter-tweet,
.tiktok-embed {
	contain: content;
  min-height: 300px;
}

/*--------------------------------------------------------------
# Specific to GeneratePerf
--------------------------------------------------------------*/

/**
 * Prevent vertical scroll when overlay is activated.
 */

body.overlayed {
  overflow: hidden;
  height: 100%;
}

/**
 * Increase main area padding with right sidebar.
 */

@media(min-width: 769px){
  .one-container.right-sidebar .site-main, .one-container.both-right .site-main {
    margin-right: 40px;
  }
}

/**
 * Improve icons alignment.
 */

svg.icon {
  vertical-align: middle;
}

/**
 * Mimic native <a> effect on hover.
 */

[data-goto]:hover,
[data-share-url]:hover,
.gb-query-loop-item {
  cursor: pointer;
}

[data-goto]:not(.button):not(.gb-button):hover {
  text-decoration: underline;
}

/**
 * Class used on some interface elements.
 */

.o50 {
  opacity: 50%;
}

/**
 * Subtitles styling (option in GeneratePerf).
 */

p[role="doc-subtitle"] {
  margin-top: 1em;
  font-weight: 500;
  position: relative;
}

p[role="doc-subtitle"]::before {
  content: "";
  background-color: var(--darker);
  opacity: .1;
  position: absolute;
  width: auto;
  height: calc(100% + 20px);
  aspect-ratio: 1/1;
  top: -10px;
  left: -10px;
  z-index: -1;
}

/**
 * Display featured image caption in articles (option in GeneratePerf).
 */

.featured-image + .caption {
  margin-top: 10px;
  text-align: right;
  opacity: .75;
}

/**
 * Add GeneratePerf border-radius option on interface elements.
 */

button, input, textarea {
  border-radius: var(--border-radius) !important;
}

/**
 * Add Breadcrumb specific style.
 */

.yoast-breadcrumbs {
  line-height: 40px;
}

.yoast-breadcrumbs a:hover {
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Custom : enter your personal code under
--------------------------------------------------------------*/

[data-gpmodal-trigger]:hover {
  cursor: pointer;
}

@media(min-width: 768px) {
  .header-aligned-center:not([class*=nav-float-]) .inside-header {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
  }
  .inside-header .gb-container {
    margin-top: 0 !important;
  }
}

.site-logo {
  margin-top: 0 !important;
}

.featured-image img {
  width: 100%;
}

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

h2:not(.simple):not(.entry-title) {
  margin-top: 40px;
  position: relative;
}

h2:not(.simple):not(.entry-title)::before {
  display: block;
  position: absolute;
  width: 120px;
  height: 60px;
  left: -20px;
  bottom: -1px;
  z-index: -1;
  -content: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2890 1445" width="120" height="60"><path d="M0 1445C0 646.9 647 0 1445 0s1445 647 1445 1445H0z" fill="%23f9e0e7"/></svg>');
}

.wp-block-latest-posts__list.columns-1 > li {
  margin-bottom: 40px;
}

.site-footer ul {
  margin-left: 1em;
  list-style: square;
}

.page-title {
  display: flex;
  align-items: center;
}

.brands-container {
  margin: 2em 0;
}

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

.slide-labels {
  list-style-type: none;
  margin: 0 0 2em !important;
  line-height: 2em;
}

.post-categories {
  list-style-type: none;
  margin: 0 0 .5em !important;
  line-height: 2em;
}

.slide-labels li,
.post-categories li {
  margin-right: 1em;
  display: inline-block;
  line-height: 1.9em;
}

.slide-labels li a,
.post-categories li a,
.tags-links a {
    background-color: #dd456b !important;
    font-size: 13px !important;
    border-radius: 104px;
    padding: 4px 11px 4px 10px;
    border: none !important;
    box-shadow: 0 0 12px 1px rgb(0 0 255 / 27%);
    text-align: center;
    margin-bottom: 7px;
    margin-top: 7px !important;
    color: white;
}

.tags-links a {
  margin-left: 10px;
  margin-bottom: 10px;
}

.slide-labels li a:hover,
.post-categories li a:hover,
.tags-links a:hover {
  color: var(--contrast);
}

.tags-links .gp-icon {
  display: none;
}

.tags-links::before {
  content: "tags";
  text-transform: uppercase;
  font-weight: 700;
}

.spinner {
  display: none !important
}

/*--------------------------------------------------------------
# Google News
--------------------------------------------------------------*/

.google-news-card {
  border-top: 1px solid var(--base);
  padding-top: 30px;
  margin: 40px 0;
}

.google-news-button-container {
  margin-top: 2em;
  text-align: center;
}

.google-news-card a {
  border: 1px solid var(--base);
  border-radius: 5px;
  padding: 12px 18px;
  color: #000 !important;
  font-weight: 700;
  background-color: #fff;
}

.google-news-card a:hover {
  color: #000 !important;
  border-top-color: #0f9d58;
  border-right-color: #eb4132;
  border-bottom-color: #4086f4;
  border-left-color: #f8a808;
}

.google-news-card svg {
  vertical-align: middle !important;
  margin-left: .75em;
}

.menu-item > a > svg {
  fill: currentColor;
  margin-right: .4em;
  width: 18px;
  height: 18px;
  vertical-align: sub;
}

.dropdown-menu-toggle {
  padding-right: 5px !important;
}

.wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  column-gap: .4rem;
  row-gap: .4rem;
  counter-reset: list-number;
}

.wp-block-tag-cloud a {
  counter-increment: list-number;
  font-size: 1rem !important;
  padding: .12em .55em;
  border-radius: 2rem;
  border: 2px solid rgba(255, 255, 255, .5);
  text-transform: capitalize;
}

.wp-block-tag-cloud a::before {
  content:counter(list-number) ".";
  color: var(--light);
  margin-right: .25em;
  font-weight: 500;
}

.wp-block-tag-cloud a:hover {
  border-color: var(--light);
}

.inside-article .related-articles {
  border-top: 1px solid var(--base);
  padding-top: 30px;
}

.inside-right-sidebar .related-articles h2 {
  border-bottom: 1px solid var(--base);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/**
 * Copy section links
 */

 h2 a.copy,
 h3 a.copy {
   color: var(--contrast-3);
   opacity: 0;
 }
 
 h2 a.copied,
 h3 a.copied {
   color: var(--darker);
   opacity: 1;
 }
 
 h2:hover a,
 h3:hover a {
   opacity: 1;
 }

 .featured-image,
 .entry-content img {
  border-radius: 20px;
  overflow: hidden;
}

.h4 {
  font-weight: 700;
  font-size: 1.3rem;
}

.site-logo h1 {
  margin: 2px 0 0;
  font-size: 17px;
  color: var(--contrast);
}

@media (min-width: 769px) {
  #right-sidebar {
      width: 320px;
  }
  body:not(.no-sidebar) #primary {
      width: calc(100% - 320px);
  }
}

blockquote {
    background-color: #ffffff !important;
    font-size: 20px !important;
    border-radius: 44px;
    padding: 20px 15px 5px 7px;
    border: none !important;
    box-shadow: 0 0 12px 1px rgba(0, 0, 255, .2);
    text-align: left;
    line-height: 28px;
}

.page-id-17776 .site-main h2 { margin-top:0; }

@media (max-width: 768px) {
	h1 {
    font-size: 21px !important;
		line-height:24px !important
}
	main#main .post-categories {
margin-left: 0px !important;
}
.page-id-17776 .titre-home {  flex-direction: column;}
}
.home .images-responsive-fix { background-size: cover !important;}

/*--------------------------------------------------------------
# MDC Header cleanup
--------------------------------------------------------------*/

.site-header .site-logo a {
  text-decoration: none;
}

.site-header .mdc-logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}

.site-header .mdc-logo-mark {
  color: #c79b38;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header .mdc-logo-wordmark {
  color: #fff;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .site-header {
    background: #050505;
    border-bottom: 1px solid rgba(199, 155, 56, 0.2);
  }

  .site-header .inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
    padding: 10px 28px !important;
    min-height: 68px;
  }

  .site-header .site-logo {
    flex: 0 0 auto;
    margin: 0 !important;
    line-height: 0;
  }

  .site-header .site-logo a,
  .site-header .site-logo img,
  .site-header .mdc-logo-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-header .mdc-logo-lockup {
    gap: 5px;
  }

  .site-header .mdc-logo-mark {
    font-size: 28px;
    letter-spacing: 0.16em;
  }

  .site-header .mdc-logo-wordmark {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .site-header #mobile-menu-control-wrapper {
    display: none !important;
  }

  .site-header #site-navigation {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    background: transparent;
  }

  .site-header #site-navigation .inside-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: nowrap;
    padding: 0 !important;
  }

  .site-header #site-navigation .main-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header #site-navigation .main-nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex-wrap: nowrap;
  }

  .site-header #site-navigation .main-nav > ul > li {
    flex: 0 0 auto;
  }

  .site-header #site-navigation .main-nav > ul > li > a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 12px 10px;
    white-space: nowrap;
  }

  .site-header #site-navigation .menu-bar-items {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: 2px;
  }

  .site-header #site-navigation .menu-bar-item,
  .site-header #site-navigation .gb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header #site-navigation .menu-bar-item > a,
  .site-header #site-navigation .gb-button {
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .site-header #site-navigation .main-nav > ul > li:hover > a,
  .site-header #site-navigation .main-nav > ul > li > a:focus,
  .site-header #site-navigation .main-nav > ul > li.current-menu-item > a,
  .site-header #site-navigation .menu-bar-item > a:hover,
  .site-header #site-navigation .menu-bar-item > a:focus,
  .site-header #site-navigation .gb-button:hover,
  .site-header #site-navigation .gb-button:focus {
    color: #c79b38;
    background: rgba(199, 155, 56, 0.1);
  }

  .site-header #site-navigation .dropdown-menu-toggle {
    margin-left: 4px;
  }

  .site-header #site-navigation .shopping-bag .number-of-items {
    top: -4px;
    right: -2px;
  }
}

@media (min-width: 1025px) and (max-width: 1320px) {
  .site-header .inside-header {
    gap: 16px;
    padding: 10px 20px !important;
  }

  .site-header .mdc-logo-mark {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .site-header .mdc-logo-wordmark {
    font-size: 16px;
    letter-spacing: 0.03em;
  }

  .site-header #site-navigation .main-nav > ul > li > a {
    font-size: 12px;
    padding: 12px 8px;
  }
}

@media (max-width: 1024px) {
  .site-header .inside-header {
    padding: 12px 16px !important;
  }

  .site-header .site-logo {
    margin: 0 !important;
    line-height: 0;
  }

  .site-header #site-navigation .menu-bar-items {
    display: none !important;
  }
}

/*--------------------------------------------------------------
# Guides dropdown — override mega-menu pour un dropdown vertical classique
--------------------------------------------------------------*/

@media (min-width: 769px) {
  /* Le parent Guides NE doit PAS etre static (sinon le dropdown est en full-width) */
  #site-navigation ul.menu > li.menu-item-guides {
    position: relative !important;
  }

  /* Le sous-menu Guides : dropdown vertical classique, PAS mega-menu */
  #site-navigation ul.menu > li.menu-item-guides > ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    width: auto !important;
    max-width: 320px !important;
    min-width: 280px !important;
    display: none !important;
    grid-template-columns: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 8px 0 !important;
    background: #0a0a0a !important;
    border: 1px solid rgba(199, 155, 56, 0.2) !important;
    border-top: 3px solid #c79b38 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99999 !important;
  }

  /* Afficher au hover */
  #site-navigation ul.menu > li.menu-item-guides:hover > ul.sub-menu,
  #site-navigation ul.menu > li.menu-item-guides.sfHover > ul.sub-menu {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Chaque item du dropdown */
  #site-navigation ul.menu > li.menu-item-guides > ul.sub-menu > li {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  /* Liens du dropdown */
  #site-navigation ul.menu > li.menu-item-guides > ul.sub-menu > li > a {
    display: block !important;
    padding: 11px 24px !important;
    color: #fffdf9 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease !important;
  }

  /* Hover sur les liens */
  #site-navigation ul.menu > li.menu-item-guides > ul.sub-menu > li > a:hover {
    color: #c79b38 !important;
    background: rgba(199, 155, 56, 0.08) !important;
    padding-left: 28px !important;
    border-left: none !important;
  }

  /* Separateur avant Comparatifs */
  #site-navigation ul.menu > li.menu-item-guides > ul.sub-menu > li.menu-item-guides > .sub-menu > li:nth-child(5) {
    border-top: 1px solid rgba(199, 155, 56, 0.15) !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
  }

  /* Separateur avant Tous les guides */
  #site-navigation ul.menu > li.menu-item-guides > ul.sub-menu > li.menu-item-guides > .sub-menu > li:nth-child(6) {
    border-top: 1px solid rgba(199, 155, 56, 0.15) !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
  }

  /* Tous les guides en dore */
  #site-navigation ul.menu > li.menu-item-guides > ul.sub-menu > li.menu-item-guides > .sub-menu > li:nth-child(6) > a {
    color: #c79b38 !important;
    font-weight: 600 !important;
  }
}
