/*
Theme Name: Stone Cases
Theme URI: https://example.com
Author: —
Description: Thème bloc WooCommerce sur mesure. Couleurs et polices réglables dans Apparence → Éditeur → Styles ; en-tête et pied de page dans Apparence → Éditeur → Compositions.
Version: 1.0.2
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stone-cases
Tags: block-theme, full-site-editing, e-commerce, woocommerce
*/

/* ==========================================================================
   Mode d'emploi du squelette
   - Sections 1 à 3 et 11 : à compléter avec le CSS de la maquette (composants
     de l'accueil, en-tête, pied de page), classes posées sur les blocs.
   - Sections 4 à 10 : les pages marchandes, déjà éprouvées sur le DOM de
     WooCommerce 11.1 (voir references/blocs-woocommerce.md). On en règle la
     SURFACE d'après la maquette (tailles, espacements, boutons) — on ne
     supprime pas les correctifs commentés « PIÈGE ».
   ========================================================================== */

/* ==========================================================================
   1 · Jetons
   Les couleurs sont des ALIAS des couleurs de theme.json : le client les
   change dans Styles → Couleurs → Palette, et tout le site suit. Aucune
   couleur en dur ailleurs dans cette feuille (porte « styles globaux ») —
   les nuances se dérivent par color-mix(). --police-titres et --police-texte
   ne se définissent PAS ici : functions.php les pose depuis Styles →
   Typographie (le « pont »).
   ========================================================================== */
:root{
  --fond:var(--wp--preset--color--fond);
  --surface:var(--wp--preset--color--surface);
  --texte:var(--wp--preset--color--texte);
  --sourdine:var(--wp--preset--color--sourdine);
  --trait:var(--wp--preset--color--trait);
  --accent:var(--wp--preset--color--accent);
  --sur-accent:var(--wp--preset--color--sur-accent);
  --promo:var(--wp--preset--color--promo);
  --alerte:var(--wp--preset--color--alerte);
  --profond:var(--wp--preset--color--profond);
  --sur-profond:var(--wp--preset--color--fond);

  --rayon:var(--wp--custom--rayon,4px);
  --rayon-bouton:var(--wp--custom--rayon-bouton,999px);
  --largeur:1528px;
  --gouttiere:clamp(16px,2.5vw,36px);   /* la valeur de la maquette : elle règle aussi les sections pleine largeur */
  --entete-h:84px;
  --cretes-h:clamp(36px,6vw,90px);
  /* Crêtes : bord déchiré des bandes sombres (la bande déborde, masquée, sur sa voisine) */
  --i-cretes-haut:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V52L64 28L118 60L180 18L236 44L300 30L350 62L418 14L470 40L540 24L596 58L650 36L712 66L770 22L830 50L888 34L946 70L1004 26L1062 48L1120 16L1176 54L1236 36L1290 64L1352 30L1440 46V90z'/%3E%3C/svg%3E");
  --i-cretes-bas:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 0V40L58 66L102 32L168 62L218 42L270 70L330 24L370 56L432 42L480 72L550 34L596 56L652 30L696 64L756 34L808 52L872 12L914 42L972 20L1020 56L1086 28L1126 46L1180 12L1232 42L1278 28L1340 58L1440 36V0z'/%3E%3C/svg%3E");
  --i-gribouille:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 52c10-22 34-40 46-30 10 9-22 34-14 44 9 11 40-22 64-40m0 0l-17 1m17-1l-4 17'/%3E%3C/svg%3E");
  --i-boucle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M70 12c-30-6-56 14-52 40 3 22 30 30 48 20m0 0l-16-6m16 6l-4 16'/%3E%3C/svg%3E");

  /* Icônes en masques CSS (jamais de SVG dans le contenu) : color = currentColor */
  --i-fleche:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-sac:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M5.5 8.5h13l-1 11.5h-11z'/%3E%3Cpath d='M9 8.5V7a3 3 0 0 1 6 0v1.5'/%3E%3C/svg%3E");
  --i-livraison:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3 6.5h11v9H3zM14 9.5h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
  --i-retour:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M19.5 12a7.5 7.5 0 1 1-2.2-5.3'/%3E%3Cpath d='M19.5 4.5v4h-4'/%3E%3C/svg%3E");
  --i-cadenas:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='1.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E");

  /* Variables exposées par WooCommerce, branchées sur les rôles du thème */
  --wc-separator-color:var(--trait);
  --wc-form-color-text:var(--texte);
  --wc-product-filter-chips-text:var(--texte);
  --wc-product-filter-chips-border:var(--trait);
  --wc-product-filter-chips-background:var(--fond);
  --wc-product-filter-chips-selected-text:var(--sur-accent);
  --wc-product-filter-chips-selected-border:var(--accent);
  --wc-product-filter-chips-selected-background:var(--accent);
  --wc-product-filter-price-slider:var(--accent);
  --wc-product-filter-price-slider-handle:var(--accent);
  --wc-product-filter-price-slider-handle-border:var(--fond);
  --wc-product-filter-checkbox-list-option-element:var(--trait);
  --wc-product-filter-checkbox-list-option-element-border:var(--trait);
  --wc-product-filter-checkbox-list-option-element-selected:var(--accent);
  --wc-product-filter-removable-chips-text:var(--texte);
  --wc-product-filter-removable-chips-border:var(--trait);
  --wc-product-filter-removable-chips-background:var(--surface);
  --wc-customer-account-dropdown-border-color:var(--trait);
  --wc-customer-account-dropdown-surface:var(--fond);
  --wc-customer-account-dropdown-item-hover-bg:var(--surface);
}

/* ==========================================================================
   2 · Base
   ========================================================================== */
/* pseudo-éléments compris : sinon un rond de 9 px bordé mesure 11 px, et la ligne
   de base d'un surtitre en inline-flex bouge d'1 px par section (vécu : −3 px en bas de page) */
*,*::before,*::after{box-sizing:border-box}
/* Pas de position:relative sur body : un en-tête posé sur un héros se cale sur
   le haut de la page, et les décalages de la barre d'admin restent justes. */
body{margin:0;background:var(--fond);color:var(--texte);font-family:var(--police-texte);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block} /* height:auto obligatoire : sinon l'attribut height des blocs image l'emporte sur aspect-ratio */
/* PIÈGE : img{display:block} écrase l'attribut hidden — le mini-panier et le panier
   affichaient leur image de secours cachée (deux vignettes par article). */
[hidden]{display:none!important}
h1,h2,h3,h4{margin:0;font-family:var(--police-titres);text-wrap:balance;hyphens:none}
p{margin:0}
a{color:inherit;text-underline-offset:.18em}
a:hover{color:var(--accent)}

/* Gutenberg applique margin-block-start entre frères. La neutralisation
   se fait d'abord dans theme.json (blockGap: "0px") et, en filet de
   sécurité, ICI À SPÉCIFICITÉ NULLE — jamais en .wp-block-group > * :
   cette version-là écraserait toutes les marges de vos composants
   (vécu : 14 marges à zéro, 307 px de rythme vertical perdus). */
:where(.wp-block-group)>:where(*),:where(.wp-block-buttons){margin-block:0}
figure.wp-block-image{margin:0}

.wrap{width:100%;max-width:calc(var(--largeur) + 2 * var(--gouttiere));margin-inline:auto;padding-inline:var(--gouttiere)}

/* Boutons : les styles de theme.json (elements.button) valent pour les boutons
   de la page ET pour ceux de WooCommerce, qui portent tous .wp-element-button.
   Un bouton de la maquette (ex. .b-sombre) : UNE définition pour deux DOM —
   « :is(a,button).b-sombre, .b-sombre>.wp-block-button__link » — et le
   conteneur du bloc neutralisé, sinon il double la pastille (blocs-gutenberg.md). */
.wp-block-button.b-plein{display:inline-block;background:none;border:0;padding:0;border-radius:0}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--texte);border:1px solid var(--trait)}
.wp-element-button,.wp-block-button__link{transition:background-color .2s,color .2s,border-color .2s}

/* Champs de formulaire — WooCommerce (blocs et « Mon compte »), recherche, CF7.
   Le rayon est celui des champs de la maquette. */
:where(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],
  input[type=search],input[type=url],select,textarea){
  font:inherit;color:var(--texte);background:var(--fond);border:1px solid var(--trait);
  border-radius:var(--rayon);padding:12px 14px;min-height:48px;max-width:100%}
:where(input,select,textarea):focus{outline:none;border-color:var(--texte)}

:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

/* Promesses : paragraphes à icône (fiche produit, récapitulatif du panier).
   N'y écrire QUE des faits : seuil de livraison des réglages, rétractation
   légale de 14 jours, paiement sécurisé — jamais un service non demandé. */
.promesse{display:flex;align-items:center;gap:12px;font-size:13px}
.promesse::before{content:"";flex:none;width:18px;height:18px;background:currentColor;
  -webkit-mask:var(--i-livraison) center/contain no-repeat;mask:var(--i-livraison) center/contain no-repeat}
.promesse-retours::before{-webkit-mask-image:var(--i-retour);mask-image:var(--i-retour)}
.promesse-paiement::before{-webkit-mask-image:var(--i-cadenas);mask-image:var(--i-cadenas)}

/* ==========================================================================
   3 · En-tête, en-tête de commande, pied de page (parts/)
   Tout y est modifiable dans Apparence → Éditeur → Compositions : logo
   (bloc Logo du site → Remplacer), menu, textes, liens.
   Menu : le catalogue, les trois catégories à plat, les pages vitrine.
   Jamais la loupe de recherche par défaut (core/search) dans l'en-tête.
   En-tête sur la bande vert sombre, comme dans la maquette : il se fond dans
   le héros de l'accueil.
   ========================================================================== */
.entete{position:relative;z-index:40;background:var(--profond);color:var(--sur-profond)}
.entete-rangee{display:flex;align-items:center;gap:40px;min-height:var(--entete-h)}
/* Largeur du logo = celle du logo texte de la maquette, mesurée (128 px, 108 px en mobile) */
.entete-logo img{width:128px;height:auto}
.menu{font-size:13px;font-weight:600}
.menu .wp-block-navigation__container{gap:26px}
.menu .wp-block-navigation-item__content{text-decoration:none;opacity:.88}
.menu .wp-block-navigation-item__content:hover,.menu .current-menu-item>.wp-block-navigation-item__content{opacity:1;color:var(--accent)}
/* sous-menu (si les catégories y passent un jour) */
.menu .wp-block-navigation__submenu-container{min-width:220px;padding:10px 0;border:1px solid var(--trait)!important;
  border-radius:var(--rayon);background:var(--fond)!important;color:var(--texte)!important}
.menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:8px 18px;font-weight:500}
/* ---------- Menu mobile (panneau de core/navigation) ----------
   PIÈGE (vécu en production) : WordPress règle la marge du panneau sur le
   padding racine de theme.json — absent : liens collés au bord gauche, croix
   de 24 px collée dans l'angle, sous la barre d'admin quand on est connecté,
   « impossible à fermer ». Le CSS du bloc est imprimé APRÈS cette feuille :
   sélecteurs qualifiés, !important là où WordPress écrit à spécificité égale. */
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open{width:44px;height:44px;align-items:center;justify-content:center;
  border:1px solid color-mix(in srgb,var(--sur-profond) 28%,transparent);border-radius:50%;color:inherit}
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open svg{width:22px;height:22px}
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open{
  background-color:var(--profond)!important;color:var(--sur-profond)!important;padding:14px var(--gouttiere) 40px!important}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-container-close{top:0;left:0;right:auto;width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;color:var(--sur-profond);
  border:1px solid color-mix(in srgb,var(--sur-profond) 28%,transparent);border-radius:50%}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-container-close svg{width:24px;height:24px}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-container-content{padding-top:64px!important;align-items:stretch!important}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__container{gap:0!important;width:100%;align-items:stretch!important}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation-item{width:100%;border-bottom:1px solid color-mix(in srgb,var(--sur-profond) 14%,transparent)}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation-item__content{display:block;width:100%;padding:14px 0!important;opacity:1;
  font-family:var(--police-titres);font-size:34px;font-weight:400;line-height:1.1;text-transform:uppercase;text-decoration:none}
.wp-block-navigation.menu .is-menu-open .menu-mobile-seul .wp-block-navigation-item__content{font-family:var(--police-texte);font-size:16px;font-weight:700;text-transform:none}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__submenu-container{padding:0 0 12px 16px!important;border:0!important;
  box-shadow:none!important;background:transparent!important;color:inherit!important}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item{border:0}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
  font-family:var(--police-texte);font-size:16px;text-transform:none;padding:8px 0!important}
/* Liens réservés au panneau (className « menu-mobile-seul ») */
.wp-block-navigation.menu .wp-block-navigation__responsive-container:not(.is-menu-open) .menu-mobile-seul{display:none}
.entete-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.entete-compte a{display:grid;place-items:center;width:44px;height:44px;border:1px solid color-mix(in srgb,var(--sur-profond) 28%,transparent);
  border-radius:50%;color:var(--sur-profond);padding:0}
.entete-compte svg{width:20px;height:20px}
.entete-panier .wc-block-mini-cart__button{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;
  background:var(--accent);color:var(--sur-accent)}
.entete-panier .wc-block-mini-cart__button:hover{color:var(--sur-accent);opacity:.9}
.entete-panier .wc-block-mini-cart__icon{width:20px;height:20px}
.entete-panier .wc-block-mini-cart__quantity-badge{position:static}
.entete-panier .wc-block-mini-cart__badge{position:absolute;top:-4px;right:-4px;left:auto;transform:none;min-width:20px;height:20px;margin:0;
  background:var(--fond)!important;color:var(--texte)!important;font-size:11px;font-weight:800;border:0}

.entete-commande{background:var(--profond);color:var(--sur-profond)}
.entete-commande-rangee{display:flex;align-items:center;gap:24px;min-height:var(--entete-h)}
.entete-commande-rangee .commande-securisee{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:11px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:color-mix(in srgb,var(--sur-profond) 70%,transparent)}
.entete-commande-rangee .commande-securisee::before{content:"";width:15px;height:15px;background:var(--accent);
  -webkit-mask:var(--i-cadenas) center/contain no-repeat;mask:var(--i-cadenas) center/contain no-repeat}
.entete-commande-rangee .commande-retour{font-size:13px;font-weight:600}
.entete-commande-rangee .commande-retour a{text-decoration:none}

/* Pied de page : bande vert sombre, crêtes en haut, nom de la marque géant */
.pied{position:relative;margin-top:var(--cretes-h);padding:clamp(80px,8vw,120px) 0 28px;color:var(--sur-profond);
  background:var(--profond) radial-gradient(color-mix(in srgb,var(--sur-profond) 7%,transparent) 1px,transparent 1.2px) 0 0/34px 34px}
.pied::before{content:"";position:absolute;left:0;right:0;bottom:calc(100% - 1px);height:var(--cretes-h);background:var(--profond);
  -webkit-mask:var(--i-cretes-haut) 0 0/100% 100% no-repeat;mask:var(--i-cretes-haut) 0 0/100% 100% no-repeat}
.pied-contenu{position:relative}
.pied-haut{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;flex-wrap:wrap}
.pied-appel{font-size:clamp(48px,6.4vw,96px);line-height:.9}
.engagements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:64px 0 0;padding:0;list-style:none}
.engagements li{position:relative;display:grid;align-content:start;padding:22px 22px 22px 76px;border:1px solid color-mix(in srgb,var(--sur-profond) 16%,transparent);
  border-radius:var(--rayon);font-size:13px;color:color-mix(in srgb,var(--sur-profond) 62%,transparent)}
.engagements li::before{content:"";position:absolute;left:22px;top:22px;width:32px;height:32px;background:var(--accent);
  -webkit-mask:var(--i-livraison) center/contain no-repeat;mask:var(--i-livraison) center/contain no-repeat}
.engagements .eng-retours::before{-webkit-mask-image:var(--i-retour);mask-image:var(--i-retour)}
.engagements .eng-paiement::before{-webkit-mask-image:var(--i-cadenas);mask-image:var(--i-cadenas)}
.engagements strong{display:block;font-size:15px;color:var(--sur-profond)}
.pied-colonnes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 1.4fr;gap:32px;margin-top:72px}
.pied-col{display:grid;gap:10px;align-content:start;font-size:13.5px}
.pied-label{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:color-mix(in srgb,var(--sur-profond) 50%,transparent);margin-bottom:4px}
.pied-menu .wp-block-navigation__container{gap:10px}
.pied-menu .wp-block-navigation-item__content{text-decoration:none;color:color-mix(in srgb,var(--sur-profond) 75%,transparent)}
.pied-menu .wp-block-navigation-item__content:hover{color:var(--accent)}
.pied-mail{font-size:clamp(18px,1.8vw,24px);font-weight:600}
.pied-mail a{text-decoration:none}
.pied-marque{margin-top:64px;font-family:var(--police-titres);text-transform:uppercase;color:var(--accent);font-size:19.9vw;line-height:.8;
  letter-spacing:-.005em;white-space:nowrap;text-align:center;overflow:hidden}
.pied-bas{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:28px;font-size:12px;color:color-mix(in srgb,var(--sur-profond) 55%,transparent)}

/* ==========================================================================
   4 · Cartes produit — le même composant partout : catalogue, accueil,
   produits associés, ventes croisées, panier vide.
   <ul class="wc-block-product-template grille-produits"> > li.wc-block-product
   Dessinée d'après la carte de la maquette : image 4:5 sur la surface,
   catégorie en petites capitales, titre en Anton, prix, bouton pilule bordé.
   ========================================================================== */
.grille-produits.wc-block-product-template{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:40px 16px;list-style:none;margin:0;padding:0}
.grille-produits .wc-block-product{display:flex;flex-direction:column;margin:0;width:auto;min-width:0}
/* PIÈGE : WooCommerce ajoute 12 px sous chaque enfant de la carte
   (:where(.wc-block-product-template .wc-block-product) > :not(:last-child))
   et 12 px sous le résumé : la carte mesurait 18 px de plus que la maquette. */
.grille-produits .wc-block-product>*{margin-block:0}
.grille-produits .wc-block-components-product-summary{margin:0}
.grille-produits .carte-image{margin:0;border-radius:var(--rayon);overflow:hidden;background:var(--surface)}
.grille-produits .carte-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.grille-produits .wc-block-product:hover .carte-image img{transform:scale(1.03)}
.carte-infos{display:flex;flex-direction:column;margin-top:16px}
.carte-cat{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--sourdine)}
.carte-cat a{text-decoration:none;color:inherit}
.grille-produits .carte-titre{margin-top:4px;font-family:var(--police-titres);font-weight:400;text-transform:uppercase;font-size:26px;line-height:1.05;letter-spacing:.005em}
.carte-titre a{text-decoration:none}
.grille-produits .carte-prix{margin-top:6px;font-size:15px;font-weight:700;color:var(--texte)}
.carte-prix del{color:var(--sourdine);font-weight:500;margin-right:6px}
.carte-prix ins{text-decoration:none;color:var(--promo)}
.grille-produits .carte-bouton{margin-top:14px;align-self:flex-start}
.wc-block-product .carte-bouton .wp-block-button__link.wc-block-components-product-button__button{width:auto;min-height:40px;padding:0 18px;
  border:1.5px solid var(--texte);border-radius:var(--rayon-bouton);background:transparent;color:var(--texte);font-size:13px;font-weight:700}
.wc-block-product .carte-bouton .wp-block-button__link.wc-block-components-product-button__button:hover{background:var(--accent);border-color:var(--accent);color:var(--sur-accent)}
.carte-bouton .added_to_cart{display:none}
.wc-block-components-product-sale-badge{background:var(--promo);color:var(--fond);border:0;border-radius:var(--rayon-bouton);
  font-size:10.5px;font-weight:800;letter-spacing:.12em;padding:5px 12px;text-transform:uppercase;line-height:1.4}
.wc-block-components-product-image .wc-block-components-product-sale-badge{top:12px;left:12px;right:auto}
.section-titre{font-size:clamp(44px,6.4vw,96px);line-height:.9}

/* ==========================================================================
   5 · Catalogue : archive-product.html (boutique, catégories, étiquettes,
   attributs, marques) et product-search-results.html — patterns/catalogue.php
   ========================================================================== */
.catalogue-entete{padding-block:48px 32px}
.fil-ariane,.woocommerce-breadcrumb{font-size:13px;color:var(--sourdine)}
.fil-ariane a{color:inherit;text-decoration:none}
.fil-ariane a:hover{color:var(--texte);text-decoration:underline}
.catalogue-titre{font-size:var(--wp--preset--font-size--titre-1);margin-top:16px}
.catalogue-intro{margin-top:14px;max-width:60ch;color:var(--sourdine);font-size:var(--wp--preset--font-size--chapeau)}
.catalogue{display:grid;grid-template-columns:240px minmax(0,1fr);gap:48px;align-items:start}
.catalogue .grille-produits.wc-block-product-template{grid-template-columns:repeat(3,minmax(0,1fr))}
.catalogue-filtres{position:sticky;top:calc(var(--entete-h) + 24px)}
.filtres h2{font-size:18px}
.filtres h3{font-family:var(--police-texte);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.filtres .wp-block-woocommerce-product-filter-price,
.filtres .wp-block-woocommerce-product-filter-attribute,
.filtres .wp-block-woocommerce-product-filter-taxonomy,
.filtres .wp-block-woocommerce-product-filter-status{padding-top:24px;margin-top:24px;border-top:1px solid var(--trait)}
.catalogue-barre{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px;color:var(--sourdine);font-size:14px}
.catalogue-barre .woocommerce-ordering select{min-height:40px;padding-block:8px}
.pagination{margin-top:56px;gap:8px}
.pagination .page-numbers{display:inline-grid;place-items:center;min-width:40px;height:40px;border-radius:var(--rayon-bouton);text-decoration:none}
.pagination .page-numbers.current{background:var(--texte);color:var(--fond)}
.aucun-resultat{padding:48px 0;display:grid;gap:20px;justify-items:start}

/* ==========================================================================
   6 · Fiche produit : single-product.html
   Galerie à gauche (format réglé par l'attribut aspectRatio du bloc Image du
   produit de la galerie), colonne d'achat collante à droite. Le sélecteur de
   variations est celui de WooCommerce (pastilles) : on règle sa peau.
   ========================================================================== */
.fiche-haut{padding-block:26px 22px}
.fiche{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(40px,6vw,96px);align-items:start}
.fiche-galerie .wc-block-product-gallery-large-image{border-radius:var(--rayon);overflow:hidden;background:var(--surface)}
.fiche-galerie .wc-block-product-gallery-large-image img{width:100%;height:100%;object-fit:cover}
/* PIÈGE (vécu) : sans largeur posée, la colonne des vignettes prend ~45 % de la
   galerie dès qu'un produit a plusieurs photos (332 px à 1440) et écrase la
   grande image. Colonne fixe en ordinateur, rangée sous l'image en mobile (section 12). */
.fiche-galerie .wc-block-product-gallery-thumbnails{flex:0 0 76px;width:76px!important;max-width:76px;margin-right:16px;align-self:flex-start}
.fiche-galerie .wc-block-product-gallery-thumbnails__scrollable{display:flex;flex-direction:column;gap:10px}
.fiche-galerie .wc-block-product-gallery-thumbnails__thumbnail{width:76px;overflow:hidden;background:var(--surface);border-radius:calc(var(--rayon) * .6)}
.fiche-galerie .wc-block-product-gallery-thumbnails img{width:100%;height:100%;object-fit:cover;border-radius:calc(var(--rayon) * .6)}
.fiche-galerie .wc-block-product-gallery-large-image{flex:1 1 auto;min-width:0}
.fiche-galerie .wc-block-components-product-sale-badge{top:16px;right:16px;margin:0}
.fiche-achat{position:sticky;top:calc(var(--entete-h) + 32px);display:flex;flex-direction:column}
body.admin-bar .fiche-achat{top:calc(var(--entete-h) + 64px)}
.fiche-surtitre{font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--sourdine)}
.fiche-surtitre a{text-decoration:none}
.fiche-titre{margin-top:14px;font-size:var(--wp--preset--font-size--titre-2);line-height:1.06}
.fiche-note:not(:empty){margin-top:12px}
.fiche-prix{margin-top:18px;font-size:20px;font-variant-numeric:tabular-nums}
.fiche-prix del{color:var(--sourdine);font-size:.8em;margin-right:10px}
.fiche-prix ins{text-decoration:none;color:var(--promo)}
.fiche-resume{margin-top:8px;color:var(--sourdine)}
.fiche-resume p{margin:0}

.fiche-ajout{margin-top:30px;padding-top:26px;border-top:1px solid var(--trait)}
/* variations : nom de l'attribut + pastilles (styles en ligne de WooCommerce → !important) */
.fiche-ajout .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute>.wp-block-group{gap:12px!important;margin:0 0 24px!important}
.fiche-ajout .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.fiche-ajout .wc-block-product-filter-chips__items{gap:8px}
.fiche-ajout .wc-block-product-filter-chips__item{display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:44px;padding:0 16px;
  border:1px solid var(--trait);border-radius:var(--rayon-bouton);background:var(--fond);color:var(--texte);font-size:14px;
  transition:border-color .2s,background-color .2s,color .2s}
.fiche-ajout .wc-block-product-filter-chips__item:hover{border-color:var(--texte)}
.fiche-ajout .wc-block-product-filter-chips__item[aria-checked="true"]{background:var(--accent);border-color:var(--accent);color:var(--sur-accent)}
.fiche-ajout .wc-block-product-filter-chips__item:disabled:hover{border-color:var(--trait)}
/* Pastille de couleur devant le nom d'un terme (métal, coloris…) : cibler la
   VALEUR du terme, ex. [value="or-rose"] .wc-block-product-filter-chips__label::before */
.fiche-ajout .wp-block-woocommerce-add-to-cart-with-options-variation-description{margin:0 0 18px!important;font-size:14px;color:var(--sourdine)}
/* PIÈGE : pour une variation en rupture, l'indicateur garde la classe --in-stock
   du parent — ne pas colorer l'état par sa classe sur un produit variable. */
.fiche-ajout .wc-block-components-product-stock-indicator{margin:0 0 16px!important;font-size:13px}
.fiche-ajout .wc-block-components-product-stock-indicator:empty{display:none}
.wc-block-components-product-stock-indicator--out-of-stock{color:var(--alerte)}
/* quantité + bouton sur une ligne ; WooCommerce règle largeur et alignement du bouton à 3 classes : on qualifie */
.fiche-ajout .wp-block-group:has(>.wp-block-woocommerce-product-button){display:flex;flex-wrap:nowrap;align-items:stretch;gap:10px}
.fiche-ajout .wc-block-components-quantity-selector{width:116px;height:52px;margin:0;border:1px solid var(--trait);border-radius:var(--rayon-bouton)}
.fiche-ajout .wc-block-components-quantity-selector::after{display:none}
.fiche-ajout .wp-block-woocommerce-product-button{flex:1;min-width:0;margin:0;align-items:stretch}
/* même bouton sur le site (.single_add_to_cart_button) et dans l'aperçu de
   l'éditeur de site (.wc-block-components-product-button__button, conteneurs en plus) :
   toujours viser les deux, sinon le modèle « Fiche produit » s'affiche avec un petit bouton */
.fiche-ajout .wp-block-woocommerce-product-button .wp-block-button{width:100%}
.fiche-ajout :is(.single_add_to_cart_button,.wc-block-components-product-button__button).wp-block-button__link{display:flex;align-items:center;width:100%;height:52px;justify-content:center}
.fiche-ajout .added_to_cart{display:none}

.fiche-reassurance{display:grid;gap:12px;margin-top:28px;padding:22px 0;border-block:1px solid var(--trait)}
.fiche-meta{margin-top:18px;font-size:12px;color:var(--sourdine)}
.fiche-meta .wp-block-group{flex-wrap:wrap;gap:6px 18px}
.fiche-meta a{text-decoration:none}

/* Détails : titre à gauche, description et caractéristiques à droite
   (plutôt que les onglets de product-details et leur « Avis (0) ») */
.fiche-details{display:grid;grid-template-columns:5fr 6fr;gap:clamp(40px,7vw,120px);align-items:start;margin-top:120px}
.fiche-details-titre{font-size:var(--wp--preset--font-size--titre-2);line-height:1.15}
.fiche-description{font-size:16px;line-height:1.75;color:color-mix(in srgb,var(--texte) 82%,transparent)}
.fiche-description p+p{margin-top:16px}
/* PIÈGE : le bloc Caractéristiques est un figure.wp-block-table — qualifier par
   « table » pour passer devant les bordures du bloc Tableau de WordPress */
.fiche-caracteristiques{margin:36px 0 0}
.fiche-caracteristiques table{width:100%;border-collapse:collapse;font-size:14px}
.fiche-caracteristiques table th,.fiche-caracteristiques table td{padding:14px 0;border:0;border-top:1px solid var(--trait);
  text-align:left;vertical-align:top;font-weight:400}
.fiche-caracteristiques table tr:last-child>*{border-bottom:1px solid var(--trait)}
.fiche-caracteristiques table th{width:40%;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;padding-top:16px}
.fiche-caracteristiques td p{margin:0}
.fiche-caracteristiques a{text-decoration:none}

/* Vous aimerez aussi : le titre occupe la première colonne d'une grille de 4, trois cartes à droite */
.fiche-associes{margin-top:130px}
.collection-associes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;align-items:start}
/* PIÈGE : le conteneur de messages (vide) de product-collection occupe une cellule de la grille */
.collection-associes>.wc-block-components-notices{grid-column:1/-1}
.collection-associes>.wc-block-components-notices:not(:has(*)){display:none}
.associes-tete{padding-right:12px}
.associes-tete .section-chapo{margin-top:16px;max-width:26ch;color:var(--sourdine)}
.associes-tete .lien-fleche{margin-top:26px}
.collection-associes .grille-produits.wc-block-product-template{grid-column:2/-1;grid-template-columns:repeat(3,minmax(0,1fr))}

.lien-fleche{display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:500}
.lien-fleche a{text-decoration:none}
.lien-fleche::after{content:"";width:16px;height:16px;background:currentColor;
  -webkit-mask:var(--i-fleche) center/contain no-repeat;mask:var(--i-fleche) center/contain no-repeat;transition:transform .25s}
.lien-fleche:hover::after{transform:translateX(3px)}

/* ==========================================================================
   7 · Mini-panier, panier, commande, confirmation — le bloc Panier et le bloc
   Commande vivent dans le CONTENU des pages (contenus/panier.html,
   contenus/commande.html) ; les templates ne font que le cadre.
   ========================================================================== */
/* Articles (panier, mini-panier, récapitulatif de commande) — composants partagés */
.wc-block-cart-item__image img,.wc-block-components-order-summary-item__image img{aspect-ratio:var(--ratio-vignette,4/5);object-fit:cover;
  background:var(--surface);border-radius:calc(var(--rayon) * .6)}
.wc-block-components-product-name{font-size:15px;font-weight:600;text-decoration:none;color:var(--texte)}
.wc-block-components-product-details{font-size:13px;color:var(--sourdine)}
.wc-block-components-product-details__name{font-weight:400}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button{font-family:inherit;color:var(--texte)}
.wc-block-components-quantity-selector:where(:has(input:not([type=hidden]))){border-color:var(--trait);border-radius:var(--rayon-bouton)}
.wc-block-cart-item__remove-link{color:var(--sourdine)!important}
.wc-block-cart-item__remove-link:hover{color:var(--texte)!important}
.wc-block-components-product-badge{border-radius:var(--rayon-bouton);border-color:var(--trait);font-weight:500}
.wc-block-components-sale-badge{color:var(--promo);border-color:currentColor}

/* Mini-panier (tiroir) : parts/mini-cart.html */
.wc-block-mini-cart__drawer .wc-block-components-drawer__content{background:var(--fond);color:var(--texte)}
.wc-block-mini-cart__title{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;font-size:26px}
.wc-block-mini-cart__title .wp-block-woocommerce-mini-cart-title-items-counter-block{font-family:var(--police-texte);font-size:13px;color:var(--sourdine)}
.wc-block-mini-cart__footer{border-top:1px solid var(--trait);box-shadow:none}
.wc-block-mini-cart__footer .wc-block-components-totals-item__label{font-size:15px;font-weight:500}
.wc-block-mini-cart__footer .wc-block-components-totals-item__value{font-size:17px;font-weight:500}
.wc-block-mini-cart__footer .wc-block-components-totals-item__description{font-size:12px;color:var(--sourdine)}
.wc-block-mini-cart__footer-actions .wc-block-components-button{min-height:50px;border-radius:var(--rayon-bouton)}
.wc-block-mini-cart__footer-cart.wc-block-components-button{background:transparent;color:var(--texte);border:1px solid var(--trait)}
.wc-block-mini-cart__footer-cart.wc-block-components-button:hover{border-color:var(--texte);background:transparent;color:var(--texte)}
.wc-block-mini-cart__empty-cart-wrapper{padding:48px 24px;text-align:center}
.wc-block-mini-cart__empty-cart-wrapper p{font-family:var(--police-titres);font-size:24px;margin-bottom:24px}

/* Panier */
.page-panier .wrap,.page-commande .wrap{padding-block:48px 0}
.page-titre{font-size:var(--wp--preset--font-size--titre-2);line-height:1.06;margin-bottom:36px}
/* récapitulatif sur la surface, avec les promesses sous le bouton */
.wc-block-cart .wc-block-cart__sidebar{padding:30px 30px 26px;background:var(--surface);border-radius:var(--rayon)}
.wc-block-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wc-block-cart .wc-block-cart__sidebar .wc-block-components-panel{border-color:color-mix(in srgb,var(--texte) 10%,transparent)}
.wc-block-cart .wc-block-cart__totals-title,.wc-block-components-checkout-order-summary__title-text{
  font-family:var(--police-titres);text-transform:none;font-size:20px;font-weight:400}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label{font-size:18px}
.wc-block-cart .wc-block-cart__submit-button{min-height:54px}
.wp-block-woocommerce-cart-totals-block .promesse{margin:0;padding-block:6px}
.wp-block-woocommerce-cart-totals-block .promesse-livraison{margin-top:22px;padding-top:22px;border-top:1px solid color-mix(in srgb,var(--texte) 10%,transparent)}
.wc-block-cart-items__header{font-size:11px;letter-spacing:.12em}
.wc-block-cart .wc-block-cart-items td{border-color:var(--trait)}
/* PIÈGE : panier étroit — WooCommerce fige la colonne produit à 132 px et le
   total (avec son badge « Économisez… ») déborde de 25 px à 390 px */
.wc-block-cart:is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row{grid-template-columns:80px minmax(0,1fr) auto}
.wc-block-cart:is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product{grid-column:2/3}
.wc-block-cart:is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total{grid-column:3/4}
.wc-block-cart-item__total .wc-block-components-product-badge{white-space:normal;text-align:right;max-width:110px}
/* panier vide : composé en blocs natifs (contenus/panier.html), sans l'icône de WooCommerce */
.panier-vide{display:flex;flex-direction:column;align-items:center;padding:48px 0 16px;text-align:center}
.panier-vide .panier-vide-titre{font-family:var(--police-titres);font-size:var(--wp--preset--font-size--titre-3);margin:0}
.panier-vide .panier-vide-titre::before{content:none}
.panier-vide-texte{margin-top:14px;max-width:46ch;color:var(--sourdine)}
.panier-vide-actions{margin-top:28px!important}
.panier-vide-suite{margin:110px 0 44px;text-align:center}
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before{display:none}

/* Commande */
.wc-block-components-checkout-step__title{font-family:var(--police-titres);font-size:22px;font-weight:400}
.wc-block-checkout .wc-block-components-checkout-step{margin-bottom:40px}
/* Champs du bloc Commande : les libellés flottants sont ceux de WooCommerce,
   on règle leur peau, pas leur mécanique (sélecteurs à 3 classes → !important). */
.wc-block-components-text-input input[type],.wc-block-components-country-input .wc-blocks-components-select__select,
.wc-block-components-state-input .wc-blocks-components-select__select,.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea{border-color:var(--trait)!important;border-radius:var(--rayon)!important;background:var(--fond)!important}
.wc-block-components-text-input.is-active input[type],.wc-block-components-text-input input[type]:focus{border-color:var(--texte)!important;box-shadow:none!important}
.wc-block-components-radio-control--highlight-checked,.wc-block-components-radio-control-accordion-option{border-radius:var(--rayon)}
.wc-block-components-radio-control--highlight-checked::after{border-color:var(--trait)}
.wc-block-components-radio-control__input:checked{border-color:var(--accent)}
.wc-block-components-radio-control__input:checked::before{background:var(--accent)}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
.wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:var(--sur-accent)}
.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{min-height:54px;border-radius:var(--rayon-bouton)!important}
.wc-block-components-button:not(.is-link){font-family:var(--police-texte)}
/* le récapitulatif sur la surface, comme celui du panier */
.wc-block-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block{background:var(--surface);border:0;border-radius:var(--rayon)}
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block{padding:6px 22px 8px}
.wc-block-checkout .wc-block-components-checkout-order-summary__title{border:0}
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper,.wc-block-checkout__sidebar .wc-block-components-panel{border-color:color-mix(in srgb,var(--texte) 10%,transparent)}
/* PIÈGE : la pastille de quantité est posée à 2 classes par WooCommerce (blanc sur blanc sinon) */
.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity{background:var(--accent);color:var(--sur-accent);border:0;box-shadow:0 0 0 2px var(--surface)}
.wc-block-checkout__terms{font-size:13px;color:var(--sourdine)}
/* erreurs de validation : la couleur « alerte » de la palette, pas le rouge de WooCommerce */
.wc-block-components-validation-error{color:var(--alerte)}
.wc-block-components-validation-error svg{fill:currentColor}
.wc-block-components-text-input.has-error input[type],.wc-block-components-select-input.has-error select,
.wc-blocks-components-select.has-error .wc-blocks-components-select__select{border-color:var(--alerte)!important}
.wc-block-components-text-input.has-error label,.wc-block-components-checkbox.has-error{color:var(--alerte)}

/* Confirmation de commande (order-confirmation.html) : un reçu — une colonne
   centrée, le résumé sur la surface, des filets plutôt que des cadres */
.page-confirmation .wrap{max-width:calc(880px + 2 * var(--gouttiere));padding-block:72px 0;display:flex;flex-direction:column;gap:44px}
.wc-block-order-confirmation-status{text-align:center;font-family:var(--police-titres);font-size:inherit!important}
.wc-block-order-confirmation-status h1{font-size:var(--wp--preset--font-size--titre-1);line-height:1.06;margin:0}
.wc-block-order-confirmation-status p{margin-top:14px;font-family:var(--police-texte);font-size:16px;color:var(--sourdine)}
.wc-block-order-confirmation-summary{padding:28px 32px;background:var(--surface);border-radius:var(--rayon)}
.wc-block-order-confirmation-summary .wc-block-order-confirmation-summary-list{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px 36px;margin:0;padding:0;list-style:none}
.wc-block-order-confirmation-summary-list-item{margin:0;padding:0;border:0}
.wc-block-order-confirmation-summary .wc-block-order-confirmation-summary-list-item__key{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--sourdine)}
.wc-block-order-confirmation-summary .wc-block-order-confirmation-summary-list-item__value{display:block;margin-top:6px;font-size:15px;overflow-wrap:anywhere}
.page-confirmation .wp-block-heading{font-size:24px;margin-bottom:18px}
.wc-block-order-confirmation-totals .wc-block-order-confirmation-totals__table{border:0;border-collapse:collapse;width:100%;font-size:15px}
.wc-block-order-confirmation-totals .wc-block-order-confirmation-totals__table :is(th,td){padding:16px 0;border:0;border-top:1px solid var(--trait);font-weight:400}
.wc-block-order-confirmation-totals .wc-block-order-confirmation-totals__table thead th{border-top:0;padding-top:0;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--sourdine)}
.wc-block-order-confirmation-totals .wc-block-order-confirmation-totals__table tfoot tr:last-child :is(th,td){font-size:18px;font-weight:500;border-top-color:var(--texte)}
.wc-block-order-confirmation-totals .wc-block-order-confirmation-totals__table a{text-decoration:none}
.wc-block-order-confirmation-totals .product-quantity{font-weight:400;color:var(--sourdine)}
.wc-block-order-confirmation-address-wrapper{gap:28px}
.wc-block-order-confirmation-address-wrapper .wp-block-heading{font-size:20px;margin-bottom:12px}
.wc-block-order-confirmation-shipping-address,.wc-block-order-confirmation-billing-address{padding:20px 0 0;border:0!important;border-top:1px solid var(--trait)!important;border-radius:0;line-height:1.7}
.wc-block-order-confirmation-additional-information:not(:empty){padding:28px 32px;border:1px solid var(--trait);border-radius:var(--rayon)}

/* ==========================================================================
   8 · Mon compte — balisage WooCommerce CLASSIQUE (shortcode), il n'existe
   pas de version en blocs. Page « Mon compte » : contenus/mon-compte.html.
   PIÈGE : la feuille « blocktheme » de WooCommerce espace les liens et borne le
   bloc à 1000 px, à 3 classes — d'où les sélecteurs qualifiés ci-dessous.
   ========================================================================== */
.page-compte{padding-block:48px 0}
.page-compte>.wp-block-heading{font-size:var(--wp--preset--font-size--titre-2);margin-bottom:32px}
/* La feuille classique de WooCommerce pose des clearfix (::before/::after en
   display:table), des flottants et des largeurs en % : dans une grille, les
   pseudo-éléments deviennent des CELLULES et décalent tout. On les neutralise. */
.woocommerce-account .woocommerce::before,.woocommerce-account .woocommerce::after,
.woocommerce-account .woocommerce .u-columns::before,.woocommerce-account .woocommerce .u-columns::after{content:none;display:none}
.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.u-column1,.u-column2{float:none!important;width:auto!important}
.woocommerce-account main .woocommerce{display:grid;grid-template-columns:220px minmax(0,1fr);gap:56px;align-items:start;max-width:none}
.woocommerce-account .woocommerce>.woocommerce-notices-wrapper,
.woocommerce-account .woocommerce>.u-columns,
.woocommerce-account .woocommerce>h2,
.woocommerce-account .woocommerce>.woocommerce-form-login{grid-column:1/-1}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0;padding:0}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:11px 16px;border-radius:var(--rayon);text-decoration:none;color:var(--sourdine)}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--surface);color:var(--texte);text-decoration:none}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{margin-top:14px;padding-top:14px;border-top:1px solid var(--trait)}
.woocommerce-MyAccount-content{line-height:1.7}
/* :first-of-type — le premier enfant est le conteneur de messages */
.woocommerce-MyAccount-content>p:first-of-type{margin-top:0;font-family:var(--police-titres);font-size:24px;line-height:1.3}
.woocommerce-MyAccount-content>p:first-of-type strong{font-weight:400}
.woocommerce-MyAccount-content>p:first-of-type a{font-family:var(--police-texte);font-size:14px;color:var(--sourdine)}
.woocommerce-MyAccount-content>p:nth-of-type(2){margin-top:14px;max-width:62ch;color:var(--sourdine)}
.woocommerce-MyAccount-content h2,.woocommerce-MyAccount-content h3{font-size:22px;margin-bottom:18px}
/* connexion / inscription : deux cartes sur la surface */
.u-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.woocommerce-account .u-columns :is(.u-column1,.u-column2){padding:44px;background:var(--surface);border-radius:var(--rayon)}
.u-columns h2{font-size:28px;margin-bottom:26px}
.woocommerce-account .woocommerce :is(form.login,form.register){margin:0;padding:0;border:0;border-radius:0}
.woocommerce form .form-row{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;padding:0}
.woocommerce form .form-row label{font-size:13px;font-weight:500;line-height:1.4}
.woocommerce form .form-row .required{color:var(--sourdine);text-decoration:none}
.woocommerce form .form-row :is(.input-text,select){width:100%;height:48px;background:var(--fond)}
.woocommerce form .password-input{display:block;position:relative}
.woocommerce form.register p:not(.form-row){font-size:13px;color:var(--sourdine);margin:0 0 14px}
.woocommerce .lost_password{margin:16px 0 0;font-size:13px}
.woocommerce .lost_password a{color:var(--sourdine)}
.woocommerce-form-login__rememberme{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px!important;font-weight:400!important;margin:4px 0 18px}
.woocommerce-form-login__rememberme input{accent-color:var(--accent)}
.woocommerce .woocommerce-Button,.woocommerce button.button,.woocommerce a.button{
  display:inline-flex;align-items:center;justify-content:center;border:0;cursor:pointer;text-decoration:none;
  background:var(--accent);color:var(--sur-accent);border-radius:var(--rayon-bouton);padding:14px 26px;
  font:600 15px/1.2 var(--police-texte)}
.woocommerce .woocommerce-Button:hover,.woocommerce button.button:hover,.woocommerce a.button:hover{background:var(--texte);color:var(--fond)}
.woocommerce-account .woocommerce :is(.woocommerce-form-login__submit,.woocommerce-form-register__submit){width:100%;min-height:54px}
/* tableaux (commandes, détail) : des filets, pas de cadre */
.woocommerce table.shop_table{width:100%;margin:0 0 28px;border:0;border-collapse:collapse;border-radius:0;font-size:15px}
.woocommerce table.shop_table :is(th,td){padding:16px 14px 16px 0;border:0;border-top:1px solid var(--trait);text-align:left;vertical-align:middle;font-weight:400}
.woocommerce table.shop_table thead th{border-top:0;padding-top:0;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--sourdine)}
.woocommerce table.shop_table tfoot tr:last-child :is(th,td){font-size:17px;font-weight:500}
.woocommerce table.shop_table a{text-decoration:none}
.woocommerce table.shop_table .woocommerce-button.button{padding:10px 18px;font-size:13px;min-height:0}
.woocommerce-Address{padding:24px;border:1px solid var(--trait);border-radius:var(--rayon)}
.woocommerce-privacy-policy-text{font-size:13px;color:var(--sourdine)}

/* ==========================================================================
   9 · Messages : blocs (bandeaux) et balisage classique — la surface et la
   palette, pas le bleu ni le vert de WooCommerce (qualifiés par le type pour
   passer devant les siens)
   ========================================================================== */
.wc-block-components-notice-banner{border-radius:var(--rayon);font-size:14px;line-height:1.55}
.wc-block-components-notice-banner:is(.is-info,.is-success,.is-warning,.is-error){background-color:var(--surface);border:1px solid var(--trait);color:var(--texte)}
.wc-block-components-notice-banner:is(.is-info,.is-success,.is-warning)>svg{background-color:var(--texte);fill:var(--fond)}
.wc-block-components-notice-banner.is-error{border-color:color-mix(in srgb,var(--alerte) 45%,var(--trait))}
.wc-block-components-notice-banner.is-error>svg{background-color:var(--alerte);fill:var(--fond)}
.wc-block-components-notice-banner a,.wc-block-components-notice-banner .wc-forward{color:var(--texte);font-weight:500}
.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;margin:0 0 24px;padding:16px 20px;
  border-radius:var(--rayon);background:var(--surface);border-left:3px solid var(--texte)}
.woocommerce-error{border-left-color:var(--alerte)}

/* ==========================================================================
   10 · Formulaire de contact (Contact Form 7) — le gabarit du formulaire porte
   les classes de la maquette (contenus/formulaire-contact.txt). functions.php
   coupe l'ajout de <p>/<br> de CF7 (wpcf7_autop_or_not).
   ========================================================================== */
.formulaire .wpcf7,.formulaire .wpcf7-form{display:grid;gap:18px}
.formulaire .wpcf7-form-control-wrap{display:block}
/* en bloc : sinon le champ garde l'espace sous la ligne de base (+5 px sous le message) */
.formulaire .wpcf7-form-control-wrap :is(input:not([type=checkbox]),select,textarea){display:block;width:100%}
.formulaire .wpcf7-spinner{display:none}
.champ{display:grid;gap:8px}
.champ span:first-child{font-size:13px;font-weight:500}
.champ-rangee{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.consentement .wpcf7-list-item{margin:0}
.consentement label{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--sourdine)}
.consentement input{accent-color:var(--accent);margin-top:2px}
/* Le bouton d'envoi est un <input> (pas de pseudo-éléments) : un décor de la
   maquette (carré, flèche) se pose sur son enveloppe .envoi */
.envoi{position:relative;justify-self:start;margin-top:6px}
.envoi input[type=submit]{min-height:48px;padding:0 26px;border:0;border-radius:var(--rayon-bouton);background:var(--accent);color:var(--sur-accent);
  font:500 15px/1 var(--police-texte);cursor:pointer}
/* Contact Form 7 désactive l'envoi tant que la case de consentement n'est pas cochée */
.envoi:has(input:disabled){opacity:.45}
.envoi input:disabled{cursor:not-allowed}
.wpcf7-not-valid-tip{margin-top:6px;color:var(--alerte);font-size:13px}
.formulaire .wpcf7-not-valid{border-color:var(--alerte)!important}
.wpcf7 form .wpcf7-response-output{margin:0;padding:14px 16px;border:1px solid var(--trait);border-radius:var(--rayon);background:var(--fond);font-size:14px}
.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.failed .wpcf7-response-output{border-color:var(--alerte)}
.wpcf7 form.sent .wpcf7-response-output{border-color:var(--texte)}

/* ==========================================================================
   11 · Composants de la maquette (accueil, pages éditoriales)
   Classes posées sur les blocs (className) — voir contenus/_generer.py.
   ========================================================================== */
.enveloppe{width:100%;max-width:calc(var(--largeur) + 2 * var(--gouttiere));margin-inline:auto;padding-inline:var(--gouttiere)}
.titre-section{font-size:clamp(44px,6.4vw,96px);line-height:.9}
.pastille{display:inline-flex;align-items:center;align-self:flex-start;justify-self:start;height:26px;padding:0 12px;border:1px solid currentColor;
  border-radius:var(--rayon-bouton);font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;width:max-content}
.pastille--claire{color:var(--sur-profond)}

/* Boutons de la maquette : pilule + chevrons à gauche, puce ronde à droite */
.b-accent>.wp-block-button__link,.b-sombre>.wp-block-button__link{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 5px 0 20px;
  border-radius:var(--rayon-bouton);font-size:14px;font-weight:700;white-space:nowrap;text-decoration:none;transition:transform .2s}
.b-accent>.wp-block-button__link{background:var(--accent);color:var(--sur-accent)}
.b-sombre>.wp-block-button__link{background:var(--texte);color:var(--fond)}
.b-accent>.wp-block-button__link:hover,.b-sombre>.wp-block-button__link:hover{transform:translateY(-2px)}
.b-accent>.wp-block-button__link:hover{background:var(--accent);color:var(--sur-accent)}
.b-sombre>.wp-block-button__link:hover{background:var(--texte);color:var(--fond)}
.b-accent>.wp-block-button__link::before,.b-sombre>.wp-block-button__link::before{content:"»";font-size:18px;line-height:1;margin-top:-2px}
.b-accent>.wp-block-button__link::after,.b-sombre>.wp-block-button__link::after{content:"↗";display:grid;place-items:center;width:36px;height:36px;margin-left:8px;
  border-radius:50%;background:var(--fond);color:var(--texte);font-size:15px}

.lien-fleche a{display:inline-flex;gap:10px;align-items:center;font-weight:700;border-bottom:2px solid currentColor;padding-bottom:4px;text-decoration:none}

.tete-section{display:grid;grid-template-columns:1fr minmax(240px,360px);gap:32px;align-items:end;margin-bottom:clamp(36px,5vw,64px)}
.tete-section__aside{display:grid;gap:18px;justify-items:start;color:var(--sourdine);font-size:13.5px}
.tete-section--inverse{grid-template-columns:1fr;gap:18px;justify-items:start}

/* Bandes vert sombre : trame de points, crêtes en masque (la bande déborde sur sa voisine) */
.bande-sombre{position:relative;color:var(--sur-profond);
  background:var(--profond) radial-gradient(color-mix(in srgb,var(--sur-profond) 7%,transparent) 1px,transparent 1.2px) 0 0/34px 34px}
.cretes-bas::after,.cretes-haut::before{content:"";position:absolute;left:0;right:0;height:var(--cretes-h);background:var(--profond);pointer-events:none}
.cretes-bas::after{top:calc(100% - 1px);-webkit-mask:var(--i-cretes-bas) 0 0/100% 100% no-repeat;mask:var(--i-cretes-bas) 0 0/100% 100% no-repeat}
.cretes-haut::before{bottom:calc(100% - 1px);-webkit-mask:var(--i-cretes-haut) 0 0/100% 100% no-repeat;mask:var(--i-cretes-haut) 0 0/100% 100% no-repeat}
.gribouille-fluo::after{content:"";position:absolute;background:var(--accent);pointer-events:none;
  -webkit-mask:var(--i-gribouille) center/contain no-repeat;mask:var(--i-gribouille) center/contain no-repeat}

/* ——— Héros ——— */
.heros{padding:56px 0 0;z-index:2}
.heros__grille{position:relative;display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(24px,4vw,64px)}
.heros__texte{position:relative;z-index:2;padding:34px 0 clamp(110px,10vw,150px)}
.heros__texte::after{width:clamp(80px,9vw,130px);aspect-ratio:4/3;top:8px;right:6%;transform:rotate(-8deg)}
.heros__titre{margin-top:28px;font-size:clamp(64px,11.2vw,176px);line-height:.86;letter-spacing:.003em;width:max-content;max-width:100%;text-wrap:wrap}
.heros__chapeau{max-width:380px;margin-top:34px;font-size:14px;color:color-mix(in srgb,var(--sur-profond) 72%,transparent)}
.heros .wp-block-buttons{margin-top:30px}
.heros .heros__photo{position:relative;z-index:3;align-self:end;margin:0 0 -130px;border-radius:var(--rayon);overflow:hidden;aspect-ratio:4/5;
  box-shadow:0 40px 80px -30px color-mix(in srgb,var(--texte) 60%,transparent)}
.heros__photo img{width:100%;height:100%;object-fit:cover}
.heros.cretes-bas::after{z-index:1}

/* ——— Trouve ton modèle ——— */
.modeles{padding:clamp(200px,15vw,230px) 0 clamp(80px,9vw,130px)}
.modeles__liste{border-top:1px solid var(--trait)}
.modeles__ligne{display:grid;grid-template-columns:140px 1fr auto;align-items:center;gap:24px;padding:14px 0;border-bottom:1px solid var(--trait);transition:background .2s}
.modeles__ligne:hover{background:var(--surface)}
.modeles__num{font-family:var(--police-titres);font-size:clamp(44px,4.6vw,68px);line-height:1;padding-left:4px}
.modeles__puces{display:flex;flex-wrap:wrap;gap:8px}
.modeles__puces a{display:inline-flex;align-items:center;height:38px;padding:0 16px;border:1px solid var(--trait);border-radius:var(--rayon-bouton);
  background:var(--fond);font-size:13px;font-weight:600;text-decoration:none}
.modeles__puces a:hover{border-color:var(--texte);color:var(--texte)}
.fleche a{display:grid;place-items:center;width:44px;height:44px;margin-right:4px;border:1px solid var(--trait);border-radius:50%;font-size:18px;text-decoration:none;
  transition:background .2s,color .2s}
.fleche a:hover{background:var(--accent);border-color:var(--accent);color:var(--sur-accent)}

/* ——— Collections ——— */
.collections{background:var(--surface);padding:clamp(80px,9vw,130px) 0}
.collections__grille{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;height:clamp(460px,44vw,640px)}
.tuile{position:relative;display:flex;flex-direction:column;justify-content:flex-end;padding:24px;border-radius:var(--rayon);overflow:hidden;
  color:var(--sur-profond);isolation:isolate}
.tuile__image{position:absolute;inset:0;z-index:-2;margin:0}
.tuile__image img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.tuile::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,color-mix(in srgb,var(--texte) 25%,transparent) 0%,transparent 30%,color-mix(in srgb,var(--texte) 15%,transparent) 55%,color-mix(in srgb,var(--texte) 72%,transparent) 100%)}
.tuile:hover .tuile__image img{transform:scale(1.04)}
.tuile .pastille{position:absolute;top:20px;left:20px;background:color-mix(in srgb,var(--texte) 35%,transparent);backdrop-filter:blur(6px);
  border-color:color-mix(in srgb,var(--sur-profond) 40%,transparent)}
.tuile__nom{font-family:var(--police-titres);text-transform:uppercase;font-size:clamp(32px,3vw,46px);line-height:.95}
.tuile--large .tuile__nom{font-size:clamp(48px,6vw,92px)}
.tuile__nom a{text-decoration:none;color:inherit}
.tuile__nom a::after{content:"";position:absolute;inset:0}               /* toute la tuile est cliquable */
.tuile__nom a:hover{color:inherit}
.tuile__texte{margin-top:8px;max-width:320px;font-size:13.5px;color:color-mix(in srgb,var(--sur-profond) 85%,transparent)}

/* ——— Les plus demandées ——— */
.vedettes{padding:clamp(80px,9vw,130px) 0 calc(clamp(150px,14vw,200px) - var(--cretes-h))}

/* ——— Produit à la une : une collection « hand-picked » d'un produit, mise en page sur deux colonnes ——— */
.une{margin-top:var(--cretes-h);padding:clamp(70px,6vw,90px) 0 clamp(60px,6vw,90px)}
.une::after{content:"";position:absolute;left:0;right:0;height:var(--cretes-h);background:var(--profond);pointer-events:none;top:calc(100% - 1px);
  -webkit-mask:var(--i-cretes-bas) 0 0/100% 100% no-repeat;mask:var(--i-cretes-bas) 0 0/100% 100% no-repeat}
.une .wc-block-product-template.une__grille{display:block;list-style:none;margin:0;padding:0}
.une .wc-block-product{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,80px);align-items:center;margin:0;width:auto}
.une .wc-block-product>*{margin-block:0}
.une__texte{display:grid;justify-items:start}
.une__titre{margin-top:22px;font-size:clamp(44px,6.4vw,96px);line-height:.9}
.une__titre a{text-decoration:none;color:inherit}
.une__points{margin:40px 0 0;padding:0;list-style:none;border-top:1px solid color-mix(in srgb,var(--sur-profond) 18%,transparent);max-width:560px;width:100%;counter-reset:point}
.une__points li{position:relative;display:block;padding:13px 0 13px 44px;border-bottom:1px solid color-mix(in srgb,var(--sur-profond) 18%,transparent);
  font-size:14px;color:color-mix(in srgb,var(--sur-profond) 72%,transparent);counter-increment:point}
.une__points li::before{content:counter(point,decimal-leading-zero);position:absolute;left:0;top:13px;font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--accent);padding-top:3px}
.une__points strong{color:var(--sur-profond)}
.une__achat{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin-top:36px}
.une .une__prix{font-family:var(--police-titres);font-size:48px;line-height:1;color:var(--sur-profond)}
.une__prix del{font-size:.5em;opacity:.6;margin-right:8px}
.une__prix ins{text-decoration:none}
.wc-block-product .une__bouton .wp-block-button__link.wc-block-components-product-button__button{display:inline-flex;align-items:center;gap:10px;height:46px;
  padding:0 22px;border-radius:var(--rayon-bouton);background:var(--accent);color:var(--sur-accent);font-size:14px;font-weight:700;border:0}
.wc-block-product .une__bouton .wp-block-button__link.wc-block-components-product-button__button::before{content:"»";font-size:18px;line-height:1;margin-top:-2px}
.une__visuel{position:relative;display:grid;place-items:center;min-height:640px}
.une__visuel::before{content:"Stone";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-family:var(--police-titres);text-transform:uppercase;
  font-size:clamp(120px,17vw,280px);line-height:1;color:color-mix(in srgb,var(--sur-profond) 6%,transparent);white-space:nowrap;pointer-events:none}
.une__visuel::after{width:96px;aspect-ratio:1;top:6%;right:6%;-webkit-mask-image:var(--i-boucle);mask-image:var(--i-boucle)}
.une .une__image{position:relative;width:min(420px,78%);margin:0;border-radius:var(--rayon);overflow:hidden;transform:rotate(-6deg);
  box-shadow:0 50px 90px -30px color-mix(in srgb,var(--texte) 65%,transparent)}
.une .une__image img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}

/* ——— Notre histoire (accueil) ——— */
.histoire{padding:calc(clamp(60px,7vw,100px) + var(--cretes-h)) 0 clamp(80px,9vw,130px)}
.histoire__grille{display:grid;grid-template-columns:5fr 6fr;gap:clamp(32px,6vw,110px);align-items:center}
.histoire__photo{border-radius:var(--rayon);overflow:hidden;aspect-ratio:4/5;margin:0}
.histoire__photo img{width:100%;height:100%;object-fit:cover}
.histoire__texte{display:grid;justify-items:start;gap:22px;max-width:620px}
.histoire__texte>p:not(.pastille):not(.lien-fleche){color:var(--sourdine);max-width:480px}
.histoire__texte>p.histoire__intro{color:var(--texte);font-size:19px;line-height:1.45;font-weight:600}
.histoire__texte .lien-fleche{margin-top:8px}

/* ——— FAQ ——— */
.faq{background:var(--surface);padding:clamp(80px,9vw,130px) 0 calc(clamp(140px,13vw,190px) - var(--cretes-h))}
.faq__grille{display:grid;grid-template-columns:1fr 1.25fr;gap:clamp(32px,6vw,100px)}
.faq__tete{display:grid;justify-items:start;gap:20px;align-content:start}
.faq__liste{border-top:1px solid var(--trait)}
.faq__liste details{border-bottom:1px solid var(--trait)}
.faq__liste summary{display:flex;justify-content:space-between;gap:20px;padding:22px 0;cursor:pointer;font-size:17px;font-weight:700;list-style:none}
.faq__liste summary::-webkit-details-marker{display:none}
.faq__liste summary::after{content:"+";flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid var(--texte);
  font-weight:500;font-size:18px;line-height:1}
.faq__liste details[open] summary::after{content:"−";background:var(--accent);border-color:var(--accent)}
.faq__liste details p{padding:0 50px 24px 0;color:var(--sourdine)}
/* le pied de page monte sur la FAQ : ses crêtes prennent la couleur de la bande sombre, la FAQ garde la surface dessous */
.faq{position:relative}
.faq:last-child{margin-bottom:calc(-1 * var(--cretes-h));padding-bottom:clamp(140px,13vw,190px)}

/* ——— Pages vitrine : tête de page ——— */
.tete-page{padding:clamp(56px,6vw,90px) 0 calc(clamp(56px,6vw,90px))}
.tete-page__grille{display:grid;grid-template-columns:1.4fr 1fr;gap:32px;align-items:end}
.tete-page__titre{margin-top:40px;font-size:clamp(56px,9vw,150px);line-height:.86}
.tete-page__chapeau{color:color-mix(in srgb,var(--sur-profond) 72%,transparent);max-width:420px;font-size:15px}
.bandeau-photo{margin:0;position:relative;z-index:2}
.bandeau-photo img{width:100%;height:auto;aspect-ratio:21/9;object-fit:cover;border-radius:var(--rayon)}
.recit{padding:clamp(70px,8vw,120px) 0}
.recit__grille{display:grid;grid-template-columns:1fr 1.3fr;gap:clamp(32px,6vw,110px)}
.recit__texte{display:grid;gap:20px;max-width:640px}
.recit__texte p{color:var(--sourdine)}
.recit__texte p.recit__intro{color:var(--texte);font-size:21px;line-height:1.45;font-weight:600}
.matieres{background:var(--surface);padding:clamp(70px,8vw,120px) 0}
.matieres__liste{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.matieres__liste li{display:grid;gap:10px;align-content:start;padding:28px;background:var(--fond);border-radius:var(--rayon);color:var(--sourdine);font-size:14px}
.matieres__liste strong{font-family:var(--police-titres);font-weight:400;font-size:34px;line-height:1;text-transform:uppercase;color:var(--texte)}
.photo-texte{padding:clamp(70px,8vw,120px) 0}
.photo-texte__grille{display:grid;grid-template-columns:6fr 5fr;gap:clamp(32px,6vw,110px);align-items:center}
.photo-texte__photo{margin:0;border-radius:var(--rayon);overflow:hidden}
.photo-texte__photo img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
.photo-texte__texte{display:grid;gap:22px;justify-items:start}
.photo-texte__texte>p:not(.pastille){color:var(--sourdine);max-width:460px}
.selection{padding:0 0 calc(clamp(120px,12vw,170px) - var(--cretes-h))}
.collection-selection .grille-produits.wc-block-product-template{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Contact */
.contact{padding:clamp(70px,8vw,120px) 0}
.contact__grille{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(32px,6vw,110px);align-items:start}
.contact .formulaire{padding:clamp(24px,3vw,40px);background:var(--surface);border-radius:var(--rayon)}
.contact__aside{display:grid;gap:24px}
.contact__photo{margin:0;border-radius:var(--rayon);overflow:hidden}
.contact__photo img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
.contact__ligne{display:grid;gap:4px;padding-bottom:18px;border-bottom:1px solid var(--trait)}
.contact__label{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--sourdine)}
.contact__valeur{font-size:20px;font-weight:600}
.contact__valeur a{text-decoration:none}
.formulaire .champ span:first-child{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.formulaire .envoi input[type=submit]{height:46px;padding:0 24px;font:700 14px/1 var(--police-texte)}

/* Composants de la maquette : tablette et mobile */
@media (max-width:1024px){
  .entete-logo img{width:108px}
  .entete-rangee{gap:14px;min-height:72px}
  .heros{padding-top:24px}
  .heros__grille{grid-template-columns:minmax(0,1fr)}
  .heros__texte{padding-bottom:48px}
  .heros .heros__photo{width:min(560px,86%);margin:8px 0 -120px auto}
  .modeles{padding-top:180px}
  .tete-section{grid-template-columns:minmax(0,1fr);align-items:start}
  .une .wc-block-product{grid-template-columns:minmax(0,1fr)}
  .une__visuel{min-height:520px;order:-1}
  .histoire__grille,.faq__grille,.recit__grille,.photo-texte__grille,.contact__grille,.tete-page__grille{grid-template-columns:minmax(0,1fr)}
  .histoire__photo{max-width:560px}
  .matieres__liste{grid-template-columns:minmax(0,1fr)}
  .engagements{grid-template-columns:minmax(0,1fr)}
  .pied-colonnes{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  body{font-size:14.5px}
  .heros__titre{font-size:clamp(54px,16.5vw,96px)}
  .heros__texte::after{top:-18px;right:0;width:70px}
  .heros .heros__photo{width:82%;margin-bottom:-90px}
  .heros__texte{padding-bottom:36px}
  .b-accent>.wp-block-button__link,.b-sombre>.wp-block-button__link{height:44px;padding-left:16px;font-size:13px}
  .modeles{padding-top:140px}
  .modeles__ligne{grid-template-columns:58px minmax(0,1fr);gap:12px}
  .modeles__ligne .fleche{display:none}
  .modeles__num{font-size:40px}
  .modeles__puces a{height:34px;padding:0 12px;font-size:12px}
  .collections__grille{grid-template-columns:1fr 1fr;height:auto}
  .tuile{aspect-ratio:3/4;padding:16px}
  .tuile--large{grid-column:1/-1;aspect-ratio:4/3}
  .tuile .pastille{top:12px;left:12px}
  .tuile__nom{font-size:24px}
  .tuile--large .tuile__nom{font-size:48px}
  .tuile:not(.tuile--large) .tuile__texte{display:none}
  .grille-produits .carte-titre{font-size:21px}
  .wc-block-product .carte-bouton .wp-block-button__link.wc-block-components-product-button__button{padding:0 12px;font-size:12px;min-height:36px}
  .une__visuel{min-height:420px}
  .une .une__prix{font-size:40px}
  .pied-colonnes{gap:28px 16px}
  .pied-contact{grid-column:1/-1}
  .tete-page__titre{font-size:clamp(52px,15vw,90px)}
}

/* ==========================================================================
   12 · Adaptatif
   ========================================================================== */
@media (max-width:1100px){
  .grille-produits.wc-block-product-template{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1024px){
  /* menu replié dès la tablette : WordPress ne replie qu'à 600 px, et un menu de
     cinq liens ou plus touche le logo entre 600 et 1024 px */
  .wp-block-navigation.menu .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex}
  .wp-block-navigation.menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:none}
  /* en-tête replié : [menu][logo] … [compte][panier] — jamais le bouton du menu
     flottant au milieu de l'en-tête (space-between le pose entre logo et actions) */
  .entete-rangee{justify-content:flex-start}
  .entete-rangee .wp-block-navigation.menu{order:-1}
  .entete-actions{margin-left:auto}
  .catalogue{grid-template-columns:minmax(0,1fr)}
  .catalogue-filtres{position:static}
  .fiche{grid-template-columns:minmax(0,1fr);gap:32px}
  .fiche-achat{position:static}
  .pied-haut{grid-template-columns:minmax(0,1fr)}
  .collection-associes{grid-template-columns:minmax(0,1fr)}
  .collection-associes .grille-produits.wc-block-product-template{grid-column:auto;grid-template-columns:repeat(3,minmax(0,1fr))}
  .associes-tete .section-chapo{max-width:none}
}
@media (max-width:860px){
  .fiche-galerie .wc-block-product-gallery-thumbnails{flex:none;width:100%!important;max-width:none;margin:12px 0 0}
  .fiche-galerie .wc-block-product-gallery-thumbnails__scrollable{flex-direction:row;overflow-x:auto}
  .fiche-galerie .wc-block-product-gallery-thumbnails__thumbnail{flex:0 0 64px;width:64px}
  /* qualifiés : les règles à 3 classes plus haut l'emportent sinon sur ces grilles */
  .grille-produits.wc-block-product-template,
  .catalogue .grille-produits.wc-block-product-template,
  .collection-associes .grille-produits.wc-block-product-template,
  .collection-selection .grille-produits.wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}
  .fiche-details{grid-template-columns:minmax(0,1fr);gap:22px;margin-top:72px}
  .fiche-associes{margin-top:88px}
  .wc-block-cart .wc-block-cart__sidebar{padding:24px 20px 20px}
  .woocommerce-account .u-columns :is(.u-column1,.u-column2){padding:30px 22px}
  .woocommerce-account main .woocommerce{gap:28px}
  .page-confirmation .wrap{padding-block:48px 0;gap:32px}
  .wc-block-order-confirmation-summary{padding:22px 20px}
  .panier-vide-suite{margin:80px 0 32px}
  .champ-rangee{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:782px){
  .admin-bar .entete{top:46px}
  .entete-rangee{gap:12px}
  .pied-colonnes{grid-template-columns:minmax(0,1fr)}
  .woocommerce-account main .woocommerce,.u-columns{grid-template-columns:minmax(0,1fr)}
  /* masquer un bouton d'en-tête : le CONTENEUR core/buttons, qualifié (le CSS du
     bloc Boutons, imprimé après, l'emporterait à spécificité égale) */
  .entete .entete-bouton{display:none}
}
@media (max-width:560px){
  .entete-commande-rangee{gap:14px}
  .entete-commande-rangee .commande-securisee{font-size:0;gap:0}
  .entete-commande-rangee .commande-retour{white-space:nowrap;font-size:13px}
  .catalogue-barre{flex-direction:column;align-items:stretch;gap:12px}
  .catalogue-barre .woocommerce-ordering,.catalogue-barre .woocommerce-ordering select{width:100%}
}

/* Variantes affichées par bascule de classe, jamais par injection JS. */
.est-cachee{display:none}
.est-cachee.est-actif{display:block}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
