/* ==========================================================================
   Blackswan 2026 — compléments à la feuille de la maquette (maquette.css, v1-9, reprise telle quelle).

   ÉCARTS À LA MAQUETTE (et leur raison)
   1. <main id="contenu-principal"> enveloppe les sections : repère d'accessibilité (lien d'évitement).
      Les sélecteurs de la maquette (.une + .sec, .shopbar + .tete…) restent valables : les sections
      sont toujours sœurs.
   2. Contenu éditorial venu de l'éditeur WordPress (.prose) : alignements, légendes, tableaux, vidéos.
   3. Champ « Colonne de gauche » (2016) : deux colonnes dans .prose (.colonnes).
   4. Gravity Forms : son CSS reste coupé côté maquette ; ses champs prennent l'allure de
      .formulaire / .champ, son bouton celle de .pilule, le champ anti-spam est caché.
   5. WooCommerce : panier, commande, confirmation et connexion reprennent le balisage de la maquette
      (gabarits woocommerce/), avec les champs et classes dont les scripts de WooCommerce ont besoin ;
      ce que la maquette ne dessine pas (mon compte connecté, choix de variante, CGV) est habillé à son
      allure. « Retirer » est un lien ; la grille .panier-page de la commande est posée sur le formulaire.
   6. Prix sur les cartes produits (.produit-carte__prix) : la maquette n'en montre pas, la boutique
      réelle a des prix différents par produit.
   7. Barre d'administration WordPress : l'en-tête collant descend d'autant.
   8. Carrousel d'accueil : sans le script qui étirait le bloc jusqu'au bas de l'écran (trop d'air
      sur grand écran, retour du 20.11.2026) ; l'image garde son format 937 × 312.
   9. Accueil de la boutique : la liste des produits (la page d'accueil Storefront n'existe plus) ;
      titre « BSF Shop » sans fil d'Ariane, à la même hauteur que les titres des autres pages.
  10. Listes du texte (.prose ul) : numéro en position absolue au lieu d'une grille, pour qu'un lien
      suivi de texte reste sur une ligne (la grille de la maquette mettait chaque mot sur une ligne).
  11. Cartes produits : boutons calés en bas de la carte, à la même hauteur d'une carte à l'autre ;
      « Voir le produit » à la hauteur du bouton panier (44 px).
  12. Page Dons : l'encart QR code remplace la section « Faire un don en ligne » du texte (PayPal retiré).
  13. Liste des produits : 4 par ligne sur grand écran (la maquette en met 3), 3 puis 2 en dessous.
  14. Boutique : photos en couleur (la maquette passe toutes les images en gris), galerie de vignettes
      sous la photo de la fiche produit (retour client du 26.11.2026).
  15. Navigation principale en majuscules et plus grande, comme l'ancien site (retour client du 26.11.2026).
  16. Numéros de téléphone du texte jamais coupés (span.tel).
  17. Fiche produit : la description (absente de la maquette) prend la largeur de l'encart des revenus
      (8 colonnes sur 12) ; la grille de la maquette ne lui donnait qu'une colonne.
   ========================================================================== */

/* 1. Accessibilité ------------------------------------------------------- */
.screen-reader-text{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.skip-link:focus{ position:fixed !important; top:10px; left:10px; z-index:1000; width:auto; height:auto; margin:0; padding:10px 16px; clip-path:none; background:#fff; color:#000; box-shadow:0 2px 8px rgba(0,0,0,.25); }
main{ display:block; }

/* 7. Barre d'administration ---------------------------------------------- */
.admin-bar .entete{ top:var(--wp-admin--admin-bar--height, 0px); }

/* 2. Contenu éditorial ---------------------------------------------------- */
.prose .alignleft{ float:left; margin:.3em 1.4em 1em 0; }
.prose .alignright{ float:right; margin:.3em 0 1em 1.4em; }
.prose .aligncenter{ display:block; margin-inline:auto; }
.prose::after{ content:""; display:table; clear:both; }
.prose .wp-caption{ max-width:100%; }
.prose .wp-caption-text, .prose figcaption, .contenu__image figcaption{ font-size:14px; color:var(--gris); margin-top:.5em; }
.prose table{ width:100%; border-collapse:collapse; margin:0 0 1.4em; font-size:16px; }
.prose th, .prose td{ text-align:left; vertical-align:top; padding:10px 12px 10px 0; border-bottom:1px solid var(--filet-neutre); }
.prose iframe[src*="youtube"], .prose iframe[src*="youtu.be"], .prose iframe[src*="vimeo"]{ display:block; width:100%; height:auto; aspect-ratio:16/9; border:0; margin:1.4em 0; }
.prose blockquote{ margin:1.4em 0; padding-left:20px; border-left:2px solid var(--rouge); }
.prose ol{ padding-left:1.4em; margin:0 0 1.4em; }

/* 3. Deux colonnes -------------------------------------------------------- */
.prose.colonnes{ max-width:none; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--gouttiere) 40px; }
@media (max-width:1000px){ .prose.colonnes{ grid-template-columns:1fr; } }

/* Pages partenaires (2016) : images du contenu en grille de logos. */
.has-logo-grid .prose img{ display:inline-block; width:157px; height:auto; margin:0 30px 30px 0; vertical-align:middle; }
.has-logo-grid .prose br{ display:none; }

/* Portraits sans photo */
.portrait .duo:empty{ display:none; }

/* Recherche */
.recherche{ display:flex; align-items:flex-end; gap:var(--gouttiere); margin-bottom:32px; max-width:62ch; }
.recherche .champ{ flex:1; }

/* 4. Gravity Forms -------------------------------------------------------- */
.gform_wrapper{ margin-top:8px; }
.gform_wrapper .gform_fields{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px var(--gouttiere); margin:0; padding:0; list-style:none; border:0; }
.gform_wrapper .gfield{ display:flex; flex-direction:column; gap:6px; grid-column:1 / -1; margin:0; padding:0; border:0; }
.gform_wrapper .gfield--width-half{ grid-column:auto; }
.gform_wrapper .gfield_label, .gform_wrapper .gfield_label_before_complex, .gform_wrapper legend.gfield_label{ font-family:var(--titre); font-size:10px; font-weight:500; color:var(--rouge-fonce); padding:0; }
.gform_wrapper .gfield_required{ color:var(--rouge); margin-left:2px; }
.gform_wrapper input[type="text"], .gform_wrapper input[type="email"], .gform_wrapper input[type="tel"], .gform_wrapper input[type="number"], .gform_wrapper input[type="url"], .gform_wrapper select{
  width:100%; font:inherit; font-size:16px; color:var(--texte); background:transparent; border:0; border-bottom:1px solid var(--filet); padding:8px 0; border-radius:0;
}
.gform_wrapper textarea{ width:100%; font:inherit; font-size:16px; min-height:140px; resize:vertical; border:1px solid var(--filet); padding:10px; background:transparent; border-radius:0; }
.gform_wrapper input:focus, .gform_wrapper textarea:focus, .gform_wrapper select:focus{ outline:none; border-color:var(--rouge); }
.gform_wrapper .ginput_complex{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px var(--gouttiere); }
.gform_wrapper .ginput_complex label, .gform_wrapper .gfield_description{ font-size:12px; color:var(--gris); }
.gform_wrapper .gform_footer{ margin-top:24px; }
.gform_wrapper .gform_button, .gform_wrapper input[type="submit"]{
  display:inline-flex; align-items:center; min-height:40px; padding:8px 20px; border:0; border-radius:var(--rayon);
  background:var(--rouge-fonce); color:#fff; font-family:var(--titre); font-weight:700; font-size:16px; cursor:pointer;
}
.gform_wrapper .gform_button:hover, .gform_wrapper input[type="submit"]:hover{ background:var(--rouge); }
.gform_wrapper .gform_validation_container, .gform_wrapper .gfield--type-honeypot{ display:none !important; }
.gform_wrapper .validation_message, .gform_wrapper .gform_validation_errors{ color:var(--rouge-fonce); font-size:14px; }
.gform_confirmation_message{ padding:26px; background:#E6E8EB; font-size:17px; }
@media (max-width:520px){ .gform_wrapper .gform_fields, .gform_wrapper .ginput_complex{ grid-template-columns:1fr; } .gform_wrapper .gfield--width-half{ grid-column:1 / -1; } }

/* 5–6. WooCommerce ---------------------------------------------------------- */
.produit-carte__prix{ margin:6px 0 0; font-size:16px; font-weight:700; color:var(--rouge-fonce); font-variant-numeric:tabular-nums; }
.produit-carte__prix del{ color:var(--gris); font-weight:400; margin-right:6px; }
.ajout-panier.added{ color:var(--rouge); }
.produit-carte .added_to_cart{ font-size:14px; color:#000; }
.produit__prix del{ color:var(--gris); font-weight:400; font-size:18px; margin-right:8px; }
.produit__prix ins{ text-decoration:none; }
.produit__visuel .produit-carte__vide{ aspect-ratio:4 / 5; }

/* Formulaire d'ajout au panier (fiche) */
.ajout-fiche form.cart{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin:0; }
.ajout-fiche .single_add_to_cart_button, .woo-page .button, .woo-page button[type="submit"]:not(.pilule):not(.screen-reader-text), .woocommerce-notices-wrapper .button{
  display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 20px; border:0; border-radius:var(--rayon);
  background:var(--rouge-fonce); color:#fff; font-family:var(--titre); font-weight:700; font-size:16px; text-decoration:none; cursor:pointer;
}
.ajout-fiche .single_add_to_cart_button:hover, .woo-page .button:hover, .woo-page button[type="submit"]:not(.pilule):not(.screen-reader-text):hover{ background:var(--rouge); color:#fff; }
.ajout-fiche .single_add_to_cart_button.disabled, .ajout-fiche .single_add_to_cart_button:disabled{ opacity:.35; cursor:not-allowed; }
.ajout-fiche table.variations{ width:100%; margin:0 0 8px; border-collapse:collapse; }
.ajout-fiche table.variations th, .ajout-fiche table.variations td{ display:block; text-align:left; padding:0; }
.ajout-fiche table.variations label{ font-family:var(--titre); font-size:10px; font-weight:500; color:var(--rouge-fonce); }
.ajout-fiche table.variations select{ width:100%; font:inherit; font-size:16px; background:transparent; border:0; border-bottom:1px solid var(--filet); padding:8px 0; margin-bottom:14px; border-radius:0; }
.ajout-fiche .reset_variations{ font-size:14px; color:#000; }
.ajout-fiche .single_variation_wrap{ width:100%; }
.ajout-fiche .woocommerce-variation-price{ margin-bottom:12px; font-weight:700; color:var(--rouge-fonce); }
.ajout-fiche .woocommerce-variation-add-to-cart{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.ajout-fiche .stock{ width:100%; margin:0; font-size:14px; color:var(--gris); }

/* Quantité : allure .quantite de la maquette (boutons posés par site.js) */
.quantity.quantite input.qty{ width:44px; height:40px; padding:0; border:0; background:none; font:inherit; font-size:17px; font-weight:700; text-align:center; font-variant-numeric:tabular-nums; -moz-appearance:textfield; appearance:textfield; }
.quantity.quantite input.qty::-webkit-outer-spin-button, .quantity.quantite input.qty::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.quantity:not(.quantite) input.qty{ width:70px; height:40px; border:1px solid #000; text-align:center; font:inherit; }

/* Messages */
.woocommerce-notices-wrapper:empty{ display:none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error{ list-style:none; margin:0 0 24px; padding:16px 20px; background:#E6E8EB; font-size:16px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.woocommerce-error{ box-shadow:inset 3px 0 0 var(--rouge); }
.woocommerce-message .button, .woocommerce-info .button{ order:2; }

/* Panier, commande, confirmation, connexion : balisage de la maquette (gabarits woocommerce/cart,
   checkout, myaccount). Compléments seulement pour ce que WooCommerce ajoute à ce balisage. */
a.panier-ligne__retirer{ display:inline-block; }
.panier-ligne .quantity.quantite{ justify-self:start; }
.panier-ligne__prix .amount, .panier-ligne__total .amount{ white-space:nowrap; }
.panier-recap .blockUI.blockOverlay, .woocommerce-checkout-review-order-table .blockUI.blockOverlay{ background:#E6E8EB !important; }

/* Commande : la grille de la maquette (.panier-page) est le formulaire lui-même */
.commande .form-row{ margin:0; }
.formulaire .form-row-wide, .formulaire .notes, .formulaire .champ--large{ grid-column:1 / -1; }
.champ .woocommerce-input-wrapper{ display:flex; flex-direction:column; }
.champ input, .champ select, .champ textarea{ width:100%; box-sizing:border-box; }
.champ label .required{ color:inherit; text-decoration:none; border:0; }
.champ label .optional{ color:inherit; }
.commande__form .select2-container{ width:100% !important; }
.commande__form .select2-container .select2-selection--single{ height:auto; padding:8px 4px; background:#EEF0F2; border:0; border-bottom:1px solid #000; border-radius:0; }
.commande__form .select2-container .select2-selection__arrow{ top:50%; translate:0 -50%; }
.commande__form .woocommerce-invalid input, .commande__form .woocommerce-invalid select{ border-bottom-color:var(--rouge); }
.commande__form .checkout-inline-error-message{ margin:4px 0 0; font-size:14px; color:var(--rouge-fonce); }
#ship-to-different-address{ margin:0; }
.commande__autre{ margin-bottom:0; }
.woocommerce-additional-fields .formulaire{ margin:24px 0 40px; }
.wc_payment_methods{ list-style:none; margin:0; padding:0; }
.wc_payment_methods .choix img{ max-height:22px; width:auto; margin-left:6px; vertical-align:middle; }
.wc_payment_methods .payment_box{ margin:-8px 0 8px; padding:14px 16px; border:1px solid #000; border-top:0; font-size:15px; }
.wc_payment_methods .payment_box p{ margin:0 0 8px; }
.place-order{ margin:0; }
.place-order .woocommerce-form__label-for-checkbox{ display:flex; align-items:center; gap:10px; margin:20px 0; font-size:16px; cursor:pointer; }
.place-order .woocommerce-form__label-for-checkbox input{ width:18px; height:18px; margin:0; accent-color:var(--rouge); flex:none; }
.place-order .woocommerce-form__label-for-checkbox a{ color:#000; }
.place-order .woocommerce-privacy-policy-text{ font-size:14px; color:var(--gris); }
.place-order .woocommerce-terms-and-conditions{ max-height:240px; overflow:auto; padding:16px; border:1px solid #000; font-size:14px; }
.commande__article .variation{ display:block; margin:2px 0 0; font-size:14px; color:var(--gris); }
.commande__article .variation dt, .commande__article .variation dd{ display:inline; margin:0; }
.commande__merci h2, .commande__merci h3{ margin:24px 0 12px; font-size:20px; }
.commande__merci ul.wc-bacs-bank-details{ margin:0 0 20px; padding:0; list-style:none; font-size:16px; }

/* Connexion : un second formulaire (création de compte) sous le premier */
.connexion + .connexion{ margin-top:32px; }
.connexion .champ input{ width:100%; box-sizing:border-box; }

/* Mon compte connecté (la maquette ne le dessine pas) : onglets et tableaux de commandes */
.woo-page--compte .woocommerce-MyAccount-navigation ul{ list-style:none; margin:0 0 32px; padding:0; border-top:1px solid var(--filet-neutre); display:flex; flex-wrap:wrap; gap:0 24px; }
.woo-page--compte .woocommerce-MyAccount-navigation li a{ display:block; padding:10px 0; color:#000; text-decoration:none; font-weight:500; }
.woo-page--compte .woocommerce-MyAccount-navigation li.is-active a{ color:var(--rouge); font-weight:700; }
.woo-page table.shop_table{ width:100%; border-collapse:collapse; border-top:1px solid #000; font-size:16px; }
.woo-page table.shop_table th{ text-align:left; font-weight:700; padding:12px 8px 12px 0; border-bottom:1px solid #000; }
.woo-page table.shop_table td{ padding:14px 8px 14px 0; border-bottom:1px solid #000; vertical-align:middle; }
.woo-page .woocommerce-address-fields__field-wrapper, .woo-page .woocommerce-EditAccountForm{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px var(--gouttiere); margin-bottom:32px; }
.woo-page .woocommerce-EditAccountForm > *:not(.champ):not(.form-row-first):not(.form-row-last){ grid-column:1 / -1; }

@media (max-width:520px){
  .woo-page .woocommerce-address-fields__field-wrapper, .woo-page .woocommerce-EditAccountForm{ grid-template-columns:1fr; }
  .formulaire .form-row-first, .formulaire .form-row-last{ grid-column:1 / -1; }
}

/* 9. Accueil de la boutique : la barre panier/compte ne repousse pas le titre */
.shopbar--seule{ margin-bottom:-72px; pointer-events:none; background:transparent; }
.shopbar--seule .shopbar__outils{ pointer-events:auto; }
.shopbar--seule + .tete{ padding-top:48px; }
@media (max-width:520px){ .shopbar--seule{ margin-bottom:-66px; } }

/* 10. Listes du texte : le numéro à gauche, le contenu de l'élément d'un seul tenant */
.prose ul li{ display:block; position:relative; padding-left:56px; }
.prose ul li::before{ position:absolute; left:0; top:12px; }

/* 11. Cartes produits : boutons alignés */
.produit-carte__actions{ margin-top:auto; padding-top:16px; }
.produit-carte__actions .pilule{ min-height:44px; box-sizing:border-box; display:inline-flex; align-items:center; }

/* 13. Liste des produits : 4 par ligne */
.produits:not(.produits--defile){ grid-template-columns:repeat(4, minmax(0,1fr)); }
@media (max-width:1240px){ .produits:not(.produits--defile){ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:1000px){ .produits:not(.produits--defile){ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:520px){ .produits:not(.produits--defile){ grid-template-columns:1fr; } }

/* 14. Boutique : photos en couleur, galerie de la fiche produit */
.bsf-boutique .cadre img{ filter:none; }
.produit__galerie{ display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 0; padding:0; list-style:none; }
.produit__vignette{ display:block; width:72px; height:72px; padding:0; border:1px solid transparent; background:#E6E8EB; cursor:pointer; overflow:hidden; }
.produit__vignette img{ display:block; width:100%; height:100%; object-fit:cover; }
.produit__vignette.est-active, .produit__vignette:hover{ border-color:#000; }
.produit__vignette:focus-visible{ outline:2px solid var(--rouge); outline-offset:2px; }

/* 15. Navigation principale en majuscules */
.entete__nav a{ text-transform:uppercase; font-size:18px; letter-spacing:.01em; }
@media (max-width:1240px) and (min-width:1001px){ .entete__nav a{ font-size:15px; } .entete__nav{ gap:14px; } }
.entete.ouvert .entete__nav a{ text-transform:uppercase; }

/* 16. Téléphones */
.tel{ white-space:nowrap; }

/* 17. Fiche produit : description à la largeur de l'encart des revenus */
.shop__bas > .encart{ grid-column:1 / span 8; margin:0 0 32px; }
.shop__bas > #revenus{ margin:0; }
@media (max-width:1000px){ .shop__bas > .encart{ grid-column:1 / -1; } }

/* Écart à la maquette (01.12.2026) : photos produits en portrait (4:5) au lieu de 3:2 (fiche) et 4:3 (cartes),
   une seule photo par produit. Recadrage centré (object-fit:cover de la maquette). */
.produit__visuel{ aspect-ratio:4 / 5; }
.produit-carte__visuel{ aspect-ratio:4 / 5; }
