﻿/*
Theme Name: Hello Elementor Child
Description: Thème enfant de Hello Elementor pour Des Fruits Des Fleurs
Author: Des Fruits Des Fleurs
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ==========================================================================

   SOMMAIRE
   0  Variables + nom latin (titre, cards, fil d'Ariane)
   1  Champs de formulaire (apparence commune)
   2  Boutons (cards + panier)
   3  Filtres HUSKY : grille, titres
   4  Barre de recherche
   4b Filtres repliables (bouton "Filtrer les plantes")
   5  Listes déroulantes HUSKY (Chosen)
   6  Tri des produits
   7  Grille produits + cards
   8  Fil d'Ariane
   9  Fiche produit : image, titre, prix, méta, choix du godet
   10 Onglets + 10b tableaux zebra (attributs produit et page Tarifs)
   11 Onglet Description : liste à pictos + calendrier
   11b Panier du menu (en-tête)
   11c Panier, paiement, compte, confirmation (shortcodes)
   11d Date de retrait : champ + calendrier (Order Delivery Date)
   11e Lien "Nos tarifs" sous le prix (fiche produit)
   11f Accessibilité (liens soulignés, contraste du formulaire Brevo)
   12 Responsive
   ========================================================================== */

/* ===== 0. VARIABLES ===== */
:root {
    --dfdf-ocre: #a84a24;
    --dfdf-ocre-hover: #963f1f;
    --dfdf-beige: #f9f5f0;
    --dfdf-text: #333;
    --dfdf-text-2: #666;
    --dfdf-border: #e8e8e8;
    --dfdf-radius: 12px;
    --dfdf-green: #6b8f4e;   /* calendrier : plantation */
    --dfdf-gold: #c8932f;    /* calendrier : floraison */
    --dfdf-error: #b3261e;   /* champs en erreur */
    --dfdf-gap-filtres: 20px; /* espace autour du bouton "Filtrer les plantes" */

    /* Icônes (SVG intégrés) */
    --dfdf-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a84a24' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    --dfdf-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
}

/* ===== 0b. NOM LATIN : même style partout, taille selon l'endroit ===== */
.dfdf-nom-latin {
    font-style: normal;
    font-weight: 400;
    color: var(--dfdf-text-2);
}

.single-product .product_title .dfdf-nom-latin {
    display: block;
    margin-top: 6px;
    font-size: 0.65em;
    line-height: 1.3;
}

.woocommerce-loop-product__title .dfdf-nom-latin {
    display: block;
    margin-top: 2px;
    font-size: 0.8em;
    line-height: 1.3;
}

.woocommerce .woocommerce-breadcrumb .dfdf-nom-latin {
    margin-left: 6px;
    color: #999;
}

/* ===== 1. CHAMPS DE FORMULAIRE : apparence commune ===== */
.woof_text_search_container input[type="text"],
.woof_text_search_container input[type="search"],
.woof_redraw_zone select,
.woof_redraw_zone .chosen-container-multi .chosen-choices,
.woocommerce-ordering select,
.single-product .variations select,
.single-product .quantity .qty,
body.dfdf-commande .woocommerce form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], textarea, select) {
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    font-family: inherit;
    font-size: 14px;
    color: var(--dfdf-text);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

/* Survol / focus */
:is(
    .woof_text_search_container input[type="text"],
    .woof_text_search_container input[type="search"],
    .woof_redraw_zone select,
    .woof_redraw_zone .chosen-container-multi .chosen-choices,
    .woocommerce-ordering select,
    .single-product .variations select,
    .single-product .quantity .qty,
    body.dfdf-commande .woocommerce form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], textarea, select)
):is(:hover, :focus),
.woof_redraw_zone .chosen-container-active .chosen-choices {
    border-color: var(--dfdf-ocre);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(168, 74, 36, 0.1);
}

/* Aspect "menu déroulant" des <select> : flèche ocre + curseur main */
.woof_redraw_zone select,
.woocommerce-ordering select,
.single-product .variations select,
body.dfdf-commande .woocommerce form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: var(--dfdf-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.woof_redraw_zone select,
.woocommerce-ordering select,
.single-product .variations select,
body.dfdf-commande .woocommerce form select {
    width: 100%;
    padding: 10px 36px 10px 12px;
}

/* ===== 2. BOUTONS : style partagé (cards "Détails" + "Ajouter au panier") ===== */
.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .single_add_to_cart_button,
body.dfdf-commande .woocommerce :is(a.button, button.button, input.button),
body.single-product .woocommerce-notices-wrapper a.button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--dfdf-ocre);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus,
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:focus,
body.dfdf-commande .woocommerce :is(a.button, button.button, input.button):is(:hover, :focus),
body.single-product .woocommerce-notices-wrapper a.button:is(:hover, :focus) {
    background: var(--dfdf-ocre-hover);
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    margin: 0;
    padding: 12px 28px;
    font-size: 14px;
}

.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button.wc-variation-selection-needed {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ===== 3. FILTRES HUSKY : grille + titres ===== */
.woof_redraw_zone {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 24px;
    align-items: start;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--dfdf-border);
}

.woof_container {
    margin-bottom: 16px;
}

.woof_container_product_cat {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

/* Titres des attributs (HUSKY les génère en <h4>) */
.woof_redraw_zone h4 {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #000 !important;
}

/* Masqués : tri HUSKY, autohide, filtre de prix */
.woof_redraw_zone .woof-orderby,
.woof_autohide_wrapper,
.woof_price3_search_container {
    display: none !important;
}

/* ===== 4. BARRE DE RECHERCHE : loupe à gauche, sans croix ni cercle de chargement ===== */
.woof_text_search_container {
    position: relative;
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.woof_text_search_container form {
    margin: 0;
    padding: 0;
}

.woof_text_search_container input[type="text"],
.woof_text_search_container input[type="search"] {
    width: 100%;
    padding: 14px 18px 14px 48px;      /* place pour la loupe à gauche */
    border-radius: 50px;
    font-size: 15px;
}

.woof_text_search_container input::placeholder {
    color: #999;
    font-size: 14px;
}

.woof_text_search_container input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

/* Loupe HUSKY (a.woof_text_search_go) */
.woof_text_search_container .woof_text_search_go {
    position: absolute !important;
    top: 50% !important;
    left: 16px !important;
    right: auto !important;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: translateY(-50%) !important;
    font-size: 0 !important;
    background: var(--dfdf-text-2) !important;   /* couleur de l'icône */
    -webkit-mask: var(--dfdf-icon-search) center / 18px no-repeat;
    mask: var(--dfdf-icon-search) center / 18px no-repeat;
    cursor: pointer;
    transition: background 0.2s;
}

.woof_text_search_container .woof_text_search_go:hover {
    background: var(--dfdf-ocre) !important;
}

/* Masqués : croix HUSKY + cercle de chargement (le champ et la loupe gardent leur fonctionnement) */
.woof_text_search_container .woof_husky_txt-cross,
.woof_text_search_container .woof_container_overlay_item,
.woof_text_search_container [class*="load"],
.woof_text_search_container [class*="spin"] {
    display: none !important;
}

.woof_text_search_container input,
.woof_text_search_container .woof_husky_txt {
    background-image: none !important;
}

/* Résultats proposés sous la barre pendant la saisie */
.woof_husky_txt-container {
    margin-top: 8px;
    border: 1px solid var(--dfdf-border);
    border-radius: var(--dfdf-radius);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.woof_husky_txt-container,
.woof_husky_txt-container * {
    font-family: inherit !important;   /* police du site au lieu d'Arial */
}

.woof_husky_txt-container a {
    color: var(--dfdf-ocre) !important;
    text-decoration: none;
}

.woof_husky_txt-container a:hover {
    text-decoration: underline;
}

.woof_husky_txt-option {
    padding: 10px 12px;
    gap: 12px;
    transition: background 0.2s;
}

.woof_husky_txt-option:hover {
    background: var(--dfdf-beige);
}

/* ===== 4b. FILTRES REPLIABLES : recherche toujours visible, filtres dépliables ===== */
/* .dfdf-filtres entoure les filtres (functions.php) ; le bouton est ajouté sous la recherche par le JS.
   Replié = tout est caché sauf la barre de recherche et le bouton. */
.dfdf-filtres-toggle {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: var(--dfdf-gap-filtres) 0 0;   /* espace au-dessus (sous la recherche) ; celui du dessous : voir plus bas */
    padding: 10px 18px;
    border: 1px solid var(--dfdf-ocre);
    border-radius: 6px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--dfdf-ocre);
    cursor: pointer;
    transition: background 0.2s;
}

.dfdf-filtres-toggle:hover,
.dfdf-filtres-toggle:focus-visible {
    background: var(--dfdf-beige);
}

/* chevron : vers le bas = replié, vers le haut = déplié */
.dfdf-filtres-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.dfdf-filtres.is-open .dfdf-filtres-toggle::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.dfdf-filtres:not(.is-open) .woof_redraw_zone > :not(.woof_text_search_container, .dfdf-filtres-toggle):not(:has(.woof_text_search_container)) {
    display: none !important;   /* HUSKY impose parfois un display en ligne */
}

/* Espaces : on neutralise les marges de HUSKY sous la recherche pour que seul le bouton décide
   (même espace au-dessus et au-dessous du bouton) */
.dfdf-filtres .woof_text_search_container,
.dfdf-filtres .woof_redraw_zone > :has(.woof_text_search_container) {
    margin-bottom: 0;
}

.dfdf-filtres.is-open .dfdf-filtres-toggle {
    margin-bottom: var(--dfdf-gap-filtres);
}

/* ===== 5. LISTES DÉROULANTES HUSKY (plugin Chosen) ===== */
.woof_redraw_zone .chosen-container {
    width: 100% !important;
}

/* Flèche : sur le conteneur, par-dessus le champ, donc curseur main garanti */
.woof_redraw_zone .chosen-container-multi::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 36px;
    background: var(--dfdf-chevron) center / 12px no-repeat;
    cursor: pointer;
    transition: transform 0.2s;
}

.woof_redraw_zone .chosen-container-multi.chosen-with-drop::after {
    transform: rotate(180deg);
}

.woof_redraw_zone .chosen-container-multi .chosen-choices {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 6px 36px 6px 10px;
}

.woof_redraw_zone .chosen-container-multi .chosen-choices li.search-field {
    flex: 1;
    min-width: 80px;
    margin: 0;
    padding: 0;
}

.woof_redraw_zone .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    width: 100% !important;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 14px;
    color: #999;
}

/* Valeurs choisies : puces ocre */
.woof_redraw_zone .chosen-container-multi .chosen-choices li.search-choice {
    position: relative;
    margin: 0;
    padding: 4px 26px 4px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--dfdf-ocre);
    box-shadow: none;
    font-size: 13px;
    line-height: 1.3;
    color: #fff;
}

.woof_redraw_zone .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    top: 50%;
    right: 8px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    background: none;
}

.woof_redraw_zone .chosen-container-multi .chosen-choices li.search-choice .search-choice-close::before {
    content: "×";
    display: block;
    font-size: 16px;
    line-height: 14px;
    text-align: center;
    color: #fff;
}

/* Liste des choix */
.woof_redraw_zone .chosen-container .chosen-drop {
    margin-top: 4px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.woof_redraw_zone .chosen-container .chosen-results {
    max-height: 240px;
    margin: 0;
    padding: 4px;
}

.woof_redraw_zone .chosen-container .chosen-results li {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #444;
}

.woof_redraw_zone .chosen-container .chosen-results li.highlighted {
    background: var(--dfdf-beige);
    color: var(--dfdf-ocre);
}

.woof_redraw_zone .chosen-container .chosen-results li.disabled-result {
    color: #bbb;
    cursor: default;
}

/* ===== 6. TRI DES PRODUITS ===== */
.woocommerce-ordering select {
    width: auto;
    min-width: 220px;
}

/* ===== 7. GRILLE PRODUITS + CARDS ===== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    margin: 0 0 60px 0 !important;
    padding: 0;
    list-style: none;
}

/* Neutralise les pseudo-éléments de WooCommerce qui occupaient la 1re case de la grille */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    position: relative;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    background: #fff;
    border-radius: var(--dfdf-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product a img {
    display: block;
    width: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: var(--dfdf-radius) var(--dfdf-radius) 0 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0 !important;
    padding: 14px 16px 6px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--dfdf-text) !important;
}

.woocommerce ul.products li.product .price {
    padding: 0 16px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dfdf-ocre);
}

.dfdf-from {
    margin-right: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dfdf-text-2);
}

/* Survol : voile noir léger sur toute la photo + bouton "Détails" centré dessus */
.dfdf-card-media {
    position: relative;
    margin-bottom: 1em;   /* remplace la marge que WooCommerce mettait sous l'image */
}

.dfdf-card-media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: var(--dfdf-radius) var(--dfdf-radius) 0 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.woocommerce ul.products li.product:hover .dfdf-card-media::after {
    opacity: 1;
}

.woocommerce ul.products li.product .dfdf-details {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, background 0.2s, box-shadow 0.2s;
}

.woocommerce ul.products li.product:hover .dfdf-details,
.woocommerce ul.products li.product:focus-within .dfdf-details {
    opacity: 1;
    visibility: visible;
}

/* Écrans tactiles (pas de survol) : bouton toujours visible en bas de la photo, sans voile */
@media (hover: none) {
    .dfdf-card-media::after {
        display: none;
    }
    .woocommerce ul.products li.product .dfdf-details {
        top: auto;
        bottom: 14px;
        transform: translateX(-50%);
        opacity: 1;
        visibility: visible;
    }
}

/* ===== 8. FIL D'ARIANE (WooCommerce ET Rank Math) ===== */
.woocommerce .woocommerce-breadcrumb,
.rank-math-breadcrumb {
    margin: 30px 0 20px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;          /* dernier élément (texte simple) = noir et gras */
    color: var(--dfdf-text);
}

.rank-math-breadcrumb p {
    margin: 0;
    font: inherit;
}

.woocommerce .woocommerce-breadcrumb a,
.rank-math-breadcrumb a {
    font-weight: 400;
    color: #999;
    text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover,
.rank-math-breadcrumb a:hover {
    color: var(--dfdf-ocre);
}

.dfdf-sep,
.rank-math-breadcrumb .separator {
    margin: 0 8px;
    font-weight: 400;
    color: #ccc;
}

.rank-math-breadcrumb .last {
    font-weight: 700;
    color: var(--dfdf-text);
}

/* ===== 9. FICHE PRODUIT ===== */
/* Image */
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .flex-viewport {
    border-radius: var(--dfdf-radius);
    overflow: hidden;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image > a > img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--dfdf-radius);
}

.woocommerce div.product div.images .flex-viewport {
    height: 400px !important;   /* galerie à plusieurs images */
}

/* Titre, prix, description courte */
.single-product .product_title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.2;
    color: var(--dfdf-text);
}

.woocommerce div.product .summary .price,
.woocommerce div.product .woocommerce-variation-price .price {
    font-size: 22px;
    font-weight: 700;
    color: var(--dfdf-ocre);
}

/* Espaces autour du prix : à régler ici (haut / bas) */
.woocommerce div.product .summary > .price {
    margin: 0 0 16px;
}

.woocommerce div.product .woocommerce-variation-price {
    margin: 10px 0 14px;
}

.woocommerce div.product .woocommerce-variation-price .price {
    display: block;
    margin: 0;
}

.woocommerce div.product .summary .price ins {
    background: none;
    text-decoration: none;
}

/* Taille choisie : on masque "À partir de" (le prix exact s'affiche seul) */
.woocommerce div.product .summary.dfdf-variation-selected > .price {
    display: none;
}

.single-product .woocommerce-product-details__short-description {
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Catégories / étiquettes */
.single-product .product_meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--dfdf-border);
    font-size: 13px;
    color: var(--dfdf-text-2);
}

.single-product .product_meta > span {
    display: block;
    margin-bottom: 6px;
}

/* Liens de la fiche produit : ocre au lieu du rose du thème */
.single-product .product_meta a,
.single-product .woocommerce-tabs a,
.single-product .woocommerce-product-details__short-description a {
    color: var(--dfdf-ocre);
    text-decoration: none;
}

.single-product .product_meta a:hover,
.single-product .woocommerce-tabs a:hover {
    text-decoration: underline;
}

/* Choix du godet + quantité + bouton */
.woocommerce div.product form.cart {
    margin: 0 0 24px;
}

.woocommerce div.product form.cart .variations {
    width: 100%;
    margin: 0 0 4px;
    border: 0;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.woocommerce div.product form.cart .variations th {
    padding-bottom: 8px;
}

.woocommerce div.product form.cart .variations label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

.single-product .quantity .qty {
    width: 70px;
    padding: 10px 8px;
    text-align: center;
}

.single-product .reset_variations {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--dfdf-text-2);
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

/* ===== 10. ONGLETS + TABLEAU "INFORMATIONS COMPLÉMENTAIRES" ===== */
.woocommerce div.product .woocommerce-tabs {
    clear: both;
    margin-top: 40px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    border-bottom: 1px solid var(--dfdf-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--dfdf-text-2);
    text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    border-bottom-color: var(--dfdf-ocre);
    color: var(--dfdf-ocre);
    text-decoration: none;
}

/* Titre dans l'onglet (pour le masquer : display: none) */
.woocommerce div.product .woocommerce-Tabs-panel > h2:first-of-type {
    margin: 0 0 32px;
    font-size: 26px;
}



/* ===== 10b. TABLEAUX ZEBRA : attributs produit (fiche) + page Tarifs (.dfdf-table) ===== */
/* Cadre : fiche produit */
body.single-product.woocommerce table.shop_attributes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--dfdf-border);
    border-radius: var(--dfdf-radius);
    overflow: hidden;
    font-size: 15px;
}

/* Cadre : page Tarifs (le conteneur arrondi défile sur mobile) */
.dfdf-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--dfdf-border);
    border-radius: var(--dfdf-radius);
    -webkit-overflow-scrolling: touch;
}

.dfdf-table {
    width: 100%;
    min-width: 640px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
}

/* Cellules et zebra (communs aux deux tableaux) */
body.single-product.woocommerce table.shop_attributes tbody tr > *,
.dfdf-table tbody tr > * {
    padding: 14px 20px;
    border: 0;
    border-bottom: 1px solid var(--dfdf-border);
    background: #fff;
    line-height: 1.5;
    text-align: left;
    vertical-align: middle;
}

.dfdf-table tbody tr:nth-child(odd) > * {
    background: #fff;   /* bat le gris des lignes impaires du thème */
}

body.single-product.woocommerce table.shop_attributes tbody tr:nth-child(even) > *,
.dfdf-table tbody tr:nth-child(even) > * {
    background: var(--dfdf-beige);
}

body.single-product.woocommerce table.shop_attributes tbody tr:last-child > *,
.dfdf-table tbody tr:last-child > * {
    border-bottom: 0;
}

body.single-product.woocommerce table.shop_attributes th,
.dfdf-table tbody th {
    font-weight: 700;
    color: var(--dfdf-text);
}

/* Fiche produit seulement */
body.single-product.woocommerce table.shop_attributes th {
    width: 30%;
}

body.single-product.woocommerce table.shop_attributes td p {
    margin: 0;
    font-style: normal;
}

/* Page Tarifs seulement */
.dfdf-table thead tr > th {
    padding: 14px 16px;
    border: 0;
    background: var(--dfdf-ocre);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    vertical-align: middle;
}

.dfdf-table tbody td {
    padding: 14px 16px;
    text-align: center;
    white-space: nowrap;
}

.dfdf-table td:empty::before {
    content: "–";   /* case vide = tiret gris */
    color: #ccc;
}

/* Colonne "Godet" figée quand le tableau défile (mobile) */
.dfdf-table thead tr > th:first-child,
.dfdf-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    padding-left: 20px;
    text-align: left;
    white-space: nowrap;
}

.dfdf-table tbody th {
    box-shadow: 1px 0 0 var(--dfdf-border);
}

/* ===== 10c. TARIFS SUR MOBILE : chaque ligne du tableau devient une carte ===== */
/* À coller juste APRÈS le bloc 10b (après la règle ".dfdf-table tbody th { box-shadow … }"),
   avant "/* ===== 11. ONGLET DESCRIPTION".
   Chaque case de prix porte un data-label (nom de la colonne) dans le HTML ; les cases vides sont masquées. */
@media (max-width: 768px) {
    .dfdf-table-wrap {
        overflow: visible;
        padding: 0 16px;
        border: 0;
        border-radius: 0;
    }

    .dfdf-table,
    .dfdf-table tbody {
        display: block;
        min-width: 0;
    }

    .dfdf-table thead {
        display: none;   /* les noms de colonnes sont repris par les data-label */
    }

    /* La carte */
    .dfdf-table tbody tr {
        display: block;
        margin: 0 0 16px;
        overflow: hidden;
        border: 1px solid var(--dfdf-border);
        border-radius: var(--dfdf-radius);
        background: #fff;
    }

    .dfdf-table tbody tr:last-child {
        margin-bottom: 0;
    }

    /* :is(odd, even) = une ligne quelconque ; sert à passer devant les lignes alternées du tableau */
    /* Titre de la carte : "Godet 13 cm" */
    .dfdf-table tbody tr:is(:nth-child(odd), :nth-child(even)) > th {
        position: static;
        display: block;
        padding: 12px 16px;
        border: 0;
        background: var(--dfdf-beige);
        box-shadow: none;
        font-size: 16px;
    }

    /* Une ligne par prix : "Vivaces ........ 7 €" */
    .dfdf-table tbody tr:is(:nth-child(odd), :nth-child(even)) > td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 16px;
        border: 0;
        border-top: 1px solid var(--dfdf-border);
        background: #fff;
        font-weight: 700;
        text-align: right;
        white-space: normal;
        color: var(--dfdf-ocre);
    }

    .dfdf-table tbody td::before {
        content: attr(data-label);
        font-weight: 400;
        text-align: left;
        color: var(--dfdf-text-2);
    }

    /* Pas de prix = pas de ligne */
    .dfdf-table tbody tr:is(:nth-child(odd), :nth-child(even)) > td:empty {
        display: none;
    }
}

/* ===== 11. ONGLET DESCRIPTION : liste à pictos + calendrier ===== */
.dfdf-attributes {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* mettre 1fr pour une seule colonne */
    gap: 14px 32px;
    margin: 0 0 40px;
    padding: 20px 24px;
    list-style: none;
    background: var(--dfdf-beige);
    border-radius: var(--dfdf-radius);
}

.dfdf-attributes li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--dfdf-text-2);
}

.dfdf-picto-emoji {
    flex: 0 0 32px;
    width: 32px;
    font-size: 22px;
    line-height: 1;
    text-align: center;
}

.dfdf-picto-img {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.dfdf-attr-label {
    font-weight: 700;
    color: var(--dfdf-text);
}

/* ===== Besoin en eau : une goutte par point, les gouttes vides en gris ===== */

.dfdf-picto-vide {
    flex: 0 0 32px;   /* même largeur que les pictos : le libellé reste aligné avec les autres lignes */
    width: 32px;
}

.dfdf-gouttes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.dfdf-goutte {
    display: inline-flex;
}

/* Taille des gouttes : à régler ici (24 px) */
.dfdf-goutte :is(.dfdf-picto-img, .dfdf-picto-emoji) {
    flex: none;
    width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 1;
}

.dfdf-goutte.is-vide {
    opacity: 0.25;
    filter: grayscale(1);
}

.dfdf-cal {
    display: grid;
    gap: 24px;
    margin: 0 0 40px;
}

.dfdf-cal-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 8px;
}

.dfdf-cal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dfdf-text);
}

.dfdf-cal-summary {
    font-size: 14px;
    color: var(--dfdf-text-2);
}

.dfdf-cal-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
}

.dfdf-cal-cell {
    text-align: center;
}

.dfdf-cal-bar {
    display: block;
    height: 10px;
    border-radius: 3px;
    background: #efece6;
}

.dfdf-cal-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #999;
}

.dfdf-cal-cell.is-on .dfdf-cal-bar {
    background: var(--cal-color);
}

.dfdf-cal-cell.is-on .dfdf-cal-label {
    font-weight: 700;
    color: var(--dfdf-text);
}

.dfdf-cal-plantation { --cal-color: var(--dfdf-green); }
.dfdf-cal-floraison  { --cal-color: var(--dfdf-gold); }
.dfdf-cal-recolte    { --cal-color: var(--dfdf-ocre); }

.dfdf-cal-label .short {
    display: none;
}

/* ===== 11b. PANIER DU MENU (plugin WP Menu Cart) : ocre ===== */
#wpmenucartli a.wpmenucart-contents,
#wpmenucartli a.wpmenucart-contents i,
#wpmenucartli a.wpmenucart-contents .amount {
    color: var(--dfdf-ocre);
}

#wpmenucartli a.wpmenucart-contents:hover,
#wpmenucartli a.wpmenucart-contents:hover i,
#wpmenucartli a.wpmenucart-contents:hover .amount {
    color: var(--dfdf-ocre-hover);
}

/* ===== 11c. PANIER, PAIEMENT, COMPTE (pages en shortcodes WooCommerce) ===== */
/* Ces 3 types de pages reçoivent la classe .dfdf-commande sur <body> (functions.php).
   Champs, boutons et select : voir sections 1 et 2 (apparence commune). */

/* Messages WooCommerce (pages commande + message "ajouté au panier" des fiches produit) */
:is(.dfdf-commande, .single-product) :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
    margin: 0 0 24px;
    padding: 14px 18px;
    border: 0;
    border-left: 4px solid var(--dfdf-ocre);
    border-radius: 8px;
    background: var(--dfdf-beige);
    font-size: 14px;
    line-height: 1.6;
    list-style: none;
    color: var(--dfdf-text);
}

:is(.dfdf-commande, .single-product) :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before,
:is(.dfdf-commande, .single-product) :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::after {
    display: none;   /* icône et clearfix d'origine */
}

/* Message avec bouton ("Voir le panier") : texte à gauche, bouton à droite */
:is(.dfdf-commande, .single-product) :is(.woocommerce-info, .woocommerce-message):has(> a.button) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

body.single-product .woocommerce-notices-wrapper a.button {
    float: none;
    margin: 0;
}

:is(.dfdf-commande, .single-product) .woocommerce-error {
    border-left-color: var(--dfdf-error);
    background: #fdf2f1;
}

/* Titres de section */
.dfdf-commande :is(
    .cart_totals h2,
    #order_review_heading,
    .woocommerce-billing-fields > h3,
    .woocommerce-order-details__title,
    .woocommerce-column__title,
    .u-columns h2,
    .woocommerce-MyAccount-content h2,
    .woocommerce-MyAccount-content h3
) {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.3;
    color: var(--dfdf-text);
}

.dfdf-commande .woocommerce-additional-fields > h3 {
    display: none;   /* le champ "Note de commande" a déjà son libellé */
}

/* Liens : ocre au lieu du rose du thème (:where = priorité minimale) */
.dfdf-commande .woocommerce :where(a:not(.button)) {
    color: var(--dfdf-ocre);
    text-decoration: none;
}

.dfdf-commande .woocommerce :where(a:not(.button)):hover {
    text-decoration: underline;
}

/* Formulaires : libellés, cases, erreurs */
.dfdf-commande .woocommerce form .form-row {
    float: none;
    width: auto;
    margin: 0 0 16px;
    padding: 0;
}

.dfdf-commande .woocommerce form .form-row label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dfdf-text);
}

.dfdf-commande .woocommerce form .form-row label.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.dfdf-commande .woocommerce :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--dfdf-ocre);
}

.dfdf-commande .woocommerce form .form-row .required {
    color: var(--dfdf-ocre);
    text-decoration: none;
}

.dfdf-commande .woocommerce form .form-row label.checkbox .optional {
    display: none;
}

.dfdf-commande .woocommerce form .form-row .optional {
    font-weight: 400;
    color: #999;
}

body.dfdf-commande .woocommerce form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select) {
    width: 100%;
    padding: 12px 14px;
}

.dfdf-commande .woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select, textarea) {
    border-color: var(--dfdf-error);
}

/* Réservation : aucun prix dans le panier, le paiement, la confirmation (le prix est établi au retrait) */
.dfdf-commande :is(
    th.product-price, td.product-price,
    th.product-subtotal, td.product-subtotal,
    th.product-total, td.product-total,
    .cart_totals table.shop_table,
    #order_review tfoot,
    .woocommerce-table--order-details tfoot
) {
    display: none;
}

/* Tableaux (panier, récapitulatif, commandes) */
.dfdf-commande .woocommerce table.shop_table {
    width: 100%;
    border: 1px solid var(--dfdf-border);
    border-radius: var(--dfdf-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
    font-size: 15px;
}

.dfdf-commande .woocommerce table.shop_table :is(th, td) {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--dfdf-border);
    background: none;
    text-align: left;
    vertical-align: middle;
}

.dfdf-commande .woocommerce table.shop_table > :last-child > tr:last-child > * {
    border-bottom: 0;
}

.dfdf-commande .woocommerce table.shop_table thead th {
    background: var(--dfdf-beige);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #000;
}

.dfdf-commande .woocommerce table.shop_table :is(.product-total, .product-subtotal, tfoot td, .cart_totals td) {
    text-align: right;
}

.dfdf-commande .woocommerce table.shop_table .order-total :is(th, td) {
    font-size: 18px;
    font-weight: 700;
}

.dfdf-commande .woocommerce table.shop_table .order-total .amount {
    color: var(--dfdf-ocre);
}

/* Cartes : totaux du panier + récapitulatif de commande */
.dfdf-commande :is(.cart_totals, #order_review) {
    padding: 24px;
    border: 1px solid var(--dfdf-border);
    border-radius: var(--dfdf-radius);
    background: #fff;
}

.dfdf-commande :is(.cart_totals, #order_review) .shop_table {
    border: 0;
    border-radius: 0;
}

/* Cartes : connexion, inscription, code promo */
.dfdf-commande .woocommerce :is(form.woocommerce-form-login, form.woocommerce-form-register, form.checkout_coupon) {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--dfdf-border);
    border-radius: var(--dfdf-radius);
}

/* ----- Panier ----- */
.dfdf-commande.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 0 40px;
    align-items: start;
}

.dfdf-commande.woocommerce-cart .woocommerce > * {
    grid-column: 1 / -1;
}

.dfdf-commande.woocommerce-cart .woocommerce > .woocommerce-cart-form {
    grid-column: 1;
}

.dfdf-commande.woocommerce-cart .woocommerce > .cart-collaterals {
    grid-column: 2;
}

.dfdf-commande .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
}

.dfdf-commande table.cart td.product-thumbnail img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
}

.dfdf-commande table.cart td.product-name a {
    font-weight: 600;
    color: var(--dfdf-text);
}

.dfdf-commande .woocommerce dl.variation {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--dfdf-text-2);
}

.dfdf-commande .woocommerce dl.variation :is(dt, dd) {
    display: inline;
    margin: 0;
    padding: 0;
    font-weight: 400;
}

.dfdf-commande .woocommerce dl.variation dd p {
    display: inline;
    margin: 0;
}

.dfdf-commande table.cart .quantity .qty {
    width: 72px;
    padding: 8px;
    text-align: center;
}

/* WooCommerce force la couleur de la croix avec !important */
.dfdf-commande .woocommerce a.remove {
    color: var(--dfdf-text-2) !important;
}

.dfdf-commande .woocommerce a.remove:hover {
    background: none;
    color: var(--dfdf-ocre) !important;
}

.dfdf-commande table.cart td.actions {
    padding: 16px;   /* ne jamais mettre display:flex sur une cellule de tableau */
}

.dfdf-commande table.cart td.actions .coupon {
    display: flex;
    gap: 8px;
    float: left;
}

.dfdf-commande table.cart td.actions .coupon #coupon_code {
    width: 200px;
}

/* Bouton secondaire : "Mettre à jour le panier" */
body.dfdf-commande .woocommerce button.button[name="update_cart"] {
    float: right;
    border: 1px solid var(--dfdf-ocre);
    background: #fff;
    color: var(--dfdf-ocre);
    box-shadow: none;
}

body.dfdf-commande .woocommerce button.button[name="update_cart"]:hover:not(:disabled) {
    background: var(--dfdf-beige);
    color: var(--dfdf-ocre-hover);
}

body.dfdf-commande .woocommerce button.button[name="update_cart"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.dfdf-commande .woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 20px;
    font-size: 15px;
}

.dfdf-cart-info {
    margin: 12px 0 16px;   /* panier : sous le bouton ; paiement : au-dessus du bouton */
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: var(--dfdf-text-2);
}

/* ----- Paiement ----- */
.dfdf-commande:is(.woocommerce-cart, .woocommerce-checkout) .page-content {
    margin: 20px 0;   /* panier + paiement + confirmation */
}

.dfdf-commande form.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 0 40px;
    align-items: start;
}

.dfdf-commande form.woocommerce-checkout > * {
    grid-column: 1 / -1;
}

.dfdf-commande form.woocommerce-checkout > #customer_details {
    grid-column: 1;
    grid-row: span 2;
}

.dfdf-commande form.woocommerce-checkout > :is(#order_review_heading, #order_review) {
    grid-column: 2;
}

.dfdf-commande .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.dfdf-commande .woocommerce form .form-row-wide {
    grid-column: 1 / -1;
}

.dfdf-commande #payment {
    background: none;
    border-radius: 0;
}

.dfdf-commande #payment ul.payment_methods {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    list-style: none;
}

.dfdf-commande #payment ul.payment_methods > li {
    margin: 0 0 8px;
    padding: 0;
}

.dfdf-commande #payment ul.payment_methods label {
    font-weight: 600;
    cursor: pointer;
}

/* Un seul moyen de paiement : la pastille de choix est inutile */
.dfdf-commande #payment ul.payment_methods > li:only-child > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dfdf-commande #payment div.payment_box {
    margin: 8px 0 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--dfdf-beige);
    font-size: 14px;
    line-height: 1.6;
    color: var(--dfdf-text);
}

.dfdf-commande #payment div.payment_box::before {
    display: none;
}

.dfdf-commande #payment .place-order {
    margin: 0;
    padding: 0;
}

.dfdf-commande .woocommerce-terms-and-conditions-wrapper {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--dfdf-text-2);
}

.dfdf-commande .woocommerce-privacy-policy-text p {
    margin: 0 0 12px;
}

body.dfdf-commande #place_order {
    float: none;
    box-sizing: border-box;
    width: 100%;
    line-height: 1.3;
    white-space: normal;
    padding: 14px 20px;
    font-size: 15px;
}

/* Bouton bloqué tant que les conditions générales ne sont pas cochées (le clic est neutralisé par le JS) */
body.dfdf-commande #place_order.dfdf-bloque,
body.dfdf-commande #place_order.dfdf-bloque:is(:hover, :focus) {
    background: var(--dfdf-text-2);
    box-shadow: none;
    cursor: not-allowed;
}

.dfdf-aide-cgv {
    display: none;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: var(--dfdf-text-2);
}

#place_order.dfdf-bloque + .dfdf-aide-cgv {
    display: block;
}

/* ----- Confirmation de commande ----- */
.dfdf-commande .woocommerce-thankyou-order-received {
    margin: 0 0 24px;
    padding: 16px 20px;
    border-left: 4px solid var(--dfdf-ocre);
    border-radius: 8px;
    background: var(--dfdf-beige);
    font-weight: 600;
}

.dfdf-commande ul.woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.dfdf-commande ul.woocommerce-order-overview li {
    flex: 1 1 auto;
    min-width: 150px;
    overflow-wrap: anywhere;   /* un e-mail très long passe à la ligne au lieu de déborder */
    float: none;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--dfdf-beige);
    font-size: 13px;
    text-transform: none;
    color: var(--dfdf-text-2);
}

.dfdf-commande ul.woocommerce-order-overview li strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: var(--dfdf-text);
}

/* Les 2 lignes "date" et "créneau" ajoutées par Order Delivery Date sous le tableau : déjà dans l'encadré beige */
.dfdf-commande .woocommerce-table--order-details + p,
.dfdf-commande .woocommerce-table--order-details + p + p {
    display: none;
}

/* Plus de total (réservation sans prix) : on cache la carte "Total" du bandeau */
.dfdf-commande .woocommerce-order-overview__total {
    display: none;
}

.dfdf-commande .woocommerce-customer-details address {
    padding: 14px 16px;
    border: 1px solid var(--dfdf-border);
    border-radius: 8px;
    font-style: normal;
    line-height: 1.6;
}

/* ----- Mon compte ----- */
.dfdf-commande.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0 40px;
    align-items: start;
}

.dfdf-commande .woocommerce > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

.dfdf-commande :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .u-columns > *) {
    float: none;
    width: auto;
}

.dfdf-commande .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dfdf-commande .woocommerce .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--dfdf-text-2);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dfdf-commande .woocommerce .woocommerce-MyAccount-navigation li.is-active a,
.dfdf-commande .woocommerce .woocommerce-MyAccount-navigation li a:hover {
    background: var(--dfdf-beige);
    color: var(--dfdf-ocre);
    text-decoration: none;
}

.dfdf-commande .u-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Connexion / inscription : 2 cartes de même hauteur */
.dfdf-commande .u-columns > * {
    display: flex;
    flex-direction: column;
}

.dfdf-commande .u-columns form {
    flex: 1;
    margin: 0;
}

/* WooCommerce ajoute des éléments vides (clearfix) qui décaleraient les cases des grilles */
.dfdf-commande :is(.woocommerce, .u-columns, form.woocommerce-checkout, .woocommerce-billing-fields__field-wrapper, ul.woocommerce-order-overview)::before,
.dfdf-commande :is(.woocommerce, .u-columns, form.woocommerce-checkout, .woocommerce-billing-fields__field-wrapper, ul.woocommerce-order-overview)::after {
    display: none;
}

/* Paiement : coordonnées et note de commande l'une sous l'autre (pas côte à côte) */
.dfdf-commande #customer_details :is(.col-1, .col-2) {
    float: none;
    width: 100%;
}

/* ===== 11d. DATE DE RETRAIT : CHAMP + CALENDRIER (Order Delivery Date / jQuery UI) ===== */
/* Le calendrier est ajouté par le plugin à la fin de <body> : on le repère avec #ui-datepicker-div.
   Les !important ne servent qu'à passer devant les couleurs imposées par le thème du plugin. */

.dfdf-commande #e_deliverydate {
    cursor: pointer;
}

.dfdf-commande #e_deliverydate:focus {
    border-color: var(--dfdf-ocre);
    box-shadow: 0 0 0 3px rgba(168, 74, 36, 0.1);
    outline: none;
}

.dfdf-commande .orddd_lite_field_note {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--dfdf-text-2);
}

/* Menu du créneau : c'est un Select2 (pas un <select> classique) */
.dfdf-commande .select2-container {
    width: 100% !important;   /* le plugin impose une largeur en pixels */
}

body.dfdf-commande .select2-container--default .select2-selection--single {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: auto;
    min-height: 44px;
    padding: 10px 36px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa var(--dfdf-chevron) no-repeat right 14px center;
    font-size: 14px;
    color: var(--dfdf-text);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

body.dfdf-commande .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 1.4;
    color: inherit;
}

body.dfdf-commande .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;   /* flèche ocre dessinée en fond, comme les autres menus */
}

body.dfdf-commande .select2-container--default:is(.select2-container--focus, .select2-container--open) .select2-selection--single,
body.dfdf-commande .select2-container--default .select2-selection--single:hover {
    border-color: var(--dfdf-ocre);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(168, 74, 36, 0.1);
}

/* Liste déroulante (ajoutée en bas de <body> par Select2) */
body.dfdf-commande .select2-dropdown {
    overflow: hidden;
    border: 1px solid var(--dfdf-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 14px;
}

body.dfdf-commande .select2-results__option {
    padding: 10px 12px;
}

body.dfdf-commande .select2-container--default .select2-results__option--highlighted {
    background: var(--dfdf-beige);
    color: var(--dfdf-ocre);
}

body.dfdf-commande .select2-container--default .select2-results__option--selected,
body.dfdf-commande .select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--dfdf-ocre);
    color: #fff;
}

/* Boîte du calendrier */
.dfdf-commande #ui-datepicker-div {
    width: 300px;
    padding: 14px;
    border: 1px solid var(--dfdf-border);
    border-radius: var(--dfdf-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-family: inherit;
    font-size: 14px;
    color: var(--dfdf-text);
}

/* En-tête : mois + flèches */
.dfdf-commande #ui-datepicker-div .ui-datepicker-header {
    position: relative;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
}

.dfdf-commande #ui-datepicker-div .ui-datepicker-title {
    margin: 0;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    text-transform: capitalize;
    color: var(--dfdf-text);
}

.dfdf-commande #ui-datepicker-div :is(.ui-datepicker-prev, .ui-datepicker-next) {
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    color: var(--dfdf-ocre);
}

.dfdf-commande #ui-datepicker-div .ui-datepicker-prev { left: 0; }
.dfdf-commande #ui-datepicker-div .ui-datepicker-next { right: 0; }

.dfdf-commande #ui-datepicker-div :is(.ui-datepicker-prev, .ui-datepicker-next) .ui-icon {
    display: none;   /* texte caché "Previous Month" / "Next Month" */
}

/* Flèche d'origine du plugin (::before) : on lui donne seulement la couleur ocre */
.dfdf-commande #ui-datepicker-div :is(.ui-datepicker-prev, .ui-datepicker-next)::before {
    color: var(--dfdf-ocre);
}

.dfdf-commande #ui-datepicker-div :is(.ui-datepicker-prev, .ui-datepicker-next):hover {
    background: var(--dfdf-beige);
}

/* Grille des jours */
.dfdf-commande #ui-datepicker-div table.ui-datepicker-calendar {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 4px;
}

.dfdf-commande #ui-datepicker-div table.ui-datepicker-calendar th {
    padding: 4px 0;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    color: var(--dfdf-text-2);
}

.dfdf-commande #ui-datepicker-div table.ui-datepicker-calendar td {
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
}

.dfdf-commande #ui-datepicker-div table.ui-datepicker-calendar td :is(a, span) {
    display: block;
    padding: 8px 0;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

/* Jours non disponibles : discrets */
.dfdf-commande #ui-datepicker-div td.ui-datepicker-unselectable {
    opacity: 1;
}

.dfdf-commande #ui-datepicker-div td.ui-datepicker-unselectable :is(a, span) {
    background: none !important;
    color: #c4c4c4 !important;
}

/* Jours disponibles : beige, ocre au survol */
.dfdf-commande #ui-datepicker-div td.available-deliveries a {
    background: var(--dfdf-beige) !important;
    color: var(--dfdf-ocre) !important;
    font-weight: 600;
}

.dfdf-commande #ui-datepicker-div td.available-deliveries a:hover {
    background: var(--dfdf-ocre) !important;
    color: #fff !important;
}

/* Jour choisi : ocre plein */
.dfdf-commande #ui-datepicker-div td.ui-datepicker-current-day a,
.dfdf-commande #ui-datepicker-div td.available-deliveries a.ui-state-active {
    background: var(--dfdf-ocre) !important;
    color: #fff !important;
}

/* Bouton "Clear" : bouton secondaire */
.dfdf-commande #ui-datepicker-div .ui-datepicker-buttonpane {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: right;
}

.dfdf-commande #ui-datepicker-div .ui-datepicker-buttonpane button {
    float: none;
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--dfdf-ocre);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 0;   /* masque le texte anglais "Clear" */
    font-weight: 600;
    color: var(--dfdf-ocre);
    cursor: pointer;
}

.dfdf-commande #ui-datepicker-div .ui-datepicker-buttonpane button::after {
    content: "Effacer";   /* remplace "Clear" ; voir tuto si le bouton ne fait que fermer */
    font-size: 13px;
}

.dfdf-commande #ui-datepicker-div .ui-datepicker-buttonpane button:hover {
    background: var(--dfdf-beige);
}

/* ===== 11e. LIEN "NOS TARIFS" (fiche produit) ===== */
.dfdf-lien-tarifs {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--dfdf-text-2);
}

.dfdf-lien-tarifs a {
    color: var(--dfdf-ocre);
    text-decoration: underline;
}

.dfdf-lien-tarifs a:hover {
    color: var(--dfdf-ocre-hover);
}

/* ===== 11f. ACCESSIBILITÉ (rapport Lighthouse de l'accueil) ===== */
/* Liens dans un texte : soulignés et en ocre (la couleur seule ne suffit pas à les distinguer) */
.elementor-widget-text-editor p a {
    color: var(--dfdf-ocre);
    text-decoration: underline;
}

/* Étiquettes du formulaire Brevo : gris trop clair (contraste 3,2 au lieu de 4,5 minimum) */
.sib-input .form__entry .entry__specification {
    color: #5c677a !important;   /* le formulaire Brevo impose sa propre couleur */
}

/* ===== 12. RESPONSIVE ===== */
@media (max-width: 1024px) {
    .woof_redraw_zone {
        grid-template-columns: 1fr 1fr;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .dfdf-commande.woocommerce-cart .woocommerce,
    .dfdf-commande form.woocommerce-checkout,
    .dfdf-commande.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
        grid-template-columns: 1fr;
    }
    .dfdf-commande.woocommerce-cart .woocommerce > .cart-collaterals,
    .dfdf-commande form.woocommerce-checkout > :is(#customer_details, #order_review_heading, #order_review) {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .woof_redraw_zone {
        grid-template-columns: 1fr;
    }
    .woocommerce ul.products {
        gap: 16px;
    }
    .woocommerce-ordering select {
        min-width: 0;
    }
    .woocommerce div.product div.images .woocommerce-product-gallery__image > a > img {
        height: 300px;
    }
    .woocommerce div.product div.images .flex-viewport {
        height: 300px !important;
    }
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px 12px;
        font-size: 14px;
    }
    .dfdf-attributes {
        grid-template-columns: 1fr;
    }
    .dfdf-cal-grid {
        gap: 3px;
    }
    .dfdf-cal-label {
        font-size: 10px;
    }
    .dfdf-cal-label .long {
        display: none;
    }
    .dfdf-cal-label .short {
        display: inline;
    }
    .dfdf-commande .woocommerce-billing-fields__field-wrapper,
    .dfdf-commande .u-columns {
        grid-template-columns: 1fr;
    }
    .dfdf-commande :is(.cart_totals, #order_review) {
        padding: 16px;
    }
}