/* =====================================================================================================
   MOBILE (mission PRIO 1 mobile, 27/10/2026) - ajustements CSS uniquement, en attendant la refonte 2027.
   Chargé seulement sous 782 px (functions.php, media="(max-width: 781px)"), en dernière feuille de la page :
   il passe après les feuilles du thème enfant, du parent et de WooCommerce (smallscreen comprise).
   Sur ordinateur, rien ne change. Constats et mesures : docs/prio1/mobile/00-audit.md.
   Les sélecteurs sont parfois doublés (.products.products) pour passer devant les règles !important
   des autres feuilles sans en ajouter de nouvelles partout.
   ===================================================================================================== */


/* ---------- LOT 1 : GRILLES - 2 couvertures par ligne (collections, catalogue, accueil, « vous aimerez aussi ») ---------- */

body ul.products.products {display:grid !important; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:24px 16px; margin:0 0 32px !important; padding:0 !important;}
body ul.products.products::before, body ul.products.products::after {display:none !important;} /* clearfix WooCommerce : sinon 2 cases vides dans la grille */
body ul.products.products li.product.product {width:auto !important; max-width:none !important; height:auto !important; max-height:none !important; margin:0 !important; padding:0 !important; float:none !important; transform:none !important;}
body ul.products.products li.product.product img {width:100% !important; max-width:100% !important; height:auto !important; max-height:none !important; margin:0 auto !important;}


/* ---------- LOT 2 : LISIBILITÉ - texte courant à 16 px, titres plus compacts, une seule police ---------- */

p, .archive p, .single-product .entry-content p {font-size:1.6rem !important; line-height:1.5 !important;}
.single-product .woocommerce-product-details__short-description p {font-size:1.5rem !important; line-height:1.6 !important;}
h1, .archive h1 {font-size:3.2rem !important; line-height:1.15 !important; margin:16px auto 24px !important;}
h2 {font-size:2.4rem !important;}
.single-product .entry-title {font-size:2.6rem !important;}
.single-product .related.products h2 {font-size:2.4rem !important; margin:32px 0 16px !important;}
.toggle-inner .toggle-text {font-size:1.2rem !important;}
.woocommerce-message, .woocommerce-info, .woocommerce-error {font-size:1.4rem !important;}
/* Police système (-apple-system, Inter) héritée de WooCommerce / Twenty Twenty : panier, libellés, onglets, fil d'Ariane */
.woocommerce table.shop_table, .woocommerce table.shop_table td, .woocommerce table.shop_table th, .woocommerce table.shop_table td::before,
.woocommerce form .form-row label, .woocommerce-message, .woocommerce-tabs ul.tabs li, .woocommerce-breadcrumb, #payment li label,
.woocommerce-terms-and-conditions-wrapper, .cart_totals, .donation, .woocommerce-info, .lpc-gift label, .lpc-gift label *,
.woocommerce-shipping-methods label, #shipping_method label {font-family:'Euclyde', sans-serif !important;}
.woocommerce table.shop_table td::before {font-weight:500;}


/* ---------- LOT 3 : MARGES - échelle 8 / 16 / 24 / 32 px, moins de vide sous l'en-tête et autour des titres ---------- */

.header-inner {padding:16px 0 12px !important;}
header.entry-header, .singular .entry-header, .woocommerce-cart #site-content .entry-header {padding:8px 0 0 !important;}
.archive-header {padding:16px 0 0 !important;}
.woocommerce-breadcrumb {margin-bottom:16px !important;}
.woocommerce-message, .woocommerce-info {margin-bottom:16px !important;}
.woocommerce-cart #site-content .woocommerce, form.checkout.woocommerce-checkout {margin:16px auto 32px !important;}
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {margin-bottom:32px !important;}
.cart_totals h2, .donation h3 {margin:24px 0 16px !important;}
.woocommerce-checkout #payment .place-order {margin-bottom:32px !important;}
.woocommerce-terms-and-conditions-wrapper {margin-bottom:16px !important;}
.single-product .summary {margin-bottom:16px !important;}
.single-product .entry-title {margin:16px 0 4px !important;}
#site-footer {padding:32px 0 !important;}


/* ---------- LOT 4 : EN-TÊTE ET MENU - zones de 44 px, espacées ---------- */

/* « Mon panier » et « Mon Compte » : côte à côte (au lieu de deux lignes de 15 px collées), 44 px de haut, 12 px d'écart */
.header-titles .mobile {display:flex !important; justify-content:center; gap:12px; margin:4px 0 0 !important; white-space:nowrap;}
.header-titles .mobile br {display:none;}
.header-titles .mobile a {display:inline-flex; align-items:center; min-height:44px; padding:0 6px; font-size:1.3rem;}
/* Menu ouvert : lignes de 56 px partout (panier et « nous contacter » faisaient 70 à 90 px) */
.modal-menu > li > a, .modal-menu > li > .ancestor-wrapper > a {padding-top:18px !important; padding-bottom:18px !important; line-height:20px !important;}
.modal-menu > li, .modal-menu > li > .ancestor-wrapper {margin:0 !important; min-height:0 !important;}
.modal-menu > li#wpmenucartli, .modal-menu > li.menu-item-108 {position:static !important; top:auto !important; margin:0 !important;}


/* ---------- LOT 5 : FICHE LIVRE - bouton d'achat visible, rubriques et liens faciles à toucher ---------- */

/* Couverture limitée en hauteur pour remonter titre, prix et bouton vers le premier écran */
.single-product div.product div.images.images {width:100% !important; margin:0 auto 8px !important;}
.single-product .woocommerce-product-gallery__image.woocommerce-product-gallery__image {max-width:none !important; max-height:none !important; text-align:center;}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {max-height:280px !important; width:auto !important; max-width:100% !important; margin:0 auto !important;}
/* Galerie à plusieurs images : place réservée dès le départ pour que titre, prix et bouton ne sautent pas au chargement
   (avant le démarrage du diaporama, les images s'empilent ; les vignettes n'arrivent qu'après). Vignettes de taille
   fixe (64 px, sur une seule ligne qui défile au-delà de 4) : couverture 280 + marge 27 + vignettes 78 = 385 px de haut,
   hauteur fixe (une hauteur minimale ne suffit pas : les images se ré-empilent un instant au démarrage du diaporama).
   Seule la première image est montrée avant le démarrage. */
.woocommerce-product-gallery .flex-control-thumbs {display:flex !important; flex-wrap:nowrap; overflow-x:auto;}
.woocommerce-product-gallery .flex-control-thumbs li {flex:0 0 64px; width:64px !important; height:64px; margin:7px 7px 7px 0 !important;}
.woocommerce-product-gallery .flex-control-thumbs li img {width:64px; height:64px; object-fit:cover;}
.woocommerce-product-gallery:has(.woocommerce-product-gallery__image + .woocommerce-product-gallery__image) {height:385px; overflow:hidden;}
.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image ~ .woocommerce-product-gallery__image {display:none !important;}
/* Image de zoom au survol (invisible, mais product.css la place sous la couverture : 280 px de vide sur les fiches
   à une seule image). Le survol n'existe pas au doigt ; l'agrandissement plein écran par la loupe reste disponible. */
.woocommerce-product-gallery .woocommerce-product-gallery__image .zoomImg {display:none !important;}
/* Loupe : zone de 44 px (bord transparent) autour du rond visible de 36 px */
.woocommerce-product-gallery .woocommerce-product-gallery__trigger {border:4px solid transparent !important; background-clip:padding-box !important;}
/* Auteur·ices : liens de 32 px avec un écart */
.single-product .summary p.auteur {line-height:1.2 !important;}
.single-product .summary p.auteur a {display:inline-block; padding:6px 0; margin-bottom:4px;}
/* Ajouter au panier : quantité étroite à gauche, bouton jaune plein sur le reste de la largeur, 48 px */
.single-product form.cart:not(.variations_form), .single-product .woocommerce-variation-add-to-cart {display:flex !important; align-items:stretch; gap:12px; width:100%;}
.single-product form.cart .quantity {margin:0 !important; flex:0 0 auto;}
.single-product table.variations select {min-height:46px; font-size:1.6rem !important;}
/* Carte cadeau (PRIO 2) : champs du destinataire comme les autres champs du site (46 px, 16 px) */
.single-product form.cart input[name^="pw_gift_card_"], .single-product form.cart textarea[name^="pw_gift_card_"] {min-height:46px; height:auto !important; font-size:1.6rem !important; padding:8px 12px !important;}
.single-product form.cart .quantity input.qty {width:56px !important; height:48px !important; padding:0 4px !important; font-size:1.6rem !important; text-align:center;}
.single-product form.cart .single_add_to_cart_button.button {flex:1 1 auto; min-height:48px; margin:0 !important; padding:8px 16px !important; font-size:1.5rem !important; background:#ffe000 !important; border-color:#ffe000 !important; color:#000 !important;}
/* Rubriques (le livre, l'auteur·ice…) : tout le cadre est cliquable, 48 px, rubrique active en jaune plein */
.single-product .woocommerce-tabs ul.tabs {margin:16px 0 !important; padding:0 !important;}
.single-product .woocommerce-tabs ul.tabs li {margin:0 0 8px !important; padding:0 !important; border:1px solid #222 !important; border-radius:0;}
.single-product .woocommerce-tabs ul.tabs li a {display:flex !important; align-items:center; justify-content:center; min-height:46px; padding:8px 12px !important; font-size:1.5rem !important;}
.single-product .woocommerce-tabs ul.tabs li.active {background:#ffe000 !important; border-color:#ffe000 !important;}
.single-product .woocommerce-tabs ul.tabs li.active a {box-shadow:none !important;}
/* Partage : zones de 44 px, icônes de 24 px */
.lpc-share ul {gap:4px;}
.lpc-share__link {display:inline-flex !important; align-items:center; justify-content:center; width:44px; height:44px;}
.lpc-share__link svg {width:24px; height:24px;}
/* Fil d'Ariane : liens sur une hauteur de ligne de 32 px */
.woocommerce-breadcrumb {line-height:32px !important; font-size:1.4rem !important;}
.woocommerce-breadcrumb a {display:inline-block;}


/* ---------- LOT 6 : PANIER ET COMMANDE - zones tactiles, boutons principaux en jaune ---------- */

/* Page panier : le bouton « voir le panier » du message d'ajout est inutile (on y est déjà) */
.woocommerce-cart .woocommerce-message .button.wc-forward {display:none !important;}
/* Croix de suppression : zone de 44 px */
.woocommerce table.shop_table td.product-remove a.remove {display:inline-flex !important; align-items:center; justify-content:center; width:44px !important; height:44px !important; font-size:28px !important; line-height:1 !important;}
.woocommerce table.shop_table td.product-remove {padding-top:0 !important; padding-bottom:0 !important;}
/* Pourboire : bouton de 44 px, écarté du champ */
.wdgk_donation_content .wdgk_add_donation {min-height:44px; margin-top:8px !important; padding:8px 16px !important; font-size:1.4rem !important;}
/* Valider la commande (panier) et Commander : jaune plein, 48 px */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {display:flex !important; align-items:center; justify-content:center; min-height:48px; width:100% !important; padding:8px 16px !important; font-size:1.5rem !important; background:#ffe000 !important; border-color:#ffe000 !important; color:#000 !important;}
.woocommerce-checkout #place_order {min-height:48px; font-size:1.5rem !important;}
/* Champs : 46 px de haut (38 avant) */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select {min-height:46px;}
.woocommerce form .form-row .select2-container .select2-selection--single {height:46px !important;}
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered {line-height:44px !important; padding-top:0 !important; padding-bottom:0 !important;}
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__arrow {height:44px !important;}
/* Cases à cocher de 24 px (15 avant), coche dessinée en fond pour rester centrée quelle que soit la taille */
.woocommerce form .form-row input[type="checkbox"], .lpc-gift input[type="checkbox"] {width:24px !important; min-width:24px !important; height:24px !important; vertical-align:middle !important; top:0 !important;}
.woocommerce form .form-row input[type="checkbox"]:checked::before, .lpc-gift input[type="checkbox"]:checked::before {content:'' !important; position:absolute; inset:0; width:auto !important; height:auto !important; margin:0 !important; background:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23000000%27%2F%3E%3C%2Fsvg%3E") center / 22px no-repeat;}
/* Libellés des cases : 44 px de haut au moins, interligne normal (les CGV tenaient sur deux blocs de 32 px).
   La case est placée dans la marge gauche du libellé : le texte et ses liens (CGV) restent sur une même ligne. */
.woocommerce form .form-row label.checkbox, .woocommerce form .form-row label.woocommerce-form__label-for-checkbox, .lpc-gift label.checkbox {display:block !important; position:relative; min-height:44px; padding:11px 0 9px 36px !important; line-height:1.5 !important; margin:0 !important;}
.woocommerce form .form-row label.checkbox input[type="checkbox"], .woocommerce form .form-row label.woocommerce-form__label-for-checkbox input[type="checkbox"], .lpc-gift label.checkbox input[type="checkbox"] {position:absolute !important; left:0; top:10px !important; margin:0 !important;}
/* Encadré cadeau : 12 px entre la case et le message */
.lpc-gift #lpc_gift_message_field {margin-top:12px !important;}


/* ---------- PIED DE PAGE - liens et bouton « remonter » de 44 px ---------- */

footer ul.menu li {margin:0 16px !important;}
footer ul.menu a {display:inline-block; padding:12px 0;}
footer .to-the-top {display:inline-flex !important; align-items:center; justify-content:center; width:44px !important; height:44px !important;}
