/* Police d'icones (accordeons, blurbs) chargee meme quand Divi ne la detecte pas */
@font-face{font-family:'FontAwesome';font-style:normal;font-weight:900;font-display:block;src:url('https://ferefen.com/wp-content/themes/Divi/core/admin/fonts/fontawesome/fa-solid-900.woff2') format('woff2'),url('https://ferefen.com/wp-content/themes/Divi/core/admin/fonts/fontawesome/fa-solid-900.woff') format('woff'),url('https://ferefen.com/wp-content/themes/Divi/core/admin/fonts/fontawesome/fa-solid-900.ttf') format('truetype');}
@font-face{font-family:'FontAwesome';font-style:normal;font-weight:400;font-display:block;src:url('https://ferefen.com/wp-content/themes/Divi/core/admin/fonts/fontawesome/fa-regular-400.woff2') format('woff2'),url('https://ferefen.com/wp-content/themes/Divi/core/admin/fonts/fontawesome/fa-regular-400.woff') format('woff'),url('https://ferefen.com/wp-content/themes/Divi/core/admin/fonts/fontawesome/fa-regular-400.ttf') format('truetype');}
/* Ferefen refonte 2026 - Charte Indigo & Safran.
 * Ne s'applique qu'aux pages portant la classe body.ff-refonte (apercu, puis tout le site apres la bascule).
 * Re-mappe les variables --ff-* des feuilles existantes et remplace l'orange de l'ancienne charte. */
body.ff-refonte {
  --ff-btn-bg: #1F2B6E; --ff-btn-bg-hover: #2C3566; --ff-btn-color: #FFFFFF;
  --ff-bleu: #1F2B6E; --ff-bleu-fonce: #18225A; --ff-orange-fonce: #8A5A00;
  --ff-texte: #1F2B6E; --ff-texte-doux: #5B6385; --ff-bordure: #DDE1EF; --ff-fond-doux: #F1F3FA;
}
body.ff-refonte .et_pb_wc_tabs .et_pb_tab_content,
body.ff-refonte .et_pb_wc_description .et_pb_module_inner,
body.ff-refonte .woocommerce-Tabs-panel--description { --ff-titre: #1F2B6E; --ff-corps: #434B6B; }
body.ff-refonte .et_pb_wc_tabs .et_pb_tab_content h2::before,
body.ff-refonte .et_pb_wc_description .et_pb_module_inner h2::before,
body.ff-refonte .woocommerce-Tabs-panel--description h2::before,
body.ff-refonte .et_pb_wc_tabs .et_pb_tab_content ul li::before,
body.ff-refonte .woocommerce-Tabs-panel--description ul li::before,
body.ff-refonte ul.ff-reassure li::before { background: #F2A20C !important; }
body.ff-refonte ul.ff-reassure strong, body.ff-refonte table.ff-specs th { color: #1F2B6E; }
/* Boutons d'achat : angles nets, indigo */
body.ff-refonte form.cart button.single_add_to_cart_button,
body.ff-refonte form.cart button.ff-buynow-btn,
body.ff-refonte .tinv-wishlist .button { border-radius: 4px !important; font-family: 'Figtree', sans-serif; font-weight: 700; }
body.ff-refonte form.cart button.ff-buynow-btn { border-color: #1F2B6E; color: #1F2B6E; }
body.ff-refonte form.cart button.ff-buynow-btn:hover, body.ff-refonte form.cart button.ff-buynow-btn:focus { background: #1F2B6E; color: #FFFFFF; }
body.ff-refonte form.cart .quantity input.qty { border-radius: 4px; border-color: #DDE1EF; }
/* Icones d'en-tete */
body.ff-refonte .ff-hicon { color: #1F2B6E; }
body.ff-refonte .ff-hicon:hover, body.ff-refonte .ff-hicon:focus,
body.ff-refonte .ff-hicons--bar .ff-hicon:hover, body.ff-refonte .ff-hicons--bar .ff-hicon:focus { color: #18225A; }
body.ff-refonte .ff-hicon__badge { background: #F2A20C; color: #1F2B6E; font-weight: 700; }
/* Menu mobile */
body.ff-refonte .ff-sub-toggle:focus-visible { outline-color: #1F2B6E; }
body.ff-refonte .ff-sub-toggle:hover .ff-sub-toggle__icon,
body.ff-refonte .ff-has-sub.ff-open > .ff-sub-toggle .ff-sub-toggle__icon { border-color: #1F2B6E; }
body.ff-refonte .et_mobile_menu { border-top-color: #F2A20C !important; }
/* Favoris */
body.ff-refonte .tinv-wishlist td.product-name a:hover { color: #18225A !important; }
body.ff-refonte .tinv-wishlist td.product-remove button:hover { background: #F1F3FA !important; border-color: #1F2B6E !important; color: #1F2B6E !important; }
body.ff-refonte .tinv-wishlist .social-buttons a.social:hover { background: #18225A !important; }
/* Badges promo WooCommerce */
body.ff-refonte .onsale, body.ff-refonte span.onsale { background: #F2A20C !important; color: #1F2B6E !important; border-radius: 2px !important; font-weight: 700; }
/* Liens et focus */
body.ff-refonte a:focus-visible, body.ff-refonte button:focus-visible, body.ff-refonte input:focus-visible { outline: 2px solid #F2A20C; outline-offset: 2px; }
/* Titres produits en casse normale (le module Customizer for WooCommerce force les majuscules) */
body.ff-refonte .woocommerce ul.products li.product a.woocommerce-loop-product__link { text-transform: none; width: 100%; }
body.ff-refonte .woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: 'Figtree', sans-serif; }

/* Tunnel d'achat (panier, commande, confirmation) */
body.ff-refonte .ff-etapes li.is-active { color: #1F2B6E !important; border-color: #1F2B6E !important; }
body.ff-refonte .ff-etapes li.is-active::before { background: #1F2B6E !important; border-color: #1F2B6E !important; color: #FFFFFF !important; }
body.ff-refonte .ff-tunnel-reassure .ff-tr__ico { color: #1F2B6E !important; background: #F1F3FA !important; }
body.ff-refonte.ff-tunnel .et-l--post td.product-name a:hover, body.ff-refonte.ff-tunnel .et-l--post .product-name a:hover,
body.ff-refonte.ff-tunnel .et-l--post .woocommerce-terms-and-conditions-checkbox-text a:hover { color: #18225A !important; }
body.ff-refonte.ff-tunnel .et-l--post tr.order-total .woocommerce-Price-amount, body.ff-refonte.ff-tunnel .et-l--post tr.order-total th { color: #1F2B6E !important; }
body.ff-refonte.ff-tunnel .et-l--post a.remove:hover { color: #FFFFFF !important; background: #B42318 !important; }
body.ff-refonte.ff-tunnel .et-l--post .required { color: #B42318 !important; }
body.ff-refonte.ff-tunnel .et-l--post .woocommerce-form__label-for-checkbox input[type="checkbox"] { accent-color: #1F2B6E; }
body.ff-refonte.ff-tunnel .et-l--post .button, body.ff-refonte.ff-tunnel .et-l--post button.button, body.ff-refonte.ff-tunnel .et-l--post input.button,
body.ff-refonte.ff-tunnel .et-l--post #place_order, body.ff-refonte.ff-tunnel .et-l--post a.checkout-button { background: #1F2B6E !important; border-color: #1F2B6E !important; color: #FFFFFF !important; border-radius: 4px !important; }
body.ff-refonte.ff-tunnel .et-l--post .button:hover, body.ff-refonte.ff-tunnel .et-l--post button.button:hover, body.ff-refonte.ff-tunnel .et-l--post input.button:hover,
body.ff-refonte.ff-tunnel .et-l--post #place_order:hover, body.ff-refonte.ff-tunnel .et-l--post a.checkout-button:hover { background: #2C3566 !important; border-color: #2C3566 !important; }
body.ff-refonte.ff-tunnel .et-l--post .woocommerce-message, body.ff-refonte.ff-tunnel .et-l--post .woocommerce-info, body.ff-refonte.ff-tunnel .et-l--post .woocommerce-error { border-top-color: #F2A20C !important; }
body.ff-refonte.ff-tunnel .et-l--post .woocommerce-message::before, body.ff-refonte.ff-tunnel .et-l--post .woocommerce-info::before { color: #1F2B6E !important; }
/* Titres produits dans les grilles : taille réduite, casse normale, 3 lignes max */
body.ff-refonte ul.products li.product h2.woocommerce-loop-product__title,
body.ff-refonte ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Figtree', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 0 !important;
  margin-bottom: 6px !important;
}
@media (max-width: 767px) {
  body.ff-refonte ul.products li.product h2.woocommerce-loop-product__title,
  body.ff-refonte ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
}
/* Fiche produit : miniatures de la galerie en colonne à gauche (tablette et ordinateur) */
@media (min-width: 768px) {
  body.ff-refonte #et-boc .et-l .et_pb_wc_images .woocommerce-product-gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  body.ff-refonte #et-boc .et-l .et_pb_wc_images .flex-viewport { grid-column: 2; grid-row: 1; }
  body.ff-refonte #et-boc .et-l .et_pb_wc_images ol.flex-control-thumbs.flex-control-nav { grid-column: 1; grid-row: 1; grid-template-columns: 1fr !important; grid-auto-rows: max-content !important; gap: 10px !important; align-content: space-between !important; height: 0; min-height: 100%; overflow-y: auto; margin: 0 !important; }
}
/* Fiche produit, téléphone : marges intérieures réduites dans les onglets (pas de réglage natif Divi pour ce padding) */
@media (max-width: 767px) {
  body.ff-refonte .et_pb_wc_tabs .et_pb_tab { padding: 20px 16px; }
  body.ff-refonte .et_pb_wc_tabs .et_pb_tabs_controls li a { padding-left: 16px; padding-right: 16px; }
}

/* Fiche produit, téléphone : miniatures plus petites, réparties sur toute la ligne (défilement horizontal si plus de 6) */
@media (max-width: 767px) {
  body.ff-refonte #et-boc .et-l .et_pb_wc_images ol.flex-control-thumbs.flex-control-nav { grid-template-columns: none !important; grid-auto-flow: column !important; grid-auto-columns: 52px !important; gap: 6px !important; justify-content: space-between !important; width: 100% !important; margin-top: 12px !important; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  body.ff-refonte #et-boc .et-l .et_pb_wc_images ol.flex-control-thumbs.flex-control-nav::-webkit-scrollbar { display: none; }
}

/* Cœurs des favoris en orange (extension TI Wishlist, sans réglage Divi) */
body.ff-refonte .tinvwl_add_to_wishlist_button::before, body.ff-refonte .tinvwl_add_to_wishlist_button .ftinvwl, body.ff-refonte .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before { color: #C05600 !important; }
/* Étoiles vides (aucun avis) : contour clair */
body.ff-refonte .ff-rating--vide .star-rating::before { color: #C05600; opacity: .35; }
body.ff-refonte .ff-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.ff-refonte .ff-rating .star-rating { margin: 0 !important; float: none; }

/* Fiche produit : bouton Favoris en pastille (extension TI Wishlist, pas de module Divi) */
body.ff-refonte .et_pb_wc_add_to_cart .tinv-wraper { margin-top: 4px; }
body.ff-refonte .et_pb_wc_add_to_cart .tinvwl_add_to_wishlist_button { display: inline-flex !important; align-items: center; gap: 8px; padding: 9px 16px 9px 14px !important; border-radius: 999px; background: #FFF4EA; border: 1px solid #F3D3B8; color: #C05600 !important; font-family: 'Figtree', sans-serif; font-size: 14px !important; font-weight: 600; line-height: 1.2; text-decoration: none !important; transition: background .2s, border-color .2s; }
body.ff-refonte .et_pb_wc_add_to_cart .tinvwl_add_to_wishlist_button:hover { background: #FFE8D4; border-color: #C05600; }
body.ff-refonte .et_pb_wc_add_to_cart .tinvwl_add_to_wishlist_button::before { margin: 0 !important; font-size: 16px !important; }
body.ff-refonte .et_pb_wc_add_to_cart .tinvwl_add_to_wishlist_button span { color: #C05600 !important; }

/* Avis clients : cartes sans photo, étoiles orange, badge achat vérifié (gabarit WooCommerce, pas de réglage Divi) */
body.ff-refonte #reviews #comments h2 .ff-avis-moyenne { display: block; margin-top: 6px; font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 600; color: #C05600; }
body.ff-refonte #reviews #comments ol.commentlist { padding: 0; margin: 0; }
body.ff-refonte #reviews #comments ol.commentlist li { margin: 0 0 14px !important; }
body.ff-refonte #reviews #comments ol.commentlist li .comment_container { background: #F7F8FC; border-radius: 10px; padding: 16px 18px; }
body.ff-refonte #reviews #comments ol.commentlist li .comment-text { margin: 0 !important; padding: 0 !important; border: 0 !important; display: flex; flex-direction: column; gap: 6px; }
body.ff-refonte #reviews #comments ol.commentlist li .comment-text .star-rating { float: none; order: -1; margin: 0 !important; color: #C05600; }
body.ff-refonte #reviews #comments ol.commentlist li .comment-text p.meta { margin: 0 !important; font-size: 14px; color: #6B7392; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body.ff-refonte #reviews .woocommerce-review__author { color: #1F2B6E; font-weight: 700; font-size: 15px; }
body.ff-refonte #reviews .woocommerce-review__verified { font-style: normal; font-size: 0; }
body.ff-refonte #reviews .woocommerce-review__verified::before { content: 'Achat vérifié'; font-size: 12px; font-weight: 700; color: #1B6B3A; background: #E6F4EA; border-radius: 999px; padding: 3px 9px; }
body.ff-refonte #reviews .woocommerce-review__dash { display: none; }
body.ff-refonte #reviews .woocommerce-review__published-date { font-size: 13px; color: #6B7392; }
body.ff-refonte #reviews .comment-text .description p { margin: 0; }
body.ff-refonte #review_form .comment-reply-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: #1F2B6E; font-size: 20px; }
body.ff-refonte #review_form p.stars a, body.ff-refonte #review_form p.stars a::before { color: #C05600 !important; }
body.ff-refonte #reviews #comments .star-rating span::before { color: #C05600 !important; }
body.ff-refonte #reviews #review_form_wrapper { margin-top: 32px; }

/* Commentaires du blog : nom de l'auteur en indigo (Divi le force en noir) */
body.ff-refonte .et_pb_comments_module .comment_postinfo span.fn{color:var(--gcid-heading-color);font-size:16px}

/* Formulaire d'avis produit : harmonisé avec le formulaire de commentaires (champ clair, bouton safran) */
body.ff-refonte #reviews #review_form textarea, body.ff-refonte #reviews #review_form input[type=text], body.ff-refonte #reviews #review_form input[type=email]{background:var(--gcid-89322ddee11e,#F7F8FC)!important;border:1px solid var(--gcid-926a5ec07c32,#C3C8DC)!important;border-radius:var(--gvid-utyr5v3buw,4px)!important;padding:14px 16px!important;color:var(--gcid-heading-color,#1F2B6E)!important;font-size:16px!important;transition:border-color .2s ease,background-color .2s ease}
body.ff-refonte #reviews #review_form textarea:focus, body.ff-refonte #reviews #review_form input:focus{background:#fff!important;border-color:var(--gcid-primary-color,#1F2B6E)!important;outline:none;box-shadow:0 0 0 3px rgba(31,43,110,.12)}
body.ff-refonte #reviews #review_form .form-submit{margin:18px 0 0;text-align:left}
body.ff-refonte #reviews #review_form .form-submit input#submit{background:var(--gcid-secondary-color,#F2A20C)!important;color:var(--gcid-heading-color,#1F2B6E)!important;font-family:'Figtree',sans-serif!important;font-size:15px!important;font-weight:700!important;line-height:1.2!important;padding:13px 24px!important;border:0!important;border-radius:var(--gvid-utyr5v3buw,4px)!important;cursor:pointer;transition:filter .2s ease}
body.ff-refonte #reviews #review_form .form-submit input#submit:hover{filter:brightness(.94)}
@media (max-width:480px){body.ff-refonte #reviews #review_form .form-submit input#submit{width:100%}}

/* Favoris dans les grilles produits : texte régulier, couleur d'origine (indigo) ; le cœur reste orange */
body.ff-refonte ul.products li.product .tinvwl_add_to_wishlist_button, body.ff-refonte ul.products li.product .tinvwl_add_to_wishlist_button span, body.ff-refonte ul.products li.product .tinvwl_add_to_wishlist-text{font-weight:400!important;color:var(--gcid-heading-color,#1F2B6E)!important}

/* Titres de blurbs cliquables (tuiles de catégories) : le lien prend la couleur du titre réglée dans Divi (indigo) */
body.ff-refonte .et_pb_blurb .et_pb_module_header a{color:inherit!important}
