/*
 * Curiosités Juridiques : nouveau design (refonte 2, décembre 2026).
 * Chargé par inc/design.php, en aperçu seulement (cookie cj_design) tant que
 * CJ_DESIGN_EN_LIGNE vaut false.
 *
 * Principe (DA) : « le cuir pour les objets, le papier pour l'écrit ».
 * Cuir noir en tuiles générées (textures/), vélin pour l'écrit long, bristol pour
 * les cartels, Caslon pour les titres, police du système pour le reste.
 *
 * Réécriture complète de la passe 2 : les blocs dépassés de la v2 (spec-ui § 12)
 * ont été supprimés, pas surchargés. Mobile d'abord ; les seules requêtes
 * max-width sont 750 px (seuil de Max Mega Menu, réglage d'extension) et le
 * paysage bas.
 *
 * Les !important sont réservés aux styles de tiers plus forts ; chaque cas porte
 * sa cause : [Customizer] wp-custom-css et custom-background-css ;
 * [Storefront] storefront-style-inline-css (styles en ligne) ;
 * [MMM] Max Mega Menu (sélecteurs à deux identifiants) ;
 * [SS] Smart Slider (styles en ligne posés par son script).
 *
 * Sommaire
 *  1. Jetons          8. Cartels et grilles     15. Panier
 *  2. Fond de cuir    9. Vitrines               16. Commande
 *  3. Texte          10. Fiche produit          17. Notices WooCommerce
 *  4. Boutons        11. Notice de vélin        18. Pied de page
 *  5. Champs         12. Articles et pages      19. Bandeau de cookies
 *  6. En-tête        13. Liste de la Revue      20. Icônes sans police
 *  7. Diaporama et accueil  14. FAQ             21. Mouvement réduit
 */

/* Passe 5 : replis à la chasse des polices Google (display=swap). Sans eux, le titre de la fiche
   passait de 4 à 3 lignes à l'arrivée de Libre Caslon Display et poussait le formulaire d'achat
   (dernier décalage de la fiche, 0,005). Rapports mesurés sur le même texte : Display/Georgia 0,832,
   Text/Georgia 1,067 (romain) et 1,057 (italique). */
@font-face { font-family: "CJ repli Display"; src: local("Georgia"); size-adjust: 83.2%; }
@font-face { font-family: "CJ repli Text"; font-style: normal; src: local("Georgia"); size-adjust: 106.7%; }
@font-face { font-family: "CJ repli Text"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 105.7%; }
@font-face { font-family: "CJ repli Text"; font-weight: 700; src: local("Georgia Bold"), local("Georgia-Bold"); size-adjust: 100.1%; } /* passe 6 : Caslon Text 700 (strong), chasse mesurée 100,1 % */

/* =====================================================================
 * 1. Jetons
 * ===================================================================== */

:root {
	/* Couleurs (spec-ui § 1.1) */
	--cj-cuir: #13110e;
	--cj-cuir-creux: #070605;
	--cj-cuir-relief: #211c16;
	--cj-or: #d5ad6d;
	--cj-or-clair: #ead7ae;
	--cj-or-sombre: #6e5020;
	--cj-ivoire: #e4ddd0;
	--cj-ivoire-doux: #a9a194;
	--cj-encre: #1d160c;
	--cj-encre-papier: #2c2620;
	--cj-gris-papier: #5a5047;
	--cj-gris-cartel: #6b6156;
	--cj-velin: #f5eee1;
	--cj-bristol: #efe6d4;
	--cj-champ: #f7f1e6;
	--cj-champ-bord: #8f7f62;
	--cj-filet: rgba(213, 173, 109, .32);
	--cj-filet-fort: rgba(213, 173, 109, .6);
	--cj-filet-papier: #d9ccb3;
	--cj-panneau: #0d0b08;
	--cj-vert: #a8c49a;
	--cj-rouge-cuir: #e0806e;
	--cj-rouge-papier: #7a2e1f; /* DA, passe 4 : 7,6:1 sur bristol */

	/* Matières (textures générées, dossier textures/ du thème) */
	--cj-tuile-cuir: url(/wp-content/themes/curiositesjuridiques/textures/cuir-768.webp?v=passe2);
	--cj-tuile-patine: url(/wp-content/themes/curiositesjuridiques/textures/cuir-patine-160.webp?v=passe2);
	--cj-tuile-velin: url(/wp-content/themes/curiositesjuridiques/textures/velin-512.webp);
	--cj-tuile-bristol: url(/wp-content/themes/curiositesjuridiques/textures/bristol-256.webp);
	--cj-fond-cuir: var(--cj-tuile-patine) 0 0 / 613px 613px repeat, var(--cj-tuile-cuir) 0 0 / 384px 384px repeat, var(--cj-cuir);
	--cj-fond-velin: var(--cj-tuile-velin) 0 0 / 256px 256px repeat, var(--cj-velin);
	--cj-tuile-velin-60: url(/wp-content/themes/curiositesjuridiques/textures/velin-512-60.webp);
	--cj-fond-velin-60: var(--cj-tuile-velin-60) 0 0 / 256px 256px repeat, var(--cj-velin);
	--cj-fond-bristol: var(--cj-tuile-bristol) 0 0 / 128px 128px repeat, var(--cj-bristol);

	/* Lumière unique du site (point 15 du propriétaire) : nord-ouest à 45°. Toute ombre part en bas à droite avec
	   un décalage x = y (multiple du pas ci-dessous) ; toute arête claire, tout reflet est en haut à gauche. */
	--cj-lumiere-x: 1px;
	--cj-lumiere-y: 1px;
	--cj-ombre-contact: calc(2 * var(--cj-lumiere-x)) calc(2 * var(--cj-lumiere-y)) 5px -2px rgba(0, 0, 0, .55); /* objet posé : plaque, étiquette */
	--cj-ombre-portee: calc(8 * var(--cj-lumiere-x)) calc(8 * var(--cj-lumiere-y)) 18px -8px rgba(0, 0, 0, .7);  /* objet détaché du cuir : panneau, menu */
	/* Ombres (DA § 2.3 et § 4.1) */
	--cj-ombre-feuille: calc(10 * var(--cj-lumiere-x)) calc(10 * var(--cj-lumiere-y)) 24px -12px rgba(0, 0, 0, .8); /* le contact est cuit dans le bord mâché (même lumière) */
	--cj-bord: 12px; /* bande du bord mâché du vélin (14 px dès 768) */
	/* Carton en relief (point 8 du propriétaire) : biseau positif de 2 px (arête claire en haut et à gauche,
	   sombre en bas et à droite), tranche de 2 px vers le bas et la droite, puis ombre courte portée en bas à droite */
	--cj-ombre-carton: calc(6 * var(--cj-lumiere-x)) calc(6 * var(--cj-lumiere-y)) 14px -7px rgba(0, 0, 0, .75); /* passe 7 : cartel en vélin, ombre douce sous le bord mâché (sans biseau) */
	--cj-ombre-carton-papier: calc(5 * var(--cj-lumiere-x)) calc(5 * var(--cj-lumiere-y)) 12px -7px rgba(60, 40, 10, .45);
	--cj-ombre-oeuvre: calc(7 * var(--cj-lumiere-x)) calc(7 * var(--cj-lumiere-y)) 18px -6px rgba(0, 0, 0, .75), calc(1 * var(--cj-lumiere-x)) calc(1 * var(--cj-lumiere-y)) 0 rgba(0, 0, 0, .9);

	/* Familles (point 35, décision du propriétaire) : une seule famille, Libre Caslon, sur tout le site. Display pour les
	   grands titres (28 px et plus), Text pour tout le reste ; plus aucune police sans serif ni système. --cj-sans est
	   gardé comme alias de --cj-serif, pour les règles qui l'emploient encore. */
	--cj-titre: "Libre Caslon Display", "CJ repli Display", "Libre Caslon Text", Georgia, serif; /* repli à la chasse avant Text, sinon Text, arrivé le premier, élargit le titre */
	--cj-serif: "Libre Caslon Text", "CJ repli Text", Georgia, serif;
	--cj-sans: var(--cj-serif);

	/* Échelle typographique (DA passe 6, § 2.4) : toute taille passe par un jeton.
	   Point 35 : Caslon Text partout, Display à 28 px et plus ; rien sous 15 px ; boutons et menus en Text 16 à 17 px,
	   romain ; graisse 700 pour strong seulement (Text 400 et 700 sont chargés), la hiérarchie se fait par le corps et
	   la couleur ; prix, quantités et totaux en chiffres alignés et tabulaires (lnum, tnum : fournis par Caslon Text).
	   Les tailles fluides tombent juste à 390 et à 1280 px (rem, max ≤ 2,5 × min). */
	--cj-t-ouverture: clamp(2.125rem, 1.5225rem + 2.472vw, 3.5rem);  /* Display 34 → 56 */
	--cj-t-page: clamp(2.125rem, 1.7416rem + 1.573vw, 3rem);         /* Display 34 → 48 */
	--cj-t-diapo: 1.875rem;                                          /* Display 30 (28 sous 360, 34 → 44 dès 768) */
	--cj-t-section: clamp(1.875rem, 1.4916rem + 1.573vw, 2.75rem);   /* Display 30 → 44 */
	--cj-t-produit: clamp(1.875rem, 1.601rem + 1.124vw, 2.5rem);     /* Display 30 → 40 */
	--cj-t-produit-long: clamp(1.75rem, 1.4762rem + 1.124vw, 2.125rem); /* Display 28 → 34, titre de plus de 90 signes */
	--cj-t-feuille: clamp(1.75rem, 1.5856rem + .674vw, 2.125rem);    /* Display 28 → 34 */
	--cj-t-h3: clamp(1.375rem, 1.2656rem + .449vw, 1.625rem);        /* Text 22 → 26 */
	--cj-t-citation: clamp(1.375rem, 1.2656rem + .449vw, 1.625rem);  /* Text italique 22 → 26 */
	--cj-t-dest: clamp(1.25rem, 1.1406rem + .449vw, 1.5rem);         /* Text 20 → 24 */
	--cj-t-chapo: clamp(1.1875rem, 1.1328rem + .2247vw, 1.3125rem);  /* Text 19 → 21 */
	--cj-t-cartel-titre: 1.1875rem;                                  /* Text 19 */
	--cj-t-cartel-titre-etroit: 1.0625rem;                           /* Text 17, grille de 4 et cartel étroit */
	--cj-t-lecture: clamp(1.0625rem, 1.0078rem + .2247vw, 1.1875rem); /* Text 17 → 19, interligne 1,6 */
	--cj-t-note: .9375rem;                                           /* Text 15 */
	--cj-t-ui: 1rem;                                                 /* Text 16 : menus, champs */
	--cj-t-petit: 1rem;                                              /* Text 16 : boutons, liens d'action (15 avant le point 35) */
	--cj-t-mini: .9375rem;                                           /* Text 15 (plancher ; 14 avant le point 35) */
	--cj-t-prix-cartel: 1.0625rem;                                   /* Text 400 17, chiffres alignés tabulaires */
	--cj-t-prix-fiche: clamp(1.75rem, 1.6953rem + .2247vw, 1.875rem); /* Text 400 28 → 30, chiffres alignés tabulaires */
	--cj-t-pastille: .9375rem;                                       /* Text 15 : chiffre de la pastille (plus d'exception au plancher) */
	--cj-t-icone: 1.5rem;                                            /* signes dessinés en police : menu, retrait du panier */

	/* Espaces (px : un zoom texte ne mange pas la largeur utile) */
	--cj-e1: 4px; --cj-e2: 8px; --cj-e3: 12px; --cj-e4: 16px;
	--cj-e5: 24px; --cj-e6: 32px; --cj-e7: 48px; --cj-e8: 64px;
	--cj-gouttiere: 16px;
	--cj-section: 64px;
	--cj-oeuvre-ecart: 56px;
	--cj-largeur-max: 1160px;
	--cj-feuille-max: 860px;
	--cj-mesure: 44rem;

	/* En-tête : rapport du logo détouré (1200 × 173) */
	--cj-logo-ratio: 6.936;
	--cj-barre-h: 48px;

	--cj-focus: var(--cj-or);
	--cj-lien: var(--cj-or);

	/* Or des boutons d'achat : laiton-miroir (points 11 et 16 du propriétaire). Aplat métallique lisse, dégradé
	   diagonal du nord-ouest (clair) au sud-est, écart de luminosité réduit de moitié au repos (point 16) ;
	   un reflet léger en haut à gauche ; une bande spéculaire glisse au défilement (4.1) ; halo au survol seulement */
	--cj-laiton: linear-gradient(135deg, #e5c78a 0%, #ddba77 24%, #d4ab66 50%, #dbb571 74%, #cea55f 100%);
	--cj-laiton-reflet: linear-gradient(135deg, rgba(250, 238, 205, .26) 0%, rgba(250, 238, 205, .07) 34%, rgba(250, 238, 205, 0) 50%);
	--cj-laiton-survol: linear-gradient(135deg, #ecce9a 0%, #e7c78b 24%, #deb474 50%, #e1be7f 74%, #d6ad6a 100%);
	--cj-laiton-reflet-survol: linear-gradient(135deg, rgba(250, 238, 205, .45) 0%, rgba(250, 238, 205, .14) 36%, rgba(250, 238, 205, 0) 54%);
	--cj-laiton-appui: linear-gradient(135deg, #d9b473 0%, #c99d57 50%, #b8894a 100%);
	--cj-laiton-bande: linear-gradient(120deg, rgba(250, 236, 200, 0) 32%, rgba(250, 236, 200, .08) 40%, rgba(251, 239, 208, .34) 50%, rgba(250, 236, 200, .08) 60%, rgba(250, 236, 200, 0) 68%); /* point 20 : large, fondue, champagne, pic de .34 (au lieu de .55) */
	--cj-sans-image: linear-gradient(transparent, transparent);
	--cj-laiton-ombre-cuir: calc(2 * var(--cj-lumiere-x)) calc(2 * var(--cj-lumiere-y)) 5px -2px rgba(0, 0, 0, .55);
	--cj-laiton-ombre-papier: calc(2 * var(--cj-lumiere-x)) calc(2 * var(--cj-lumiere-y)) 5px -2px rgba(70, 48, 15, .35);
	--cj-laiton-halo: 0 0 18px 2px rgba(213, 173, 109, .35);
	--cj-plaque-ombre: var(--cj-laiton-ombre-cuir);
	/* Chevron commun (menu de tri, flèches de pagination, champs) : même tracé que le chevron des select */
	--cj-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--cj-chevron-or: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d5ad6d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--cj-plaque-halo: var(--cj-laiton-halo);
	--cj-plaque-focus: var(--cj-or-clair);
}
@media (max-width: 359px) {
	:root { --cj-t-diapo: 1.75rem; }
}
@media (min-width: 600px) {
	:root { --cj-gouttiere: 24px; --cj-section: 80px; }
}
@media (min-width: 768px) {
	:root { --cj-t-diapo: clamp(2.125rem, 1.1875rem + 1.953vw, 2.75rem); } /* 34 à 768, 44 à 1280 */
}
@media (max-height: 500px) and (orientation: landscape) {
	:root { --cj-t-diapo: 1.75rem; }
}
@media (min-width: 1024px) {
	:root { --cj-gouttiere: 40px; --cj-section: 96px; --cj-oeuvre-ecart: 64px; }
}

/* Contextes papier : or sombre pour le focus et les liens */
.cj-feuille,
.cj-notice,
.single-post .entry-content,
.cj-page-texte .entry-content,
body.blog .site-main,
:is(body.archive, body.search):not(.woocommerce-page) .site-main,
ul.products li.product {
	--cj-focus: var(--cj-or-sombre);
	--cj-lien: var(--cj-or-sombre);
}

/* =====================================================================
 * 2. Fond de cuir, vignettage, conteneurs
 * ===================================================================== */

/* [Customizer] custom-background-css imprime body.custom-background après
   cette feuille, avec la photo CuirNoir.jpg en cover fixed : html body l'emporte. */
html body.custom-background,
html body {
	background-color: var(--cj-cuir);
	background-image: var(--cj-tuile-patine), var(--cj-tuile-cuir);
	background-size: 613px 613px, 384px 384px;
	background-position: 0 0, 0 0;
	background-repeat: repeat, repeat;
	background-attachment: scroll, scroll;
}

/* Vignettage fixe (DA § 1.4) ; body ne crée aucun contexte d'empilement. */
body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100lvh;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 33% at 25% 0, rgba(255, 240, 220, .02), transparent 100%), /* lueur au nord-ouest */
		radial-gradient(ellipse 125% 95% at 50% 45%, transparent 55%, rgba(0, 0, 0, .22) 100%);
}

/* Storefront pose overflow-x: hidden sur .site, ce qui annule tout sticky. */
.site { overflow-x: hidden; overflow-x: clip !important; }

/* [Storefront] fonds #000 en ligne : le cuir doit passer partout. */
#page,
.site-content,
.site-header,
.site-footer,
.storefront-primary-navigation,
table:not(.has-background) th,
table:not(.has-background) tbody td,
table:not(.has-background) tbody tr:nth-child(2n) td,
fieldset,
fieldset legend { background-color: transparent !important; }
.site-header { background-image: none; }

.col-full {
	box-sizing: content-box;
	max-width: var(--cj-largeur-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--cj-gouttiere);
	padding-right: var(--cj-gouttiere);
}
.col-full .col-full { padding-left: 0; padding-right: 0; }

/* Mise en page sans barre latérale : le contenu prend toute la largeur. */
.content-area,
.right-sidebar .content-area,
.left-sidebar .content-area { width: 100%; float: none; margin: 0; }
.site-main { margin-bottom: 0; }

/* =====================================================================
 * 3. Texte
 * ===================================================================== */

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scroll-behavior: auto; } /* ancres : 24 px du haut, saut instantané (DA passe 6, § 6) */
body {
	color: var(--cj-ivoire);
	font-family: var(--cj-sans);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
button, input, select, textarea, .button { font-family: var(--cj-sans); }
/* Caslon : aucun faux gras ni faux italique ; strong en Text 700 romain, et l'emphase forte
   dans l'italique repasse en romain 700 (il n'y a pas de 700 italique) (DA passe 6, § 2.3) */
body { font-synthesis: none; }
:is(strong, b) { font-weight: 700; } /* point 35 : Caslon Text 700, chargé */
:is(.single-post .entry-content, .cj-page-texte .entry-content, .page-id-18191 .entry-content > p, .cj-notice-texte, details.cj-faq, .cj-chapo, .term-description) :is(strong, b) { font-weight: 700; }
:is(.single-post .entry-content, .cj-page-texte .entry-content, .page-id-18191 .entry-content > p, .cj-notice-texte, details.cj-faq, .cj-chapo, .term-description) :is(em, i) :is(strong, b),
:is(.single-post .entry-content, .cj-page-texte .entry-content, .page-id-18191 .entry-content > p, .cj-notice-texte, details.cj-faq, .cj-chapo, .term-description) :is(strong, b) :is(em, i) { font-style: normal; font-weight: 700; }
:is(h1, h2, h3, h4, h5, h6) :is(strong, b) { font-weight: inherit; }

/* Aucune césure automatique, nulle part ; jamais de texte justifié (arbitrage 1.4). */
body, body * { hyphens: manual !important; -webkit-hyphens: manual !important; }
p, li, td, dd, blockquote, .entry-content, .cj-notice-texte { text-align: start; }
.entry-content [style*="justify"],
.cj-notice-texte [style*="justify"],
.entry-content .has-text-align-justify { text-align: start !important; }
.entry-content a,
.cj-notice-texte a,
.term-description a { overflow-wrap: anywhere; }

a { color: var(--cj-lien); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--cj-or-clair); }

h1, h2, h3, h4, h5, h6 {
	color: var(--cj-or);
	font-family: var(--cj-titre);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: balance;
}
h3, h4, h5, h6 { font-family: var(--cj-serif); }

.section-title,
.storefront-product-section .section-title,
section.up-sells > h2,
section.related > h2,
.cj-plus-loin > h2,
.cross-sells > h2,
section.up-sells > h2:first-child,
section.related > h2:first-child { /* [WooCommerce] .related > h2:first-child { font-size: 1.618em } */
	margin: 0 0 var(--cj-e6);
	color: var(--cj-or);
	font-family: var(--cj-titre);
	font-size: var(--cj-t-section);
	font-weight: 400;
	line-height: 1.1;
	text-align: center;
	text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--cj-focus); outline-offset: 3px; }

.screen-reader-text:focus { background: var(--cj-panneau); color: var(--cj-or); }

/* =====================================================================
 * 4. Boutons (spec-ui § 10.1) : rayon 0, cibles de 44 px au moins
 * ===================================================================== */

/* Secondaire (par défaut) : filet or, plein au survol.
   [Storefront] boutons or à texte blanc en ligne. */
.button,
button.button,
input[type="submit"],
a.checkout-button,
#place_order,
.wc-block-grid__product .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--cj-e2);
	min-height: 48px;
	padding: 0 24px;
	background: transparent !important;
	color: var(--cj-or) !important;
	border: 1px solid var(--cj-or) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font: 400 var(--cj-t-petit)/1.2 var(--cj-sans);
	letter-spacing: .01em;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.button:hover,
button.button:hover,
input[type="submit"]:hover,
.button:focus-visible {
	background: var(--cj-or) !important;
	color: var(--cj-encre) !important;
	border-color: var(--cj-or) !important;
}
.button:active,
input[type="submit"]:active { background: var(--cj-or-clair) !important; border-color: var(--cj-or-clair) !important; color: var(--cj-encre) !important; }

/* Primaire : or plein, texte encre (8,6:1). Les boutons d’achat sont en laiton (4.1). */
.button.alt,
button.button.alt {
	background: var(--cj-or) !important;
	color: var(--cj-encre) !important;
	border-color: var(--cj-or) !important;
	--cj-focus: var(--cj-or-clair);
}
.button.alt:hover,
.button.alt:focus-visible { background: var(--cj-or-clair) !important; border-color: var(--cj-or-clair) !important; color: var(--cj-encre) !important; }
.button.alt:active { background: #c79c58 !important; border-color: #c79c58 !important; }

/* Grand (fiche, panier, commande) */
.single_add_to_cart_button,
a.checkout-button,
#place_order { min-height: 56px; padding: 0 32px; font-size: var(--cj-t-prix-cartel); }
a.checkout-button,
#place_order { display: flex; width: 100%; }

/* Désactivé et en cours */
.button:disabled,
.button.disabled,
.button[aria-disabled="true"],
.button:disabled:hover,
.button.disabled:hover { opacity: .45; cursor: not-allowed; background: transparent !important; color: var(--cj-or) !important; border-color: var(--cj-or) !important; }
.button.alt:disabled,
.button.alt.disabled,
.button.alt:disabled:hover { background: var(--cj-or) !important; color: var(--cj-encre) !important; }
.button.loading { opacity: .7; cursor: progress; }

/* Lien d'action (tertiaire) */
a.added_to_cart {
	display: inline-block;
	line-height: 44px;
	padding: 0;
	background: none !important;
	border: 0 !important;
	color: var(--cj-lien) !important;
	font-weight: 400;
	font-size: var(--cj-t-petit);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}
a.added_to_cart:hover { text-decoration-thickness: 2px; }

/* ---------- 4.1 Boutons d'achat en laiton-miroir (passe 6, points 11, 16 et 17 du propriétaire) ----------
   :is() porte la spécificité de #place_order : le bouton passe devant les règles du bouton primaire
   (.button.alt:hover…) et de Storefront sans empiler de sélecteurs. Trois couches pilotées par variables :
   bande spéculaire (défilement), reflet, fond. La page courante de la pagination est la même plaque (point 17). */
:is(#place_order, .single_add_to_cart_button, a.checkout-button, .storefront-sticky-add-to-cart__content-button, ul.products li.product:not(.outofstock) > .button, .woocommerce-pagination .page-numbers li span.page-numbers.current) {
	--cj-plaque-fond: var(--cj-laiton);
	--cj-plaque-lustre: var(--cj-laiton-reflet);
	--cj-plaque-bande: var(--cj-sans-image);
	border: 0 !important;
	border-radius: 3px !important;
	background-color: #d6ad66 !important;
	background-image: var(--cj-plaque-bande), var(--cj-plaque-lustre), var(--cj-plaque-fond) !important;
	background-size: 320% 100%, 100% 100%, 100% 100% !important;
	background-repeat: no-repeat !important;
	background-position: var(--cj-bande-x) 0, 0 0, 0 0 !important; /* [Storefront/WC] un raccourci background !important remettait 0 0 */
	box-shadow: var(--cj-plaque-ombre) !important;
	color: var(--cj-encre) !important;
	font-weight: 400;
	letter-spacing: .01em;
	text-shadow: none;
	text-transform: none;
	transition: box-shadow 150ms ease-out;
}
@media (hover: hover) {
	:is(#place_order, .single_add_to_cart_button, a.checkout-button, .storefront-sticky-add-to-cart__content-button, ul.products li.product:not(.outofstock) > .button):hover {
		--cj-plaque-fond: var(--cj-laiton-survol);
		--cj-plaque-lustre: var(--cj-laiton-reflet-survol);
		box-shadow: var(--cj-plaque-ombre), var(--cj-plaque-halo) !important; /* l'aura du logo, sur cuir seulement */
		color: var(--cj-encre) !important;
	}
}
:is(#place_order, .single_add_to_cart_button, a.checkout-button, .storefront-sticky-add-to-cart__content-button, ul.products li.product:not(.outofstock) > .button):focus-visible {
	outline: 2px solid var(--cj-plaque-focus);
	outline-offset: 3px;
	color: var(--cj-encre) !important;
	--cj-plaque-lustre: var(--cj-laiton-reflet-survol);
}
:is(#place_order, .single_add_to_cart_button, a.checkout-button, .storefront-sticky-add-to-cart__content-button, ul.products li.product:not(.outofstock) > .button):active {
	--cj-plaque-fond: var(--cj-laiton-appui);
	--cj-plaque-lustre: var(--cj-sans-image);
	--cj-plaque-bande: var(--cj-sans-image) !important;
	box-shadow: none !important;
}
/* Désactivé : étain lisse, sans opacité globale ni reflet */
:is(#place_order, .single_add_to_cart_button, a.checkout-button, .storefront-sticky-add-to-cart__content-button, ul.products li.product:not(.outofstock) > .button):is(:disabled, .disabled, [aria-disabled="true"]) {
	opacity: 1 !important; /* [Storefront] button:disabled { opacity: .5 !important } */
	cursor: not-allowed;
	--cj-plaque-fond: linear-gradient(135deg, #ddd6c7, #c2b9a6);
	--cj-plaque-lustre: var(--cj-sans-image);
	--cj-plaque-bande: var(--cj-sans-image) !important;
	color: #4a4235 !important;
	box-shadow: none !important;
}
:is(#place_order, .single_add_to_cart_button, a.checkout-button, .storefront-sticky-add-to-cart__content-button, ul.products li.product:not(.outofstock) > .button).loading { opacity: .75; cursor: progress; }
/* Reflet au défilement (point 16) : la bande glisse en diagonale pendant la traversée de l'écran ; seulement
   avec les chronologies de défilement (sinon plaque plate) et sans préférence de mouvement réduit. Seule la
   position du fond change : aucun calcul de mise en page. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		:is(#place_order, .single_add_to_cart_button, a.checkout-button, .storefront-sticky-add-to-cart__content-button, ul.products li.product:not(.outofstock) > .button, .woocommerce-pagination .page-numbers li span.page-numbers.current) {
			--cj-plaque-bande: var(--cj-laiton-bande);
			animation: cj-reflet-laiton linear both;
			animation-timeline: view();
			animation-range: cover calc(-8% + var(--cj-col, 0) * 8%) cover calc(108% + var(--cj-col, 0) * 8%); /* vague du point 29 */
		}
	}
}
/* La position de la bande passe par une propriété enregistrée : une déclaration !important ne peut pas être
   animée, la variable si. */
@property --cj-bande-x { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
/* Passe 7 (points 31 et 32) : même courbe que les livres, sans plateau ; la bande passe au milieu de la plaque
   quand la plaque passe au point où les livres sont de face (54 % de la plage). */
@keyframes cj-reflet-laiton {
	0% { --cj-bande-x: 100%; animation-timing-function: cubic-bezier(.4, .2, .7, .8); }
	54% { --cj-bande-x: 50%; animation-timing-function: cubic-bezier(.3, .2, .6, .8); }
	100% { --cj-bande-x: 0%; }
}
/* Sur bristol (cartels) : ombre papier, pas de halo, focus or sombre */
ul.products li.product {
	--cj-plaque-ombre: var(--cj-laiton-ombre-papier);
	--cj-plaque-halo: 0 0 0 transparent;
	--cj-plaque-focus: var(--cj-or-sombre);
}

/* =====================================================================
 * 5. Champs (spec-ui § 10.3) : ivoire uni, jamais de texture
 * ===================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="date"],
textarea,
select,
.input-text {
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 14px;
	background-color: var(--cj-champ);
	color: var(--cj-encre-papier);
	border: 1px solid var(--cj-champ-bord);
	border-radius: 0;
	box-shadow: none;
	font: 400 var(--cj-t-ui)/1.4 var(--cj-sans);
}
textarea { min-height: 7rem; padding: 12px 14px; }
input::placeholder,
textarea::placeholder { color: var(--cj-gris-cartel); opacity: 1; }
input:hover,
textarea:hover,
select:hover { border-color: var(--cj-or-sombre); }
input:focus,
textarea:focus,
select:focus { background-color: #fff; border-color: var(--cj-or-sombre); outline: 2px solid var(--cj-focus); outline-offset: 2px; }
input:disabled,
select:disabled,
textarea:disabled { opacity: .6; cursor: not-allowed; }
input[readonly] { background-color: var(--cj-velin); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--cj-champ) inset; -webkit-text-fill-color: var(--cj-encre-papier); }

select {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232c2620' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

input[type="checkbox"],
input[type="radio"] { width: 20px; height: 20px; accent-color: var(--cj-or); vertical-align: -.25em; }

.woocommerce form .form-row label,
.woocommerce-page form .form-row label { color: var(--cj-ivoire); font-weight: 400; font-size: var(--cj-t-petit); margin-bottom: var(--cj-e1); }
.form-row .required { color: var(--cj-or); text-decoration: none; border: 0; }
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select { border: 2px solid var(--cj-rouge-papier); }

/* Liste des pays (select2) */
.select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	height: 48px;
	background: var(--cj-champ);
	border: 1px solid var(--cj-champ-bord);
	border-radius: 0;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--cj-encre-papier); line-height: 1.4; padding-left: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.select2-dropdown { background: var(--cj-champ); color: var(--cj-encre-papier); border-color: var(--cj-or-sombre); border-radius: 0; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--cj-or); color: var(--cj-encre); }

.quantity .qty { width: 72px; min-height: 44px; padding: 0 8px; text-align: center; }

/* =====================================================================
 * 6. En-tête (spec-ui § 2)
 * ===================================================================== */

/* [Customizer] .site-header { padding-top: 2.3em !important } : l'identifiant l'emporte */
#masthead.site-header {
	padding: 0 !important;
	margin: 0;
	border-bottom: 0 !important;
	box-shadow: none;
}
.site-header > .col-full { padding-top: 16px; padding-bottom: 14px; }
.site-header .site-branding {
	float: none;
	width: 100% !important;
	max-width: 560px;
	margin: 0 auto !important;
	text-align: center;
}
/* [Storefront] le lien du logo est réduit à 90 % dès 768 px : la boîte du logo doit faire 560 px à 1280 (critère 17) */
html body .site-header .custom-logo-link { display: block; width: 100% !important; max-width: none !important; min-height: 44px; margin: 0 !important; }
.site-header img.custom-logo {
	content: normal; /* style.css du thème enfant : content: url(LogoSite2019.jpg), le logo à fond noir */
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	max-height: none;
	margin: 0 auto;
	background: none;
	box-shadow: none;
}
.site-branding .site-title,
.site-branding .site-description { display: none; }

/* Barre de navigation : filets or, menu à gauche, panier à droite */
.storefront-primary-navigation {
	position: relative;
	margin: 0 !important;
	border-top: 1px solid var(--cj-filet-fort);
	border-bottom: 1px solid var(--cj-filet-fort);
	box-shadow: none !important;
	max-height: none !important;
}
.storefront-primary-navigation > .col-full {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--cj-e4);
	min-height: var(--cj-barre-h);
}
.storefront-primary-navigation #site-navigation { position: static; flex: 1 1 auto; min-width: 0; margin: 0 !important; padding: 0 !important; }
.storefront-primary-navigation .handheld-navigation,
.storefront-primary-navigation button.menu-toggle,
.site-header-cart,
.storefront-handheld-footer-bar { display: none !important; }

#mega-menu-wrap-primary,
#mega-menu-wrap-primary #mega-menu-primary { background: transparent !important; }

/* Panier permanent (inc/design.php) */
a.cj-panier {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 0 0 8px;
	color: var(--cj-ivoire);
	font: 400 var(--cj-t-petit)/1 var(--cj-sans);
	text-decoration: none;
	outline-offset: -4px;
}
a.cj-panier:hover,
a.cj-panier:focus-visible { color: var(--cj-or); }
.woocommerce-cart a.cj-panier,
.woocommerce-checkout a.cj-panier { color: var(--cj-or); }
.woocommerce-cart a.cj-panier .cj-panier-libelle,
.woocommerce-checkout a.cj-panier .cj-panier-libelle { text-decoration: underline; text-underline-offset: .25em; }
.cj-panier-icone { flex: none; width: 20px; height: 20px; color: var(--cj-or); }
.cj-panier-nombre {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 999px;
	border: 0;
	background: var(--cj-laiton-reflet), var(--cj-laiton); /* même or lisse que les boutons d'achat */
	color: var(--cj-encre);
	font-size: var(--cj-t-pastille);              /* 15 px (point 35) */
	font-weight: 400;
	line-height: 22px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Fil d'Ariane : réaffiché sur les fiches seulement ([Customizer] display: none) */
.storefront-breadcrumb { margin: 0 !important; padding: 0; }
.single-product .storefront-breadcrumb .woocommerce-breadcrumb {
	display: block !important;
	margin: 0;
	padding: 0;
	font-size: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--cj-ivoire-doux);
}
.single-product .woocommerce-breadcrumb a,
.single-product .woocommerce-breadcrumb .breadcrumb-separator { font-size: var(--cj-t-mini); color: var(--cj-ivoire-doux); }
.single-product .woocommerce-breadcrumb a { display: inline-block; padding: 10px 0; line-height: 24px; text-decoration: underline; text-underline-offset: .18em; }
.single-product .woocommerce-breadcrumb a:hover { color: var(--cj-or); }
/* Maison du fil d'Ariane : SVG au lieu de Font Awesome */
.woocommerce-breadcrumb a:first-of-type::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 1 7.5h2v7h4v-4h2v4h4v-7h2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 1 7.5h2v7h4v-4h2v4h4v-7h2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 767px) {
	/* Le titre est masqué : pas de « / » orphelin à la fin (responsive n° 14) */
	.single-product .woocommerce-breadcrumb .breadcrumb-separator:last-of-type { display: none; }
}
@media (min-width: 768px) {
	.single-product .storefront-breadcrumb .woocommerce-breadcrumb { font-size: var(--cj-t-mini); padding-top: 8px; }
}

/* Bandeau de Noël (spec-ui § 2.5) : or plein, sans flèche */
.cj-bandeau-boutique {
	--cj-focus: var(--cj-encre);
	background: var(--cj-or);
	color: var(--cj-encre);
	padding: 8px 0;
	font: 400 var(--cj-t-mini)/1.45 var(--cj-sans);
	text-align: center;
	text-wrap: balance;
}
.cj-bandeau-boutique a {
	display: inline-block;
	padding: 12px 0;
	margin: -12px 0;
	line-height: 20px; /* cible de 44 px à toutes les largeurs, paysage compris */
	color: var(--cj-encre);
	font-weight: 400;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}
.cj-bandeau-boutique a:hover { color: var(--cj-encre); text-decoration-thickness: 2px; }

/* Réseaux sociaux : retirés de la navigation à toutes les largeurs, le pied « Nous suivre » suffit (audit C4, C11) */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-has-icon { display: none !important; }

/* ---------- 6.1 Mobile : barre Menu / Panier (jusqu'à 750 px, seuil de Max Mega Menu) ---------- */
@media (max-width: 750px) {
	/* style.css du thème enfant : div.storefront-primary-navigation > div.col-full { margin: 0; padding: 0 } */
	.site-header div.storefront-primary-navigation > div.col-full { height: var(--cj-barre-h); margin: 0; padding: 0 var(--cj-gouttiere); }
	/* style.css du thème enfant : li.mega-menu-item { padding: 0 1em !important } */
	#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item { padding: 0 !important; }
	#mega-menu-wrap-primary { position: static !important; } /* [MMM] le panneau couvre la barre entière */

	/* Bascule : icône dorée puis « Menu », à gauche. [MMM] */
	#mega-menu-wrap-primary .mega-menu-toggle {
		height: var(--cj-barre-h) !important;
		line-height: var(--cj-barre-h) !important;
		background: transparent !important;
		justify-content: flex-start !important;
		margin: 0 !important;
	}
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-blocks-left,
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-blocks-center { display: none !important; }
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-blocks-right { flex: 0 0 auto !important; justify-content: flex-start !important; }
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1 {
		display: flex !important;
		align-items: center;
		gap: 8px;
		height: 44px;
		min-width: 100px;
		margin: 2px 0 !important;
		padding: 0 !important;
		cursor: pointer;
	}
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1::after {
		order: -1;
		margin: 0 !important;
		font-size: var(--cj-t-icone) !important;
		color: var(--cj-or) !important;
	}
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-label {
		color: var(--cj-ivoire) !important;
		font: 400 var(--cj-t-petit)/44px var(--cj-sans) !important;
		outline-offset: -4px;
	}
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-label-closed,
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-label-open { text-transform: lowercase; }
	#mega-menu-wrap-primary .mega-menu-toggle:not(.mega-menu-open) .mega-toggle-label-closed,
	#mega-menu-wrap-primary .mega-menu-toggle.mega-menu-open .mega-toggle-label-open { display: inline-block !important; }
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-label-closed::first-letter,
	#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-label-open::first-letter { text-transform: uppercase; }

	/* Panneau ouvert : il recouvre la page au lieu de la pousser. [MMM] */
	#mega-menu-wrap-primary .mega-menu-toggle.mega-menu-open + #mega-menu-primary {
		position: absolute !important;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 1001;
		max-height: calc(100vh - var(--cj-barre-h));
		max-height: calc(100dvh - var(--cj-barre-h));
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 8px 0 16px !important;
		background: var(--cj-fond-cuir) !important;
		border-bottom: 1px solid var(--cj-filet-fort);
		box-shadow: calc(16 * var(--cj-lumiere-x)) calc(16 * var(--cj-lumiere-y)) 40px -12px rgba(0, 0, 0, .9) !important;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
		height: auto !important;
		min-height: 48px;
		padding: 0 var(--cj-gouttiere) !important;
		background: transparent !important;
		color: var(--cj-ivoire) !important;
		font: 400 var(--cj-t-ui)/48px var(--cj-sans) !important;
		border-bottom: 1px solid var(--cj-filet) !important;
		box-shadow: none !important;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link,
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
		color: var(--cj-or) !important;
		box-shadow: inset 2px 0 0 var(--cj-or) !important;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:focus-visible { color: var(--cj-or) !important; }
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link > span.mega-indicator {
		width: 48px;
		height: 48px;
		margin: 0 calc(-1 * var(--cj-gouttiere)) 0 0 !important;
		color: var(--cj-or);
		text-align: center;
	}
	#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item > ul.mega-sub-menu { background: rgba(0, 0, 0, .25) !important; }
	#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item > ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
		min-height: 44px;
		padding: 0 var(--cj-gouttiere) 0 32px !important;
		background: transparent !important;
		color: var(--cj-ivoire-doux) !important;
		font: 400 var(--cj-t-ui)/44px var(--cj-sans) !important;
		border-bottom: 1px solid var(--cj-filet);
	}
	#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item > ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:hover { color: var(--cj-or) !important; }

	a.cj-panier { min-height: var(--cj-barre-h); }
}

/* En-tête collant : le logo sort de l'écran, la barre de 48 px reste (DA § 3.2). */
@media (max-width: 750px) and (min-height: 501px) {
	.site-header {
		--cj-zone-logo: calc(16px + (100vw - 32px) / var(--cj-logo-ratio) + 14px + 1px);
		position: sticky;
		top: calc(-1 * var(--cj-zone-logo));
		z-index: 1000;
		background: var(--cj-fond-cuir) !important; /* [Storefront] fond #000 en ligne */
	}
	html { scroll-padding-top: calc(var(--cj-barre-h) + 1px + 16px); } /* DA passe 6, § 6 : titre visé 16 px sous la barre et son filet (y = 65) */
}
@media (max-width: 750px) and (min-width: 592px) and (min-height: 501px) {
	.site-header { --cj-zone-logo: calc(16px + 560px / var(--cj-logo-ratio) + 14px + 1px); }
}

/* ---------- 6.2 Menu horizontal (751 px et plus) ---------- */
@media (min-width: 751px) {
	.site-header > .col-full { padding-top: 28px; padding-bottom: 22px; }
	.site-header .site-branding { width: min(560px, 60vw) !important; }
	.storefront-primary-navigation { border-top-color: var(--cj-filet); border-bottom-color: var(--cj-filet); }
	.storefront-primary-navigation > .col-full { min-height: 54px; align-items: center; }
	/* DA n° 11 : « Panier » sur la ligne des entrées (même corps, centre commun) */
	a.cj-panier { margin-left: auto; align-self: center; font-size: var(--cj-t-ui); line-height: 1; }
	/* [MMM] liste en inline-block : la ligne de base ajoutait une demi-rangée vide au-dessus des entrées */
	html body #mega-menu-wrap-primary #mega-menu-primary { display: flex !important; flex-wrap: nowrap; align-items: center; padding: 0 !important; }

	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
		height: 54px !important;
		padding: 0 16px !important;
		background: transparent !important;
		color: var(--cj-ivoire) !important;
		font: 400 var(--cj-t-ui)/54px var(--cj-sans) !important;
		letter-spacing: .01em;
		box-shadow: none !important;
		outline-offset: -4px;
		transition: color 150ms ease-out, box-shadow 150ms ease-out;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link,
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link,
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
		color: var(--cj-or) !important;
		box-shadow: inset 0 -2px 0 var(--cj-or) !important;
	}

	/* Sous-menus Objets / Livres */
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu {
		background: var(--cj-panneau) !important;
		border: 1px solid var(--cj-filet) !important;
		box-shadow: calc(12 * var(--cj-lumiere-x)) calc(12 * var(--cj-lumiere-y)) 40px -6px rgba(0, 0, 0, .6) !important;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
		min-height: 40px;
		padding: 0 20px !important;
		background: transparent !important;
		color: var(--cj-ivoire) !important;
		font: 400 var(--cj-t-petit)/40px var(--cj-sans) !important;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:hover { color: var(--cj-or) !important; }
}
/* 751 à 1023 px : une seule rangée (arbitrage R-Q2, voie a) */
@media (min-width: 751px) and (max-width: 1023px) {
	#mega-menu-wrap-primary #mega-menu-primary > li#mega-menu-item-45 { display: none !important; }
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
		height: 52px !important;
		padding: 0 10px !important;
		font-size: var(--cj-t-petit) !important;
		line-height: 52px !important;
	}
	.storefront-primary-navigation > .col-full { min-height: 52px; }
	a.cj-panier { font-size: var(--cj-t-petit); }
	#mega-menu-wrap-primary #mega-menu-primary { white-space: nowrap; }
}

/* ---------- 6.3 Paysage bas (hauteur < 500 px) ---------- */
@media (orientation: landscape) and (max-height: 499px) {
	.site-header { position: relative; }
	.site-header > .col-full { padding-top: 4px; padding-bottom: 4px; }
	.site-header .site-branding { width: auto !important; max-width: 60vw; }
	.site-header img.custom-logo { width: auto; height: 36px; margin: 0 auto; }
	.storefront-primary-navigation > .col-full { min-height: 44px; height: auto; }
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link { height: 44px !important; line-height: 44px !important; }
	#mega-menu-wrap-primary .mega-menu-toggle { height: 44px !important; }
	a.cj-panier { min-height: 44px; }
	.cj-bandeau-boutique { padding: 6px 0; font-size: var(--cj-t-mini); line-height: 1.3; }
	html { scroll-padding-top: 24px; }
}

/* =====================================================================
 * 7. Diaporama (Smart Slider n° 2) et accueil
 * ===================================================================== */

/* ---------- 7.1 Diaporama plein écran (DA passe 6, § 1) ----------
   Bord à bord ; hauteur fixée en CSS dès le premier rendu (aucun saut, CLS nul) ;
   l'image se fond dans le cuir par le bas et la légende se pose sur ce fondu. */
section.front__slider {
	--cj-diapo-h: min(125vw, 70svh);                                   /* 320–599 : 4:5, 70 % de l'écran au plus */
	position: relative;
	width: 100vw;
	max-width: none;
	height: var(--cj-diapo-h) !important;
	min-height: 0 !important;                                          /* style.css du thème enfant : 70vh */
	margin: 0 0 0 calc(50% - 50vw) !important;                         /* touche le bandeau de Noël, sans marge */
	padding: 0 !important;
	overflow: clip;
}
@media (min-width: 600px) {
	section.front__slider { --cj-diapo-h: clamp(420px, min(75vw, 70svh), 720px); }    /* 4:3 */
}
@media (min-width: 1024px) {
	section.front__slider { --cj-diapo-h: clamp(480px, min(56.25vw, 72svh), 760px); } /* 16:9 */
}
/* [SS] le script force la pleine largeur par des styles en ligne */
section.front__slider ss3-force-full-width { transform: none !important; width: auto !important; }
#n2-ss-2-align,
#n2-ss-2 .n2-padding { max-width: none !important; }
/* [SS] tous les conteneurs reçoivent la hauteur du cadre (style.css : .n2-grab et calques à 70vh) */
#n2-ss-2.n2-ss-slider,
#n2-ss-2 .n2-ss-slider-wrapper-inside,
#n2-ss-2 .n2-ss-slider-1,
#n2-ss-2 .n2-ss-slider-2,
#n2-ss-2 .n2-ss-slider-3,
#n2-ss-2 .n2-ss-slide,
#n2-ss-2 .n2-ss-slide-backgrounds,
#n2-ss-2 .n2-ss-slide-background,
#n2-ss-2 .n2-ss-layers-container { height: var(--cj-diapo-h) !important; min-height: 0 !important; }
#n2-ss-2 .n2-grab { min-height: 0 !important; }
#n2-ss-2 .n2-ss-slider-3 { overflow: hidden; }

/* L'image : couvre tout le cadre ; aucun flou, nulle part */
#n2-ss-2 .n2-ss-slide-backgrounds { width: 100% !important; justify-self: stretch !important; background: transparent !important; }
#n2-ss-2 .n2-ss-slide-background-color { background: transparent !important; }
#n2-ss-2 .n2-ss-slide-background-image[data-globalblur],
#n2-ss-2 .n2-ss-slide-background-image[data-blur]:not([data-blur="0"]) { display: none !important; }
#n2-ss-2 .n2-ss-slide-background-image:not([data-globalblur]) {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	transform: none !important;
}
#n2-ss-2 .n2-ss-slide-background-image img,
#n2-ss-2 .n2-ss-slide-background-video { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#n2-ss-2 .n2-ss-slide-background-video { opacity: 1 !important; }

/* Le fondu dans le cuir : un masque sur chaque fond ; c'est le cuir du body qui apparaît dessous.
   Diapositives « scène » (fill : le cabinet, Paul Day) */
#n2-ss-2 .n2-ss-slide-background {
	-webkit-mask-image: linear-gradient(180deg, #000 0, #000 40%, rgba(0, 0, 0, .5) 56%, rgba(0, 0, 0, .14) 74%, transparent 92%);
	mask-image: linear-gradient(180deg, #000 0, #000 40%, rgba(0, 0, 0, .5) 56%, rgba(0, 0, 0, .14) 74%, transparent 92%);
}
/* Diapositives « objet » (blurfit : la Revue, le Code), sous 768 px : le haut de la couverture,
   fondu plus précoce pour que la légende ne touche jamais le texte imprimé.
   DA : 34 / 52 / 64 / 74 % ; avancé de 2 à 4 points, la 1re ligne de la Revue tombait à 4,3:1 à 390 px. */
#n2-ss-2 .n2-ss-slide-background[data-mode="blurfit"] {
	-webkit-mask-image: linear-gradient(180deg, #000 0, #000 32%, rgba(0, 0, 0, .3) 48%, rgba(0, 0, 0, .06) 62%, transparent 72%);
	mask-image: linear-gradient(180deg, #000 0, #000 32%, rgba(0, 0, 0, .3) 48%, rgba(0, 0, 0, .06) 62%, transparent 72%);
}
#n2-ss-2 .n2-ss-slide-background[data-mode="blurfit"] img { object-position: 50% 0 !important; }

/* La légende : en bas du cadre, centrée, posée sur le fondu */
#n2-ss-2 .n2-ss-slide { align-items: stretch !important; }
#n2-ss-2 .n2-ss-layers-container {
	padding: 0 20px 60px !important;
	justify-content: flex-end !important;
	align-items: center !important;
	background: none !important;
}
/* [SS] le limiteur de calques garde la largeur de conception (1881 px) et se centre en débordant */
#n2-ss-2 .n2-ss-layers-container.n2-ss-slide-limiter {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}
/* [SS] le premier calque s'étire sur toute la hauteur et recentre la légende : rendu à sa taille, calé en bas */
#n2-ss-2 .n2-ss-layers-container > .n2-ss-layer { flex: 0 0 auto !important; height: auto !important; min-height: 0 !important; margin-top: auto !important; justify-content: flex-end !important; }
#n2-ss-2 .n2-ss-layer[data-pm="absolute"] {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
	width: 100% !important;
	height: auto !important;
}
#n2-ss-2 .n2-ss-layer,
#n2-ss-2 .n2-ss-section-main-content { --margin-top: 0 !important; --margin-bottom: 0 !important; }
#n2-ss-2 .n2-ss-layer-with-background { background: transparent !important; padding: 0 !important; }
#n2-ss-2 .n2-ss-layer,
#n2-ss-2 .n2-ss-layer * { filter: none !important; }
#n2-ss-2 .n2-ss-item-content.n2-ss-text,
#n2-ss-2 h1.n2-ss-item-content,
#n2-ss-2 h2.n2-ss-item-content {
	max-width: 100%;
	margin: 0 0 16px !important;
	padding: 0 !important;
	color: var(--cj-or-clair) !important;
	font: 400 var(--cj-t-diapo)/1.08 var(--cj-titre) !important;
	letter-spacing: 0 !important;
	text-align: center !important;
	text-transform: none !important;
	text-wrap: balance;
	text-shadow: calc(1 * var(--cj-lumiere-x)) calc(1 * var(--cj-lumiere-y)) 2px rgba(0, 0, 0, .7), 0 0 22px rgba(13, 11, 8, .85) !important; /* l'aura du logo, en sombre */
	font-synthesis: none;
}
#n2-ss-2 .n2-ss-item-content * { font: inherit !important; color: inherit !important; text-shadow: inherit !important; }
#n2-ss-2 .n2-ss-item-content sup { font-size: .6em !important; line-height: 0 !important; }
#n2-ss-2 span.gradient-text,
#n2-ss-2 .gradient-text { background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit !important; }

/* Bouton de la diapositive : secondaire sur cuir (il mène à une fiche, pas de laiton) */
#n2-ss-2 .n2-ss-button-container { text-align: center !important; }
#n2-ss-2 .n2-ss-button-container a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 24px !important;
	background: transparent !important;
	color: var(--cj-or) !important;
	border: 1px solid var(--cj-or) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font: 400 var(--cj-t-petit)/1.2 var(--cj-sans) !important;
	text-transform: none !important;
	letter-spacing: .01em !important;
	text-decoration: none !important;
}
#n2-ss-2 .n2-ss-button-container a * { font: inherit !important; color: inherit !important; }
#n2-ss-2 .n2-ss-button-container a:hover,
#n2-ss-2 .n2-ss-button-container a:focus-visible { background: var(--cj-or) !important; color: var(--cj-encre) !important; }
#n2-ss-2 .n2-ss-button-container a:active { background: var(--cj-or-clair) !important; }

/* Flèches : jamais (balayage, glisser, clavier et points suffisent) */
#n2-ss-2 .nextend-arrow,
#n2-ss-2-arrow-previous,
#n2-ss-2-arrow-next { display: none !important; }

/* Points : en bas du cadre, centrés sur la page ; cibles de 44 px ; point actif en tête de clou de laiton */
#n2-ss-2 .n2-ss-widget-display-hover,
#n2-ss-2 .n2-ss-control-bullet,
div#n2-ss-2 .n2-ss-control-bullet { opacity: 1 !important; visibility: visible !important; }
#n2-ss-2 .n2-ss-control-bullet {
	position: absolute !important;
	top: auto !important;
	bottom: var(--cj-puces-b, 8px) !important; /* passe 7 (M1) : au-dessus de la plus haute légende (script de design.php) */
	left: 0 !important;
	transform: none !important;
	width: 100% !important;
	margin: 0 !important;
	display: flex !important;
	justify-content: center;
}
#n2-ss-2 .n2-ss-control-bullet .nextend-bullet-bar { display: flex !important; gap: 0 !important; background: none !important; padding: 0 !important; }
#n2-ss-2 .n2-ss-control-bullet .n2-bullet {
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	background: radial-gradient(circle, rgba(228, 221, 208, .7) 0 4px, rgba(0, 0, 0, .55) 4.5px 5.5px, transparent 6px) !important;
	cursor: pointer;
}
#n2-ss-2 .n2-ss-control-bullet .n2-bullet.n2-active {
	/* tête de clou : disque centré dans la cible, reflet en haut à gauche (lumière à 315°) */
	background: radial-gradient(circle at 42% 42%, #f3deae 0, rgba(243, 222, 174, 0) 2.5px), radial-gradient(circle, #d5ad6d 0, #c49a55 2.5px, #a87a35 4px, rgba(0, 0, 0, .6) 4.5px 5.5px, transparent 6px) !important;
}
#n2-ss-2 .n2-ss-control-bullet .n2-bullet:focus-visible { outline: 2px solid var(--cj-or); outline-offset: -8px; }

/* 320–359 px : cadre de 400 px pour une légende de même longueur. Le <br> saisi est masqué (la
   légende de la Revue passait à 5 lignes ; une espace le suit dans le HTML) et les fondus arrivent
   plus tôt : la 1re ligne tombait à 3,6:1 (cabinet, Code) et 1,3:1 (Revue). */
@media (max-width: 359px) {
	#n2-ss-2 .n2-ss-layers-container { padding-left: 20px !important; padding-right: 20px !important; }
	#n2-ss-2 .n2-ss-item-content br { display: none; }
	#n2-ss-2 .n2-ss-slide-background {
		-webkit-mask-image: linear-gradient(180deg, #000 0, #000 28%, rgba(0, 0, 0, .45) 40%, rgba(0, 0, 0, .12) 60%, transparent 80%);
		mask-image: linear-gradient(180deg, #000 0, #000 28%, rgba(0, 0, 0, .45) 40%, rgba(0, 0, 0, .12) 60%, transparent 80%);
	}
	#n2-ss-2 .n2-ss-slide-background[data-mode="blurfit"] {
		-webkit-mask-image: linear-gradient(180deg, #000 0, #000 24%, rgba(0, 0, 0, .3) 36%, rgba(0, 0, 0, .06) 50%, transparent 62%);
		mask-image: linear-gradient(180deg, #000 0, #000 24%, rgba(0, 0, 0, .3) 36%, rgba(0, 0, 0, .06) 50%, transparent 62%);
	}
}

/* Tablette et ordinateur : légende en bas à gauche, alignée sur la colonne du site ;
   les « objets » (Revue, Code) sont posés entiers sur le cuir, à droite */
@media (min-width: 768px) {
	/* Mesure de la légende et colonne de gauche qu'elle occupe : l'objet (Revue, Code) est posé à droite
	   de cette colonne, pour ne jamais toucher la légende. De 768 à 1023 px, 44vw donnait 5 à 6 lignes
	   à la Revue (mesuré) : la mesure y monte à 58vw (13 em à 768 px). */
	section.front__slider {
		--cj-legende-x: max(var(--cj-gouttiere), calc((100vw - var(--cj-largeur-max)) / 2));
		--cj-legende-l: min(calc(13 * var(--cj-t-diapo)), 58vw);
	}
	#n2-ss-2 .n2-ss-layers-container {
		padding: 0 var(--cj-legende-x) 72px !important;
		align-items: flex-start !important;
	}
	#n2-ss-2 .n2-ss-layer,
	#n2-ss-2 .n2-ss-layer-row,
	#n2-ss-2 .n2-ss-layer-col { text-align: left !important; justify-content: flex-start !important; align-items: flex-start !important; }
	#n2-ss-2 .n2-ss-layer[data-pm="normal"] { align-self: flex-start !important; margin-left: 0 !important; }
	#n2-ss-2 .n2-ss-item-content.n2-ss-text,
	#n2-ss-2 h1.n2-ss-item-content,
	#n2-ss-2 h2.n2-ss-item-content { max-width: var(--cj-legende-l); text-align: left !important; }
	#n2-ss-2 .n2-ss-button-container { text-align: left !important; }
	#n2-ss-2 .n2-ss-button-container a { min-height: 48px; }
	#n2-ss-2 .n2-ss-control-bullet { bottom: var(--cj-puces-b, 16px) !important; justify-content: flex-start !important; padding-left: calc(var(--cj-legende-x) - 14px); box-sizing: border-box; } /* alignées sur la légende */

	/* Scènes : le fondu vertical de la DA, croisé avec un fondu en coin sous la légende (en bas à gauche).
	   Sans lui, la 1re ligne de la diapositive 1 tombait à 3,0:1 à 1280 px (corail blanc du cabinet) ;
	   la droite de l'image reste entière. Aucun voile : c'est toujours le cuir qui apparaît. */
	#n2-ss-2 .n2-ss-slide-background:not([data-mode="blurfit"]) {
		-webkit-mask-image: linear-gradient(180deg, #000 0, #000 40%, rgba(0, 0, 0, .5) 56%, rgba(0, 0, 0, .14) 74%, transparent 92%), radial-gradient(ellipse 72% 78% at 0 100%, rgba(0, 0, 0, .22) 0, rgba(0, 0, 0, .26) 50%, #000 100%);
		-webkit-mask-composite: source-in;
		mask-image: linear-gradient(180deg, #000 0, #000 40%, rgba(0, 0, 0, .5) 56%, rgba(0, 0, 0, .14) 74%, transparent 92%), radial-gradient(ellipse 72% 78% at 0 100%, rgba(0, 0, 0, .22) 0, rgba(0, 0, 0, .26) 50%, #000 100%);
		mask-composite: intersect;
	}

	#n2-ss-2 .n2-ss-slide-background[data-mode="blurfit"] {
		-webkit-mask-image: none;
		mask-image: none;
		background: radial-gradient(ellipse 38% 60% at 70% 45%, rgba(213, 173, 109, .10), transparent 70%) !important;
	}
	#n2-ss-2 .n2-ss-slide-background[data-mode="blurfit"] .n2-ss-slide-background-image:not([data-globalblur]) { inset: 7% 0 9% calc(var(--cj-legende-x) + var(--cj-legende-l) + 24px) !important; width: auto !important; height: auto !important; }
	#n2-ss-2 .n2-ss-slide-background[data-mode="blurfit"] img {
		object-fit: contain !important;
		object-position: 94% 50% !important;
		filter: drop-shadow(calc(1 * var(--cj-lumiere-x)) calc(1 * var(--cj-lumiere-y)) 0 rgba(0, 0, 0, .9)) drop-shadow(calc(10 * var(--cj-lumiere-x)) calc(10 * var(--cj-lumiere-y)) 16px rgba(0, 0, 0, .7));
	}
}
@media (min-width: 1024px) {
	section.front__slider { --cj-legende-l: min(calc(13 * var(--cj-t-diapo)), 44vw); }
	#n2-ss-2 .n2-ss-slide-background[data-mode="blurfit"] img { object-position: 74% 50% !important; }
}
/* Paysage bas : écrit en dernier, après la règle de 1024 px */
@media (max-height: 500px) and (orientation: landscape) {
	section.front__slider { --cj-diapo-h: max(260px, calc(100svh - 48px)); --cj-legende-l: min(calc(22 * var(--cj-t-diapo)), 60vw); }
	#n2-ss-2 .n2-ss-item-content.n2-ss-text,
	#n2-ss-2 h1.n2-ss-item-content,
	#n2-ss-2 h2.n2-ss-item-content { max-width: var(--cj-legende-l); font-size: var(--cj-t-diapo) !important; }
	/* Cadre bas (342 px à 844 × 390) : la légende monte à mi-hauteur ; le fondu des scènes commence plus tôt
	   (1re ligne de la diapositive 1 à 3,7:1 avec le fondu ordinaire, mesuré) */
	#n2-ss-2 .n2-ss-slide-background:not([data-mode="blurfit"]) {
		-webkit-mask-image: linear-gradient(180deg, #000 0, #000 22%, rgba(0, 0, 0, .42) 40%, rgba(0, 0, 0, .12) 60%, transparent 82%), radial-gradient(ellipse 72% 90% at 0 100%, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .24) 50%, #000 100%);
		mask-image: linear-gradient(180deg, #000 0, #000 22%, rgba(0, 0, 0, .42) 40%, rgba(0, 0, 0, .12) 60%, transparent 82%), radial-gradient(ellipse 72% 90% at 0 100%, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .24) 50%, #000 100%);
		-webkit-mask-composite: source-in;
		mask-composite: intersect;
	}
}

/* ---------- 7.2 Ouverture : « Des cadeaux pour juristes… » ---------- */
.cj-accueil-section { clear: both; width: 100%; padding: var(--cj-section) 0 0; }
.cj-accueil-cadeaux { padding-top: 32px; } /* DA passe 6, § 1.6 : 32 px sous le cadre du diaporama (48 dès 768) */
.cj-accueil-cadeaux .section-title {
	margin: 0 0 12px;
	font-size: var(--cj-t-ouverture);
}
.cj-chapo {
	max-width: 34rem;
	margin: 0 auto var(--cj-e6);
	color: var(--cj-ivoire);
	font: 400 var(--cj-t-chapo)/1.5 var(--cj-serif); /* DA passe 6, § 2.6 n° 1 */
	text-align: center;
	text-wrap: pretty;
}
.cj-destinataires {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--cj-filet);
	border-bottom: 1px solid var(--cj-filet);
}
.cj-destinataires li { margin: 0; }
.cj-destinataires li:nth-child(even) { border-left: 1px solid var(--cj-filet); }
.cj-destinataires li:nth-child(n+3) { border-top: 1px solid var(--cj-filet); }
.cj-destinataires a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	min-height: 96px;
	box-sizing: border-box;
	padding: 20px 12px;
	text-align: center;
	text-decoration: none;
	outline-offset: -4px;
}
.cj-dest-nom {
	display: block;
	color: var(--cj-or);
	font-family: var(--cj-serif);
	font-size: var(--cj-t-dest);
	line-height: 1.2;
	text-wrap: balance;
}
/* Passe 5 (V2) : « Un magistrat, / un collectionneur » en deux groupes insécables ; la taille
   suit la cellule (requête de conteneur) pour que « un collectionneur » (8,4 em) tienne sur sa ligne */
.cj-dest-nom .cj-ins { white-space: nowrap; }
.cj-destinataires li { container-type: inline-size; }
.cj-dest-nom { font-size: min(var(--cj-t-dest), calc((100cqi - 24px) / 8.5)); }
@media (max-width: 599px) {
	.cj-destinataires a { padding-left: 6px; padding-right: 6px; }
	.cj-dest-nom { font-size: min(var(--cj-t-dest), calc((100cqi - 12px) / 8.5)); }
}
.cj-dest-detail { display: block; margin-top: 6px; color: var(--cj-ivoire-doux); font: italic 400 var(--cj-t-note)/1.45 var(--cj-serif); text-wrap: balance; }
/* Par budget (DA n° 7) : libellé seul, puis trois liens de 44 px sans gonfler l'interligne */
.cj-budgets { margin: 16px 0 0; color: var(--cj-ivoire-doux); font-size: var(--cj-t-petit); line-height: 1.45; text-align: center; text-wrap: balance; }
.cj-budgets-libelle { display: block; margin-bottom: 2px; color: var(--cj-ivoire-doux); }
.cj-budgets a { display: inline-block; padding: 12px 0; line-height: 20px; color: var(--cj-ivoire); text-decoration: underline; text-underline-offset: .18em; }
.cj-budgets .cj-point { color: var(--cj-ivoire-doux); }
.cj-budgets a:hover { color: var(--cj-or); }
.cj-ouverture-action { margin: 24px 0 0; text-align: center; }
@media (hover: hover) {
	.cj-destinataires a:hover { background: rgba(213, 173, 109, .06); }
	.cj-destinataires a:hover .cj-dest-nom { color: var(--cj-or-clair); }
}
@media (min-width: 768px) {
	.cj-accueil-cadeaux { padding-top: 48px; }
	.cj-destinataires { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cj-destinataires li:nth-child(n) { border-top: 0; border-left: 0; }
	.cj-destinataires li + li { border-left: 1px solid var(--cj-filet); }
	/* Sous-titres alignés quand un nom passe sur deux lignes (audit G4) */
	.cj-dest-nom { display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-end; justify-content: center; column-gap: .25em; min-height: 2.4em; } /* passe 5 : les deux groupes de « magistrat » sont des éléments flexibles */
}

/* ---------- 7.3 Meilleures ventes ---------- */
section.storefront-best-selling-products { padding-top: var(--cj-section); margin: 0 !important; }

/* ---------- 7.4 Deux portes ---------- */
.cj-deux-portes {
	display: grid;
	grid-template-columns: 1fr;
	max-width: 64rem;
	margin: 0 auto;
	border-top: 1px solid var(--cj-filet);
	border-bottom: 1px solid var(--cj-filet);
}
.cj-deux-portes a {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 24px;
	color: var(--cj-or);
	font-family: var(--cj-titre);
	font-size: var(--cj-t-page);
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	outline-offset: -4px;
}
.cj-deux-portes a + a { border-top: 1px solid var(--cj-filet); }
.cj-deux-portes span { display: block; margin: 12px 0 8px; color: var(--cj-ivoire-doux); font: 400 var(--cj-t-lecture)/1.5 var(--cj-serif); text-wrap: pretty; } /* Caslon Text 17 → 19 (§ 2.6 n° 3) */
/* « Voir les N livres » : lien souligné, sans flèche (audit U) */
.cj-deux-portes span.cj-porte-action {
	display: inline-block;
	margin-top: auto; /* les deux liens sur la même ligne quand les portes sont côte à côte */
	padding: 12px 0;
	color: var(--cj-or);
	font: 400 var(--cj-t-petit)/20px var(--cj-sans);
	text-decoration: underline;
	text-underline-offset: .2em;
}
@media (hover: hover) {
	.cj-deux-portes a:hover { background: rgba(213, 173, 109, .06); color: var(--cj-or-clair); }
}
@media (min-width: 768px) {
	.cj-deux-portes { grid-template-columns: 1fr 1fr; }
	.cj-deux-portes a + a { border-top: 0; border-left: 1px solid var(--cj-filet); }
}

/* ---------- 7.5 Feuille de la Revue (vélin 100 %) ---------- */
.cj-feuille {
	container: feuille / inline-size;
	margin: 0 -8px;
	padding: calc(32px - var(--cj-bord)) calc(18px - var(--cj-bord)) calc(28px - var(--cj-bord));
	background: var(--cj-fond-velin);
	color: var(--cj-encre-papier);
	box-shadow: var(--cj-ombre-feuille);
	border-radius: 0;
}
.cj-feuille .section-title { margin: 0 0 8px; color: var(--cj-encre-papier); font-size: var(--cj-t-feuille); line-height: 1.15; }
.cj-feuille .cj-chapo { margin: 0 auto 24px; color: var(--cj-gris-papier); }
.cj-revue-articles { display: grid; grid-template-columns: 1fr; }
.cj-revue-articles article { padding: 11px 0 20px; }
.cj-revue-articles article + article { border-top: 1px solid var(--cj-filet-papier); }
.cj-revue-articles h3 { margin: 0 0 4px; font: 400 var(--cj-t-h3)/1.25 var(--cj-serif); }
.cj-revue-articles h3 a { display: block; padding: 9px 0; color: var(--cj-encre-papier); font-weight: 400; text-decoration: none; } /* cible de 44 px */
.cj-revue-articles h3 a:hover { color: var(--cj-encre-papier); text-decoration: underline; }
.cj-revue-articles p { margin: 0 0 4px; color: var(--cj-gris-papier); font: 400 var(--cj-t-lecture)/1.6 var(--cj-serif); text-wrap: pretty; } /* Caslon Text 17 → 19, « extraits » (§ 2.4, 2.6 n° 5) */
.cj-feuille a.cj-lire,
.cj-feuille .cj-tous a {
	display: inline-block;
	line-height: 44px;
	color: var(--cj-or-sombre);
	font-size: var(--cj-t-petit);
	font-weight: 400;
	text-decoration: underline;
}
.cj-feuille a.cj-lire:hover,
.cj-feuille .cj-tous a:hover { color: var(--cj-encre-papier); text-decoration-thickness: 2px; }
.cj-feuille .cj-tous { margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--cj-filet-papier); text-align: center; }
@media (min-width: 768px) {
	.cj-feuille { margin: 0; padding: calc(48px - var(--cj-bord)) calc(40px - var(--cj-bord)); }
	.cj-revue-articles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cj-revue-articles article { padding: 0 24px; }
	.cj-revue-articles article:first-child { padding-left: 0; }
	.cj-revue-articles article:last-child { padding-right: 0; }
	.cj-revue-articles article + article { border-top: 0; border-left: 1px solid var(--cj-filet-papier); }
}
@media (min-width: 1024px) {
	.cj-feuille { max-width: var(--cj-largeur-max); padding: calc(56px - var(--cj-bord)) calc(64px - var(--cj-bord)); box-sizing: border-box; }
}

/* ---------- Feuilles de vélin : bords mâchés (DA passe 6, § 3.1) ----------
   La bande (--cj-bord) est prise sur la marge intérieure : la mesure du texte ne change pas. */
.cj-feuille,
.cj-notice,
.single-post .hentry .entry-content,
.cj-page-texte .hentry .entry-content,
body.blog .site-main,
:is(body.archive, body.search):not(.woocommerce-page) .site-main {
	border: var(--cj-bord) solid transparent;
	border-image: url(/wp-content/themes/curiositesjuridiques/textures/velin-bord.svg) 14 / var(--cj-bord) round;
	/* !important : les règles de chaque feuille, plus bas, posent le fond par le raccourci « background », qui
	   remettait le découpage en border-box ; un rectangle ivoire net apparaissait alors derrière les barbes
	   (correction du propriétaire, point 12). Au-delà des barbes : le cuir, rien d'autre. */
	background-clip: padding-box !important;
	background-origin: padding-box !important;
}
@media (min-width: 768px) {
	:root { --cj-bord: 14px; }
}

/* =====================================================================
 * 8. Cartels et grilles (spec-ui § 5) : l'œuvre posée sur un bristol
 * ===================================================================== */

ul.products {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	row-gap: var(--cj-oeuvre-ecart);
	column-gap: 0;
	margin: 0 0 48px !important;
	padding: 0;
}
ul.products::before,
ul.products::after { content: none !important; display: none !important; }

/* La pièce (point 14 du propriétaire) : la photo posée seule sur le cuir, entière, sans cadre ni support ;
   dessous, après un petit espace, le cartel de musée en relief (point 8 : biseau positif, arête claire en haut
   à gauche, ombre en bas à droite, tranche visible) qui porte nature, titre, prix et achat. Grille de 6 rangées ;
   le lien la partage par subgrid ; le carton (li::before) commence à la rangée 2 : il ne passe jamais derrière l'image. */
ul.products li.product {
	container: cartel / inline-size;
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto 1fr auto auto auto;
	width: auto !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0;
	text-align: left;
	--cj-ombre-piece: var(--cj-ombre-carton);
	/* marge intérieure du cartel (12 px sous 300 px de colonne) ; espace entre la photo et le cartel */
	--cj-passe: 16px;
	--cj-ecart-cartel: 14px;
}
ul.products li.product > a.woocommerce-loop-product__link {
	grid-column: 1 / -1;
	grid-row: 1 / 5;
	display: grid;
	grid-template-columns: subgrid;
	grid-template-rows: subgrid;
	color: inherit;
	text-decoration: none;
	outline-offset: 4px;
	--cj-focus: var(--cj-or);
}
ul.products li.product::before {
	content: "";
	grid-column: 1 / -1;
	grid-row: 2 / -1;
	position: relative;
	z-index: 1;
	pointer-events: none;
	/* Passe 7 (décision du propriétaire) : le cartel est une feuille de vélin, comme les grandes feuilles, et non plus un
	   bristol biseauté. Bord mâché par la même technique que la grande feuille (textures/velin-bord.svg) : rectangle
	   déformé par deux bruits cousus (ondulation et grain de fibre) répétés par feTile, frange claire, cœur, tranche d'1 px.
	   border-image à l'échelle 1:1 (bande de 10 px, jamais étirée dans son épaisseur) : net à tout DPR. Angles de papier
	   irréguliers, dents de 2 à 3 px. Six découpes (cj-bord-N : graines, fréquences et amplitudes différentes). L'épaisseur est rendue par une ombre douce au sud-est,
	   portée par li::after sous la feuille. */
	margin: 0 -3px -3px; /* le papier commence ~5 px dans la bande de 10 px : la feuille garde sa marge intérieure de la v1 */
	border: 10px solid transparent;
	border-image: url(/wp-content/themes/curiositesjuridiques/textures/cartel-bord-1.svg?v=2) 10 / 10px round;
	background: var(--cj-fond-velin);
	background-clip: padding-box;
	background-origin: padding-box;
}
/* six découpes (cj-bord-1 à 6, posées par inc/conversion.php dans l'ordre des cartes) */
ul.products li.product.cj-bord-2::before { border-image-source: url(/wp-content/themes/curiositesjuridiques/textures/cartel-bord-2.svg?v=2); }
ul.products li.product.cj-bord-3::before { border-image-source: url(/wp-content/themes/curiositesjuridiques/textures/cartel-bord-3.svg?v=2); }
ul.products li.product.cj-bord-4::before { border-image-source: url(/wp-content/themes/curiositesjuridiques/textures/cartel-bord-4.svg?v=2); }
ul.products li.product.cj-bord-5::before { border-image-source: url(/wp-content/themes/curiositesjuridiques/textures/cartel-bord-5.svg?v=2); }
ul.products li.product.cj-bord-6::before { border-image-source: url(/wp-content/themes/curiositesjuridiques/textures/cartel-bord-6.svg?v=2); }
ul.products li.product::after {
	content: "";
	grid-column: 1 / -1;
	grid-row: 2 / -1;
	position: relative;
	z-index: 0;
	margin: 3px;
	pointer-events: none;
	box-shadow: var(--cj-ombre-piece);
}
/* Filet du cartel, porté par le lien (le li::before est le carton) */
ul.products li.product > a.woocommerce-loop-product__link::after {
	content: "";
	grid-column: 1 / -1;
	grid-row: 4;
	align-self: start;
	position: relative;
	z-index: 2;
	height: 0;
	margin: 0 var(--cj-passe);
	border-top: 1px solid var(--cj-filet-papier);
	pointer-events: none;
}
ul.products li.product .cj-cartel-nature,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price,
ul.products li.product > .button,
ul.products li.product > .added_to_cart { position: relative; z-index: 2; }

/* La photo, posée sur le cuir : intacte, ni recadrée ni couverte (points 10 et 14 du propriétaire) ; centrée et
   posée en bas de sa niche ; seule une ombre neutre et discrète, aucun cadre ni filtre */
ul.products li.product a img,
ul.products li.product img.attachment-woocommerce_thumbnail {
	grid-column: 1 / -1;
	grid-row: 1;
	justify-self: center;
	align-self: end;
	position: relative;
	z-index: 2;
	display: block;
	box-sizing: content-box;
	width: auto;
	height: auto;
	max-width: 100cqi;
	max-height: 440px;
	margin: 0 0 var(--cj-ecart-cartel) !important;
	padding: 0;
	border: 0;
	outline: 0;
	background: none;
	border-radius: 0;
	box-shadow: calc(4 * var(--cj-lumiere-x)) calc(4 * var(--cj-lumiere-y)) 12px -5px rgba(0, 0, 0, .6) !important;
	filter: none;
	transition: none;
}
ul.products li.product img.woocommerce-placeholder { opacity: .35; }

ul.products li.product .cj-cartel-nature {
	grid-column: 1 / -1;
	grid-row: 2;
	display: block;
	margin: 16px var(--cj-passe) 0;
	color: var(--cj-or-sombre);
	font: italic 400 var(--cj-t-note)/1.3 var(--cj-serif);
}
ul.products li.product .woocommerce-loop-product__title {
	grid-column: 1 / -1;
	grid-row: 3;
	align-self: start;
	margin: 4px var(--cj-passe) 12px !important; /* DA n° 8 : 12 px jusqu'au filet */
	padding: 0 !important;
	color: var(--cj-encre-papier) !important;
	font: 400 var(--cj-t-cartel-titre)/1.3 var(--cj-serif) !important;
	overflow-wrap: break-word;
	text-wrap: pretty;
}
ul.products li.product:not(:has(.cj-cartel-nature)) .woocommerce-loop-product__title { margin-top: 16px !important; }
ul.products li.product .price {
	grid-column: 1;
	grid-row: 4;
	align-self: center;
	display: block;
	margin: 13px 0 14px var(--cj-passe) !important;
	color: var(--cj-encre-papier) !important;
	font: 400 var(--cj-t-prix-cartel)/1.2 var(--cj-sans);
	font-variant-numeric: tabular-nums lining-nums;
}
ul.products li.product .price del {
	display: block;
	color: var(--cj-gris-cartel);
	font-size: var(--cj-t-petit);
	font-weight: 400;
	text-decoration-thickness: 1px;
	opacity: 1;
}
ul.products li.product .price ins { text-decoration: none; font-weight: 400; }
ul.products li.product .onsale { display: none !important; }

/* Plaque de laiton du cartel, taille S (DA passe 6, § 4 ; matière en 4.1) */
ul.products li.product > .button {
	grid-column: 2;
	grid-row: 4;
	align-self: center;
	min-height: 44px;
	margin: 13px var(--cj-passe) 14px 12px !important;
	padding: 0 18px;
	font-size: var(--cj-t-petit);
	white-space: nowrap;
}
ul.products li.product > .button.added::after { content: none !important; display: none !important; }
ul.products li.product > a.added_to_cart {
	grid-column: 1 / -1;
	grid-row: 6;
	justify-self: start;
	margin: 0 var(--cj-passe) 10px;
	color: var(--cj-or-sombre) !important;
}
@media (hover: hover) {
	ul.products li.product > a.woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: .2em;
	}
}
ul.products li.product > a.woocommerce-loop-product__link:active .woocommerce-loop-product__title { color: var(--cj-or-sombre) !important; }

/* Épuisé : l'œuvre vire à l'or, une étiquette noire filetée d'or est posée sur
   l'image (DA passe 6, § 7) ; prix gris non barré, « Voir la fiche » en lien */
ul.products li.product.outofstock a img {
	opacity: 1;
	filter: grayscale(1) contrast(.86) brightness(.8) sepia(1) brightness(1.04); /* recette DA réglée : blanc à 40-45°, sans écrêtage jaune (mesuré) */
}
ul.products li.product.outofstock .price { color: var(--cj-gris-cartel) !important; font-weight: 400; }
ul.products li.product .cj-badge-epuise,
div.product.outofstock .woocommerce-product-gallery__image::after {
	padding: 4px 14px 5px;
	background: rgba(13, 11, 8, .88);
	border: 1px solid rgba(213, 173, 109, .7);
	border-radius: 0;
	box-shadow: 0 0 0 1px rgba(13, 11, 8, .5), 0 0 14px 1px rgba(213, 173, 109, .35), var(--cj-ombre-contact);
	color: var(--cj-or-clair);
	font: italic 400 var(--cj-t-note)/1.2 var(--cj-serif);
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	pointer-events: none;
}
ul.products li.product .cj-badge-epuise {
	grid-column: 1 / -1;
	grid-row: 1;
	justify-self: center;
	align-self: end;
	position: relative;
	inset: auto;
	z-index: 3;
	margin: 0 0 calc(var(--cj-ecart-cartel) + 10px); /* 10 px au-dessus du bas de la photo */
}
ul.products li.product.outofstock > .button {
	grid-column: 1 / -1;
	grid-row: 5;
	justify-self: start;
	min-height: 44px;
	margin: 0 var(--cj-passe) 10px !important;
	padding: 0;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--cj-or-sombre) !important;
	font-weight: 400;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: .2em;
	text-shadow: none !important;
}
ul.products li.product.outofstock > .button:hover,
ul.products li.product.outofstock > .button:focus-visible { background: none !important; color: var(--cj-encre-papier) !important; text-decoration-thickness: 2px !important; }

/* Passe 7 (décision du propriétaire) : plaque carrée de 44 × 44 px sur la ligne du prix, à droite (inc/conversion.php,
   cj_conv_icone_carre) ; panier au trait marqué d'un « + », encre sur laiton, filet clair au sud-est (lumière nord-ouest) ;
   coche 2 s après l'ajout ; rotation douce pendant le chargement (opacité seule en mouvement réduit). Le lien « Voir le
   panier » ajouté par WooCommerce est retiré : le compteur de l'en-tête suffit. */
ul.products li.product:not(.outofstock) > .button.cj-carre {
	grid-column: 2;
	grid-row: 4;
	align-self: center;
	justify-self: end;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 9px var(--cj-passe) 10px 12px !important;
	padding: 0 !important;
	line-height: 1;
}
.button.cj-carre .cj-i { width: 24px; height: 24px; filter: drop-shadow(.6px .6px 0 rgba(255, 244, 214, .55)); }
.button.cj-carre .cj-i-coche,
.button.cj-carre.cj-ajoute .cj-i-panier { display: none; }
.button.cj-carre.cj-ajoute .cj-i-coche { display: block; }
.button.cj-carre.loading { opacity: .7; }
.button.cj-carre.loading::after { content: none !important; display: none !important; } /* [Storefront/WC] icône de chargement */
@media (prefers-reduced-motion: no-preference) {
	.button.cj-carre.loading .cj-i-panier { animation: cj-tourne 1.1s linear infinite; }
}
ul.products li.product > a.added_to_cart { display: none !important; }
/* Fiche (ajout sans rechargement) : le bouton dit lui-même « Ajouté ✓ » ; ni coche de Storefront ni lien ajouté */
.single-product div.product form.cart .single_add_to_cart_button.added::after { content: none !important; display: none !important; }
.single-product div.product form.cart a.added_to_cart { display: none !important; }
/* Mode étroit (colonne de moins de 300 px) : marge de 12 px, bouton sous le prix */
@container cartel (width < 300px) {
	ul.products li.product > * { --cj-passe: 12px; }
	ul.products li.product .price { grid-column: 1 / -1; margin: 13px var(--cj-passe) 12px !important; }
	ul.products li.product > .button { grid-column: 1 / -1; grid-row: 5; margin: 0 var(--cj-passe) 14px !important; }
	/* plaque carrée : elle reste sur la ligne du prix */
	ul.products li.product:has(> .button.cj-carre) .price { grid-column: 1; margin: 13px 0 14px var(--cj-passe) !important; }
	ul.products li.product:not(.outofstock) > .button.cj-carre { grid-column: 2; grid-row: 4; margin: 9px var(--cj-passe) 10px 8px !important; }
	ul.products li.product.outofstock > .button { grid-row: 5; }
}
@container cartel (width < 260px) {
	ul.products li.product .woocommerce-loop-product__title { font-size: var(--cj-t-cartel-titre-etroit) !important; }
}

/* Niche commune (grilles dès 600 px, rails) : une cale 4:5 dans la rangée de la photo, pour que les
   photos d'une rangée partagent leur bord bas et les cartels leur haut */
ul.products li.product > a.woocommerce-loop-product__link { --cj-niche: calc(100cqi * 1.25); }
@media (min-width: 600px) {
	ul.products li.product > a.woocommerce-loop-product__link::before {
		content: "";
		grid-column: 1 / -1;
		grid-row: 1;
		height: calc(var(--cj-rang, var(--cj-niche)) + var(--cj-ecart-cartel)); /* --cj-rang : plus grand objet de la rangée (script, passe 7) */
		pointer-events: none;
	}
	ul.products li.product a.woocommerce-loop-product__link img { max-height: var(--cj-niche); }
}

/* Passe 7 (verdict DA B4, audit J1) : une seule échelle px/cm par page, mais la rangée de l'image de chaque rangée de
   la grille (ou de chaque rail) a la hauteur du plus grand objet qu'elle contient, et non plus celle du plus grand
   livre du catalogue. Chaque carte est une sous-grille de la liste (6 rangées partagées) : la rangée 1 prend la
   hauteur de la plus grande image de la rangée ; la cale 4:5 (::before du lien) devient inutile. Les titres, prix
   et boutons d'une même rangée s'alignent du même coup. */
/* (retiré : sur un élément conteneur de requêtes, contenu en mise en page, subgrid est ignoré ; le cartel perdait sa rangée) */

/* ---------- 8.1 Rails (moins de 600 px) ---------- */
@media (max-width: 599px) {
	.storefront-best-selling-products ul.products,
	section.up-sells ul.products,
	section.related ul.products,
	.cj-plus-loin ul.products,
	.cart-collaterals .cross-sells ul.products {
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: 78vw; /* 304 px à 390 : prix et bouton sur une ligne, amorce de la suivante */
		column-gap: 12px;
		row-gap: 0;
		/* DA n° 9 : 72 px au plus jusqu'au titre suivant (24 px d'ombre − 18 + 64 de section) */
		margin: 0 calc(-1 * var(--cj-gouttiere)) -18px !important;
		padding: 4px var(--cj-gouttiere) 24px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--cj-gouttiere);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		outline-offset: -2px;
	}
	.storefront-best-selling-products ul.products::-webkit-scrollbar,
	section.up-sells ul.products::-webkit-scrollbar,
	section.related ul.products::-webkit-scrollbar,
	.cj-plus-loin ul.products::-webkit-scrollbar,
	.cart-collaterals .cross-sells ul.products::-webkit-scrollbar { display: none; }
	.storefront-best-selling-products ul.products > li.product,
	section.up-sells ul.products > li.product,
	section.related ul.products > li.product,
	.cj-plus-loin ul.products > li.product,
	.cart-collaterals .cross-sells ul.products > li.product { scroll-snap-align: start; }
	/* Dans un rail, niche commune 4:5 pour que les fenêtres et les cartels s'alignent */
	:is(.storefront-best-selling-products, section.up-sells, section.related, .cj-plus-loin, .cart-collaterals .cross-sells) ul.products li.product > a.woocommerce-loop-product__link::before {
		content: "";
		grid-column: 1 / -1;
		grid-row: 1;
		height: calc(var(--cj-rang, var(--cj-niche)) + var(--cj-ecart-cartel)); /* --cj-rang : plus grand objet de la rangée (script, passe 7) */
		pointer-events: none;
	}
	:is(.storefront-best-selling-products, section.up-sells, section.related, .cj-plus-loin, .cart-collaterals .cross-sells) ul.products li.product a img { max-height: var(--cj-niche); }
	/* Une seule suggestion : pas de rail */
	section.up-sells ul.products:has(> li:only-child),
	section.related ul.products:has(> li:only-child) { grid-auto-columns: 100%; overflow: visible; }
}
@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
	.storefront-best-selling-products ul.products,
	section.up-sells ul.products,
	section.related ul.products,
	.cj-plus-loin ul.products,
	.cart-collaterals .cross-sells ul.products { scroll-behavior: smooth; }
}

/* ---------- 8.2 Grilles (600 px et plus) ---------- */
@media (min-width: 600px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; }
}
@media (min-width: 1024px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 64px; }
	/* Quatre colonnes : listes de livres seulement, meilleures ventes, Idées cadeaux (UI-Q9) */
	ul.products:not(:has(> li:not(.product_cat-livres-de-droit-insolite))),
	.storefront-best-selling-products ul.products,
	.page-id-18191 ul.products,
	.cj-panier-vide-suite ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* passe 5 (P1) : le panier vide peut mêler livres et objets */
	ul.products:not(:has(> li:not(.product_cat-livres-de-droit-insolite))) li.product .woocommerce-loop-product__title,
	.storefront-best-selling-products ul.products li.product .woocommerce-loop-product__title,
	.page-id-18191 ul.products li.product .woocommerce-loop-product__title,
	.cj-panier-vide-suite ul.products li.product .woocommerce-loop-product__title {
		display: block; /* passe 4 (audit G4) : plus de troncature ; 6 lignes au plus mesurées, jamais un mot coupé */
		-webkit-line-clamp: unset;
		overflow: visible;
		font-size: var(--cj-t-cartel-titre-etroit) !important; /* 17 px en grille de 4 (§ 2.4) */
	}
	/* Suggestions de la fiche : trois colonnes, même pour des livres */
	.single-product section.up-sells ul.products,
	.single-product section.related ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.single-product section.up-sells ul.products li.product .woocommerce-loop-product__title,
	.single-product section.related ul.products li.product .woocommerce-loop-product__title { display: block; -webkit-line-clamp: unset; }
	/* Panier : encart étroit */
	.cart-collaterals .cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* « Du même esprit » avec une ou deux suggestions : colonnes de 360 px, centrées (passe 3, n° 18) */
@media (min-width: 600px) {
	.single-product section.up-sells ul.products:has(> li:only-child),
	.single-product section.related ul.products:has(> li:only-child) { grid-template-columns: minmax(0, 360px); justify-content: center; }
	.single-product section.up-sells ul.products:has(> li:nth-child(2):last-child),
	.single-product section.related ul.products:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
}

/* ---------- 8.3 Carton posé sur une feuille (produits glissés dans un texte) ---------- */
.entry-content ul.products li.product { --cj-ombre-piece: var(--cj-ombre-carton-papier); }
.entry-content ul.products li.product > a.woocommerce-loop-product__link { --cj-focus: var(--cj-or-sombre); }
/* …sauf quand la page elle-même est sur le cuir : panier, Idées cadeaux */
.woocommerce-cart .entry-content ul.products li.product,
.page-id-18191 .entry-content ul.products li.product { --cj-ombre-piece: var(--cj-ombre-carton); }
.woocommerce-cart .entry-content ul.products li.product > a.woocommerce-loop-product__link,
.page-id-18191 .entry-content ul.products li.product > a.woocommerce-loop-product__link { --cj-focus: var(--cj-or); }

/* ---------- 8.4 Épuisé sur la fiche : galerie et vignettes virées à l'or (DA passe 6, § 7.3) ;
   la visionneuse plein écran (PhotoSwipe) reste en couleur ---------- */
.single-product div.product.outofstock .woocommerce-product-gallery img,
.single-product div.product.outofstock .woocommerce-product-gallery .zoomImg,
.single-product div.product.outofstock .flex-control-thumbs img {
	opacity: 1;
	filter: grayscale(1) contrast(.86) brightness(.8) sepia(1) brightness(1.04); /* recette DA réglée : blanc à 40-45°, sans écrêtage jaune (mesuré) */
}
.single-product div.product.outofstock .woocommerce-product-gallery__image { position: relative; }
.single-product div.product.outofstock .woocommerce-product-gallery__image::after {
	content: "Épuisé" / ""; /* décoratif : la ligne de stock du résumé le dit déjà aux lecteurs d'écran */
	position: absolute;
	/* Passe 7 (DA, point mineur 3) : à 16 px du bas de l'image et à 16 px de son bord gauche (--cj-epuise-x, posé par
	   le script de la loupe dans design.php) ; la loupe est en bas à droite : elles ne se touchent plus. */
	left: var(--cj-epuise-x, 16px);
	bottom: calc(12px + 16px);
	z-index: 3;
}
@media (min-width: 768px) {
	.single-product div.product.outofstock .woocommerce-product-gallery__image::after { bottom: calc(24px + 16px); }
}

/* ---------- 8.5 Livres en volume (passe 6, point 9 du propriétaire) ----------
   span.cj-livre (inc/conversion.php) : perspective et ombre ; .cj-livre-objet : le livre (couverture + tranche
   des pages, épaisseur --cj-ep en part de la largeur, tirée des données réelles). Posé de face, légère
   perspective (12°) ; trois quarts au survol et au focus pour montrer la tranche ; sur écran tactile, trois quarts
   léger fixe ; en mouvement réduit, aucune animation. */
ul.products li.product .cj-livre {
	grid-column: 1 / -1;
	grid-row: 1;
	justify-self: center;
	align-self: end;
	position: relative;
	z-index: 2;
	display: block;
	margin: 0 0 var(--cj-ecart-cartel);
	perspective: 1100px;
	filter: drop-shadow(calc(4 * var(--cj-lumiere-x)) calc(4 * var(--cj-lumiere-y)) 5px rgba(0, 0, 0, .5));
}
ul.products li.product .cj-livre-objet {
	position: relative;
	display: block;
	transform-style: preserve-3d;
	transform: rotateY(calc(-34deg * var(--cj-tour))); /* de face (0) → trois-quarts (1), points 31 et 32 */
	transform-origin: 30% 50%;
}
/* Échelle commune (point 24) : hauteur = hauteur utile × --cj-h (vraie hauteur / plus grand livre, plancher 0,5,
   inc/conversion.php), sans dépasser la largeur de la case ; tous posés sur la même ligne de base (align-self: end). */
ul.products li.product > a.woocommerce-loop-product__link { --cj-ref: min(var(--cj-niche), 440px); }
ul.products li.product .cj-livre img {
	height: min(calc(var(--cj-ref) * var(--cj-h, 1)), calc((100cqi - 24px) * var(--cj-ar, 1.5))) !important;
	width: auto !important;
	max-height: none !important;
	max-width: none !important; /* l'image ne doit pas être déformée : la hauteur commande */
	margin: 0 !important;
	box-shadow: none !important;
	backface-visibility: hidden;
}
/* Broché (défaut, point 19) : couvertures souples rognées avec les feuilles ; la 4e affleure le bloc et se lit
   en fin trait de 1 px. Relié (li.cj-livre-relie, liste dans inc/conversion.php) : plats rigides de 2 px qui
   débordent de 2,5 px en haut, en bas et sur la gouttière (chasses), et mors près du dos. */
:is(ul.products li.product, .cj-fiche-volume) {
	--cj-chasse: 1px;    /* retrait des feuilles sur la gouttière = largeur visible de la 4e */
	--cj-tete: 0px;      /* retrait des feuilles en haut et en bas */
	--cj-plat: 0px;      /* épaisseur des plats rigides vue sur la tranche */
}
:is(ul.products li.product, .cj-fiche-volume).cj-livre-relie { --cj-chasse: 2.5px; --cj-tete: 2.5px; --cj-plat: 2px; }
/* La tranche : un plan accroché au bord droit de la couverture, tourné de 90° vers l'arrière ; lumière
   nord-ouest : éclairée en haut, assombrie en bas et vers le dos du bloc. */
.cj-livre-pages {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(100% - var(--cj-chasse));
	width: calc(var(--cj-ep) * 100%);
	transform-origin: 0 50%;
	transform: rotateY(90deg);
	transform-style: preserve-3d;
	--cj-zone: 0 var(--cj-tete) / 100% calc(100% - 2 * var(--cj-tete)) no-repeat;
	background:
		linear-gradient(rgba(10, 8, 6, .3), rgba(10, 8, 6, .3)) 100% 0 / var(--cj-plat) 100% no-repeat,
		var(--cj-couv, linear-gradient(#6b5a48, #6b5a48)) 0 0 / var(--cj-plat) 100% no-repeat,
		var(--cj-couv, linear-gradient(#6b5a48, #6b5a48)) 100% 0 / var(--cj-plat) 100% no-repeat,
		linear-gradient(180deg, rgba(255, 250, 235, .3) 0, rgba(255, 250, 235, 0) 30%, rgba(60, 40, 10, 0) 65%, rgba(60, 40, 10, .2) 100%) var(--cj-zone),
		linear-gradient(90deg, rgba(60, 40, 10, .22) 0, rgba(60, 40, 10, 0) 18%, rgba(60, 40, 10, 0) 82%, rgba(60, 40, 10, .3) 100%) var(--cj-zone),
		repeating-linear-gradient(90deg, #f7f2e6 0 1px, #e4dac4 1px 2px) var(--cj-zone),
		linear-gradient(rgba(26, 20, 15, .7), rgba(26, 20, 15, .7)) 0 0 / 100% var(--cj-tete) no-repeat,
		linear-gradient(rgba(26, 20, 15, .8), rgba(26, 20, 15, .8)) 0 100% / 100% var(--cj-tete) no-repeat;
}
/* Le liseré de la 4e de couverture (points 18 et 19) : un plan parallèle à la couverture, au dos du bloc de
   pages, large de la chasse ; teinte du bord de la couverture (--cj-couv, inc/conversion.php), dans l'ombre mais plus claire que le cuir */
.cj-livre-pages::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 100%;
	width: var(--cj-chasse);
	transform-origin: 0 50%;
	transform: rotateY(-90deg);
	background: linear-gradient(rgba(10, 8, 6, .2), rgba(10, 8, 6, .34)), var(--cj-couv, linear-gradient(#6b5a48, #6b5a48)) 100% 50% / auto 100% no-repeat, #6b5a48;
}
/* Boîte de jeu (Ténor, points 21, 22 et 25) : dessus = image produit ; flancs = la photo réelle du propriétaire,
   redressée (textures/tenor-flanc-*.webp : avant, sud, assombri ; gauche, ouest, éclairé ; reflet retiré ;
   couvercle et bande losangée du fond comme sur la photo). 12,5 × 12,5 × 7,5 cm. Seuls les flancs avant (bas de
   l'image) et gauche existent sur la photo : la boîte se penche vers la gauche et vers le haut, jamais à droite. */
/* Pose d'arrivée = l'angle de la photo du propriétaire (point 27), ajustée sur ses 7 coins visibles avec un couvercle
   carré (passe 7 : passe7/tmp/opt-pose.js, optimisé dans le navigateur sur les 7 repères) : rotateX 62,7°, rotateY −0,1°,
   rotateZ −30°, perspective 3,16 côtés ; relevée de 44,5 % pour que le coin le plus bas se pose sur la ligne de base.
   De face : couvercle carré à plat (points 31 et 32). Mouvement réduit : de face, fixe (8.5). */
ul.products li.product .cj-boite {
	--cj-boite-cote: min(calc(var(--cj-ref) * var(--cj-h)), calc(100cqi - 24px)); /* passe 7 : le côté réellement affiché (même plafond que l’image) */
	--cj-boite-leve: -44.5%; /* à l’angle de la photo, le coin le plus bas se pose sur la ligne de base (mesuré, passe 7) */
	perspective: calc(3.16 * var(--cj-boite-cote)); /* passe 7 : pose réajustée dans le navigateur, couvercle carré, critère du plus grand écart */
	perspective-origin: 50% calc(50% + var(--cj-boite-leve)); /* le point de vue suit la boîte relevée : même fuite que sur la photo */
}
/* Passe 7 (points 31 et 32) : de face (0), le couvercle à plat, carré ; à 1, l'angle de la photo */
ul.products li.product .cj-boite .cj-livre-objet {
	transform: translateY(calc(var(--cj-boite-leve) * var(--cj-tour))) rotateX(calc(62.7deg * var(--cj-tour))) rotateY(calc(-.1deg * var(--cj-tour))) rotateZ(calc(-30deg * var(--cj-tour)));
	transform-origin: 50% 50%;
}
.cj-boite-avant,
.cj-boite-gauche { position: absolute; pointer-events: none; background-size: 100% 100%; backface-visibility: hidden; }
/* flanc avant : accroché au bord bas du dessus, tourné vers l'arrière (profondeur = --cj-ep × largeur) */
.cj-boite-avant {
	left: 0;
	top: 100%;
	width: 100%;
	aspect-ratio: 1 / var(--cj-ep);
	transform-origin: 50% 0;
	transform: rotateX(-90deg);
	background-image: url(/wp-content/themes/curiositesjuridiques/textures/tenor-flanc-avant.webp);
}
/* flanc gauche : accroché au bord gauche du dessus */
.cj-boite-gauche {
	top: 0;
	right: 100%;
	height: 100%;
	aspect-ratio: var(--cj-ep) / 1; /* le dessus est carré : profondeur = --cj-ep × côté */
	transform-origin: 100% 50%;
	transform: rotateY(-90deg);
	background-image: url(/wp-content/themes/curiositesjuridiques/textures/tenor-flanc-gauche.webp);
}
/* Relié : le mors, sillon le long du dos sur le plat (ombre à gauche, arête claire à droite) */
ul.products li.product.cj-livre-relie .cj-livre-objet::after {
	content: "";
	position: absolute;
	transform: translateZ(.1px);
	top: 0;
	bottom: 0;
	left: 5%;
	width: 3px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .1) 50%, rgba(255, 250, 235, .28));
	pointer-events: none;
}
/* Mouvement (points 28 à 32) : --cj-tour, propriété enregistrée, va de 0 (de face, posé) à 1 (trois-quarts, tranche
   visible ; pour Ténor, l'angle de la photo).
   - Tactile (mobile et tablette, point 31) : au défilement, le livre entre dans l'écran de trois quarts, pivote pour être
     exactement de face quand il passe vers le milieu de l'écran (54 % de sa plage cover : centre du livre vers 45 %
     de la hauteur), puis repart de trois quarts en sortant. Courbe sans plateau (responsive B2) : la pente ne
     s'annule jamais, même au sommet. Vague (point 29) : plages entières qui se chevauchent, décalées de 8 % par
     colonne (--cj-col, posé par :nth-child). Sans animation-timeline : script de inc/conversion.php, même calcul.
   - Ordinateur (point 32 ; hover: hover et pointer: fine) : jamais de rotation au défilement ; trois-quarts au repos,
     de face au survol et au focus clavier, en douceur.
   - Mouvement réduit : de face, fixe, partout. */
@property --cj-tour { syntax: "<number>"; inherits: false; initial-value: 1; }
@keyframes cj-tour {
	0% { --cj-tour: 1; animation-timing-function: cubic-bezier(.4, .2, .7, .8); }
	54% { --cj-tour: 0; animation-timing-function: cubic-bezier(.3, .2, .6, .8); }
	100% { --cj-tour: 1; }
}
ul.products li.product { --cj-col: 0; }
@media (min-width: 600px) and (max-width: 1023px) {
	ul.products li.product:nth-child(2n) { --cj-col: 1; }
}
@media (min-width: 1024px) {
	ul.products li.product:nth-child(3n+2) { --cj-col: 1; }
	ul.products li.product:nth-child(3n) { --cj-col: 2; }
	:is(ul.products:not(:has(> li:not(.product_cat-livres-de-droit-insolite))), .storefront-best-selling-products ul.products, .page-id-18191 ul.products, .cj-panier-vide-suite ul.products) > li.product:nth-child(4n+1) { --cj-col: 0; }
	:is(ul.products:not(:has(> li:not(.product_cat-livres-de-droit-insolite))), .storefront-best-selling-products ul.products, .page-id-18191 ul.products, .cj-panier-vide-suite ul.products) > li.product:nth-child(4n+2) { --cj-col: 1; }
	:is(ul.products:not(:has(> li:not(.product_cat-livres-de-droit-insolite))), .storefront-best-selling-products ul.products, .page-id-18191 ul.products, .cj-panier-vide-suite ul.products) > li.product:nth-child(4n+3) { --cj-col: 2; }
	:is(ul.products:not(:has(> li:not(.product_cat-livres-de-droit-insolite))), .storefront-best-selling-products ul.products, .page-id-18191 ul.products, .cj-panier-vide-suite ul.products) > li.product:nth-child(4n) { --cj-col: 3; }
}
/* Ordinateur : trois-quarts au repos (valeur initiale 1), de face au survol et au focus */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	ul.products li.product .cj-livre-objet { transition: --cj-tour 420ms cubic-bezier(.2, .7, .2, 1); }
	ul.products li.product > a.woocommerce-loop-product__link:hover .cj-livre-objet { --cj-tour: 0; }
}
ul.products li.product > a.woocommerce-loop-product__link:focus-visible .cj-livre-objet { --cj-tour: 0 !important; }
/* Tactile : la vague au défilement */
@supports (animation-timeline: view()) {
	@media (hover: none) and (prefers-reduced-motion: no-preference), (pointer: coarse) and (prefers-reduced-motion: no-preference) {
		ul.products li.product .cj-livre-objet {
			animation: cj-tour linear both;
			animation-timeline: view();
			animation-range: cover calc(-8% + var(--cj-col, 0) * 8%) cover calc(108% + var(--cj-col, 0) * 8%);
		}
	}
}
@media (prefers-reduced-motion: reduce) {
	ul.products li.product .cj-livre-objet { --cj-tour: 0 !important; }
}

/* ---------- 8.5 bis Vues de la vitrine Livres (point 26, validé par le propriétaire) ----------
   Sélecteur « Grille / Rayonnage / Dos » près du tri (inc/conversion.php : trois boutons radio natifs, 44 px ;
   vue mémorisée en localStorage et posée sur html[data-cj-vue] avant le rendu). La grille reste la vue par défaut.
   Rayonnage : les livres de face, légèrement de trois quarts, debout sur des étagères de noyer sombre (arête
   éclairée au nord-ouest, ombre portée au sud-est sur le cuir) ; cartel sous chaque livre, sur le cuir ; sur mobile,
   une étagère qui défile à l'horizontale (scroll-snap). Dos : dos stylisés à l'échelle réelle (--cj-pxcm px par
   cm : hauteur --cj-hcm, épaisseur --cj-epcm), couleur du bord de la couverture (relevée par le script), titre et
   auteur dans notre typographie ; au survol, au focus ou au toucher, le livre sort du rayon : vraie couverture et
   cartel. Ténor (boîte) et le Pack Hitchcock restent de face. */
.cj-vues {
	order: 3;
	display: flex;
	flex: 1 1 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.cj-vue {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgba(213, 173, 109, .45);
	color: var(--cj-ivoire-doux);
	font: 400 var(--cj-t-ui)/1 var(--cj-serif);
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}
.cj-vue + .cj-vue { margin-left: -1px; }
.cj-vue:first-of-type { border-radius: 3px 0 0 3px; }
.cj-vue:last-of-type { border-radius: 0 3px 3px 0; }
.cj-vue input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cj-vue:hover { color: var(--cj-ivoire); }
.cj-vue:has(input:checked) { z-index: 1; border-color: var(--cj-or); background: rgba(213, 173, 109, .14); color: var(--cj-or-clair); box-shadow: inset 0 -2px 0 var(--cj-or); }
.cj-vue:has(input:focus-visible) { z-index: 2; outline: 2px solid var(--cj-or); outline-offset: 2px; }
@media (min-width: 600px) {
	.cj-vues { flex: 0 0 auto; }
	.cj-vue { flex: 0 0 auto; }
}
.term-livres-de-droit-insolite ul.products {
	--cj-pxcm: 8px;           /* échelle des dos : 8 px par cm sur mobile, 10 dès 600 px, 11 dès 1024 px */
	--cj-planche: 16px;       /* épaisseur de la planche */
}
@media (min-width: 600px) { .term-livres-de-droit-insolite ul.products { --cj-pxcm: 10px; } }
@media (min-width: 1024px) { .term-livres-de-droit-insolite ul.products { --cj-pxcm: 11px; } }

/* Planche : noyer sombre, arête claire en haut (lumière nord-ouest), chant plus sombre, ombre portée sur le cuir */
.term-livres-de-droit-insolite ul.products { --cj-bois: linear-gradient(to bottom, #8a6440 0, #8a6440 1px, #5a3d24 1px, #4b321d 5px, #3a2616 6px, #2e1e11 100%); }

/* --- Rayonnage --- */
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product { --cj-ecart-cartel: 0px; }
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product::before { display: none; }
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product::after {
	grid-row: 2;
	align-self: start;
	height: var(--cj-planche);
	margin: 0 calc(var(--cj-gouttiere, 40px) / -2);
	z-index: 1;
	border-radius: 1px;
	background: var(--cj-bois);
	box-shadow: 0 10px 14px -6px rgba(0, 0, 0, .8), 0 2px 0 rgba(0, 0, 0, .35);
}
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product > a.woocommerce-loop-product__link::after { display: none; } /* filet du cartel */
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product .cj-livre { z-index: 2; }
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product .cj-livre-objet { transform: rotateY(calc(-18deg * var(--cj-tour))); } /* trois quarts léger */
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product .cj-cartel-nature { margin-top: calc(var(--cj-planche) + 14px); color: var(--cj-or); }
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product .woocommerce-loop-product__title { color: var(--cj-ivoire) !important; }
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product .price { color: var(--cj-ivoire) !important; }
html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product .price * { color: inherit !important; }
@media (max-width: 599px) {
	/* une étagère qui défile à l'horizontale ; la niche commune aligne les livres sur la planche */
	html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products {
		display: grid !important;
		grid-auto-flow: column;
		grid-template-columns: none !important;
		grid-auto-columns: 64%;
		gap: 0 24px !important;
		--cj-gouttiere: 24px;
		margin-inline: -16px;
		padding: 8px 16px 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
		scrollbar-width: thin;
		scrollbar-color: rgba(213, 173, 109, .5) transparent;
	}
	html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product { scroll-snap-align: start; }
	html[data-cj-vue="rayonnage"] .term-livres-de-droit-insolite ul.products li.product > a.woocommerce-loop-product__link::before {
		content: "";
		grid-column: 1 / -1;
		grid-row: 1;
		height: var(--cj-rang, var(--cj-niche));
		pointer-events: none;
	}
}

/* --- Dos --- */
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products {
	--cj-etagere: calc(32 * var(--cj-pxcm));   /* le plus grand livre : 31 cm */
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0 1px !important;
	padding: 0 10px;
	background: repeating-linear-gradient(to bottom, transparent 0, transparent var(--cj-etagere), #8a6440 var(--cj-etagere), #5a3d24 calc(var(--cj-etagere) + 1px), #3a2616 calc(var(--cj-etagere) + 6px), #2e1e11 calc(var(--cj-etagere) + var(--cj-planche)), transparent calc(var(--cj-etagere) + var(--cj-planche)), transparent calc(var(--cj-etagere) + var(--cj-planche) + 36px));
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product {
	position: relative;
	display: flex !important;
	flex: 0 0 auto;
	align-items: flex-end;
	width: auto !important;
	height: var(--cj-etagere);
	margin: 0 0 calc(var(--cj-planche) + 36px) !important;
	padding: 0;
	container-type: normal;
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product::before,
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product::after,
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product > a.woocommerce-loop-product__link::before,
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product > a.woocommerce-loop-product__link::after { display: none; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product > a.woocommerce-loop-product__link {
	display: flex;
	align-items: flex-end;
	height: 100%;
	outline-offset: 2px;
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product .cj-livre {
	position: static;
	display: flex;
	align-items: flex-end;
	height: 100%;
	margin: 0;
	filter: none;
}
/* le dos */
.cj-dos { display: none; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: max(calc(var(--cj-epcm) * var(--cj-pxcm)), 12px);
	height: calc(var(--cj-hcm) * var(--cj-pxcm));
	overflow: hidden;
	border-radius: 1px 1px 0 0;
	background:
		linear-gradient(90deg, rgba(255, 246, 225, .26) 0, rgba(255, 246, 225, .08) 22%, transparent 45%, rgba(0, 0, 0, .12) 75%, rgba(0, 0, 0, .38) 100%),
		var(--cj-dos-fond, #3b2a1b);
	box-shadow: 1px 0 0 rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 246, 225, .25);
	color: var(--cj-dos-encre, #f3ead6);
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos.cj-dos-photo { background: var(--cj-dos-photo) center / 100% 100% no-repeat; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos.cj-dos-photo .cj-dos-texte { display: none; }
/* filets dorés de tête et de queue */
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos::before,
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 3px;
	border-block: 1px solid color-mix(in srgb, var(--cj-dos-encre, #f3ead6) 55%, transparent);
	box-sizing: border-box;
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos::before { top: 7%; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos::after { bottom: 7%; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos-texte {
	position: absolute;
	inset: calc(7% + 9px) 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	writing-mode: vertical-rl;
	transform: rotate(180deg); /* à la française : de bas en haut */
	font: 400 clamp(8px, calc(var(--cj-epcm) * var(--cj-pxcm) * .52), 15px)/1 var(--cj-serif);
	white-space: nowrap;
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos-titre { flex: 0 1 auto; min-height: 0; overflow: hidden; text-overflow: ellipsis; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite .cj-dos-auteur { flex: 0 1 auto; min-height: 0; overflow: hidden; text-overflow: ellipsis; font-size: .78em; font-style: italic; opacity: .85; }
/* la couverture et le cartel sortent du rayon */
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product:has(.cj-dos) .cj-livre-objet,
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product .cj-cartel-nature,
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product .woocommerce-loop-product__title,
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product .price,
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product > .button {
	visibility: hidden;
	opacity: 0;
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product .cj-livre img {
	height: calc(var(--cj-hcm, 21) * var(--cj-pxcm)) !important;
	width: auto !important;
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product:not(:has(.cj-livre)) a.woocommerce-loop-product__link img { height: calc(20 * var(--cj-pxcm)) !important; width: auto !important; max-height: none !important; margin: 0 !important; } /* Pack Hitchcock, à plat */
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product .cj-boite .cj-livre-objet { transform: none; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product:has(.cj-dos) .cj-livre-objet {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 30;
	transform: translate(calc(-50% + var(--cj-decal, 0px)), 0) rotateY(0deg);
	filter: drop-shadow(-3px 6px 10px rgba(0, 0, 0, .7));
	pointer-events: none;
}
/* cartel : vélin sous l'étagère, 248 px */
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product {
	--cj-carte: 248px;
	--cj-carte-x: calc(50% - var(--cj-carte) / 2 + var(--cj-decal, 0px));
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product :is(.cj-cartel-nature, .woocommerce-loop-product__title, .price),
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product > .button { position: absolute; z-index: 32; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product .cj-cartel-nature { top: calc(100% + var(--cj-planche) + 14px); left: calc(var(--cj-carte-x) + 14px); width: calc(var(--cj-carte) - 28px); margin: 0 !important; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product .woocommerce-loop-product__title {
	top: calc(100% + var(--cj-planche) + 38px);
	left: calc(var(--cj-carte-x) + 14px);
	width: calc(var(--cj-carte) - 28px);
	margin: 0 !important;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product .price { top: calc(100% + var(--cj-planche) + 128px); left: calc(var(--cj-carte-x) + 14px); margin: 0 !important; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product > .button { top: calc(100% + var(--cj-planche) + 116px); left: calc(var(--cj-carte-x) + var(--cj-carte) - 58px); margin: 0 !important; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product > .cj-carte-fond {
	position: absolute;
	z-index: 31;
	top: calc(100% + var(--cj-planche) + 2px);
	left: var(--cj-carte-x);
	width: var(--cj-carte);
	height: 172px;
	box-sizing: border-box;
	border: 10px solid transparent;
	border-image: url(/wp-content/themes/curiositesjuridiques/textures/cartel-bord-1.svg?v=2) 10 / 10px round;
	background: var(--cj-fond-velin);
	background-clip: padding-box;
	filter: drop-shadow(3px 6px 8px rgba(0, 0, 0, .6));
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product:is(:hover, :focus-within, .cj-sorti) { z-index: 40; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product:is(:hover, :focus-within, .cj-sorti) :is(.cj-livre-objet, .cj-cartel-nature, .woocommerce-loop-product__title, .price),
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product:is(:hover, :focus-within, .cj-sorti) > :is(.button, .cj-carte-fond) { visibility: visible; opacity: 1; }
html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product:is(:hover, :focus-within, .cj-sorti):has(.cj-dos) .cj-dos { opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
	html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product:has(.cj-dos) .cj-livre-objet { transition: opacity .18s, visibility .18s, transform .22s cubic-bezier(.2, .7, .2, 1); transform: translate(calc(-50% + var(--cj-decal, 0px)), 10px) rotateY(0deg); }
	html[data-cj-vue="dos"] .term-livres-de-droit-insolite ul.products li.product:is(:hover, :focus-within, .cj-sorti):has(.cj-dos) .cj-livre-objet { transform: translate(calc(-50% + var(--cj-decal, 0px)), -6px) rotateY(0deg); }
}

/* ---------- 8.6 Fiche d'un livre (points 28 et 32 ; passe 7, verdict B1 et audit J3, J4) ----------
   L'image principale de la galerie est le livre (ou la boîte de Ténor) en volume. Comme dans les grilles
   (point 32) : de trois quarts au repos, de face au survol (ordinateur) et par le bouton « Voir de face » ; en
   mouvement réduit, de face. Le volume entier (tranche, liseré et ombre compris) tient dans le cadre de la galerie,
   avec 8 px de marge au moins de chaque côté : le script de inc/conversion.php mesure le volume dans ses deux états
   et pose, pour chacun, une échelle (--cj-k0, --cj-k1) et un recentrage (--cj-dx*, --cj-dy*), interpolés par
   --cj-tour. Les commandes (« Voir de face » et la loupe) sont posées sur le cuir, sous l'image : elles ne
   recouvrent jamais l'objet. La loupe ne sert que de face. */
.woocommerce-product-gallery:has(.cj-fiche-volume) {
	--cj-gh: min(300px, 36vh); /* hauteur utile de l'image */
	--cj-gh: min(300px, 36svh);
	--cj-g-haut: 8px;   /* marge au-dessus de l'objet */
	--cj-g-bas: 12px;   /* et dessous, ombre comprise */
}
@media (min-width: 768px) {
	.woocommerce-product-gallery:has(.cj-fiche-volume) {
		--cj-gh: min(560px, calc(100vh - var(--cj-galerie-top, 102px) - 200px));
		--cj-gh: min(560px, calc(100svh - var(--cj-galerie-top, 102px) - 200px));
		--cj-g-bas: 24px;
	}
}
.single-product div.product .woocommerce-product-gallery:has(.cj-fiche-volume) .woocommerce-product-gallery__image { padding: var(--cj-g-haut) 0 var(--cj-g-bas); }
.single-product div.product .woocommerce-product-gallery:has(.cj-fiche-volume) .woocommerce-product-gallery__image > a { height: var(--cj-gh); align-items: center; }
.single-product div.product .woocommerce-product-gallery:has(.cj-fiche-volume) .woocommerce-product-gallery__image img { max-height: var(--cj-gh) !important; }
.single-product div.product .woocommerce-product-gallery:has(.cj-fiche-volume) .flex-viewport { height: calc(var(--cj-gh) + var(--cj-g-haut) + var(--cj-g-bas)) !important; margin-bottom: 0 !important; } /* [Storefront] 1,618 em */
@media (max-width: 767px) {
	/* hauteur fixée (CLS) : cadre, rangée des commandes (8 + 44 + 8), vignettes (44) */
	.single-product div.product .woocommerce-product-gallery:has(.cj-fiche-volume) { height: calc(var(--cj-gh) + var(--cj-g-haut) + var(--cj-g-bas) + 60px); }
	.single-product div.product .woocommerce-product-gallery:has(.cj-fiche-volume):has(.woocommerce-product-gallery__image:nth-child(2)) { height: calc(var(--cj-gh) + var(--cj-g-haut) + var(--cj-g-bas) + 104px); }
}
.cj-fiche-volume > a { filter: drop-shadow(calc(4 * var(--cj-lumiere-x)) calc(4 * var(--cj-lumiere-y)) 5px rgba(0, 0, 0, .5)); }
.single-product div.product .cj-fiche-volume img { box-shadow: none !important; backface-visibility: hidden; }
.cj-fiche-objet {
	--cj-k: calc(var(--cj-k0, 1) + (var(--cj-k1, 1) - var(--cj-k0, 1)) * var(--cj-tour));
	--cj-dx: calc(var(--cj-dx0, 0px) + (var(--cj-dx1, 0px) - var(--cj-dx0, 0px)) * var(--cj-tour));
	--cj-dy: calc(var(--cj-dy0, 0px) + (var(--cj-dy1, 0px) - var(--cj-dy0, 0px)) * var(--cj-tour));
	position: relative;
	display: block;
	transform-style: preserve-3d;
	transform: translate(var(--cj-dx), var(--cj-dy)) scale(var(--cj-k)) rotateY(calc(-34deg * var(--cj-tour)));
	transform-origin: 30% 50%;
}
/* Ténor : le couvercle est carré comme la boîte (12,5 × 12,5 cm). La photo du produit (760 × 696) est un recadrage
   du couvercle : on en rogne les bords latéraux, du fond bleu uni (32 px de chaque côté, aucun dessin ni lettre),
   plutôt que de déformer le dessin ou d'inventer une marge. */
.single-product div.product .cj-fiche-volume.cj-boite img,
ul.products li.product .cj-boite img { aspect-ratio: 1 / 1; object-fit: cover; }
.single-product div.product .cj-fiche-volume.cj-boite img { height: var(--cj-gh) !important; width: auto !important; max-width: none !important; } /* l’ajustement au cadre (script) réduit au besoin */
/* Ténor : de face, le couvercle carré à plat ; à 1, l'angle de la photo (point 27) */
.cj-boite .cj-fiche-objet {
	transform: translate(var(--cj-dx), var(--cj-dy)) scale(var(--cj-k)) rotateX(calc(62.7deg * var(--cj-tour))) rotateY(calc(-.1deg * var(--cj-tour))) rotateZ(calc(-30deg * var(--cj-tour)));
	transform-origin: 50% 50%;
}
.cj-fiche-volume[data-cj-etat="face"] .cj-fiche-objet { --cj-tour: 0; }
.cj-fiche-volume[data-cj-etat="tranche"] .cj-fiche-objet { --cj-tour: 1; }
@media (hover: hover) and (pointer: fine) {
	.cj-fiche-volume > a:hover .cj-fiche-objet { --cj-tour: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.cj-fiche-volume:not([data-cj-etat]) .cj-fiche-objet { --cj-tour: 0; }
}
@media (prefers-reduced-motion: no-preference) {
	.cj-fiche-objet { transition: --cj-tour 480ms cubic-bezier(.2, .7, .2, 1); }
}
.cj-fiche-volume.cj-mesure .cj-fiche-objet { transition: none !important; }
/* La loupe au survol (zoom de WooCommerce) ne s'ouvre que de face */
.cj-fiche-volume[data-cj-etat="tranche"] .zoomImg { display: none !important; }
/* Rangée des commandes, sur le cuir, sous le cadre */
.cj-galerie-commandes {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 44px;
	margin: 8px 0;
}
.cj-galerie-commandes[hidden] { display: none; }
.cj-tourner {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	margin: 0;
	padding: 0 18px 0 14px;
	border: 1px solid rgba(213, 173, 109, .6);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--cj-or-clair);
	font: 400 var(--cj-t-petit)/1 var(--cj-sans);
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}
.cj-tourner svg { flex: 0 0 auto; width: 24px; height: 24px; }
.cj-tourner:hover { border-color: var(--cj-or); background: rgba(213, 173, 109, .08); color: var(--cj-or-clair); }
.cj-tourner:focus-visible { outline: 2px solid var(--cj-or-clair); outline-offset: 3px; }
.cj-tourner[hidden] { display: none; }
.single-product div.product .cj-galerie-commandes .woocommerce-product-gallery__trigger {
	position: relative !important;
	inset: auto !important;
	flex: 0 0 auto;
	margin-left: auto;
	visibility: visible;
}
.single-product div.product .cj-galerie-commandes .woocommerce-product-gallery__trigger[hidden] { display: none !important; }

/* =====================================================================
 * 9. Vitrines (catégories, étiquettes)
 * ===================================================================== */

/* [Customizer] .woocommerce-products-header { padding: 0 !important } */
.woocommerce-products-header {
	display: block;
	max-width: 46rem;
	margin: 0 auto;
	padding: 0 !important;
	text-align: center;
}
/* [Customizer] h1…page-title { display: none } */
.woocommerce-products-header h1.woocommerce-products-header__title.page-title {
	display: block !important;
	margin: 32px 0 12px;
	color: var(--cj-or);
	font-size: var(--cj-t-page);
	line-height: 1.1;
	text-align: center;
}
/* [Customizer] div.term-description { font-size: 1.5em; font-weight: 300; margin … !important } */
.woocommerce-products-header div.term-description {
	max-width: 40rem;
	margin: 0 auto 32px !important;
	color: var(--cj-ivoire);
	font: 400 var(--cj-t-chapo)/1.5 var(--cj-serif); /* § 2.6 n° 9 */
	text-align: left;
	text-wrap: pretty;
}
.woocommerce-products-header div.term-description p { margin: 0 0 .8em; }

/* [Customizer] .storefront-sorting { display: none } : réaffichée en haut seulement */
.woocommerce-page .storefront-sorting {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 32px;
	padding: 0;
	border: 0;
}
.woocommerce-page .storefront-sorting::before,
.woocommerce-page .storefront-sorting::after { content: none; } /* passe 4 (G2) : le clearfix et l'avis vide décalaient le compte de 36 px */
.woocommerce-page .storefront-sorting > .woocommerce-notices-wrapper:empty { display: none; }
/* Menu de tri (DA passe 6, tâche 8) : « Trier par » en petite capitale de registre, valeur sur un filet or,
   chevron or ; 44 px ; deux lignes sous 600 px. Liste ouverte stylée là où appearance: base-select existe. */
.woocommerce-page .storefront-sorting .woocommerce-ordering { order: 2; flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; margin: 0; }
.woocommerce-page .storefront-sorting .woocommerce-ordering::before {
	content: "Trier par";
	flex: 0 0 auto;
	color: var(--cj-ivoire-doux);
	font: italic 400 var(--cj-t-note)/1.3 var(--cj-serif);
}
.woocommerce-page .storefront-sorting .woocommerce-result-count { order: 1; float: none; margin: 0 auto 0 0; padding: 0; text-align: left; color: var(--cj-ivoire-doux); font-size: var(--cj-t-mini); font-variant-numeric: tabular-nums; }
.woocommerce-page .storefront-sorting .orderby {
	width: 100%;
	min-height: 44px;
	padding: 0 32px 0 0;
	background: var(--cj-chevron-or) right 4px center / 12px 8px no-repeat transparent;
	border: 0;
	border-bottom: 1px solid var(--cj-filet-fort);
	border-radius: 0;
	color: var(--cj-ivoire);
	font: 400 var(--cj-t-ui)/1.4 var(--cj-sans);
	cursor: pointer;
}
.woocommerce-page .storefront-sorting .orderby:hover { border-bottom-color: var(--cj-or); }
.woocommerce-page .storefront-sorting .orderby:focus { background-color: transparent; border-bottom-color: var(--cj-or); outline: 2px solid var(--cj-or); outline-offset: 4px; }
.woocommerce-page .storefront-sorting .orderby option { background: var(--cj-panneau); color: var(--cj-ivoire); }
@supports (appearance: base-select) {
	.woocommerce-page .storefront-sorting .orderby,
	.woocommerce-page .storefront-sorting .orderby::picker(select) { appearance: base-select; }
	.woocommerce-page .storefront-sorting .orderby { display: flex; align-items: center; }
	.woocommerce-page .storefront-sorting .orderby::picker-icon { content: none; }
	.woocommerce-page .storefront-sorting .orderby::picker(select) {
		margin-top: 4px;
		padding: 6px 0;
		background: var(--cj-panneau);
		border: 1px solid var(--cj-filet-fort);
		box-shadow: var(--cj-ombre-portee);
	}
	.woocommerce-page .storefront-sorting .orderby option { min-height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 10px; font-size: var(--cj-t-ui); }
	.woocommerce-page .storefront-sorting .orderby option::checkmark { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cj-or); }
	.woocommerce-page .storefront-sorting .orderby option:hover,
	.woocommerce-page .storefront-sorting .orderby option:focus-visible { background: rgba(213, 173, 109, .14); color: var(--cj-or-clair); outline: 0; }
	.woocommerce-page .storefront-sorting .orderby option:checked { color: var(--cj-or); }
}
.woocommerce-page ul.products ~ .storefront-sorting .woocommerce-ordering,
.woocommerce-page ul.products ~ .storefront-sorting .woocommerce-result-count { display: none; }
@media (max-width: 599px) {
	.woocommerce-page .storefront-sorting .woocommerce-ordering::before { flex-basis: 100%; }
}
@media (min-width: 600px) {
	.woocommerce-page .storefront-sorting .woocommerce-ordering { flex: 0 0 auto; flex-wrap: nowrap; }
	.woocommerce-page .storefront-sorting .orderby { width: auto; min-width: 240px; }
}

/* Pagination à 24 (aperçu) : en bas seulement, centrée ; celle du haut décentrait « N résultats » (audit C12) */
.woocommerce-page .storefront-sorting:has(~ ul.products) .woocommerce-pagination { display: none; }
.woocommerce-page ul.products ~ .storefront-sorting { justify-content: center; margin: 0 0 48px; padding-top: 8px; } /* point 17 : jamais collée au filet suivant */
.woocommerce-pagination { float: none !important; flex: 1 1 100%; padding: 0 !important; border: 0 !important; text-align: center; }
.woocommerce-pagination ul.page-numbers { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; border: 0; }
.woocommerce-pagination .page-numbers li { float: none; margin: 0; border: 0; }
/* Pagination (point 17) : la page courante est la plaque laiton-miroir (4.1) ; les autres pages et les flèches,
   un contour or fin qui prend le reflet au survol et au focus ; cibles de 44 px */
.woocommerce-pagination .page-numbers li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 8px;
	box-sizing: border-box;
	border: 1px solid rgba(213, 173, 109, .55);
	border-radius: 3px;
	background: transparent;
	color: var(--cj-ivoire);
	font: 400 var(--cj-t-prix-cartel)/1 var(--cj-sans);
	font-variant-numeric: tabular-nums lining-nums;
	text-decoration: none;
	transition: box-shadow 150ms ease-out, border-color 150ms ease-out;
}
.woocommerce-pagination .page-numbers li a.page-numbers:is(:hover, :focus-visible) {
	border-color: var(--cj-or);
	background: var(--cj-laiton-reflet-survol), linear-gradient(rgba(213, 173, 109, .16), rgba(213, 173, 109, .16));
	box-shadow: var(--cj-laiton-ombre-cuir);
	color: var(--cj-or-clair);
}
.woocommerce-pagination .page-numbers li a.page-numbers:focus-visible { outline: 2px solid var(--cj-or-clair); outline-offset: 3px; }
.woocommerce-pagination .page-numbers li a.page-numbers:active { box-shadow: none; background: rgba(213, 173, 109, .24); }
.woocommerce-pagination .page-numbers li span.page-numbers.current { min-width: 44px; }
/* Flèches : le chevron du menu de tri, tourné ; le nom accessible reste « Page précédente / suivante » */
.woocommerce-pagination .page-numbers li .page-numbers:is(.prev, .next) { padding: 0; width: 44px; }
.woocommerce-pagination .page-numbers li .page-numbers:is(.prev, .next) > [aria-hidden="true"] { display: none; }
.woocommerce-pagination .page-numbers li .page-numbers:is(.prev, .next)::before {
	content: "";
	width: 12px;
	height: 8px;
	background: currentColor;
	-webkit-mask: var(--cj-chevron) center / 12px 8px no-repeat;
	mask: var(--cj-chevron) center / 12px 8px no-repeat;
	transform: rotate(-90deg);
}
.woocommerce-pagination .page-numbers li .page-numbers.prev::before { transform: rotate(90deg); }

@media (max-width: 767px) {
	/* Le titre, puis les produits ; la description passe sous la grille */
	.tax-product_cat .site-main,
	.tax-product_tag .site-main { display: flex; flex-direction: column; }
	.tax-product_cat .woocommerce-products-header,
	.tax-product_tag .woocommerce-products-header { display: contents !important; }
	.tax-product_cat .woocommerce-products-header div.term-description,
	.tax-product_tag .woocommerce-products-header div.term-description {
		order: 10;
		margin: 0 !important;
		padding-top: 24px;
		border-top: 1px solid var(--cj-filet);
	}
}
@media (min-width: 768px) {
	.woocommerce-products-header div.term-description { text-align: center; }
}
@media (min-width: 1024px) {
	.woocommerce-products-header h1.woocommerce-products-header__title.page-title { margin-top: 48px; }
}

/* =====================================================================
 * 10. Fiche produit (spec-ui § 6)
 * ===================================================================== */

.single-product div.product { margin-bottom: 0; }
/* [Storefront] overflow: hidden sur div.product annulait la galerie collante (responsive n° 2) */
.single-product div.product { overflow: visible !important; }

/* Galerie sur le cuir, sans cadre */
.single-product div.product .woocommerce-product-gallery {
	position: relative;
	width: auto !important;
	float: none !important;
	margin: 8px 0 0;
}
.single-product div.product .woocommerce-product-gallery .flex-viewport { overflow: hidden; box-shadow: none !important; }
.single-product div.product .woocommerce-product-gallery__image { padding-bottom: 12px; box-shadow: none !important; }
@media (min-width: 768px) {
	.single-product div.product .woocommerce-product-gallery__image { padding-bottom: 24px; }
}
.single-product div.product .woocommerce-product-gallery__image > a { display: flex; justify-content: center; }
.single-product div.product .woocommerce-product-gallery__image img {
	width: auto !important;
	max-width: 100%;
	height: auto;
	max-height: min(280px, 33vh);
	max-height: min(280px, 33svh);
	object-fit: contain;
	box-shadow: var(--cj-ombre-oeuvre) !important;
	filter: none;
	border-radius: 0;
}
/* Hauteur de la galerie sous 768 px (CLS) : image, son filet de 12 px, puis la rangée de vignettes */
@media (max-width: 767px) {
	/* Hauteur fixée, pas seulement réservée : à l'initialisation de flexslider, les vues s'empilaient
	   une fraction de seconde (651 px) et poussaient le résumé (CLS de 0,21, passe 3) */
	.single-product div.product .woocommerce-product-gallery { height: calc(min(280px, 33vh) + 12px); height: calc(min(280px, 33svh) + 12px); overflow: hidden; }
	.single-product div.product .woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)) { height: calc(min(280px, 33vh) + 70px); height: calc(min(280px, 33svh) + 70px); }
}
/* Avant l'initialisation du diaporama, les vues 2 et suivantes s'empilaient sous la première */
.single-product div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:nth-child(n+2) { display: none; }
.single-product div.product .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.single-product div.product .flex-control-thumbs::before,
.single-product div.product .flex-control-thumbs::after { content: none; }
.single-product div.product .flex-control-thumbs li { width: 44px !important; height: 44px; margin: 0 !important; float: none !important; }
.single-product div.product .flex-control-thumbs li img { width: 44px; height: 44px; object-fit: cover; opacity: .55; cursor: pointer; transition: opacity 150ms ease-out; }
.single-product div.product .flex-control-thumbs li img:hover { opacity: .85; }
.single-product div.product .flex-control-thumbs li img.flex-active { opacity: 1; outline: 1px solid var(--cj-or); outline-offset: 2px; }
/* Loupe (DA n° 5) : trait d'or de 1,5 px sur un disque, cible de 44 px ; le script de
   design.php la pose en bas à droite de l'image (et non de la colonne ; passe 5, audit V3) */
.single-product div.product .woocommerce-product-gallery__trigger {
	top: 8px;
	right: 8px;
	z-index: 9;
	display: block;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	background: rgba(13, 11, 8, .7) !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	font-size: 0 !important;
	text-indent: 0 !important;
	--cj-focus: var(--cj-or);
}
.single-product div.product .woocommerce-product-gallery__trigger > span,
.single-product div.product .woocommerce-product-gallery__trigger > img { display: none !important; }
.single-product div.product .woocommerce-product-gallery__trigger::before {
	content: "" !important;
	position: absolute !important;
	inset: 10px !important;
	width: 24px !important;
	height: 24px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--cj-or) !important;
	-webkit-mask: 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%3Ccircle cx='10.5' cy='10.5' r='6.25'/%3E%3Cpath d='M15 15l5.25 5.25'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
	mask: 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%3Ccircle cx='10.5' cy='10.5' r='6.25'/%3E%3Cpath d='M15 15l5.25 5.25'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
	transform: none !important;
	box-sizing: border-box;
}
.single-product div.product .woocommerce-product-gallery__trigger::after { content: none !important; display: none !important; }
.single-product div.product .woocommerce-product-gallery__trigger:hover { background: rgba(13, 11, 8, .85) !important; }
/* Invisible tant que le script ne l'a pas posée : elle ne saute plus du haut vers le bas de l'image (CLS) */
.single-product div.product .woocommerce-product-gallery__trigger:not(.cj-loupe-posee) { visibility: hidden; }

/* Bloc d'achat */
.single-product div.product .summary {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 16px;
	align-items: baseline;
	width: auto !important;
	float: none !important;
	margin: 0;
}
.single-product div.product .summary > * { grid-column: 1 / -1; order: 3; }
.single-product div.product .product_title {
	order: 0;
	margin: 12px 0 0;
	color: var(--cj-or) !important;
	font-family: var(--cj-titre);
	font-size: var(--cj-t-produit);
	line-height: 1.12;
	text-wrap: balance;
	overflow-wrap: break-word;
}
/* Titre de plus de 90 signes : Display 28 → 34 (DA passe 6, § 2.6 n° 12 : jamais de Display sous 28 px) */
.single-product div.product.cj-titre-long .product_title { font-size: var(--cj-t-produit-long); }
/* [Customizer] p.price { margin … !important } */
.single-product div.product .summary > p.price {
	order: 1;
	grid-column: 1;
	margin: 8px 0 0 !important;
	color: var(--cj-or-clair);
	font: 400 var(--cj-t-prix-fiche)/1.2 var(--cj-sans);
	font-variant-numeric: tabular-nums lining-nums;
}
.single-product div.product .summary > p.price del { color: var(--cj-ivoire-doux); font-size: var(--cj-t-prix-cartel); font-weight: 400; opacity: 1; }
.single-product div.product .summary > p.price ins { text-decoration: none; }
.single-product div.product .summary > .stock {
	order: 2;
	grid-column: 2;
	margin: 0;
	color: var(--cj-vert);
	font-size: var(--cj-t-petit);
}
.single-product div.product .summary > .stock.out-of-stock { grid-column: 1 / -1; margin-top: 8px; color: var(--cj-rouge-cuir); }
/* Passe 7 (audit J6) : fiche épuisée. Le prix passe en retrait (17 px, ivoire doux, non barré), et une suite est
   proposée juste dessous, vers les pièces disponibles de la même vitrine (inc/conversion.php). */
.single-product div.product.outofstock .summary > p.price { color: var(--cj-ivoire-doux); font: 400 var(--cj-t-prix-cartel)/1.3 var(--cj-sans); }
.single-product div.product .summary > .cj-suite-epuise { order: 2; grid-column: 1 / -1; margin: 4px 0 0; font: 400 var(--cj-t-petit)/1.4 var(--cj-sans); }
.single-product div.product .summary > .cj-suite-epuise a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cj-or); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.single-product div.product .summary > .cj-suite-epuise a:hover { color: var(--cj-or-clair); text-decoration-thickness: 2px; }
.cj-ancre { display: block; scroll-margin-top: 24px; }
.single-product div.product .stock::before {
	content: "" !important;
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: currentColor;
	vertical-align: .1em;
	font-family: inherit;
}
.single-product div.product .summary > form.cart { order: 4; }
.single-product div.product .summary > .wesd-box { order: 6; }
.single-product div.product .summary > .cj-reassurance { order: 7; }
.single-product div.product .summary > .cj-question { order: 9; }
/* Catégorie et étiquettes : retirées de la fiche (DA n° 3) */
.single-product div.product .summary > .product_meta { display: none !important; }

.single-product div.product form.cart:not(.variations_form):not(.grouped_form),
.single-product div.product .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
}
.single-product div.product form.cart::before,
.single-product div.product form.cart::after { content: none; }
.single-product div.product form.cart .quantity { float: none; margin: 0; }
.single-product div.product form.cart .quantity .qty { height: 56px; min-height: 56px; }
.single-product div.product form.cart .quantity:has(input[type="hidden"]) { display: none; }
.single-product div.product form.cart .single_add_to_cart_button { flex: 1 1 12rem; float: none; margin: 0; }

/* Date de livraison : encart sobre ([cj-livraison] n'est plus chargé en aperçu) */
.single-product div.product .wesd-box {
	margin: 16px 0 0;
	padding: 12px 16px;
	border: 0;
	border-left: 2px solid var(--cj-or);
	background: rgba(213, 173, 109, .08);
	color: var(--cj-ivoire);
	font: 400 var(--cj-t-petit)/1.5 var(--cj-sans);
}
.single-product div.product .wesd-box strong { font-weight: 400; }

.cj-reassurance {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	color: var(--cj-ivoire);
	font-size: var(--cj-t-petit);
	line-height: 1.5;
}
.cj-reassurance li { position: relative; margin: 0 0 6px; padding-left: 22px; }
.cj-reassurance li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .55em;
	width: 6px;
	height: 6px;
	background: var(--cj-or);
	transform: rotate(45deg);
}
.cj-reassurance li.cj-noel { color: var(--cj-or-clair); font-weight: 400; }
.cj-question { margin: 12px 0 0; color: var(--cj-ivoire-doux); font-size: var(--cj-t-petit); }
.cj-question a { display: inline-block; line-height: 44px; color: var(--cj-or); text-decoration: underline; }

/* Onglets : remplacés par la notice en aperçu ; masqués s'ils réapparaissent */
.single-product .woocommerce-tabs { display: none; }

/* Fiche voisine : vignettes qui dépassaient */
.storefront-product-pagination { display: none !important; }

/* Suggestions */
section.up-sells,
section.related { clear: both; padding-top: var(--cj-section); }
section.up-sells + section.related { padding-top: var(--cj-section); }

/* Barre d'achat collante de Storefront (768 px et plus) */
.storefront-sticky-add-to-cart {
	background: var(--cj-fond-cuir) !important;
	border-bottom: 1px solid var(--cj-filet-fort);
	box-shadow: calc(12 * var(--cj-lumiere-x)) calc(12 * var(--cj-lumiere-y)) 24px -8px rgba(0, 0, 0, .8);
}
.storefront-sticky-add-to-cart img { width: 40px; box-shadow: none !important; filter: none; aspect-ratio: auto; }
.storefront-sticky-add-to-cart__content-title { color: var(--cj-ivoire); font-size: var(--cj-t-petit); }
.storefront-sticky-add-to-cart__content-price { color: var(--cj-or-clair); font-weight: 400; opacity: 1 !important; }
.storefront-sticky-add-to-cart__content-button { min-height: 44px; }
/* Passe 5 : « Ajouter au panier » sur une ligne ; c'est le titre du produit qui se tronque (responsive n° 3) */
@media (min-width: 768px) and (max-width: 1279px) {
	.storefront-sticky-add-to-cart__content-button { flex: 0 0 auto; min-width: 190px; white-space: nowrap; }
	.storefront-sticky-add-to-cart__content-product-info { flex: 1 1 auto; min-width: 0; overflow: hidden; }
	.storefront-sticky-add-to-cart__content-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

/* Ordinateur : galerie et résumé côte à côte dans le bloc d'achat .cj-achat (passe 4, audit R1).
   La galerie colle dans ce bloc seulement : elle remonte avec le résumé avant la notice. */
@media (min-width: 768px) {
	.single-product div.product::before,
	.single-product div.product::after { content: none; }
	.single-product div.product .cj-achat {
		--cj-galerie-top: 123px; /* sous la barre d'achat de Storefront (107 px jusqu'à 1279 px) */
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: clamp(2rem, 5vw, 4.5rem);
		align-items: start;
	}
	.single-product div.product .cj-achat > .woocommerce-product-gallery {
		grid-column: 1;
		grid-row: 1;
		position: sticky;
		top: var(--cj-galerie-top);
		align-self: start;
		margin: 24px 0 48px;
	}
	.single-product div.product .cj-achat > .summary { grid-column: 2; grid-row: 1; margin: 24px 0 48px; }
	/* La galerie tient dans l'écran sous la barre : image, filet de 24 px, vignettes de 64 px et leur écart de 26 px (responsive n° 4) */
	.single-product div.product .woocommerce-product-gallery__image img { max-height: min(640px, calc(100vh - var(--cj-galerie-top) - 32px)); max-height: min(640px, calc(100svh - var(--cj-galerie-top) - 32px)); }
	.single-product div.product .woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)) .woocommerce-product-gallery__image img { max-height: min(640px, calc(100vh - var(--cj-galerie-top) - 24px - 96px)); max-height: min(640px, calc(100svh - var(--cj-galerie-top) - 24px - 96px)); }
	.single-product div.product .flex-control-thumbs { margin-top: 0; }
	.single-product div.product .flex-control-thumbs li,
	.single-product div.product .flex-control-thumbs li img { width: 64px !important; height: 64px; }
}
@media (min-width: 1280px) {
	.single-product div.product .cj-achat { --cj-galerie-top: 102px; } /* barre de 86 px */
}
/* Paysage bas : ni barre d'achat collante ni galerie collante (critère 14) */
@media (max-height: 500px) {
	.storefront-sticky-add-to-cart { display: none !important; }
	.single-product div.product .cj-achat > .woocommerce-product-gallery { position: relative; top: auto; } /* relative : la loupe reste accrochée */
	.single-product div.product .cj-achat { --cj-galerie-top: 0px; }
}

/* =====================================================================
 * 11. Notice de vélin (fiche) : description et caractéristiques
 * ===================================================================== */

.cj-notice {
	clear: both;
	margin: 40px -8px 0;
	padding: calc(28px - var(--cj-bord)) calc(18px - var(--cj-bord)) calc(32px - var(--cj-bord));
	background: var(--cj-fond-velin);
	color: var(--cj-encre-papier);
	box-shadow: var(--cj-ombre-feuille);
	border-radius: 0;
}
.cj-notice .cj-notice-titre {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cj-filet-papier);
	color: var(--cj-encre-papier);
	font-size: var(--cj-t-feuille);
	line-height: 1.15;
	text-align: left;
}
.cj-notice-texte,
.cj-notice-texte p,
.cj-notice-texte li {
	color: var(--cj-encre-papier);
	font: 400 var(--cj-t-lecture)/1.6 var(--cj-serif); /* § 2.6 n° 14 */
	text-wrap: pretty;
}
.cj-notice .cj-notice-texte { margin: 0 !important; padding: 0 !important; }
.cj-notice-texte p { margin: 0 0 1em; }
.cj-notice-texte p:empty { display: none; }
.cj-notice-texte h2,
.cj-notice-texte h3,
.cj-notice-texte h4 { color: var(--cj-encre-papier) !important; }
.cj-notice-texte h2 { font-family: var(--cj-serif); font-size: var(--cj-t-h3); line-height: 1.25; } /* intertitre de notice : niveau h3 (§ 2.6 n° 17) */
.cj-notice-texte h3,
.cj-notice-texte h4 { font-family: var(--cj-serif); font-size: var(--cj-t-cartel-titre); line-height: 1.3; }
.cj-notice-texte strong { color: var(--cj-encre-papier); }
.cj-notice-texte p.font_8 em,
.cj-notice-texte p.font_8 { color: var(--cj-gris-papier); } /* notices d'auteurs importées : Caslon à la taille de lecture (§ 2.6 n° 15) */
.cj-notice a { color: var(--cj-or-sombre); text-decoration: underline; }
.cj-notice a:hover { color: var(--cj-encre-papier); text-decoration-thickness: 2px; }
.cj-notice img { max-width: 100%; height: auto; }
.cj-notice .cj-notice-sous-titre { margin: 28px 0 8px; color: var(--cj-encre-papier); font: 400 var(--cj-t-h3)/1.25 var(--cj-serif); }
.cj-notice table.shop_attributes { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.cj-notice table.shop_attributes th,
.cj-notice table.shop_attributes td {
	padding: 10px 0;
	background: transparent !important; /* [Storefront] #000 en ligne */
	border: 0;
	border-bottom: 1px solid var(--cj-filet-papier);
	font-size: var(--cj-t-petit);
	font-style: normal;
	text-align: left;
	vertical-align: top;
}
.cj-notice table.shop_attributes th { width: 40%; padding-right: 12px; color: var(--cj-gris-papier); font-weight: 400; }
.cj-notice table.shop_attributes td { color: var(--cj-encre-papier); font-variant-numeric: tabular-nums; }
.cj-notice table.shop_attributes td p { margin: 0; padding: 0; }
/* Passe 7 (verdict DA B3, audit R2) : encarts hérités de l'ancien design, saisis dans le contenu (extraits de 11 fiches :
   Ténor, Sheldon Cooper, têtes de Daumier) et stylés par l'ancien style.css et le CSS additionnel du Customizer :
   div.cadre-dore > span.titre-dore + p.cadre-dore. L'étiquette était posée en absolu sur un aplat #131313 et
   couvrait les premiers mots ; le filet barrait la première ligne ; le texte était justifié. Redessinés ici sans
   toucher au contenu : un filet or sombre de 1 px sur le papier, l'étiquette dans le flux, en tête du cadre, comme une
   nature de cartel (Caslon Text italique, or sombre, sur le vélin), le texte aligné à gauche. */
:is(.cj-notice-texte, .entry-content, .woocommerce-product-details__short-description) div.cadre-dore {
	position: relative;
	margin: 0 0 1.5em !important;
	padding: 14px 18px 16px !important;
	border: 1px solid rgba(110, 80, 32, .55) !important; /* --cj-or-sombre à 55 % : filet décoratif */
	border-radius: 0;
	background: none !important;
}
:is(.cj-notice-texte, .entry-content, .woocommerce-product-details__short-description) span.titre-dore {
	position: static !important;
	display: block;
	margin: 0 0 6px !important;
	padding: 0 !important;
	background: none !important;
	color: var(--cj-or-sombre) !important;
	font: italic 400 var(--cj-t-note)/1.35 var(--cj-serif) !important;
}
:is(.cj-notice-texte, .entry-content, .woocommerce-product-details__short-description) p.cadre-dore {
	margin: 0 !important;
	padding: 0 !important;
	font-size: inherit !important;
	font-style: italic;
	text-align: left !important;
}
:is(.cj-notice-texte, .entry-content, .woocommerce-product-details__short-description) div.cadre-dore > p:empty { display: none; }
/* « Encart infos livres » de l'ancien style.css (champs personnalisés sur aplat noir) : sur la feuille, sans aplat */
.wccpf-admin-fields-group-1 { background: none !important; padding: 0 !important; }
:is(td.wccpf_label, td.wccpf_value) { padding: 6px 12px 6px 0 !important; }
@media (min-width: 768px) {
	.cj-notice { margin: 0; padding: calc(40px - var(--cj-bord)); }
}
@media (min-width: 1024px) {
	.cj-notice { grid-column: 1 / -1; width: 100%; max-width: var(--cj-feuille-max); margin: 16px auto 0; padding: calc(56px - var(--cj-bord)) calc(64px - var(--cj-bord)); box-sizing: border-box; }
	.cj-notice > * { max-width: var(--cj-mesure); margin-left: auto; margin-right: auto; }
}

/* =====================================================================
 * 12. Articles et pages de texte : une feuille de vélin à 60 %
 * ===================================================================== */

/* En-tête sur le cuir */
.single-post .hentry .entry-header,
.cj-page-texte .hentry .entry-header,
.page:not(.home) .type-page > .entry-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 32px 0 24px;
	border: 0;
	text-align: center;
}
.single-post .hentry .entry-header .entry-title,
.page:not(.home) .type-page > .entry-header .entry-title {
	order: 0;
	margin: 0 !important;
	color: var(--cj-or) !important;
	font-size: var(--cj-t-page);
	line-height: 1.1;
	text-wrap: balance;
}
.single-post .hentry .entry-header .post-author,
.single-post .hentry .entry-header .byline { order: 1; margin-top: 12px; color: var(--cj-ivoire-doux); font-size: var(--cj-t-petit); }
.single-post .hentry .entry-header .post-author a { color: var(--cj-ivoire); text-decoration: underline; }
.single-post .hentry .entry-header .posted-on { display: none; }
.hentry .entry-header::before,
.hentry .entry-header::after { content: none; }
.single-post .hentry,
.page:not(.home) .hentry { margin: 0; padding: 0; border: 0; }
/* style.css du thème enfant : « .post.type-post.status-publish.format-standard.hentry { height: 1.5em !important } »
   écrase l'article (le pied remontait sur la feuille) */
html body .post.type-post.status-publish.format-standard.hentry { height: auto !important; }
/* Autres pièges de style.css : « header.entry-header { padding: 0 !important } »,
   « .entry-content { width: 100% !important } » (la feuille débordait à gauche),
   « .entry-content { min-height: 6em !important } » sous 750 px et « height: 6em !important » en paysage,
   « .alpha.entry-title { height: 1em } » */
html body .entry-content { float: none !important; width: auto !important; height: auto !important; min-height: 0 !important; }
html body.blog .hentry .entry-taxonomy { display: none; }
html body .alpha.entry-title { height: auto; }
html body.single-post .hentry header.entry-header,
html body.cj-page-texte .hentry header.entry-header,
html body.page:not(.home) .type-page > header.entry-header { padding: 32px 0 24px !important; margin-bottom: 0 !important; }

/* La feuille */
.single-post .hentry .entry-content,
.cj-page-texte .hentry .entry-content {
	float: none;
	width: auto;
	margin: 0 -8px;
	padding: calc(28px - var(--cj-bord)) calc(18px - var(--cj-bord)) calc(40px - var(--cj-bord));
	background: var(--cj-fond-velin-60);
	color: var(--cj-encre-papier);
	box-shadow: var(--cj-ombre-feuille);
	border-radius: 0;
}
.single-post .hentry .entry-content p,
.single-post .hentry .entry-content li,
.cj-page-texte .hentry .entry-content p,
.cj-page-texte .hentry .entry-content li {
	color: var(--cj-encre-papier);
	font: 400 var(--cj-t-lecture)/1.6 var(--cj-serif); /* § 2.6 n° 18 et 25 */
	text-wrap: pretty;
}
.single-post .entry-content p:empty,
.cj-page-texte .entry-content p:empty { display: none; }
.single-post .entry-content p.has-small-font-size,
.cj-page-texte .entry-content p.has-small-font-size { margin: 0 0 8px; color: var(--cj-gris-papier); font-family: var(--cj-sans); font-size: var(--cj-t-mini); line-height: 1.45; } /* « Temps de lecture » : mention de service */
.single-post .entry-content strong,
.cj-page-texte .entry-content strong { color: var(--cj-encre-papier); }
/* [Customizer] div.entry-content > h1…h4 { color: #c9ab70 !important } (2:1 sur vélin) : intertitres en encre (UI-Q17) */
.single-post div.entry-content > h1,
.single-post div.entry-content > h2,
.single-post div.entry-content > h3,
.single-post div.entry-content > h4,
.cj-page-texte div.entry-content > h1,
.cj-page-texte div.entry-content > h2,
.cj-page-texte div.entry-content > h3,
.cj-page-texte div.entry-content > h4 { color: var(--cj-encre-papier) !important; margin: 1.8em 0 .6em; }
.single-post div.entry-content > h2,
.cj-page-texte div.entry-content > h2 { font-family: var(--cj-titre); font-size: var(--cj-t-feuille); line-height: 1.15; }
.single-post div.entry-content > h3,
.cj-page-texte div.entry-content > h3 { font-family: var(--cj-serif); font-size: var(--cj-t-h3); line-height: 1.3; }
.single-post div.entry-content > h4,
.cj-page-texte div.entry-content > h4 { font-family: var(--cj-serif); font-size: var(--cj-t-cartel-titre); line-height: 1.3; }
.single-post .entry-content a,
.cj-page-texte .entry-content a { color: var(--cj-or-sombre); text-decoration: underline; text-decoration-thickness: 1px; }
.single-post .entry-content a:hover,
.cj-page-texte .entry-content a:hover { color: var(--cj-encre-papier); text-decoration-thickness: 2px; }
.single-post .entry-content a.button,
.cj-page-texte .entry-content a.button { color: var(--cj-or-sombre) !important; border-color: var(--cj-or-sombre) !important; text-decoration: none; }
.single-post .entry-content a.button:hover,
.cj-page-texte .entry-content a.button:hover { background: var(--cj-or-sombre) !important; color: var(--cj-velin) !important; }
.single-post .entry-content img,
.cj-page-texte .entry-content img { max-width: 100%; height: auto; }
.single-post .entry-content figcaption,
.cj-page-texte .entry-content figcaption { color: var(--cj-gris-papier); font: 400 var(--cj-t-note)/1.45 var(--cj-serif); }
.single-post .entry-content table,
.cj-page-texte .entry-content table { color: var(--cj-encre-papier); }
.single-post .entry-content table th,
.single-post .entry-content table td,
.cj-page-texte .entry-content table th,
.cj-page-texte .entry-content table td { border-bottom: 1px solid var(--cj-filet-papier); }

/* Citation d'ouverture (pullquote) : filets or sombre, sans cadre gris */
.single-post .entry-content figure.wp-block-pullquote,
.cj-page-texte .entry-content figure.wp-block-pullquote {
	margin: 32px 0;
	padding: 0;
	border: 0 !important;
	text-align: center;
}
.single-post .entry-content figure.wp-block-pullquote blockquote,
.cj-page-texte .entry-content figure.wp-block-pullquote blockquote {
	position: relative;
	max-width: 30rem;
	margin: 0 auto;
	padding: 32px 0;
	border: 0;
	color: var(--cj-encre-papier) !important;
}
.single-post .entry-content figure.wp-block-pullquote blockquote::before,
.single-post .entry-content figure.wp-block-pullquote blockquote::after,
.cj-page-texte .entry-content figure.wp-block-pullquote blockquote::before,
.cj-page-texte .entry-content figure.wp-block-pullquote blockquote::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 48px;
	margin-left: -24px;
	border-top: 1px solid var(--cj-or-sombre);
	font-size: 0;
}
.single-post .entry-content figure.wp-block-pullquote blockquote::before,
.cj-page-texte .entry-content figure.wp-block-pullquote blockquote::before { top: 0; }
.single-post .entry-content figure.wp-block-pullquote blockquote::after,
.cj-page-texte .entry-content figure.wp-block-pullquote blockquote::after { bottom: 0; }
.single-post .entry-content figure.wp-block-pullquote blockquote p,
.cj-page-texte .entry-content figure.wp-block-pullquote blockquote p {
	margin: 0 0 12px;
	color: var(--cj-encre-papier) !important;
	font: italic 400 var(--cj-t-citation)/1.4 var(--cj-serif);
	text-align: center;
	text-wrap: balance;
}
.single-post .entry-content figure.wp-block-pullquote blockquote p:last-child:not(:first-child),
.single-post .entry-content figure.wp-block-pullquote blockquote cite,
.cj-page-texte .entry-content figure.wp-block-pullquote blockquote p:last-child:not(:first-child),
.cj-page-texte .entry-content figure.wp-block-pullquote blockquote cite {
	display: block;
	margin: 0;
	color: var(--cj-or-sombre) !important;
	font: normal 400 var(--cj-t-note)/1.45 var(--cj-serif); /* source : Caslon Text 15 (§ 2.6 n° 20) */
	text-transform: none;
}
.single-post .entry-content figure.wp-block-pullquote blockquote p:last-child:not(:first-child) em { font-style: normal; }

/* Citations courantes */
.single-post .entry-content blockquote.wp-block-quote,
.single-post .entry-content > blockquote,
.cj-page-texte .entry-content blockquote.wp-block-quote,
.cj-page-texte .entry-content > blockquote {
	margin: 28px 0;
	padding: 0 0 0 16px;
	border-left: 2px solid var(--cj-or-sombre) !important;
	color: var(--cj-encre-papier);
}
.single-post .entry-content blockquote.wp-block-quote p,
.single-post .entry-content > blockquote p,
.cj-page-texte .entry-content blockquote.wp-block-quote p,
.cj-page-texte .entry-content > blockquote p { font: italic 400 var(--cj-t-lecture)/1.6 var(--cj-serif); }
.single-post .entry-content blockquote cite { color: var(--cj-or-sombre); font: normal 400 var(--cj-t-note)/1.45 var(--cj-serif); }

/* Séparateur et notes */
.single-post .entry-content hr,
.cj-page-texte .entry-content hr { height: 0; margin: 40px 0 24px; border: 0; border-top: 1px solid var(--cj-filet-papier); background: none; }
.single-post .entry-content hr.wp-block-separator ~ p,
.single-post .entry-content hr.wp-block-separator ~ p * { color: var(--cj-gris-papier); font-family: var(--cj-serif); font-size: var(--cj-t-note); line-height: 1.45; } /* notes : Caslon Text 15 (§ 2.6 n° 19) */
.single-post .entry-content hr.wp-block-separator ~ p em,
.single-post .entry-content hr.wp-block-separator ~ p i { font-style: italic; }
.single-post .entry-content hr.wp-block-separator ~ p a { color: var(--cj-or-sombre); }
.single-post .entry-content a[href^="#_edn"],
.single-post .entry-content a[href^="#_ftn"],
.single-post .entry-content sup a {
	display: inline-block;
	min-width: 24px;
	min-height: 24px;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	vertical-align: baseline;
}

/* « Pour aller plus loin » : sur le cuir, après la feuille */
.cj-plus-loin {
	clear: both;
	margin: var(--cj-section) 0 0;
	padding: 0;
	background: none;
	border: 0;
	color: var(--cj-ivoire);
}
.cj-plus-loin > p { margin: -16px auto 32px; max-width: 34rem; color: var(--cj-ivoire); font: 400 var(--cj-t-chapo)/1.5 var(--cj-serif); text-align: center; text-wrap: pretty; } /* § 2.6 n° 22 */
.cj-plus-loin p.cj-plus-loin-tous { max-width: none; margin: 16px auto 0; text-align: center; } /* audit C6 */
.cj-plus-loin p.cj-plus-loin-tous a { display: inline-block; line-height: 44px; color: var(--cj-or); font: 400 var(--cj-t-petit)/44px var(--cj-sans); text-decoration: underline; }

.single-post .entry-taxonomy { margin: 40px 0 0; color: var(--cj-ivoire-doux); font-size: var(--cj-t-petit); text-align: center; }
.single-post .entry-taxonomy a { display: inline-block; line-height: 44px; color: var(--cj-ivoire); text-decoration: underline; }
.single-post .entry-taxonomy .cat-links::before,
.single-post .entry-taxonomy .tags-links::before { content: none; }

.post-navigation { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--cj-filet); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr; gap: 8px; }
.post-navigation .nav-previous,
.post-navigation .nav-next { float: none !important; width: auto !important; text-align: left !important; }
.post-navigation a { display: block; padding: 12px 0; color: var(--cj-or); font: 400 var(--cj-t-cartel-titre)/1.3 var(--cj-serif); text-decoration: none; }
.post-navigation a:hover { color: var(--cj-or-clair); text-decoration: underline; }
.post-navigation a::before,
.post-navigation a::after { content: none !important; }
/* Le titre « Navigation de l'article » reste réservé aux lecteurs d'écran ;
   seules les mentions « Article précédent / suivant » s'affichent. */
.post-navigation a .screen-reader-text {
	position: static !important;
	display: block;
	width: auto;
	height: auto;
	margin: 0 0 4px;
	clip: auto;
	clip-path: none;
	overflow: visible;
	color: var(--cj-ivoire-doux);
	font: 400 var(--cj-t-mini)/1.45 var(--cj-sans);
	word-wrap: normal !important;
}
@media (min-width: 768px) {
	.post-navigation .nav-links { grid-template-columns: 1fr 1fr; }
	html body .post-navigation .nav-next { text-align: right !important; }
}

/* Pages de texte (FAQ, CGV, mentions, contact, À propos) : classe posée par le thème */
.cj-page-texte .site-main > .type-page { margin: 0; }
/* Contact : envoi en bouton encre sur le papier */
.cj-page-texte .entry-content input[type="submit"] {
	background: var(--cj-encre) !important;
	color: var(--cj-or-clair) !important;
	border-color: var(--cj-encre) !important;
}
.cj-page-texte .entry-content input[type="submit"]:hover { background: var(--cj-or) !important; color: var(--cj-encre) !important; border-color: var(--cj-or) !important; }
.cj-page-texte .entry-content label { color: var(--cj-encre-papier); }
.cj-page-texte .entry-content input[type="checkbox"],
.cj-page-texte .entry-content input[type="radio"] { accent-color: var(--cj-or-sombre); }

/* Idées cadeaux : sur le cuir */
.page-id-18191 .entry-content > h2,
.page-id-18191 div.entry-content > h2.wp-block-heading {
	margin: var(--cj-section) 0 16px;
	color: var(--cj-or) !important; /* [Customizer] #c9ab70 */
	font-family: var(--cj-titre);
	font-size: var(--cj-t-section);
	line-height: 1.1;
	text-align: center;
}
.page-id-18191 .entry-content > p { max-width: 40rem; margin: 0 auto 32px; color: var(--cj-ivoire); font: 400 var(--cj-t-lecture)/1.6 var(--cj-serif); text-align: center; text-wrap: pretty; }
.page-id-18191 .entry-content > p a { color: var(--cj-or); text-decoration: underline; }
.page-id-18191 .hentry .entry-content { background: none; box-shadow: none; padding: 0; margin: 0; border: 0; border-image: none; }
/* Sommaire par destinataire, en tête de la page (audit U) */
.cj-sommaire-cadeaux { margin: 8px 0 0; }
html body .entry-content .cj-sommaire-cadeaux a { text-decoration: none; } /* [Storefront] liens du contenu soulignés */
@media (max-width: 599px) {
	.page-id-18191 .entry-content > p { text-align: left; } /* audit C13 */
}

@media (min-width: 768px) {
	.single-post .hentry .entry-content,
	.cj-page-texte .hentry .entry-content { margin: 0; padding: calc(48px - var(--cj-bord)) calc(40px - var(--cj-bord)); }
}
@media (min-width: 1024px) {
	.single-post .hentry .entry-header,
	.page:not(.home) .type-page > .entry-header { padding-top: 48px; }
	.single-post .hentry .entry-content,
	.cj-page-texte .hentry .entry-content { max-width: var(--cj-feuille-max); margin: 0 auto; padding: calc(64px - var(--cj-bord)); box-sizing: border-box; }
	/* Audit C7 : la mesure de 44 rem centrée dans 732 px décalait les paragraphes de 14 px */
	.single-post .hentry .entry-content,
	.cj-page-texte .hentry .entry-content { padding-left: calc(max(64px, calc((var(--cj-feuille-max) - var(--cj-mesure)) / 2)) - var(--cj-bord)); padding-right: calc(max(64px, calc((var(--cj-feuille-max) - var(--cj-mesure)) / 2)) - var(--cj-bord)); }
	.single-post .hentry .entry-content > *,
	.cj-page-texte .hentry .entry-content > * { max-width: var(--cj-mesure); margin-left: auto; margin-right: auto; }
	.single-post .hentry .entry-content > ul.products,
	.single-post .hentry .entry-content > .woocommerce { max-width: none; }
}

/* =====================================================================
 * 13. Liste de la Revue : une seule feuille de vélin (100 %)
 * ===================================================================== */

/* Passe 7 (propriétaire) : la Revue s'ouvre sur sa page de titre, en haut de la feuille de vélin du sommaire (et des
   archives de la Revue) : titre en Caslon Display à l'encre (l'or sur vélin, 1,9:1, est exclu), filet d'or pressé
   dessous (ombre au nord-ouest, arête claire au sud-est), chapô centré à l'encre douce, puis un filet à losange avant
   le premier article. */
.site-main .cj-revue-entete,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .page-header { margin: 0; padding: 24px 0 0; border: 0; text-align: center; }
.site-main .cj-revue-entete .cj-revue-titre,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .page-header .page-title { margin: 0; color: var(--cj-encre-papier); font: 400 var(--cj-t-page)/1.1 var(--cj-titre); text-wrap: balance; }
.site-main .cj-revue-entete .cj-revue-titre::after,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .page-header .page-title::after {
	content: "";
	display: block;
	width: 96px;
	height: 2px;
	margin: 16px auto 0;
	background: linear-gradient(90deg, #b98f4e, #d5ad6d 45%, #a67c3c);
	box-shadow: -.6px -.6px 0 rgba(70, 48, 15, .45), .7px .7px 0 rgba(255, 250, 235, .9);
}
.site-main .cj-revue-entete .cj-chapo,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .page-header :is(.taxonomy-description, .archive-description) { max-width: 34em; margin: 16px auto 0; color: var(--cj-gris-papier); font: 400 var(--cj-t-chapo)/1.5 var(--cj-serif); text-align: center; text-wrap: pretty; }
:is(body.archive, body.search):not(.woocommerce-page) .site-main .page-header :is(.taxonomy-description, .archive-description) p { margin: 0; color: inherit; font: inherit; }
.site-main .cj-revue-entete::after,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .page-header::after {
	content: "";
	display: block;
	height: 9px;
	margin: 28px 0 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M9 .5 13 4.5 9 8.5 5 4.5Z' fill='%23a67c3c'/%3E%3C/svg%3E") center / 18px 9px no-repeat, linear-gradient(var(--cj-filet-papier), var(--cj-filet-papier)) center / 100% 1px no-repeat;
}
body.blog .site-main .cj-revue-entete + article.post { padding-top: 20px; }
/* respiration entre le bandeau de la boutique et le haut de la feuille (sommaire et archives) : 24 px, 40 px dès 768 px.
   Sélecteur #main : style.css du thème enfant impose « #main { margin-top: 0 } ». */
body.blog #main.site-main,
:is(body.archive, body.search):not(.woocommerce-page) #main.site-main { margin-top: 24px; }
@media (min-width: 768px) {
	body.blog #main.site-main,
	:is(body.archive, body.search):not(.woocommerce-page) #main.site-main { margin-top: 40px; }
}
body.blog .site-main,
:is(body.archive, body.search):not(.woocommerce-page) .site-main {
	margin: 0 -8px;
	padding: max(0px, calc(8px - var(--cj-bord))) calc(18px - var(--cj-bord)) calc(32px - var(--cj-bord));
	background: var(--cj-fond-velin);
	color: var(--cj-encre-papier);
	box-shadow: var(--cj-ombre-feuille);
}
body.blog .site-main article.post,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post {
	margin: 0;
	padding: 28px 0;
	border-bottom: 1px solid var(--cj-filet-papier);
}
body.blog .site-main .entry-header,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .entry-header { margin: 0; padding: 0; border: 0; text-align: left; }
body.blog .site-main .entry-title,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .entry-title { margin: -6px 0 2px; font-size: var(--cj-t-feuille); line-height: 1.15; }
body.blog .site-main .entry-title a,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .entry-title a { display: block; padding: 6px 0; color: var(--cj-encre-papier); text-decoration: none; } /* cible de 44 px */
body.blog .site-main .entry-title a:hover,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .entry-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
body.blog .site-main .post-author,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .post-author { color: var(--cj-gris-papier); font-size: var(--cj-t-mini); }
body.blog .site-main .post-author a { color: var(--cj-gris-papier); }
body.blog .site-main img.wp-post-image,
:is(body.archive, body.search):not(.woocommerce-page) .site-main img.wp-post-image { width: 100%; height: auto; margin: 16px 0; box-shadow: calc(5 * var(--cj-lumiere-x)) calc(5 * var(--cj-lumiere-y)) 12px -6px rgba(60, 40, 10, .4); }
body.blog .site-main .entry-content,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .entry-content,
body.blog .site-main .entry-content p,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .entry-content p { color: var(--cj-encre-papier); font: 400 var(--cj-t-lecture)/1.6 var(--cj-serif); } /* passe 7 (coordinateur) : ce qui se lit est en Caslon Text, au corps du texte courant (17 → 19 px, interlignage 1,6) ; « Lire l'article », une action, reste en sans serif (13.1) */
body.blog .site-main .entry-taxonomy,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .entry-taxonomy { color: var(--cj-gris-papier); font-size: var(--cj-t-mini); }
body.blog .site-main a,
:is(body.archive, body.search):not(.woocommerce-page) .site-main a { color: var(--cj-or-sombre); }
body.blog .site-main .pagination,
:is(body.archive, body.search):not(.woocommerce-page) .site-main .pagination { margin: 24px 0 0; padding: 0; border: 0; text-align: center; }
body.blog .pagination .page-numbers li .page-numbers,
:is(body.archive, body.search):not(.woocommerce-page) .pagination .page-numbers li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 10px;
	box-sizing: border-box;
	border: 1px solid var(--cj-filet-papier);
	background: transparent;
	color: var(--cj-encre-papier);
}
body.blog .pagination .page-numbers li .page-numbers.current,
:is(body.archive, body.search):not(.woocommerce-page) .pagination .page-numbers li .page-numbers.current { background: var(--cj-encre-papier); color: var(--cj-velin); }
@media (min-width: 768px) {
	body.blog .site-main,
	:is(body.archive, body.search):not(.woocommerce-page) .site-main { margin: 0; padding: calc(24px - var(--cj-bord)) calc(40px - var(--cj-bord)) calc(48px - var(--cj-bord)); }
}
@media (min-width: 1024px) {
	body.blog .site-main,
	:is(body.archive, body.search):not(.woocommerce-page) .site-main { max-width: var(--cj-feuille-max); margin: 0 auto; padding: calc(32px - var(--cj-bord)) calc(64px - var(--cj-bord)) calc(64px - var(--cj-bord)); box-sizing: border-box; }
}

/* ---------- 13.1 Emblèmes dorés des listes de la Revue (passe 7, points 34, 34 bis et 34 ter) ----------
   Un emblème par article (inc/conversion.php, cj_conv_lettrine) : une gravure liée au sujet, en or pressé dans le vélin,
   dans un filet simple, sans case colorée ni capitale (décision du propriétaire). Colonne fixe à gauche ; titre, extrait et « Lire l'article » à
   sa droite, sur mobile aussi. Les vignettes quittent ces listes. 88 px sur mobile, 104 px sur ordinateur, 80 puis
   64 px dans le bloc de l'accueil. Or : dégradé d'or sombre (≥ 3:1 sur le vélin en tout point) ; empreinte lue à la
   lumière nord-ouest : ombre au bord haut-gauche, filet clair au bord bas-droit, sans flou ni halo. */
.cj-lettrine {
	--cj-lt: 88px;
	position: relative;
	display: block;
	width: var(--cj-lt);
	height: calc(var(--cj-lt) * .75); /* case 4:3 (propriétaire, passe 7) : les gravures larges la remplissent en largeur */
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}
/* Passe 7 (propriétaire) : gravures anciennes du domaine public (illustrations/, registre LICENCES.md), en fichiers
   séparés mis en cache. Masque (trait = or ; l'alpha est porté par le SVG lui-même) sur le dégradé or du logo ; la case et la gravure sont pressées
   ensemble dans le vélin (filter sur le parent : ombre au nord-ouest, filet clair au sud-est). Filet simple, sans
   rinceaux. Les gravures larges (balance, clef, couronne) sont cadrées en contain. */
.cj-grav {
	filter: drop-shadow(-.6px -.6px 0 rgba(70, 46, 12, .55)) drop-shadow(.7px .7px 0 rgba(255, 252, 240, .95));
}
.cj-grav-or {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #f0d79a 0%, #d5ad6d 30%, #a87d3a 55%, #e2c07c 78%, #b3843e 100%);
	-webkit-mask: var(--cj-grav) center / contain no-repeat;
	mask: var(--cj-grav) center / contain no-repeat; /* gravures en alpha (masque de luminance interne au SVG) : mode alpha par défaut, anciens Safari compris */
}
.cj-grav[data-embleme="balance"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/balance.svg?v=2); }
.cj-grav[data-embleme="clef"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/clef.svg?v=2); }
.cj-grav[data-embleme="coeur"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/coeur.svg?v=2); }
.cj-grav[data-embleme="colonne"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/colonne.svg?v=2); }
.cj-grav[data-embleme="couronne"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/couronne.svg?v=2); }
.cj-grav[data-embleme="epee"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/epee.svg?v=2); }
.cj-grav[data-embleme="fleuron"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/fleuron.svg?v=2); }
.cj-grav[data-embleme="laurier"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/laurier.svg?v=2); }
.cj-grav[data-embleme="livre"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/livre.svg?v=2); }
.cj-grav[data-embleme="maillet"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/maillet.svg?v=2); }
.cj-grav[data-embleme="plume"] { --cj-grav: url(/wp-content/themes/curiositesjuridiques/illustrations/plume.svg?v=2); }
/* Taille optique (propriétaire, passe 7) : sans cadre, chaque gravure occupe sa case 4:3 en contain. Les gravures
   hautes déborderaient de peu en largeur et paraîtraient petites : leur zone d'or s'étend en hauteur au-delà de la
   case (sans changer la mise en page), jusqu'au carré pour les plus élancées, pour un poids visuel voisin. */
.cj-grav:is([data-embleme="maillet"], [data-embleme="fleuron"], [data-embleme="laurier"]) .cj-grav-or { inset: -8.333% 0; }
.cj-grav:is([data-embleme="plume"], [data-embleme="colonne"], [data-embleme="epee"]) .cj-grav-or { inset: -16.667% 0; }
/* le débord compte dans la mise en page des sommaires : il ne mord ni sur l'extrait ni sur le filet de l'article voisin */
:is(.site-main article.post, .cj-revue-articles article) > .cj-grav:is([data-embleme="maillet"], [data-embleme="fleuron"], [data-embleme="laurier"]) { margin-block: calc(var(--cj-lt) * .0625); }
:is(.site-main article.post, .cj-revue-articles article) > .cj-grav:is([data-embleme="plume"], [data-embleme="colonne"], [data-embleme="epee"]) { margin-block: calc(var(--cj-lt) * .125); }
body.blog .site-main article.post,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post {
	display: grid !important; /* style.css du thème : « .post.type-post.status-publish.format-standard.hentry { display: block } » sous 750 px */
	grid-template-columns: var(--cj-lt-col, 88px) minmax(0, 1fr);
	column-gap: 14px;
	align-items: start;
}
body.blog .site-main article.post > *,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post > * { grid-column: 2; min-width: 0; }
body.blog .site-main article.post > .cj-lettrine,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post > .cj-lettrine { --cj-lt: var(--cj-lt-col, 88px); grid-column: 1; grid-row: 1; align-self: center; }
/* Sous 768 px, la gravure de 110 px se centre sur le titre et l'extrait passe sous elle, sur toute la largeur de la
   feuille : à côté d'elle, il n'aurait que 26 à 28 caractères par ligne à 390 px (minimum : 30). */
body.blog .site-main article.post > .entry-content,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post > .entry-content { grid-column: 1 / -1; }
/* le titre d'abord, puis la date et l'auteur sur une ligne : la lettrine s'aligne sur le titre */
body.blog .site-main article.post .entry-header,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post .entry-header { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5em; align-self: center; }
body.blog .site-main article.post .entry-title,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post .entry-title { order: -1; flex: 0 0 100%; margin-top: 0; }
body.blog .site-main article.post .posted-on,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post .posted-on { color: var(--cj-gris-papier); font-size: var(--cj-t-mini); }
body.blog .site-main article.post .posted-on a,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post .posted-on a { color: var(--cj-gris-papier); text-decoration: none; }
/* Titre des catégories, étiquettes et recherches : il était en or (--cj-or) sur le vélin, à 1,9:1 ; encre du papier,
   comme le titre des autres feuilles (12,9:1). */
/* « Lire l'article » : masqué jusqu'ici (style.css du thème et CSS additionnel : « .read-more { display: none } ») ;
   rendu comme sur l'accueil : lien souligné en or sombre, cible de 44 px */
body.blog .site-main article.post .read-more,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post .read-more { display: block !important; margin: 0; }
body.blog .site-main article.post .read-more a.button,
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post .read-more a.button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: none !important;
	box-shadow: none;
	color: var(--cj-or-sombre) !important;
	font: 400 var(--cj-t-petit)/1.2 var(--cj-sans);
	text-decoration: underline !important;
	text-transform: none;
	letter-spacing: 0;
}
body.blog .site-main article.post .read-more a.button:is(:hover, :focus-visible, :active),
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post .read-more a.button:is(:hover, :focus-visible, :active) { background: none !important; color: var(--cj-encre-papier) !important; text-decoration-thickness: 2px !important; }
body.blog .site-main article.post .entry-content > p:not(.read-more),
:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post .entry-content > p:not(.read-more) { margin: 0 0 4px; }
body.blog .site-main,
:is(body.archive, body.search):not(.woocommerce-page) .site-main { --cj-lt-col: 110px; } /* 150 px dès 768 px */
/* bloc Revue de l'accueil */
.cj-revue-articles article { display: grid; grid-template-columns: var(--cj-lt-col, 80px) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 16px; align-items: start; } /* l'extrait prend la hauteur libre : les liens « Lire l'article » des trois colonnes s'alignent en bas */
.cj-revue-articles article > * { grid-column: 2; min-width: 0; }
.cj-revue-articles article > .cj-lettrine { --cj-lt: var(--cj-lt-col, 80px); grid-column: 1; grid-row: 1 / span 3; margin-top: 10px; }
.cj-revue-articles article > a.cj-lire { justify-self: start; }
@media (min-width: 768px) {
	body.blog .site-main,
	:is(body.archive, body.search):not(.woocommerce-page) .site-main { --cj-lt-col: 150px; }
	.cj-revue-articles { --cj-lt-col: 64px; }
	body.blog .site-main article.post,
	:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post { column-gap: 24px; }
	/* sur ordinateur, la gravure se centre sur tout le bloc de texte (titre, extrait, « Lire l'article ») */
	body.blog .site-main article.post > .cj-lettrine,
	:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post > .cj-lettrine { grid-row: 1 / span 2; }
	body.blog .site-main article.post > .entry-content,
	:is(body.archive, body.search):not(.woocommerce-page) .site-main article.post > .entry-content { grid-column: 2; }
	.cj-revue-articles article { column-gap: 14px; }
}

/* =====================================================================
 * 14. FAQ en accordéon (details.cj-faq), sur la feuille de la page
 * ===================================================================== */

details.cj-faq { margin: 0; border-top: 1px solid var(--cj-filet-papier); }
details.cj-faq:last-of-type { border-bottom: 1px solid var(--cj-filet-papier); margin-bottom: 24px; }
details.cj-faq > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	padding: 12px 0;
	box-sizing: border-box;
	list-style: none;
	cursor: pointer;
	color: var(--cj-encre-papier);
	font: 400 var(--cj-t-cartel-titre)/1.3 var(--cj-serif);
	outline-offset: 4px;
	--cj-focus: var(--cj-or-sombre);
}
details.cj-faq > summary::-webkit-details-marker { display: none; }
/* « + » dessiné : deux traits de 1,5 px (§ 2.6 n° 27), plus de police en 300 */
details.cj-faq > summary::after {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	color: var(--cj-or-sombre);
	background:
		linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
	transition: transform 150ms ease-out;
}
details.cj-faq[open] > summary::after { transform: rotate(45deg); }
details.cj-faq > summary:hover { color: var(--cj-or-sombre); }
details.cj-faq > :not(summary) { margin: 0 0 16px; color: var(--cj-encre-papier); font: 400 var(--cj-t-lecture)/1.6 var(--cj-serif); text-wrap: pretty; }
details.cj-faq > :last-child:not(summary) { margin-bottom: 20px; }
details.cj-faq > p:empty { display: none; }
/* Sur le cuir, s'il apparaît ailleurs */
.site-content > .col-full > details.cj-faq,
.cj-pied details.cj-faq { border-color: var(--cj-filet); }

/* =====================================================================
 * 15. Panier (spec-ui § 9.1)
 * ===================================================================== */

.woocommerce-cart .hentry .entry-header { padding: 32px 0 24px; text-align: center; border: 0; }
.woocommerce-cart .hentry .entry-title,
.woocommerce-checkout .hentry .entry-title,
.woocommerce-account .hentry .entry-title { margin: 0; color: var(--cj-or); font-size: var(--cj-t-page); line-height: 1.1; text-align: center; }
.woocommerce-cart table.shop_table.cart,
.woocommerce-cart .cart_totals table.shop_table { border: 0; background: transparent; }
.woocommerce-cart table.shop_table.cart th {
	background: transparent;
	color: var(--cj-ivoire-doux);
	font-size: var(--cj-t-mini);
	font-weight: 400;
	border-bottom: 1px solid var(--cj-filet);
}
.woocommerce-cart table.shop_table.cart td { background: transparent; border-bottom: 1px solid var(--cj-filet); vertical-align: middle; }
.woocommerce-cart table.cart td.product-name > a { color: var(--cj-ivoire); font: 400 var(--cj-t-cartel-titre)/1.35 var(--cj-serif); text-decoration: none; }
.woocommerce-cart table.cart td.product-name > a:hover { color: var(--cj-or); text-decoration: underline; }
.woocommerce-cart table.cart td.product-thumbnail a { display: inline-block; min-width: 44px; min-height: 44px; } /* responsive n° 13 */
html body.woocommerce-cart table.cart td.product-thumbnail img { width: 72px !important; max-width: none !important; height: auto; box-shadow: calc(5 * var(--cj-lumiere-x)) calc(5 * var(--cj-lumiere-y)) 10px -4px rgba(0, 0, 0, .75) !important; filter: none; }
.woocommerce-cart table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--cj-ivoire-doux) !important;
	background: none !important;
	font-size: var(--cj-t-icone);
	line-height: 1;
	text-indent: 0;
	text-decoration: none;
}
.woocommerce-cart table.cart td.product-remove a.remove::before { content: none !important; }
.woocommerce-cart table.cart td.product-remove a.remove:hover { color: var(--cj-or) !important; }
.woocommerce-cart table.cart td.product-subtotal { color: var(--cj-or-clair); font-weight: 400; font-variant-numeric: tabular-nums; }
.woocommerce-cart table.cart td.actions { padding-top: 24px; border-top: 0 !important; } /* [Storefront] filet noir de 1 em sous le sous-total (responsive n° 13) */
.woocommerce-cart table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1 1 10rem; width: auto; min-height: 48px; }
.woocommerce-cart table.cart .quantity .qty { min-height: 44px; }

/* Date de livraison sous chaque article (panier et commande) */
.woocommerce-cart table.cart td.product-name > strong,
.woocommerce-checkout-review-order-table td.product-name > strong:not(.product-quantity) {
	display: block;
	margin-top: var(--cj-e1);
	color: var(--cj-ivoire-doux);
	font-size: var(--cj-t-mini);
	font-weight: 400;
	line-height: 1.4;
}

/* Récapitulatif : encart encre, total mis en avant */
.cart-collaterals .cart_totals,
#order_review {
	padding: 24px;
	background: var(--cj-panneau) !important;
	border: 1px solid var(--cj-filet);
	border-radius: 0;
}
.cart-collaterals .cart_totals h2,
#order_review_heading,
#customer_details h3 { color: var(--cj-or); font-family: var(--cj-titre); font-size: var(--cj-t-feuille); line-height: 1.15; }
.cart_totals table.shop_table th,
.cart_totals table.shop_table td,
#order_review table.shop_table th,
#order_review table.shop_table td {
	padding: 12px 0;
	background: transparent !important;
	border-bottom: 1px solid var(--cj-filet);
}
.cart_totals .order-total th,
.cart_totals .order-total td,
#order_review .order-total th,
#order_review .order-total td { border-bottom: 0; padding-top: 16px; }
.cart_totals .order-total .amount,
#order_review .order-total .amount { color: var(--cj-or-clair); font-size: var(--cj-t-prix-fiche); font-weight: 400; font-variant-numeric: tabular-nums; }
.cart_totals .order-total small,
#order_review .order-total small { color: var(--cj-ivoire-doux); font-size: var(--cj-t-mini); }
/* Mention de TVA à 14 px (responsive n° 9) ; « Sous-total » ne se coupe jamais */
.woocommerce-cart small.includes_tax,
.woocommerce-checkout small.includes_tax { font-size: var(--cj-t-mini); }
.woocommerce-cart table.shop_table th.product-subtotal,
.woocommerce-cart table.shop_table th { white-space: nowrap; hyphens: none; }
.cart_totals .order-total small .amount,
#order_review .order-total small .amount { font-size: inherit; color: inherit; font-weight: 400; }
#shipping_method li { margin-bottom: var(--cj-e2); }
#shipping_method li label { color: var(--cj-ivoire); }
.wc-proceed-to-checkout { padding-top: 16px; }
/* Passe 7 (audit J5, demande du propriétaire) : [Storefront] .wc-proceed-to-checkout .checkout-button { display: block;
   font-size: 1.41575em; padding: 1em; margin-bottom: 1em } : libellé collé en haut, plaque trop haute et texte plus gros que
   les autres plaques. Même plaque laiton-miroir que « Ajouter au panier » (règles du § 4) : 52 px, libellé Caslon Text 17 px
   centré dans les deux axes (line-height 1 : le centrage ne dépend plus des jambages). */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 52px;
	min-height: 0;
	margin: 0 !important;
	padding: 0 32px !important;
	font: 400 var(--cj-t-prix-cartel)/1 var(--cj-serif) !important;
	text-align: center;
}
/* Montants alignés à droite, en colonne ; la mention de TVA sous le total, à droite aussi */
.woocommerce-cart .cart_totals table.shop_table td { text-align: right; }
.woocommerce-cart .cart_totals .order-total td small.includes_tax { display: block; margin-top: 4px; }
.woocommerce-cart .wc-proceed-to-checkout { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* Panier vide */
.woocommerce-cart .cart-empty { margin-bottom: 24px; }
.woocommerce-cart .return-to-shop { margin: 0; text-align: center; } /* 72 px au plus jusqu'au pied (audit G6), mesuré */

/* Ventes croisées « Pour compléter le paquet » */
.cart-collaterals .cross-sells { margin-bottom: 48px; }
.cart-collaterals .cross-sells > h2 { font-size: var(--cj-t-feuille); }

@media (max-width: 767px) {
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item {
		display: grid;
		grid-template-columns: 72px 1fr 44px;
		column-gap: 12px;
		align-items: start;
		padding: 16px 0;
		border-bottom: 1px solid var(--cj-filet);
	}
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td {
		display: block;
		padding: 0;
		border: 0;
		background: transparent;
		text-align: left !important;
	}
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td::before { content: none; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-thumbnail { display: block; grid-column: 1; grid-row: 1 / span 3; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-name { grid-column: 2; grid-row: 1; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-remove { grid-column: 3; grid-row: 1; margin-top: -10px; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-price { display: none; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-quantity { grid-column: 2 / -1; grid-row: 2; margin-top: 8px; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-subtotal { grid-column: 2 / -1; grid-row: 3; margin-top: 8px; }
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-quantity::before,
	.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-subtotal::before {
		content: attr(data-title) " ";
		display: inline;
		float: none;
		color: var(--cj-ivoire-doux);
		font-size: var(--cj-t-mini);
		font-weight: 400;
	}
	.woocommerce-cart table.cart td.actions .coupon .button { flex: 1 1 auto; }
}
@media (max-width: 399px) {
	.cart-collaterals .cart_totals { padding: 16px; }
}

/* =====================================================================
 * 16. Commande (spec-ui § 9.2)
 * ===================================================================== */

form.woocommerce-checkout { max-width: var(--cj-largeur-max); }
.woocommerce-checkout-review-order-table td.product-name { color: var(--cj-ivoire); line-height: 1.4; }
.woocommerce-checkout-review-order-table td.product-name .product-quantity { color: var(--cj-ivoire-doux); font-weight: 400; }
#payment { background: transparent !important; border-radius: 0; }
#payment .payment_methods { border-top: 1px solid var(--cj-filet); border-bottom: 1px solid var(--cj-filet); }
#payment .payment_methods > li,
#payment .place-order { background: transparent !important; }
#payment .payment_methods > li { border-bottom: 1px solid var(--cj-filet); }
#payment .payment_methods > li label { color: var(--cj-ivoire); font-weight: 400; }
#payment .payment_methods > li .payment_box { background: rgba(213, 173, 109, .06) !important; color: var(--cj-ivoire); font-size: var(--cj-t-petit); }
#payment .payment_methods > li .payment_box::before { content: none; }
#payment .place-order { padding: 24px 0 0 !important; }
.woocommerce-terms-and-conditions-wrapper { color: var(--cj-ivoire); font-size: var(--cj-t-petit); }
.woocommerce-terms-and-conditions-wrapper label.checkbox { display: flex; align-items: center; gap: 8px; min-height: 44px; }

@media (min-width: 1024px) {
	form.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: var(--cj-e7);
		align-items: start;
	}
	form.woocommerce-checkout::before,
	form.woocommerce-checkout::after { content: none; }
	form.woocommerce-checkout > * { grid-column: 1 / -1; }
	form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-row: 1; }
	form.woocommerce-checkout > #customer_details { grid-column: 1; grid-row: 2 / span 2; width: auto; float: none; margin: 0; }
	form.woocommerce-checkout > #order_review_heading { grid-column: 2; grid-row: 2; width: auto; float: none; margin: 0; padding-bottom: var(--cj-e3); }
	form.woocommerce-checkout > #order_review { grid-column: 2; grid-row: 3; width: auto; float: none; margin: 0; }
}
/* Commande sur mobile : récapitulatif en lignes souples */
@media (max-width: 767px) {
	#order_review { padding: 16px 12px; }
	#order_review table.shop_table,
	#order_review table.shop_table thead,
	#order_review table.shop_table tbody,
	#order_review table.shop_table tfoot { display: block; width: 100%; }
	#order_review table.shop_table tr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; border-bottom: 1px solid var(--cj-filet); }
	#order_review table.shop_table tr.order-total { border-bottom: 0; }
	#order_review table.shop_table th,
	#order_review table.shop_table td { display: block; border-bottom: 0 !important; }
	#order_review table.shop_table td.product-name { flex: 1 1 60%; }
	#order_review table.shop_table td.product-total,
	#order_review table.shop_table tfoot td { text-align: right; }
	#order_review tr.woocommerce-shipping-totals > th,
	#order_review tr.woocommerce-shipping-totals > td { flex: 1 1 100%; text-align: left !important; }
	#order_review tr.woocommerce-shipping-totals > th { padding-bottom: 0; }
}

/* =====================================================================
 * 17. Notices WooCommerce (blanc sur #dbac75 chez Storefront, 2,1:1)
 * ===================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	margin: 0 0 24px;
	padding: 14px 16px !important;
	background: var(--cj-panneau) !important;
	color: var(--cj-ivoire) !important;
	border: 1px solid var(--cj-filet);
	border-left: 3px solid var(--cj-or);
	border-radius: 0;
	font: 400 var(--cj-t-petit)/1.5 var(--cj-sans);
}
.woocommerce-error { border-left-color: var(--cj-rouge-cuir); }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-noreviews::before { content: none !important; }
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button) { color: var(--cj-or) !important; text-decoration: underline; }
.woocommerce-message .button,
.woocommerce-info .button { min-height: 44px; margin: 8px 0 0; float: none; }
@media (min-width: 600px) {
	.woocommerce-message .button,
	.woocommerce-info .button { float: right; margin: -6px 0 0 16px; }
}
.woocommerce-cart-form .woocommerce-message .button { float: none; }

/* =====================================================================
 * 18. Pied de page (sur le cuir)
 * ===================================================================== */

/* [Storefront] .site-footer { background-color: #000 } en ligne */
.site-footer {
	margin-top: var(--cj-section);
	padding: 0;
	border-top: 1px solid var(--cj-filet);
	color: var(--cj-ivoire-doux);
}
.cj-pied {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	padding: 40px 0 32px;
	border-bottom: 1px solid var(--cj-filet);
	color: var(--cj-ivoire-doux);
	font-size: var(--cj-t-petit);
	line-height: 1.6;
}
.site-footer .cj-pied .cj-pied-titre { margin: 0 0 8px; color: var(--cj-or); font: 400 var(--cj-t-cartel-titre)/1.3 var(--cj-serif); }
.cj-pied p { margin: 0; }
.site-footer .cj-pied a:not(.button) { color: var(--cj-ivoire); text-decoration: underline; }
.site-footer .cj-pied a:not(.button):hover { color: var(--cj-or); }
.cj-pied-reseaux { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.cj-pied-reseaux a { display: inline-block; line-height: 44px; }
/* Ligne légale : les « — » et espaces insécables du pied sont des nœuds de texte ;
   font-size: 0 les efface, les liens et la mention reprennent leur taille. */
.site-footer .site-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 20px;
	padding: 16px 0 32px !important;
	color: var(--cj-ivoire-doux);
	font-size: 0;
	text-align: center;
}
.site-footer .site-info a:not(.button):not(.components-button) { display: inline-block; min-width: 44px; line-height: 44px; font-size: var(--cj-t-mini); color: var(--cj-ivoire-doux); text-decoration: none; }
.site-footer .site-info a:not(.button):not(.components-button):hover { color: var(--cj-or); text-decoration: underline; }
.site-footer .site-info > div[style] { float: none !important; flex: 1 0 100%; margin-top: 8px; font-size: var(--cj-t-mini); }
.site-footer .widget-area { display: none; }
a.icolien { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
@media (min-width: 768px) {
	.cj-pied { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 56px 0 40px; }
}

/* Badge d'aperçu (inc/design.php) : au-dessus de la zone sûre */
.cj-apercu { bottom: max(12px, env(safe-area-inset-bottom)) !important; }

/* =====================================================================
 * 19. Bandeau de cookies (Cookie Notice) : rendu de la DA (R-Q8)
 * ===================================================================== */

#cookie-notice {
	left: 0 !important;
	right: 0 !important;
	width: auto !important; /* [Cookie Notice] right parasite de 113 px à 1280 (audit G3) */
	min-width: 0 !important;
	background: var(--cj-panneau) !important;
	border-top: 1px solid var(--cj-filet);
	box-shadow: none !important;
	font-family: var(--cj-sans) !important;
}
/* Tant que le bandeau est ouvert, la page se termine au-dessus de lui (R-Q8) ;
   --cj-cookie-h est relevée par le script de design.php */
body:has(#cookie-notice.cookie-notice-visible) { padding-bottom: var(--cj-cookie-h, 0px); }
/* Fiches sous 768 px : bandeau en haut, en superposition, filet or en bas (DA n° 1).
   Il couvre le logo et la barre, jamais le bouton d'achat. */
@media (max-width: 767px) {
	body.single-product #cookie-notice { top: 0 !important; bottom: auto !important; border-top: 0; border-bottom: 1px solid var(--cj-filet-fort); }
	body.single-product #cookie-notice .cookie-notice-container { padding-bottom: 10px; padding-top: max(10px, env(safe-area-inset-top)); }
	body.single-product:has(#cookie-notice.cookie-notice-visible) { padding-bottom: 0; }
	/* Pas de phrase coupée du bandeau de Noël sous le bandeau de cookies (audit G5) ;
	   l'information est reprise dans les arguments de la fiche */
	body.single-product:has(#cookie-notice.cookie-notice-visible) .cj-bandeau-boutique { visibility: hidden; }
}
#cookie-notice .cookie-notice-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
	padding: 8px 56px 8px 16px;
	padding-bottom: max(8px, env(safe-area-inset-bottom));
	color: var(--cj-ivoire) !important;
	text-align: left;
}
#cookie-notice #cn-notice-text {
	flex: 1 1 16rem;
	color: var(--cj-ivoire) !important;
	font: 400 var(--cj-t-petit)/1.45 var(--cj-sans) !important;
}
/* Passe 7 (audit R1, responsive B1) : le texte juridique est entier, sans défilement interne, à toutes les tailles */
#cookie-notice .cn-text-container { max-height: none; overflow: visible; }
/* Lien de la politique : lien dans la phrase (passe 7 : sans le rembourrage de 13 px, qui débordait du texte) */
#cookie-notice #cn-notice-text a { padding: 0; color: var(--cj-or) !important; text-decoration: underline; text-underline-offset: .18em; }
#cookie-notice #cn-notice-buttons { flex: 0 0 auto; display: flex; gap: 8px; margin: 0; }
#cookie-notice .cn-button,
#cookie-notice #cn-accept-cookie,
#cookie-notice .cn-button:not(.cn-button-custom) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 20px !important;
	background: transparent !important;
	color: var(--cj-or) !important;
	border: 1px solid var(--cj-or) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font: 400 var(--cj-t-petit)/1.2 var(--cj-sans) !important;
	letter-spacing: .01em !important;
	text-transform: none !important;
}
#cookie-notice .cn-button:hover,
#cookie-notice .cn-button:focus-visible { background: var(--cj-or) !important; color: var(--cj-encre) !important; }
#cookie-notice .cn-close-icon {
	top: 50% !important;
	right: 6px !important;
	width: 44px !important;
	height: 44px !important;
	margin-top: -22px !important;
	opacity: 1 !important;
}
/* Passe 5 (V1) : sur ordinateur, bandeau d'une ligne et sans marge intérieure verticale
   (45 px au lieu de 61) ; texte et bouton regroupés au centre. Le texte n'est pas touché. */
@media (min-width: 1024px) {
	#cookie-notice .cookie-notice-container { flex-wrap: nowrap; padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); } /* passe 7 : le texte, allongé, tient sur 2 ou 3 lignes */
	#cookie-notice #cn-notice-text { flex: 0 1 auto; }
}
#cookie-notice .cn-close-icon::before,
#cookie-notice .cn-close-icon::after {
	content: "" !important;
	position: absolute !important;
	left: 21px !important;
	top: 12px !important;
	width: 2px !important;
	height: 20px !important;
	background-color: var(--cj-ivoire) !important;
}
#cookie-notice .cn-close-icon::before { transform: rotate(45deg) !important; }
html body #cookie-notice .cn-close-icon::after { display: block !important; transform: rotate(-45deg) !important; }
#cookie-notice .cn-close-icon:focus-visible { outline: 2px solid var(--cj-or) !important; outline-offset: -2px; }
/* Passe 7 (audit R1, responsive B1) : mobile et paysage bas. Texte entier sans défilement interne, en 14 px
   interligné 1,4 ; la croix est posée en haut à droite, dans un retrait flottant du texte (les deux premières lignes
   seulement s'écartent) ; « Ok » suit la fin du texte sur la même ligne quand elle a la place. Plafond du
   coordinateur : 40 % de la hauteur à 320 × 568 et en paysage 844 × 390. */
@media (max-width: 767px), (max-height: 500px) {
	#cookie-notice .cookie-notice-container { display: block; position: relative; padding: 8px 12px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
	body.single-product #cookie-notice .cookie-notice-container { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
	#cookie-notice .cn-text-container { display: inline; }
	#cookie-notice #cn-notice-text { font-size: var(--cj-t-mini) !important; line-height: 1.4 !important; }
	#cookie-notice #cn-notice-text::before { content: ""; float: right; width: 40px; height: 36px; margin: -4px -4px 0 6px; }
	#cookie-notice #cn-notice-buttons { display: inline-flex; vertical-align: middle; margin: 2px 0 0 10px; }
	#cookie-notice #cn-accept-cookie { padding: 0 18px !important; }
	#cookie-notice .cn-close-icon { top: 2px !important; right: 2px !important; margin-top: 0 !important; }
}
@media (max-width: 359px) {
	.cj-bandeau-boutique { padding: 6px 0; font-size: var(--cj-t-mini); line-height: 1.4; }
}

/* =====================================================================
 * 20. Icônes sans police (Font Awesome et icônes de Storefront retirées en aperçu)
 * ===================================================================== */

.woocommerce-MyAccount-navigation ul li a::before,
.widget_product_search form::before,
.woocommerce-product-search::before,
.site-search .widget_product_search form::before,
.star-rating::before,
.star-rating span::before,
.woocommerce-tabs ul.tabs li::after,
.storefront-handheld-footer-bar ul li > a::before,
.single-product .stock::after,
.woocommerce-store-notice::before,
.cart .product-remove .remove::before { content: none !important; }
/* Indicateur d'ajout en cours : anneau en CSS au lieu de l'icône */
.button.loading::after {
	content: "" !important;
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	font-family: inherit !important;
	animation: cj-tourne .8s linear infinite;
	position: static !important;
}
@keyframes cj-tourne { to { transform: rotate(360deg); } }

/* =====================================================================
 * 21. Mouvement réduit
 * ===================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	details.cj-faq[open] > summary::after { transform: none; content: "\2212"; }
}

/* Passe 4 (audit G6) : panier vide, 64 px au plus entre « Retour à la boutique » et le pied */
body.woocommerce-cart:has(.cart-empty) .entry-content { padding-bottom: 0; }
body.woocommerce-cart:has(.cart-empty) .site-footer { margin-top: 64px; }

/* =====================================================================
 * 21. Respiration sur mobile (passe 6, point 28 du propriétaire) : 600 px et moins.
 *     Écrit en dernier pour passer après les règles de base. Les tailles de l'échelle ne changent pas.
 * ===================================================================== */
@media (max-width: 600px) {
	/* Cartes : 64 px entre deux cartes ; cartel et feuilles de vélin : marges intérieures + 25 % */
	:root { --cj-oeuvre-ecart: 64px; }
	ul.products li.product { --cj-passe: 20px; }
	.cj-feuille { padding: calc(40px - var(--cj-bord)) calc(22px - var(--cj-bord)) calc(35px - var(--cj-bord)); }
	.cj-notice { padding: calc(35px - var(--cj-bord)) calc(22px - var(--cj-bord)) calc(40px - var(--cj-bord)); }
	.single-post .hentry .entry-content,
	.cj-page-texte .hentry .entry-content { padding: calc(35px - var(--cj-bord)) calc(22px - var(--cj-bord)) calc(50px - var(--cj-bord)); }
	body.blog .site-main,
	:is(body.archive, body.search):not(.woocommerce-page) .site-main { padding: calc(10px - var(--cj-bord) / 2) calc(22px - var(--cj-bord)) calc(40px - var(--cj-bord)); }
	/* Texte courant : interligne de 1,6 au moins */
	.cj-chapo,
	.cj-deux-portes span,
	.cj-plus-loin > p,
	.woocommerce-products-header div.term-description,
	.cj-notice-texte p { line-height: 1.6; }
	/* Titres de section : 48 px au moins au-dessus (la section en donne 64), 24 px au-dessous */
	:is(.section-title, .storefront-product-section .section-title, section.up-sells > h2, section.related > h2, .cj-plus-loin > h2, .cross-sells > h2) { margin-bottom: 24px; }
	/* Passe 7 (décision de la DA) : le compte revient, reformulé (« 47 livres », inc/conversion.php), sur la ligne de
	   « Trier par », aligné à droite, à la même ligne de base : il n'ajoute aucune hauteur. */
	.woocommerce-page .storefront-sorting { position: relative; }
	.woocommerce-page .storefront-sorting .woocommerce-result-count {
		position: absolute;
		top: 0;
		right: 0;
		margin: 0;
		font: 400 var(--cj-t-mini)/calc(var(--cj-t-note) * 1.3) var(--cj-sans);
		font-variant-numeric: tabular-nums;
		white-space: nowrap;
	}
	/* Livres : le plus grand occupe environ 75 % de la largeur à 390 (échelle commune conservée) */
	ul.products li.product > a.woocommerce-loop-product__link { --cj-ref: min(calc(100cqi * 1.16), 440px); }
}

/* =====================================================================
 * 23. Libre Caslon partout (passe 7, point 35, décision du propriétaire)
 *     Les jetons portent l'essentiel (--cj-sans = --cj-serif, plancher de 15 px, 600 → 400). Ici, ce que les
 *     extensions, Storefront et le contenu posent eux-mêmes : menu (Max Mega Menu), bandeau de cookies (Cookie Notice),
 *     fil d'Ariane, messages WooCommerce, champs, tableaux, date de livraison, petits paragraphes des articles.
 * ===================================================================== */
html body,
html body :is(button, input, select, textarea, optgroup, option, label, legend, th, td, caption, small, .button, .woocommerce-breadcrumb, .woocommerce-info, .woocommerce-message, .woocommerce-error, .site-info, .site-footer, .cj-noel, .shipper-date) { font-family: var(--cj-serif); }
#mega-menu-wrap-primary,
#mega-menu-wrap-primary :is(a, span, button, li, .mega-menu-link, .mega-toggle-label, .mega-indicator),
#cookie-notice,
#cookie-notice :is(span, a, button, div, p) { font-family: var(--cj-serif) !important; letter-spacing: 0 !important; text-transform: none !important; }
#mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link { font-size: var(--cj-t-ui) !important; font-weight: 400 !important; }
:is(h1, h2, h3, h4, h5, h6, .entry-title, .alpha, .beta), :is(h1, h2, h3, h4, h5, h6, .entry-title) :is(a, em, i) { font-weight: 400; }
html body :is(th, strong.shipper-date, #cn-accept-cookie, .cj-noel) { font-weight: 400; }
/* « Menu » et non « MENU » : le libellé saisi dans Max Mega Menu est en capitales (réglage inchangé) ; pas de capitales
   de titrage dans la charte. */
html body #mega-menu-wrap-primary .mega-menu-toggle :is(.mega-toggle-label-closed, .mega-toggle-label-open) { text-transform: lowercase !important; }
html body #mega-menu-wrap-primary .mega-menu-toggle :is(.mega-toggle-label-closed, .mega-toggle-label-open)::first-letter { text-transform: uppercase; }
/* Corps posés par l'éditeur (« petit ») : 15 px au moins */
html body .entry-content .has-small-font-size { font-size: var(--cj-t-mini) !important; }
/* Prix, quantités, totaux : chiffres alignés et tabulaires (Caslon Text fournit tnum ; ses chiffres sont alignés) */
:is(.price, .amount, bdi, .woocommerce-Price-amount, .quantity input.qty, .cart-subtotal, .order-total, .product-subtotal, .product-total, .cj-panier-nombre, .cj-compte, .page-numbers) { font-variant-numeric: lining-nums tabular-nums; }
