/* La Gapette — habillage du site (GeneratePress + thème enfant lagapette-child + WooCommerce).
   Se charge APRÈS tokens.css et components.css. Ne contient que des correspondances :
   chaque couleur, taille et durée est un token du design system (v3).
   Règles maison : coins arrondis = cliquable ; texte sur orange = --on-orange, jamais blanc ;
   une seule ombre (--shadow-musette) ; focus 2px --focus sur tout ce qui est interactif. */

/* ------------------------------------------------------------------ 1. Socle */
html:root {
  /* variables globales GeneratePress → tokens */
  --contrast: var(--marine-900);
  --contrast-2: var(--marine-700);
  --contrast-3: var(--peche-100);
  --base: var(--coton-100);
  --base-2: var(--coton-200);
  --base-3: var(--coton-50);
  --accent: var(--jaune-400);
  --global-color-6: var(--orange-500);
  /* WooCommerce */
  --wc-form-border-color: var(--marine-500);
  --wc-form-border-radius: var(--radius-sm);
  --wc-card-border-radius: 0;
  --wc-red: var(--alerte-600);
  --wc-green: var(--ok-600);
  /* variables de la page d'accueil du thème enfant */
  --gp-orange: var(--orange-500);
  --gp-orange-dark: var(--orange-500);
  --gp-cream: var(--coton-100);
  --gp-cream-light: var(--coton-100);
  --gp-dark: var(--marine-900);
  --gp-text: var(--marine-900);
  --gp-text-light: var(--marine-700);
  --gp-white: var(--coton-50);
  --gp-radius: 0px;
  --gp-radius-sm: 0px;
  --gp-shadow: none;
  --gp-shadow-hover: none;
  --gp-transition: var(--cadence-base) var(--ease-settle);
  /* le coureur du bouton principal, en masque (repris de Rider dans bundle.js) */
  --lg-musette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10 H19 L18 20 H6 Z M7 10 L3 4 M17 10 L21 4 M5 14 H19'/%3E%3C/svg%3E");
  --lg-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b4a66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9 L12 15 L18 9'/%3E%3C/svg%3E");
  --lg-rider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='23' r='7'/%3E%3Ccircle cx='38' cy='23' r='7'/%3E%3Cpath d='M10 23 L19 12 L29 12 L38 23 M19 12 L24 23 L10 23 M29 12 L33 15'/%3E%3Ccircle cx='24' cy='23' r='1.6' fill='%23000' stroke='none'/%3E%3Cpath d='M19 12 L28 6 L34 12 M21 12 L25 17 L23 23'/%3E%3Ccircle cx='31' cy='3.6' r='2.6' fill='%23000' stroke='none'/%3E%3Cpath d='M30 1.6 L37 2.2' stroke-width='2'/%3E%3C/svg%3E");
}

html { font-family: var(--font-texte); font-size: 16px; line-height: 1.55; }
body {
  background-color: var(--coton-100); color: var(--marine-900);
  font-family: var(--font-texte); font-size: 16px; line-height: 1.55; font-weight: 400;
}
body, button, input, select, textarea { font-family: var(--font-texte); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-affiche); color: var(--marine-900); }
h1, .entry-title, .page-title { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }
h4, h5, h6 { font-size: 16px; line-height: 1.3; font-weight: 700; }
@media (max-width: 759px) {
  h1, .entry-title, .page-title { font-size: 32px; }
  h2 { font-size: 24px; }
}

/* liens : l'orange en TEXTE est --orange-600 (le #ff7116 / #f49511 du site fait 2,4:1 sur le beige) */
a, a:visited { color: var(--orange-600); transition: color var(--cadence-fast) var(--ease-settle); }
a:hover, a:focus, a:active { color: var(--marine-900); }
/* GeneratePress colore les liens du contenu avec plus de poids : même correspondance, à son niveau */
html .inside-article a:where(:not(.button):not(.wp-block-button__link):not(.read-more):not([class*="gp-"]):not([class*="lg-"]):not([class*="ag-"])),
html .paging-navigation a, html .comments-area a, html .page-header a { color: var(--orange-600); }
html .inside-article a:where(:not(.button):not(.wp-block-button__link):not(.read-more):not([class*="gp-"]):not([class*="lg-"]):not([class*="ag-"])):hover,
html .paging-navigation a:hover, html .comments-area a:hover, html .page-header a:hover { color: var(--marine-900); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* les images, cadres et encadrés ne sont pas cliquables : coins droits */
.entry-content img, .post-image img, .featured-image img, .wp-block-image img, .wp-block-image.is-style-rounded img,
.woocommerce-product-gallery img, .wp-block-group.has-border-color { border-radius: 0 !important; }

hr, .wp-block-separator {
  height: 2px; border: 0; margin: var(--space-8) 0; opacity: 1;
  background: repeating-linear-gradient(90deg, var(--coton-300) 0 var(--couture-dash), transparent var(--couture-dash) calc(var(--couture-dash) + var(--couture-gap)));
}
::selection { background: var(--jaune-400); color: var(--on-orange); }

/* ------------------------------------------------------------------ 2. Boutons */
/* Recette commune (lg-btn) */
button.button, .search-submit,
html input[type="submit"], html input[type="button"], html input[type="reset"],
a.button, a.button:visited, .button, .wp-block-button__link, .wc-block-components-button:not(.is-link), a.read-more, a.checkout-button,
.gp-hero__cta, .gp-newsletter__btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6); box-sizing: border-box;
  font-family: var(--font-texte); font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--marine-500); border-radius: var(--radius-md);
  background: transparent; color: var(--marine-900); box-shadow: none; cursor: pointer;
  transition: background-color var(--cadence-fast) var(--ease-settle), color var(--cadence-fast) var(--ease-settle), border-color var(--cadence-fast) var(--ease-settle), transform var(--cadence-fast) var(--ease-settle);
}
/* secondaire (par défaut) : contour marine, bande damier au survol */
button.button:hover, .search-submit:hover,
html input[type="submit"]:hover, html input[type="button"]:hover, a.button:hover, .button:hover, .wp-block-button__link:hover,
.wc-block-components-button:not(.is-link):hover, a.read-more:hover {
  background: var(--coton-200); border-color: var(--marine-900); color: var(--marine-900);
}

/* principal : UN par écran — ajouter au panier, commander, CTA du héros */
.woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt, .single_add_to_cart_button.button,
.woocommerce #respond input#submit, a.checkout-button.button, #place_order,
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button,
.gp-hero__cta, .lg-is-primary,
.woocommerce .button.alt:visited, a.checkout-button.button:visited, .gp-hero__cta:visited {
  background: var(--orange-500) !important; border-color: var(--orange-500) !important; color: var(--on-orange) !important;
  padding-bottom: calc(var(--space-3) + 2px);
}
.woocommerce .button.alt:hover, .single_add_to_cart_button.button:hover, .woocommerce #respond input#submit:hover, a.checkout-button.button:hover, #place_order:hover,
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover, .gp-hero__cta:hover, .lg-is-primary:hover {
  background: var(--orange-500) !important; color: var(--on-orange) !important; transform: none;
}
.woocommerce .button.alt:active, .single_add_to_cart_button.button:active, .gp-hero__cta:active, .lg-is-primary:active { transform: translate(2px, 2px); }
.woocommerce .button.alt.disabled, .woocommerce .button.alt:disabled, .woocommerce .button:disabled, .button[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed;
}

/* la bande damier d'arrivée : entre par la gauche, sous le texte */
a.button::after, button.button::after, .wp-block-button__link::after, .wc-block-components-button:not(.is-link)::after, a.read-more::after,
.gp-hero__cta::after, .gp-newsletter__btn::after, .lg-is-primary::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: var(--damier-strip); z-index: -1;
  background: repeating-conic-gradient(var(--damier-ink) 0 25%, transparent 0 50%) 0 0 / var(--damier-strip) var(--damier-strip);
  clip-path: inset(0 100% 0 0); pointer-events: none; opacity: 1; border: 0; width: auto; margin: 0; animation: none;
}
a.button:not(.alt):not(.checkout-button)::after, button.button:not(.alt):not(#place_order)::after, .wp-block-button__link::after, a.read-more::after { --damier-ink: var(--marine-900); }
a.button:hover::after, a.button:focus-visible::after, button.button:hover::after, button.button:focus-visible::after,
.wp-block-button__link:hover::after, .wp-block-button__link:focus-visible::after,
.wc-block-components-button:not(.is-link):hover::after, a.read-more:hover::after, a.read-more:focus-visible::after,
.gp-hero__cta:hover::after, .gp-hero__cta:focus-visible::after, .gp-newsletter__btn:hover::after, .lg-is-primary:hover::after, .lg-is-primary:focus-visible::after {
  animation: lg-finish var(--cadence-sprint) var(--ease-ride) forwards;
}
/* pendant l'envoi, WooCommerce pose son indicateur sur ::after : on lui rend la place */
.woocommerce .button.loading::after { clip-path: none; background: none; animation: spin 2s linear infinite; z-index: 1; height: auto; left: auto; bottom: auto; }

/* le coureur : boutons principaux seulement */
.woocommerce a.button.alt::before, .woocommerce button.button.alt::before, a.checkout-button.button::before, #place_order::before,
.wc-block-cart__submit-button::before, .wc-block-components-checkout-place-order-button::before, .gp-hero__cta::before, .lg-is-primary::before {
  content: ""; position: absolute; left: -40px; bottom: 1px; width: 33px; height: 22px; z-index: -1; pointer-events: none; opacity: 0;
  background: var(--on-orange); -webkit-mask: var(--lg-rider) center / contain no-repeat; mask: var(--lg-rider) center / contain no-repeat;
}
.woocommerce a.button.alt:hover::before, .woocommerce a.button.alt:focus-visible::before,
.woocommerce button.button.alt:hover::before, .woocommerce button.button.alt:focus-visible::before,
a.checkout-button.button:hover::before, a.checkout-button.button:focus-visible::before, #place_order:hover::before, #place_order:focus-visible::before,
.wc-block-cart__submit-button:hover::before, .wc-block-components-checkout-place-order-button:hover::before,
.gp-hero__cta:hover::before, .gp-hero__cta:focus-visible::before, .lg-is-primary:hover::before, .lg-is-primary:focus-visible::before {
  animation: lg-ride var(--cadence-sprint) var(--ease-ride) forwards, lg-bob-y 90ms ease-in-out infinite alternate;
}
@keyframes lg-bob-y { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@media (prefers-reduced-motion: reduce) {
  a.button:hover::after, button.button:hover::after, .wp-block-button__link:hover::after, a.read-more:hover::after,
  .gp-hero__cta:hover::after, .gp-newsletter__btn:hover::after, .lg-is-primary:hover::after { animation: none; clip-path: inset(0 0 0 0); }
  .woocommerce a.button.alt:hover::before, .woocommerce button.button.alt:hover::before, a.checkout-button.button:hover::before, #place_order:hover::before,
  .gp-hero__cta:hover::before, .lg-is-primary:hover::before { animation: none; left: auto; right: var(--space-2); opacity: 1; }
}

/* ------------------------------------------------------------------ 3. Champs */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"],
textarea, select, .select2-container--default .select2-selection--single,
.wc-block-components-text-input input, .wc-blocks-components-select__select, .gp-newsletter__input {
  font-family: var(--font-texte); font-size: 16px; line-height: 1.55; color: var(--marine-900);
  background-color: var(--coton-50); border: 1.5px solid var(--marine-500); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); min-height: 48px; box-sizing: border-box; box-shadow: none;
  transition: border-color var(--cadence-fast) var(--ease-settle);
}
input[type="text"]:hover, input[type="email"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="number"]:hover, textarea:hover, select:hover { border-color: var(--marine-900); }
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
  color: var(--marine-900); background-color: var(--coton-50); border-color: var(--marine-900); outline: 2px solid var(--focus); outline-offset: 2px;
}
::placeholder { color: var(--marine-500); opacity: 1; }
label, .woocommerce form .form-row label {
  font-family: var(--font-dossard); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--marine-700); line-height: 1.2;
}
label.lg-check, .comment-form-cookies-consent label, .woocommerce-form__label-for-checkbox, .wc-block-components-checkbox label, .atelier-gapette label {
  font-family: var(--font-texte); font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--marine-900);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--marine-900); width: 22px; height: 22px; vertical-align: middle; }
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--alerte-600); }
.woocommerce form .form-row .required { color: var(--alerte-600); }

/* ------------------------------------------------------------------ 4. En-tête, navigation, pied (SiteHeader, SiteFooter) */
.site-header { background-color: var(--coton-100); border-bottom: 1px solid var(--coton-300); box-shadow: none; }
.main-title a, .main-title a:hover { font-family: var(--font-affiche); font-weight: 800; color: var(--marine-900); }
.site-header .header-image, .site-logo img { width: auto; height: 48px; }
.main-navigation, .main-navigation ul ul { background-color: var(--coton-100); }
.main-navigation a, .main-navigation .menu-toggle, .main-navigation .menu-bar-items {
  font-family: var(--font-texte); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
}
.main-navigation .main-nav ul li a, .main-navigation .menu-toggle, .main-navigation .menu-bar-items { color: var(--marine-900); }
/* survol et page courante : soulignement orange-500 de 3px qui se trace */
.main-navigation .main-nav > ul > li > a {
  padding-left: var(--space-2); padding-right: var(--space-2); margin: 0 var(--space-1); border-radius: var(--radius-sm);
  background: linear-gradient(var(--orange-500), var(--orange-500)) var(--space-2) calc(100% - 14px) / 0 3px no-repeat;
  transition: background-size var(--cadence-base) var(--ease-sprint), color var(--cadence-fast);
}
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a,
.main-navigation .menu-bar-item:hover > a { color: var(--marine-900); background-color: transparent; }
.main-navigation .main-nav > ul > li:hover > a, .main-navigation .main-nav > ul > li > a:focus-visible,
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a { background-size: calc(100% - var(--space-4)) 3px; }
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--orange-600); }
/* « Personnaliser ma gapette » en orange-600 ; « Panier » avec la musette */
.main-navigation .main-nav ul li a[href*="gapette-personnalisee"] { color: var(--orange-600); }
.main-navigation .main-nav ul li a[href*="/panier"]::before {
  content: ""; display: inline-block; width: 20px; height: 20px; margin-right: var(--space-2); vertical-align: -4px; background: currentColor;
  -webkit-mask: var(--lg-musette) center / contain no-repeat; mask: var(--lg-musette) center / contain no-repeat;
}
.main-navigation .main-nav ul ul li a { font-size: 14px; }
.main-navigation ul ul { border: 1px solid var(--coton-300); box-shadow: none; }
button.menu-toggle, button.menu-toggle:hover, button.menu-toggle:focus { background: transparent; color: var(--marine-900); border-radius: var(--radius-sm); }
@media (min-width: 760px) { .site-header .header-image, .site-logo img { height: 64px; } .inside-header { min-height: var(--header-height); padding-top: 0; padding-bottom: 0; align-items: center; } }

/* pied : bloc marine FIXE (identique en jour et en nuit), bande peloton en haut */
.site-footer { position: relative; background: var(--marine-fixe); color: var(--coton-fixe); }
.site-footer::before {
  content: ""; display: block; width: 100%; height: calc(var(--bande-height) * 3 + var(--space-1) * 2);
  background:
    linear-gradient(var(--coton-fixe), var(--coton-fixe)) 0 0 / 100% var(--bande-height) no-repeat,
    linear-gradient(var(--orange-fixe), var(--orange-fixe)) 0 calc(var(--bande-height) + var(--space-1)) / 100% var(--bande-height) no-repeat,
    linear-gradient(var(--coton-fixe), var(--coton-fixe)) 0 calc(var(--bande-height) * 2 + var(--space-1) * 2) / 100% var(--bande-height) no-repeat;
}
.footer-widgets, .site-info { background-color: var(--marine-fixe); color: var(--coton-fixe); }
.footer-widgets { font-size: 15px; }
.footer-widgets p, .footer-widgets li { color: var(--coton-fixe); }
html .footer-widgets a, html .footer-widgets a:visited, html .site-info a, html .site-info a:visited {
  color: var(--coton-fixe); text-decoration: none; padding-bottom: 2px;
  background: linear-gradient(var(--orange-fixe), var(--orange-fixe)) 0 100% / 0 2px no-repeat; transition: background-size var(--cadence-base) var(--ease-sprint);
}
html .footer-widgets a:hover, html .footer-widgets a:focus-visible, html .site-info a:hover { color: var(--coton-fixe); background-size: 100% 2px; }
.site-footer :focus-visible { outline-color: var(--orange-fixe); }
.footer-widgets .widget-title, .footer-widgets h2, .footer-widgets h3 {
  font-family: var(--font-dossard); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-fixe); margin-bottom: var(--space-3);
}
.footer-widgets .wp-block-latest-posts__list li { margin-bottom: var(--space-2); }
.site-info { border-top: 1px solid rgba(244, 238, 225, .2); font-size: 13px; }
.site-info .copyright-bar { opacity: .75; }
.wp-block-social-links .wp-social-link { background: var(--marine-900) !important; color: var(--coton-100) !important; border-radius: var(--radius-pill); }
.site-footer .wp-block-social-links .wp-social-link { background: var(--coton-fixe) !important; color: var(--marine-fixe) !important; }
.wp-block-social-links .wp-social-link a, .wp-block-social-links .wp-social-link svg { color: inherit; fill: currentColor; background: none !important; padding-bottom: 0; }
a.generate-back-to-top, a.generate-back-to-top:visited { background: var(--marine-900); color: var(--coton-100); border-radius: var(--radius-md); opacity: 1; }
a.generate-back-to-top:hover, a.generate-back-to-top:focus { background: var(--orange-500); color: var(--on-orange); }

/* ------------------------------------------------------------------ 5. Contenu, article de blog */
.one-container .site-content, .separate-containers .inside-article, .inside-article, .sidebar .widget, .comments-area, .page-header, .paging-navigation { background-color: transparent; }
.entry-header { margin-bottom: var(--space-6); }
.single-post .entry-title, .page .entry-title, .page-header .page-title, .woocommerce-products-header__title { color: var(--marine-900); margin-bottom: var(--space-3); }
/* méta : « Par Maxime · 28 sept. 2026 » en body-sm marine-500, puis la bande peloton */
.entry-meta, .entry-header .entry-meta { font-family: var(--font-texte); font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--marine-500); }
html .inside-article .entry-meta a, html .inside-article .entry-meta a:visited { color: var(--marine-700); text-decoration: none; }
html .inside-article .entry-meta a:hover { color: var(--orange-600); }
.single-post .entry-header::after, .page-header::after, .page:not(.home):not(.woocommerce-page) .entry-header::after, .woocommerce-products-header::after {
  content: ""; display: block; margin-top: var(--space-4); width: 100%; height: calc(var(--bande-height) * 3 + var(--space-1) * 2);
  background:
    linear-gradient(var(--marine-900), var(--marine-900)) 0 0 / 100% var(--bande-height) no-repeat,
    linear-gradient(var(--orange-500), var(--orange-500)) 0 calc(var(--bande-height) + var(--space-1)) / 100% var(--bande-height) no-repeat,
    linear-gradient(var(--marine-900), var(--marine-900)) 0 calc(var(--bande-height) * 2 + var(--space-1) * 2) / 100% var(--bande-height) no-repeat;
}
.taxonomy-description { font-size: 19px; line-height: 1.5; color: var(--marine-700); max-width: var(--container-text); }

.entry-content { font-size: 16px; line-height: 1.55; }
.entry-content p, .entry-content li { line-height: 1.55; }
.entry-content p { margin-bottom: var(--space-4); }
.single-post .entry-content > p, .single-post .entry-content > ul, .single-post .entry-content > ol,
.single-post .entry-content > h2, .single-post .entry-content > h3, .single-post .entry-content > h4, .single-post .entry-content > blockquote { max-width: var(--container-text); }
/* chapô : premier paragraphe en body-lg */
.single-post .entry-content > p:first-of-type { font-size: 19px; line-height: 1.5; color: var(--marine-700); }
.entry-content h2 { margin-top: var(--space-8); margin-bottom: var(--space-3); }
.entry-content h3 { margin-top: var(--space-6); margin-bottom: var(--space-2); }
.entry-content a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.entry-content figcaption, .wp-caption-text, .wp-element-caption { font-size: 14px; line-height: 1.5; color: var(--marine-500); text-align: left; }
/* citation mise en avant : title-md affiche, orange-600, sans guillemets, bande dessus et dessous */
blockquote, .wp-block-quote, .wp-block-pullquote {
  border: 0; margin: var(--space-8) 0; padding: var(--space-6) 0; font-style: normal; text-align: left;
  font-family: var(--font-affiche); font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; color: var(--orange-600);
  background:
    linear-gradient(var(--marine-900), var(--marine-900)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--orange-500), var(--orange-500)) 0 4px / 100% 2px no-repeat,
    linear-gradient(var(--marine-900), var(--marine-900)) 0 8px / 100% 2px no-repeat,
    linear-gradient(var(--marine-900), var(--marine-900)) 0 100% / 100% 2px no-repeat,
    linear-gradient(var(--orange-500), var(--orange-500)) 0 calc(100% - 4px) / 100% 2px no-repeat,
    linear-gradient(var(--marine-900), var(--marine-900)) 0 calc(100% - 8px) / 100% 2px no-repeat;
}
blockquote p, .wp-block-quote p { font: inherit; color: inherit; margin: 0; }
blockquote cite, .wp-block-quote cite { display: block; margin-top: var(--space-3); font-family: var(--font-texte); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--marine-500); font-style: normal; }

/* tableaux : filets couture, en-têtes dossard */
table, .wp-block-table table { border: 0; border-collapse: collapse; }
table th, table td, .wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--coton-300); padding: var(--space-3) var(--space-4); text-align: left; }
table th, .wp-block-table thead th { font-family: var(--font-dossard); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--marine-700); border-bottom: 1.5px solid var(--marine-500); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--coton-200); }

/* catégories en dossard, navigation d'article */
footer.entry-meta { margin-top: var(--space-8); padding-top: var(--space-4); border: 0; background: repeating-linear-gradient(90deg, var(--coton-300) 0 var(--couture-dash), transparent var(--couture-dash) calc(var(--couture-dash) + var(--couture-gap))) 0 0 / 100% 2px no-repeat; }
.cat-links .gp-icon, .tags-links .gp-icon { display: none; }
html .inside-article .cat-links a, html .inside-article .tags-links a {
  display: inline-flex; padding: var(--space-1) var(--space-2); border: 1.5px solid var(--marine-500); border-radius: var(--radius-sm);
  font-family: var(--font-dossard); font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--marine-900);
}
html .inside-article .cat-links a:hover, html .inside-article .tags-links a:hover { background: var(--marine-900); color: var(--coton-100); border-color: var(--marine-900); }
.post-navigation { margin-top: var(--space-4); }
.post-navigation a { font-weight: 600; text-decoration: none; }

/* encadrés de blocs (bordure colorée du thème) : encadré pêche, coins droits */
.entry-content .wp-block-group.has-border-color { border: 1px solid var(--coton-300) !important; background: var(--peche-100); padding: var(--space-6); }
.jp-relatedposts-headline em, h3.jp-relatedposts-headline { font-family: var(--font-dossard); font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-style: normal; }
.jp-relatedposts-headline em::before { border-top-color: var(--coton-300) !important; }
.sd-title, .sharedaddy h3.sd-title { font-family: var(--font-dossard) !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--marine-700); }
.sharedaddy h3.sd-title::before { border-top-color: var(--coton-300) !important; }

/* module « Cet article vous a-t-il été utile ? » (extension Article Votes) */
.lgv-box { background: var(--peche-100) !important; border: 1px solid var(--coton-300) !important; border-radius: 0 !important; box-shadow: none !important; color: var(--marine-900); }
.lgv-icon, .lgv-btn-icon { display: none !important; }
.lgv-question { font-family: var(--font-affiche); font-size: 20px; font-weight: 700; color: var(--marine-900); }
.lgv-btn, .lgv-send-reason {
  min-height: 40px; padding: var(--space-2) var(--space-4) !important; border: 1.5px solid var(--marine-500) !important; border-radius: var(--radius-md) !important;
  background: var(--coton-50) !important; color: var(--marine-900) !important; box-shadow: none !important;
  font-family: var(--font-texte); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.lgv-btn:hover, .lgv-send-reason:hover { background: var(--coton-200) !important; border-color: var(--marine-900) !important; }
.lgv-btn.lgv-voted, .lgv-btn.active, .lgv-btn[aria-pressed="true"] { background: var(--marine-900) !important; color: var(--coton-100) !important; border-color: var(--marine-900) !important; }
.lgv-btn-count { font-family: var(--font-dossard); font-size: 16px; }
.lgv-meta { font-size: 14px; color: var(--marine-500); }

/* ------------------------------------------------------------------ 6. Barre latérale */
.sidebar .widget { padding: 0 0 var(--space-6); margin-bottom: var(--space-6); font-size: 14px; background: repeating-linear-gradient(90deg, var(--coton-300) 0 var(--couture-dash), transparent var(--couture-dash) calc(var(--couture-dash) + var(--couture-gap))) 0 100% / 100% 2px no-repeat; }
.sidebar .widget:last-child { background: none; }
.sidebar .widget-title, .sidebar .widget h2, .sidebar .widget h3, .simpletoc-title {
  font-family: var(--font-dossard) !important; font-size: 18px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; color: var(--marine-900); margin-bottom: var(--space-3);
}
html .sidebar .widget a, html .simpletoc-list a { color: var(--marine-900); text-decoration: none; background: linear-gradient(var(--orange-600), var(--orange-600)) 0 100% / 0 2px no-repeat; transition: background-size var(--cadence-base) var(--ease-sprint); padding-bottom: 2px; }
.sidebar .widget a:hover, .simpletoc-list a:hover { color: var(--orange-600); background-size: 100% 2px; }
.simpletoc-list, .simpletoc-list ul { margin-left: var(--space-4); }
.simpletoc-list li { margin-bottom: var(--space-2); line-height: 1.4; }
.wp-block-latest-posts__post-date { font-size: 12px; color: var(--marine-500); }
.wp-block-latest-posts__list li { margin-bottom: var(--space-3); line-height: 1.35; }

/* ------------------------------------------------------------------ 7. Listes d'articles (catégories, recherche) : BlogCard */
@media (min-width: 480px) {
  .archive:not(.woocommerce) .site-main, .blog .site-main, .search-results .site-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); align-items: start; }
  .archive .site-main > .page-header, .blog .site-main > .page-header, .search-results .site-main > .page-header,
  .archive .site-main > .paging-navigation, .blog .site-main > .paging-navigation, .search-results .site-main > .paging-navigation,
  .archive .site-main > nav, .blog .site-main > nav { grid-column: 1 / -1; }
}
.archive:not(.woocommerce) .site-main > article, .blog .site-main > article, .search-results .site-main > article {
  position: relative; margin: 0; background: var(--coton-200); border: 1px solid var(--coton-300);
  border-radius: var(--radius-visiere) var(--radius-visiere) var(--radius-sm) var(--radius-sm); overflow: hidden;
  transition: transform var(--cadence-base) var(--ease-sprint), box-shadow var(--cadence-base) var(--ease-sprint);
}
.archive:not(.woocommerce) .site-main > article:hover, .blog .site-main > article:hover, .search-results .site-main > article:hover,
.archive:not(.woocommerce) .site-main > article:focus-within, .blog .site-main > article:focus-within { transform: translateY(-2px); box-shadow: var(--shadow-musette); }
.archive:not(.woocommerce) .site-main > article .inside-article, .blog .site-main > article .inside-article, .search-results .site-main > article .inside-article {
  display: flex; flex-direction: column; gap: var(--space-2); padding: 0 var(--space-4) var(--space-6); height: 100%;
}
.archive .site-main > article .post-image, .blog .site-main > article .post-image, .search-results .site-main > article .post-image {
  order: -2; margin: 0 calc(var(--space-4) * -1) var(--space-2); aspect-ratio: 3 / 2; overflow: hidden; background: var(--coton-100);
}
.archive .site-main > article .post-image img, .blog .site-main > article .post-image img, .search-results .site-main > article .post-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* sans image : le motif à deux bandes du design system */
.archive:not(.woocommerce) .site-main > article:not(.has-post-thumbnail) .inside-article::before, .blog .site-main > article:not(.has-post-thumbnail) .inside-article::before {
  content: ""; order: -2; margin: 0 calc(var(--space-4) * -1) var(--space-2); aspect-ratio: 3 / 2;
  background: linear-gradient(var(--orange-500), var(--orange-500)) 0 62% / 100% 10% no-repeat, linear-gradient(var(--marine-900), var(--marine-900)) 0 76% / 100% 6% no-repeat, var(--coton-100);
}
.archive .site-main > article footer.entry-meta, .blog .site-main > article footer.entry-meta, .search-results .site-main > article footer.entry-meta { order: -1; margin: 0; padding: 0; background: none; position: relative; z-index: 2; }
html .archive .site-main > article .inside-article .cat-links a, html .blog .site-main > article .inside-article .cat-links a, html .search-results .site-main > article .inside-article .cat-links a { border: 0; padding: 0; color: var(--orange-600); font-size: 18px; }
html .archive .site-main > article .inside-article .cat-links a:hover, html .blog .site-main > article .inside-article .cat-links a:hover { background: none; color: var(--marine-900); }
.archive .site-main > article .comments-link, .blog .site-main > article .comments-link { display: none; }
.archive .site-main > article .entry-header, .blog .site-main > article .entry-header, .search-results .site-main > article .entry-header { margin: 0; display: contents; }
.archive .site-main > article .entry-title, .blog .site-main > article .entry-title, .search-results .site-main > article .entry-title { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
html .archive .site-main > article .entry-title a, html .blog .site-main > article .entry-title a, html .search-results .site-main > article .entry-title a, html .inside-article .entry-title a { color: var(--marine-900); text-decoration: none; }
/* toute la carte est un seul lien : le titre s'étend sur la carte */
.archive:not(.woocommerce) .site-main > article .entry-title a::after, .blog .site-main > article .entry-title a::after, .search-results .site-main > article .entry-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.archive .site-main > article .entry-header .entry-meta, .blog .site-main > article .entry-header .entry-meta, .search-results .site-main > article .entry-header .entry-meta { order: 3; margin: 0; }
.archive .site-main > article .entry-summary, .blog .site-main > article .entry-summary, .search-results .site-main > article .entry-summary { margin: 0; color: var(--marine-700); order: 2; }
.archive .site-main > article .entry-summary p, .blog .site-main > article .entry-summary p { margin: 0; }
.archive .site-main > article .sharedaddy, .blog .site-main > article .sharedaddy, .search-results .site-main > article .sharedaddy { display: none; }
/* « Lire la suite » : lien discret dont le soulignement se trace au survol de la carte */
.archive .site-main > article a.read-more, .blog .site-main > article a.read-more, .search-results .site-main > article a.read-more {
  display: inline; min-height: 0; padding: 0 0 2px; border: 0; border-radius: 0; overflow: visible; text-transform: none; letter-spacing: 0; font-weight: 600; line-height: 1.55;
  color: var(--orange-600); background: linear-gradient(var(--orange-600), var(--orange-600)) 0 100% / 0 2px no-repeat; transition: background-size var(--cadence-base) var(--ease-sprint);
}
.archive .site-main > article a.read-more::after, .blog .site-main > article a.read-more::after { display: none; }
.archive .site-main > article:hover a.read-more, .blog .site-main > article:hover a.read-more, .search-results .site-main > article:hover a.read-more { background-size: 100% 2px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 var(--space-2); border: 1.5px solid var(--marine-500); border-radius: var(--radius-md); font-family: var(--font-dossard); font-weight: 700; font-size: 18px; text-decoration: none; color: var(--marine-900); }
.nav-links .page-numbers.current { background: var(--marine-900); color: var(--coton-100); border-color: var(--marine-900); }
.nav-links .page-numbers.dots { border: 0; }

/* ------------------------------------------------------------------ 8. Accueil (gabarits.md ; balisage gp- du thème enfant) */
.gp-section-header h2, .gp-about__title, .gp-newsletter__title, .gp-hero__title, .gp-article-card__title, .gp-cat-card__name {
  font-family: var(--font-affiche) !important; font-weight: 800; letter-spacing: -0.015em;
}
.gp-section-header { text-align: left; margin-bottom: var(--space-8); }
.gp-section-header h2 { font-size: 44px; line-height: 1; color: var(--marine-900); }
.gp-section-header p { color: var(--marine-700); font-size: 19px; line-height: 1.5; margin: 0; max-width: 60ch; }
.gp-section-header .gp-accent-line {
  width: 96px; height: calc(var(--bande-height) * 3 + var(--space-1) * 2); border-radius: 0; margin: var(--space-4) 0 0;
  background:
    linear-gradient(var(--marine-900), var(--marine-900)) 0 0 / 100% var(--bande-height) no-repeat,
    linear-gradient(var(--orange-500), var(--orange-500)) 0 calc(var(--bande-height) + var(--space-1)) / 100% var(--bande-height) no-repeat,
    linear-gradient(var(--marine-900), var(--marine-900)) 0 calc(var(--bande-height) * 2 + var(--space-1) * 2) / 100% var(--bande-height) no-repeat;
}
/* les sections se séparent par l'espace, jamais par un filet ; seules bandes sombres : héros et infolettre */
.gp-categories, .gp-featured, .gp-about { padding: var(--space-12) 0; background: transparent; }
@media (min-width: 760px) { .gp-categories, .gp-featured, .gp-about { padding: var(--space-16) 0; } }
.gp-container { max-width: var(--container-max); padding: 0 var(--gutter); }
@media (min-width: 760px) { .gp-container { padding: 0 var(--space-6); } }

/* Hero : photo à gauche, panneau marine fixe à droite, aucun texte sur la photo */
.gp-hero { display: grid; grid-template-columns: 1fr; min-height: 0; align-items: stretch; overflow: visible; background: var(--marine-fixe); color: var(--coton-fixe); }
.gp-hero__bg { position: relative; inset: auto; aspect-ratio: 4 / 3; filter: none; transition: none; background-position: center; }
.gp-hero:hover .gp-hero__bg { transform: none; }
.gp-hero__content.gp-container { max-width: none; width: auto; padding: var(--space-8) var(--gutter); display: grid; gap: var(--space-4); align-content: center; justify-items: start; }
.gp-hero__content > * { margin: 0 !important; }
.gp-hero__tag { background: none; color: var(--orange-fixe); border-radius: 0; padding: 0; font-family: var(--font-dossard); font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gp-hero__title { color: var(--coton-fixe) !important; font-size: clamp(40px, 4.4vw, 64px) !important; line-height: .95 !important; letter-spacing: -0.02em; max-width: 16ch; }
.gp-hero__excerpt { color: var(--coton-fixe); opacity: .9; font-size: 19px; line-height: 1.5; max-width: 44ch; }
.gp-hero__cta, .gp-hero__cta:hover, .gp-hero__cta:visited { background: var(--orange-fixe) !important; border-color: var(--orange-fixe) !important; color: var(--marine-fixe) !important; border-radius: var(--radius-md); transform: none; }
.gp-hero__cta::before { background: var(--marine-fixe); }
.gp-hero__cta::after { --damier-ink: var(--marine-fixe); }
.gp-hero__cta svg { display: none; }
.gp-hero :focus-visible { outline-color: var(--orange-fixe); }
@media (min-width: 760px) {
  .gp-hero { grid-template-columns: 1.1fr 1fr; min-height: 520px; }
  .gp-hero__bg { aspect-ratio: auto; }
  .gp-hero__content.gp-container { padding: var(--space-16) var(--space-12); }
}

/* UniversTile : tuile-lien sans photo ni icône, nombre en dossard orange, « Explorer » */
.gp-cat-grid { gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 480px) { .gp-cat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
@media (min-width: 760px) { .gp-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gp-cat-grid { grid-template-columns: repeat(5, 1fr); } }
.gp-cat-card, .gp-cat-card:visited {
  aspect-ratio: auto; min-height: 180px; display: flex; flex-direction: column; padding: var(--space-6) var(--space-4); overflow: visible;
  background: var(--coton-200); color: var(--marine-900); border: 1px solid var(--coton-300); box-shadow: none;
  border-radius: var(--radius-visiere) var(--radius-visiere) var(--radius-sm) var(--radius-sm);
  transition: transform var(--cadence-base) var(--ease-sprint), box-shadow var(--cadence-base) var(--ease-sprint);
}
.gp-cat-card:hover, .gp-cat-card:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--shadow-musette); }
.gp-cat-card__img, .gp-cat-card__overlay, .gp-cat-card__icon { display: none; }
.gp-cat-card__content { position: static; padding: 0; background: none; display: flex; flex-direction: column-reverse; gap: var(--space-2); flex: 1; }
.gp-cat-card__name { color: var(--marine-900); font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.gp-cat-card__count { color: var(--orange-600); font-family: var(--font-dossard); font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.gp-cat-card::after {
  content: "Explorer"; margin-top: auto; padding: var(--space-3) 0 2px; align-self: flex-start; font-weight: 600; font-size: 14px; color: var(--orange-600);
  background: linear-gradient(var(--orange-600), var(--orange-600)) 0 100% / 0 2px no-repeat; transition: background-size var(--cadence-base) var(--ease-sprint);
}
.gp-cat-card:hover::after { background-size: 100% 2px; }

/* derniers articles : BlogCard, toute la carte est un lien */
.gp-articles-grid { gap: var(--space-6); }
.gp-article-card { position: relative; background: var(--coton-200); border: 1px solid var(--coton-300); border-radius: var(--radius-visiere) var(--radius-visiere) var(--radius-sm) var(--radius-sm); box-shadow: none; transition: transform var(--cadence-base) var(--ease-sprint), box-shadow var(--cadence-base) var(--ease-sprint); }
.gp-article-card:hover, .gp-article-card:focus-within { transform: translateY(-2px); box-shadow: var(--shadow-musette); }
.gp-article-card:hover .gp-article-card__img img { transform: none; }
.gp-article-card__img { background: linear-gradient(var(--orange-500), var(--orange-500)) 0 62% / 100% 10% no-repeat, linear-gradient(var(--marine-900), var(--marine-900)) 0 76% / 100% 6% no-repeat, var(--coton-100); }
.gp-article-card__img-tag { background: var(--marine-900); color: var(--coton-100); border-radius: 0; font-family: var(--font-dossard); font-size: 16px; font-weight: 700; letter-spacing: .06em; padding: var(--space-1) var(--space-2); }
.gp-article-card__body { padding: var(--space-4) var(--space-4) var(--space-6); }
.gp-article-card__meta { font-size: 14px; color: var(--marine-500); }
.gp-article-card__meta span { color: var(--marine-700); font-weight: 600; }
.gp-article-card__title { color: var(--marine-900) !important; font-size: 28px !important; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.gp-article-card:hover .gp-article-card__title { color: var(--marine-900) !important; }
.gp-article-card__excerpt { color: var(--marine-700); font-size: 16px; line-height: 1.55; }
.gp-article-card__link, .gp-article-card__link:visited { color: var(--orange-600) !important; font-size: 16px; align-self: flex-start; padding-bottom: 2px; background: linear-gradient(var(--orange-600), var(--orange-600)) 0 100% / 0 2px no-repeat; transition: background-size var(--cadence-base) var(--ease-sprint); }
.gp-article-card:hover .gp-article-card__link { background-size: 100% 2px; gap: 6px; }
.gp-article-card__link::after { content: ""; position: absolute; inset: 0; }
.gp-article-card__link svg { display: none; }

/* AboutBlock : clair, photo carrée, texte de Maxime */
.gp-about { color: var(--marine-900); }
.gp-about::before, .gp-newsletter::before, .gp-newsletter::after { display: none; }
.gp-about__inner { grid-template-columns: 1fr; gap: var(--space-6); align-items: center; }
.gp-about__photo { width: 200px; margin: 0 auto; }
.gp-about__photo img { border-radius: 0; box-shadow: none; aspect-ratio: 1; }
.gp-about__photo-accent { display: none; }
.gp-about__label { color: var(--orange-600); font-family: var(--font-dossard); font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.gp-about__title { color: var(--marine-900) !important; font-size: 44px !important; line-height: 1 !important; }
.gp-about__text { color: var(--marine-700); font-size: 19px; line-height: 1.5; max-width: 60ch; }
.gp-about__stat-number { font-family: var(--font-dossard) !important; font-size: 32px; font-weight: 700; letter-spacing: .04em; color: var(--orange-600); line-height: 1; }
.gp-about__stat-label { color: var(--marine-700); font-family: var(--font-dossard); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
@media (min-width: 760px) { .gp-about__inner { grid-template-columns: 240px 1fr; gap: var(--space-8); text-align: left; } .gp-about__photo { width: 240px; margin: 0; } }

/* Newsletter « dark » : bloc marine fixe juste au-dessus du pied, bouton orange fixe */
.gp-newsletter { position: relative; padding: var(--space-12) 0; background: var(--marine-fixe); color: var(--coton-fixe); }
.gp-newsletter__inner { text-align: left; max-width: none; margin: 0; }
.gp-newsletter__icon { display: none; }
.gp-newsletter__title { color: var(--coton-fixe) !important; font-size: 44px !important; line-height: 1 !important; }
.gp-newsletter__text { color: var(--coton-fixe); opacity: .85; font-size: 16px; line-height: 1.55; max-width: 52ch; margin-bottom: var(--space-4); }
.gp-newsletter__note { color: var(--coton-fixe); opacity: .75; font-size: 13px; }
.gp-newsletter__form { max-width: 560px; margin: 0; gap: var(--space-3); }
.gp-newsletter__input, .gp-newsletter__input:focus { background: var(--coton-fixe); color: var(--marine-fixe); border: 1.5px solid var(--coton-fixe); border-radius: var(--radius-sm); box-shadow: none; }
.gp-newsletter__input::placeholder { color: #56617a; }
.gp-newsletter__btn, .gp-newsletter__btn:hover { background: var(--orange-fixe) !important; border-color: var(--orange-fixe) !important; color: var(--marine-fixe) !important; border-radius: var(--radius-md); box-shadow: none; transform: none; padding-bottom: calc(var(--space-3) + 2px); }
.gp-newsletter__btn::after { --damier-ink: var(--marine-fixe); }
.gp-newsletter :focus-visible { outline-color: var(--orange-fixe); }
@media (max-width: 759px) {
  .gp-section-header h2, .gp-about__title, .gp-newsletter__title { font-size: 32px !important; }
  .gp-about__stats { gap: var(--space-6); }
}

/* Jetpack : abonnement */
.wp-block-jetpack-subscriptions input[type="email"] { border: 1.5px solid var(--marine-500) !important; border-radius: var(--radius-sm) !important; background: var(--coton-50) !important; color: var(--marine-900) !important; font-size: 16px !important; padding: var(--space-3) var(--space-4) !important; }
.wp-block-jetpack-subscriptions button.wp-block-button__link, .jetpack-subscribe-floating-button button.wp-block-button__link {
  background: transparent !important; color: var(--marine-900) !important; border: 1.5px solid var(--marine-500) !important; border-radius: var(--radius-md) !important;
  font-size: 16px !important; padding: var(--space-3) var(--space-6) !important; margin: 0 !important;
}
.jetpack-subscribe-floating-button button.wp-block-button__link { background: var(--marine-fixe) !important; color: var(--coton-fixe) !important; border-color: var(--marine-fixe) !important; }
.wp-block-jetpack-subscriptions button.wp-block-button__link:hover { background: var(--coton-200) !important; border-color: var(--marine-900) !important; }
.jetpack-subscribe-modal__modal-content { border-radius: 0 !important; background: var(--coton-100) !important; box-shadow: var(--shadow-musette) !important; border: 1px solid var(--marine-900); }

/* ------------------------------------------------------------------ 9. Boutique WooCommerce */
.woocommerce-breadcrumb, .woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--marine-500); }
.woocommerce .woocommerce-breadcrumb a { color: var(--marine-700); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--orange-600); }

/* prix : dossard, orange texte */
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price, .wc-block-grid__product-price, .wc-block-components-product-price {
  font-family: var(--font-dossard); font-weight: 700; letter-spacing: .04em; color: var(--orange-600);
}
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 32px; line-height: 1; }
.woocommerce ul.products li.product .price, .wc-block-grid__product-price { font-size: 20px; }
.woocommerce .price del { color: var(--marine-500); opacity: 1; font-weight: 600; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce span.onsale {
  min-height: 0; min-width: 0; line-height: 1; padding: var(--space-1) var(--space-2); border-radius: 0; margin: 0; top: var(--space-2) !important; left: var(--space-2) !important; right: auto !important;
  background: var(--jaune-400); color: var(--on-orange); font-family: var(--font-dossard); font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* ProductCard : carte carrée coton-200, photo sur blanc fixe, un bouton pleine largeur */
.woocommerce ul.products li.product, .wc-block-grid__product {
  display: flex; flex-direction: column; text-align: left; background: var(--coton-200); border: 1px solid var(--coton-300); padding: 0 0 var(--space-4);
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link { display: flex; flex-direction: column; flex: 1; }
.woocommerce ul.products li.product a img, .wc-block-grid__product-image img {
  border-radius: 0; background: var(--blanc-fixe); border: 0; margin: 0 0 var(--space-4); aspect-ratio: 1; object-fit: cover; width: 100%;
  transition: transform var(--cadence-base) var(--ease-sprint);
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link { overflow: hidden; }
.woocommerce ul.products li.product a:hover img { transform: scale(1.03); }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3, .wc-block-grid__product-title {
  font-family: var(--font-texte); font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: var(--marine-900); padding: 0 var(--space-4) var(--space-2);
}
html .woocommerce ul.products li.product a:not(.button) { text-decoration: none; color: var(--marine-900); }
html .woocommerce ul.products li.product a:not(.button):hover .woocommerce-loop-product__title { color: var(--orange-600); }
.woocommerce ul.products li.product .star-rating { margin: 0 var(--space-4) var(--space-2); }
.woocommerce ul.products li.product .price { display: block; margin: 0; padding: 0 var(--space-4) var(--space-2); font-size: 24px; color: var(--marine-900); }
html .woocommerce ul.products li.product .button { display: flex; width: auto; margin: auto var(--space-4) 0; min-height: 48px; font-size: 16px; padding: var(--space-3) var(--space-4); text-align: center; }
/* produit simple : « Ajouter au panier » principal ; produit variable : « Choix des options » secondaire */
html .woocommerce ul.products li.product .button.product_type_simple, html .woocommerce ul.products li.product .button.product_type_simple:hover {
  background: var(--orange-500); border-color: var(--orange-500); color: var(--on-orange);
}
html .woocommerce ul.products li.product .button.product_type_simple::after { --damier-ink: var(--on-orange); }
html .woocommerce ul.products li.product .onsale { top: var(--space-3) !important; left: var(--space-3) !important; }

/* étoiles : jaune-400 cerné marine, jamais colorées selon la note */
.woocommerce .star-rating { color: var(--jaune-400); -webkit-text-stroke: 1px var(--marine-900); font-size: 18px; width: 5.6em; letter-spacing: 1px; }
.woocommerce .star-rating::before { color: var(--coton-50); }
.woocommerce .star-rating span::before { color: var(--jaune-400); }
.woocommerce p.stars a { color: var(--marine-900); border-radius: var(--radius-sm); }
.woocommerce p.stars a::before { color: var(--jaune-400); -webkit-text-stroke: 1px var(--marine-900); font-size: 28px; }
.woocommerce p.stars a { width: 34px; height: 34px; }
.woocommerce-review-link { font-size: 14px; color: var(--marine-500); }

/* fiche produit */
.woocommerce div.product .product_title { font-size: 44px; line-height: 1; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 19px; line-height: 1.5; color: var(--marine-700); }
.woocommerce div.product form.cart .variations label, .woocommerce div.product form.cart .variations th { font-family: var(--font-dossard); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--marine-700); border: 0; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { border: 0; padding-left: 0; }
.woocommerce .quantity .qty, .woocommerce div.product form.cart div.quantity .qty {
  width: 72px; height: 48px; min-height: 48px; padding: 0 var(--space-2); text-align: center; border: 1.5px solid var(--marine-500); border-radius: var(--radius-md); background: var(--coton-50);
  font-family: var(--font-dossard); font-size: 20px; font-weight: 700; color: var(--marine-900);
}
.woocommerce div.product form.cart .button { float: none; }
.woocommerce div.product form.cart div.quantity { margin-right: var(--space-3); }
.product_meta { font-size: 14px; color: var(--marine-500); padding-top: var(--space-4); border: 0; background: repeating-linear-gradient(90deg, var(--coton-300) 0 var(--couture-dash), transparent var(--couture-dash) calc(var(--couture-dash) + var(--couture-gap))) 0 0 / 100% 2px no-repeat; }
.woocommerce div.product .stock { color: var(--ok-600); font-weight: 600; }
.woocommerce div.product .out-of-stock { color: var(--alerte-600); }

/* Tabs : libellés Barlow 700 capitales, l'onglet choisi souligné de 3px orange-500, panneau en colonne de lecture */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-1); border-bottom: 2px solid var(--coton-300); overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li, .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: transparent; border: 0; border-radius: 0; margin: 0 0 -2px; padding: 0; }
html .woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block; padding: var(--space-3) var(--space-4); border-bottom: 3px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; color: var(--marine-700); text-decoration: none;
  font-family: var(--font-texte); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  transition: color var(--cadence-fast), border-color var(--cadence-fast);
}
html .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--marine-900); }
html .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--marine-900); border-bottom-color: var(--orange-500); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.woocommerce div.product .woocommerce-tabs .panel { background: transparent; border: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs .panel > p, .woocommerce div.product .woocommerce-tabs .panel > h2, .woocommerce div.product .woocommerce-tabs .panel > h3, .woocommerce div.product .woocommerce-tabs .panel > ul, .woocommerce div.product .woocommerce-tabs .panel > table { max-width: var(--container-text); }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-family: var(--font-dossard); font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.woocommerce table.shop_attributes, .woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--coton-300); background: transparent !important; font-style: normal; }
.woocommerce table.shop_attributes td p { padding: var(--space-2) 0; }
.related.products > h2, .upsells.products > h2, .cross-sells > h2 { font-size: 28px; margin-bottom: var(--space-6); }
.woocommerce div.product div.images img, .woocommerce-product-gallery__image { background: var(--blanc-fixe); }

/* avis clients (brand-book/avis.md) */
.woocommerce #reviews #comments h2, .woocommerce-Reviews-title { font-family: var(--font-affiche); font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.woocommerce #reviews .woocommerce-noreviews {
  padding: var(--space-6); border: 2px dashed var(--coton-300); border-radius: 0; max-width: 520px; margin: 0 0 var(--space-4);
  font-family: var(--font-affiche); font-size: 20px; font-weight: 700; color: var(--marine-900); background: transparent;
}
.woocommerce #reviews .woocommerce-noreviews::after { content: "Soyez le premier à dire si la visière tient sous le casque."; display: block; margin-top: var(--space-2); font-family: var(--font-texte); font-size: 16px; font-weight: 400; color: var(--marine-700); }
.woocommerce #reviews .woocommerce-verification-required { font-size: 14px; color: var(--marine-700); margin: 0; }
.woocommerce #reviews #comments ol.commentlist { padding: 0; margin: 0; }
.woocommerce #reviews #comments ol.commentlist li { margin: 0; padding: var(--space-6) 0; max-width: 680px; background: repeating-linear-gradient(90deg, var(--coton-300) 0 var(--couture-dash), transparent var(--couture-dash) calc(var(--couture-dash) + var(--couture-gap))) 0 0 / 100% 2px no-repeat; }
.woocommerce #reviews #comments ol.commentlist li img.avatar { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 0; background: var(--marine-900); position: absolute; top: 0; left: 0; }
.woocommerce #reviews #comments ol.commentlist li .comment_container { position: relative; }
.woocommerce #reviews #comments ol.commentlist li .comment-text { margin: 0 0 0 52px; border: 0; border-radius: 0; padding: 0; }
.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta { font-size: 14px; color: var(--marine-500); margin-bottom: var(--space-2); }
.woocommerce #reviews #comments ol.commentlist li .comment-text .woocommerce-review__author { font-size: 16px; font-weight: 700; color: var(--marine-900); }
.woocommerce #reviews #comments ol.commentlist li .comment-text .description { color: var(--marine-700); }
.woocommerce-review__verified { font-family: var(--font-dossard); font-size: 12px; font-weight: 600; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ok-600); }
/* réponse de la boutique */
.woocommerce #reviews #comments ol.commentlist ul.children { list-style: none; margin: var(--space-4) 0 0 52px; padding: var(--space-3) var(--space-4); background: var(--peche-100); }
.woocommerce #reviews #comments ol.commentlist ul.children li { padding: 0; background: none; }
.woocommerce #reviews #comments ol.commentlist ul.children .star-rating, .woocommerce #reviews #comments ol.commentlist ul.children img.avatar { display: none; }
.woocommerce #reviews #comments ol.commentlist ul.children .comment-text { margin: 0; }
/* formulaire d'avis */
.woocommerce #review_form #respond { max-width: 560px; padding: var(--space-6); background: var(--coton-200); border: 1px solid var(--coton-300); border-radius: 0; }
.woocommerce #review_form #respond .comment-reply-title { display: block; font-family: var(--font-affiche); font-size: 28px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: var(--space-4); }
.woocommerce #review_form #respond p { margin: 0 0 var(--space-4); }
.woocommerce #review_form #respond textarea { min-height: 120px; }
.woocommerce #review_form #respond .form-submit { display: flex; justify-content: flex-end; margin: 0; }
.woocommerce #review_form #respond .form-submit input { position: relative; }

/* Notice : encadré carré coton-200, filet haut de 3px (marine-500 info, ok-600 succès, alerte-600 erreur) */
.woocommerce-message, .woocommerce-info, .woocommerce-error, p.no-comments, .wc-block-components-notice-banner {
  background: var(--coton-200) !important; color: var(--marine-700) !important; border: 1px solid var(--coton-300) !important; border-top: 3px solid var(--marine-500) !important; border-radius: 0 !important; box-shadow: none;
  font-size: 15px; line-height: 1.5;
}
.woocommerce-message, .wc-block-components-notice-banner.is-success { border-top-color: var(--ok-600) !important; }
.woocommerce-error, .wc-block-components-notice-banner.is-error { border-top-color: var(--alerte-600) !important; }
.woocommerce-message::before { color: var(--ok-600); } .woocommerce-info::before { color: var(--marine-700); } .woocommerce-error::before { color: var(--alerte-600); }
.wc-block-components-notice-banner > svg { background: transparent !important; fill: var(--marine-700) !important; border-radius: 0; }
.wc-block-components-notice-banner.is-success > svg { fill: var(--ok-600) !important; }
.wc-block-components-notice-banner.is-error > svg { fill: var(--alerte-600) !important; }
/* l'action du message (« Voir le panier ») : lien en capitales orange-600, pas un bouton */
html .woocommerce .woocommerce-message a.button, html .woocommerce .woocommerce-info a.button, html .woocommerce .woocommerce-error a.button {
  min-height: 0; padding: var(--space-1) var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--orange-600); font-size: 14px; overflow: visible;
}
html .woocommerce .woocommerce-message a.button:hover { background: transparent; color: var(--orange-600); text-decoration: underline; }
.woocommerce .woocommerce-message a.button::after, .woocommerce .woocommerce-info a.button::after, .woocommerce .woocommerce-error a.button::after { display: none; }

/* Select : liste native, chevron maison */
select, .wc-blocks-components-select__select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: calc(var(--space-4) + 28px);
  background-image: var(--lg-chevron); background-repeat: no-repeat; background-position: right var(--space-3) center; background-size: 20px 20px;
}
.wc-blocks-components-select__expand { display: none; }

/* panier et commande (blocs WooCommerce) */
.wc-block-components-button:not(.is-link) { border-radius: var(--radius-md) !important; }
.wc-block-components-totals-item__value, .wc-block-components-product-price__value, .wc-block-cart-item__total { font-family: var(--font-dossard); font-weight: 700; letter-spacing: .04em; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 32px; color: var(--marine-900); }
.wc-block-cart-items th, .wc-block-components-title, .wc-block-cart__totals-title, .wc-block-components-checkout-step__title {
  font-family: var(--font-dossard) !important; font-size: 18px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; color: var(--marine-900);
}
.wc-block-cart-items, .wc-block-cart-items td, .wc-block-cart-items th, .wc-block-components-totals-wrapper, .wc-block-components-panel, .wc-block-components-sidebar .wc-block-components-panel { border-color: var(--coton-300) !important; }
.wc-block-components-sidebar { background: var(--peche-100); border: 1px solid var(--coton-300); padding: var(--space-4); }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: 0 !important; background: var(--blanc-fixe); border: 1px solid var(--coton-300); }
.wc-block-cart-items .wc-block-cart-items__row { background: repeating-linear-gradient(90deg, var(--coton-300) 0 var(--couture-dash), transparent var(--couture-dash) calc(var(--couture-dash) + var(--couture-gap))) 0 0 / 100% 2px no-repeat; }
.wc-block-cart-items td { border: 0 !important; }
.wc-block-components-product-name { font-weight: 700; color: var(--marine-900); text-decoration: none; }
.wc-block-components-quantity-selector { border-radius: var(--radius-md) !important; background: var(--coton-50); }
.wc-block-components-quantity-selector::after { border: 1.5px solid var(--marine-500) !important; border-radius: var(--radius-md) !important; }
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { font-family: var(--font-dossard); font-size: 20px; font-weight: 700; background: transparent; border: 0; min-height: 0; }
.wc-block-components-product-badge { border-radius: 0; border-color: var(--marine-500); font-family: var(--font-dossard); letter-spacing: .06em; }
.wc-block-components-product-metadata, .wc-block-components-product-details { color: var(--marine-700); font-size: 14px; }
.wc-block-components-text-input label, .wc-blocks-components-select__label { font-family: var(--font-texte); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--marine-500); }
.wc-block-components-text-input input, .wc-blocks-components-select__select { padding-top: var(--space-6) !important; }
.wc-block-checkout__sidebar, .wc-block-components-order-summary { color: var(--marine-900); }
.woocommerce table.shop_table { border: 0; border-radius: 0; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top: 1px solid var(--coton-300); }
.woocommerce-checkout #payment, .woocommerce-checkout #payment div.payment_box { background: var(--coton-200); border-radius: 0; color: var(--marine-900); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--coton-200); }
.select2-container--default .select2-selection--single { height: 48px; }
.select2-dropdown { border: 1.5px solid var(--marine-500); border-radius: var(--radius-sm); background: var(--coton-50); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--marine-900); color: var(--coton-100); }

/* ------------------------------------------------------------------ 10. Utilitaires pour le contenu */
/* À poser à la main dans l'éditeur (classe CSS additionnelle) : lg-is-primary sur le bouton principal d'une page,
   lg-bande lg-bande-peloton / -couture / -damier sur un séparateur, lg-dossard sur une étiquette. */
.wp-block-button.lg-is-primary .wp-block-button__link { background: var(--orange-500) !important; border-color: var(--orange-500) !important; color: var(--on-orange) !important; }
.wp-block-button.lg-is-primary .wp-block-button__link::after { --damier-ink: var(--on-orange); }

/* ------------------------------------------------------------------ 11. Ajustements relevés à la recette */
.woocommerce ul.products, .woocommerce-page ul.products { list-style: none; margin-left: 0; padding-left: 0; }
.woocommerce ul.products li.product::marker { content: none; }
html #jp-relatedposts .jp-relatedposts-items a, html #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post-title a { color: var(--orange-600); font-weight: 600; }
html #jp-relatedposts .jp-relatedposts-items p, html #jp-relatedposts .jp-relatedposts-items time, html #jp-relatedposts .jp-relatedposts-post-context { color: var(--marine-700); opacity: 1; }
html #jp-relatedposts .jp-relatedposts-items img { border-radius: 0; }
.sidebar .wp-block-latest-posts__featured-image.alignleft { width: 96px; margin: 0 var(--space-3) var(--space-2) 0; }
.sidebar .wp-block-latest-posts__featured-image img { width: 96px; height: 64px; object-fit: cover; max-width: none; }
.sidebar .wp-block-latest-posts__list li { clear: both; overflow: hidden; }
/* le coureur sort du bouton : il est coupé au bord, même quand une autre feuille rétablit le débordement */
.woocommerce .button.alt, .single_add_to_cart_button.button, a.checkout-button.button, #place_order, .gp-hero__cta, .lg-is-primary { overflow: hidden !important; isolation: isolate; position: relative; }
/* WooCommerce donne plus de poids à ses boutons gris : même recette secondaire, à son niveau */
html .woocommerce a.button, html .woocommerce button.button, html .woocommerce input.button, html .woocommerce-page a.button, html .woocommerce-page button.button {
  background-color: transparent; color: var(--marine-900); border: 1.5px solid var(--marine-500); border-radius: var(--radius-md);
  font-family: var(--font-texte); font-weight: 700; line-height: 1; letter-spacing: .04em; text-transform: uppercase;
}
html .woocommerce a.button:hover, html .woocommerce button.button:hover, html .woocommerce input.button:hover, html .woocommerce-page a.button:hover, html .woocommerce-page button.button:hover {
  background-color: var(--coton-200); color: var(--marine-900); border-color: var(--marine-900);
}
html .woocommerce a.added_to_cart { display: inline-block; margin-left: var(--space-2); font-weight: 600; color: var(--orange-600); }
/* grille produits : .lg-grid-4 (1 → 2 → 3 → 4 colonnes), indépendante des flottants WooCommerce */
html .woocommerce ul.products, html .woocommerce-page ul.products { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
html .woocommerce ul.products::before, html .woocommerce ul.products::after { display: none; }
html .woocommerce ul.products li.product, html .woocommerce-page ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; }
@media (min-width: 480px) { html .woocommerce ul.products, html .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
@media (min-width: 760px) { html .woocommerce ul.products, html .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { html .woocommerce ul.products.columns-4, html .woocommerce-page ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); } }
