/* =========================================================================
   Fudee — Styles complémentaires
   Tout ce que theme.json ne peut pas exprimer (animations, état hover, woo)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Reset / réglages globaux
   ------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sélection texte aux couleurs Fudee */
::selection {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/* -------------------------------------------------------------------------
   2. Liens et boutons : focus visible (a11y)
   ------------------------------------------------------------------------- */

:focus-visible {
    outline: 3px solid rgba(125, 198, 66, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.wp-block-button__link:hover {
    box-shadow: 0px 4px 12px rgba(125, 198, 66, 0.3);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.wp-block-button__link:active {
    transform: scale(0.98);
}

/* Bouton secondaire (style.is-style-outline) */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: var(--wp--preset--color--light-green-bg);
    color: var(--wp--preset--color--primary);
    border: 2px solid var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/* -------------------------------------------------------------------------
   3. Header / Navigation
   ------------------------------------------------------------------------- */

/* Conteneur sticky navy (le groupe interne porte .site-header) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--wp--preset--color--dark-navy);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Logo : icône arbre + titre */
.fudee-logo-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
}
.fudee-logo-mark svg { width: 34px; height: 34px; display: block; }
.site-header .wp-block-site-title a {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--signika);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.5px;
}

/* Navigation header (texte blanc, survol vert) */
.site-header .wp-block-navigation {
    --navigation-layout-justification-setting: flex-end;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content {
    padding: 0 14px;
    height: 89px;
    display: flex;
    align-items: center;
    color: #ffffff;
    transition: color 0.2s ease;
}
.site-header .wp-block-navigation .wp-block-navigation-item:hover .wp-block-navigation-item__content,
.site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
    color: var(--wp--preset--color--primary);
}
.site-header .wp-block-navigation .wp-block-navigation__submenu-icon {
    margin-left: 4px;
}

/* Sous-menus (dropdowns) blancs avec liseré vert */
.site-header .wp-block-navigation .wp-block-navigation__submenu-container {
    background: var(--wp--preset--color--white);
    border: 0;
    border-top: 3px solid var(--wp--preset--color--primary);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 210px;
}
.site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    height: auto;
    padding: 10px 20px;
    color: var(--wp--preset--color--heading);
    font-weight: 400;
    transition: all 0.15s ease;
}
.site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
    background: var(--wp--preset--color--pale-green);
    color: var(--wp--preset--color--primary);
}

/* Champ de recherche blanc (pilule) */
.fudee-header-search {
    flex-shrink: 0;
}
.fudee-header-search .wp-block-search__inside-wrapper {
    background: var(--wp--preset--color--white);
    border: 0;
    border-radius: 50px;
    padding: 0;
    min-width: 200px;
    position: relative;
    transition: box-shadow 0.2s ease;
}
.fudee-header-search .wp-block-search__input {
    border: 0;
    background: transparent;
    height: 42px;
    min-height: 42px;
    padding: 0 8px 0 18px;
    font-size: 14px;
    color: var(--wp--preset--color--heading);
    width: 100%;
}
.fudee-header-search .wp-block-search__input:focus {
    outline: 0;
    box-shadow: none;
}
.fudee-header-search .wp-block-search__inside-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(125, 198, 66, 0.35);
}
.fudee-header-search .wp-block-search__button {
    margin: 4px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 50%;
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.fudee-header-search .wp-block-search__button:hover {
    background: var(--wp--preset--color--primary-hover);
}
.fudee-header-search .wp-block-search__button svg { fill: #ffffff; width: 18px; height: 18px; }

/* Sélecteur de langue WPML (custom) */
.fudee-lang-switch { position: relative; flex-shrink: 0; }
.fudee-lang-current {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 12px;
    cursor: pointer;
    color: #ffffff;
    font-family: var(--wp--preset--font-family--open-sans);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}
.fudee-lang-current:hover,
.fudee-lang-current[aria-expanded="true"] {
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
}
.fudee-lang-current svg { width: 18px; height: 18px; }
.fudee-lang-caret { font-size: 9px; opacity: 0.8; }
.fudee-lang-menu {
    position: absolute;
    top: 52px;
    right: 0;
    min-width: 160px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--wp--preset--color--white);
    border-radius: 8px;
    border-top: 3px solid var(--wp--preset--color--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 20;
}
.fudee-lang-switch:hover .fudee-lang-menu,
.fudee-lang-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.fudee-lang-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--wp--preset--color--heading);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
}
.fudee-lang-menu li a:hover { background: var(--wp--preset--color--pale-green); color: var(--wp--preset--color--primary); }
.fudee-lang-menu li a.is-active { color: var(--wp--preset--color--primary); font-weight: 700; }
.fudee-lang-flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }

/* -------------------------------------------------------------------------
   3bis. Bandeau de page (parts/page-banner.html)
   ------------------------------------------------------------------------- */

/* Fallback navy uni si aucune image mise en avant */
.fudee-page-banner {
    background-color: var(--wp--preset--color--dark-navy);
}
.fudee-page-banner .wp-block-cover__inner-container {
    text-align: center;
}
.fudee-page-banner__title {
    color: #ffffff;
    font-family: var(--wp--preset--font-family--signika);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin: 0 0 16px;
}
.fudee-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-family: var(--wp--preset--font-family--open-sans);
    font-size: 16px;
    color: var(--wp--preset--color--mint);
}
.fudee-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.fudee-breadcrumb a:hover {
    color: var(--wp--preset--color--primary);
}
.fudee-breadcrumb .fudee-bc-sep {
    color: var(--wp--preset--color--primary);
    font-weight: 700;
}
.fudee-breadcrumb .current {
    color: var(--wp--preset--color--mint);
}

/* -------------------------------------------------------------------------
   3ter. Bloc À propos (patterns/about-intro.php)
   ------------------------------------------------------------------------- */

.fudee-about-images {
    position: relative;
    padding: 20px 30px 60px 0;
}
.fudee-about-shape {
    position: absolute;
    top: 0;
    left: -10px;
    width: 78%;
    height: 88%;
    z-index: 0;
    border-radius: 24px;
    background-color: var(--wp--preset--color--light-green-bg);
    background-image:
        radial-gradient(circle at 20% 25%, rgba(125, 198, 66, 0.18) 0 6px, transparent 6px),
        radial-gradient(circle at 70% 60%, rgba(125, 198, 66, 0.14) 0 5px, transparent 5px),
        radial-gradient(circle at 45% 80%, rgba(125, 198, 66, 0.12) 0 4px, transparent 4px);
    background-size: 120px 120px;
}
.fudee-about-img-main {
    position: relative;
    z-index: 1;
    width: 84%;
    margin: 0 0 0 auto;
    box-shadow: var(--wp--preset--shadow--deep);
}
.fudee-about-img-main img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.fudee-about-img-inset {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 10px;
    width: 46%;
    margin: 0;
    border: 6px solid var(--wp--preset--color--white);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.fudee-about-img-inset img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    display: block;
}

/* Eyebrow avec feuille */
.fudee-eyebrow-leaf {
    display: inline-flex;
    color: var(--wp--preset--color--primary);
}
.fudee-eyebrow-leaf svg { width: 18px; height: 18px; }

/* Features à icône */
.fudee-feature-ic {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wp--preset--color--light-green-bg);
    color: var(--wp--preset--color--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fudee-feature-ic svg { width: 24px; height: 24px; }
.fudee-feature-tx h4 { color: var(--wp--preset--color--heading); margin: 0; }

/* Bouton pilule avec cercle "+" */
.fudee-pill-btn .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 700;
}
.fudee-pill-btn .wp-block-button__link::after {
    content: '+';
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 781px) {
    .fudee-about-images { max-width: 480px; margin: 0 auto; }
}

/* -------------------------------------------------------------------------
   3quater. Anneaux de progression (patterns/progress-rings.php)
   ------------------------------------------------------------------------- */

.fudee-rings {
    position: relative;
    overflow: hidden;
}
.fudee-rings::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(125, 198, 66, 0.06) 0 30px, transparent 31px),
        radial-gradient(circle at 85% 30%, rgba(125, 198, 66, 0.05) 0 40px, transparent 41px),
        radial-gradient(circle at 50% 80%, rgba(125, 198, 66, 0.05) 0 35px, transparent 36px),
        radial-gradient(circle at 30% 65%, rgba(125, 198, 66, 0.04) 0 25px, transparent 26px);
}
.fudee-ring-item { text-align: center; position: relative; }
.fudee-ring {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto;
}
.fudee-ring svg { width: 100%; height: 100%; display: block; }
.fudee-ring-track { fill: none; stroke: #ffffff; stroke-width: 10; }
.fudee-ring-bar {
    fill: none;
    stroke: var(--wp--preset--color--primary);
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.fudee-ring-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wp--preset--font-family--signika);
    font-weight: 700;
    font-size: 34px;
    color: var(--wp--preset--color--primary);
}

/* -------------------------------------------------------------------------
   3quinquies. Pourquoi nous choisir (patterns/why-choose-us.php)
   ------------------------------------------------------------------------- */

.fudee-wcu-card {
    overflow: hidden;
}
.fudee-wcu-card .wp-block-cover__image-background {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fudee-wcu-card:hover .wp-block-cover__image-background {
    transform: scale(1.07);
}
.fudee-wcu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease;
}
.fudee-wcu-arrow svg { width: 20px; height: 20px; }
.fudee-wcu-card:hover .fudee-wcu-arrow {
    transform: translateX(8px);
    background: var(--wp--preset--color--primary);
}

/* -------------------------------------------------------------------------
   3sexies. Historique + accordéon (patterns/history-accordion.php)
   ------------------------------------------------------------------------- */

.fudee-history-img img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.fudee-acc-item {
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--light-green-bg);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.fudee-acc-item.is-open {
    box-shadow: var(--wp--preset--shadow--elevated);
}
.fudee-acc-header {
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
}
.fudee-acc-header .fudee-acc-title {
    margin: 0;
    color: var(--wp--preset--color--heading);
    transition: color 0.2s ease;
}
.fudee-acc-item.is-open .fudee-acc-header .fudee-acc-title {
    color: var(--wp--preset--color--primary);
}
/* Icône : toujours un "+" (pas de "−"). État ouvert = cercle vert plein. */
.fudee-acc-header::after {
    content: '+';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-left: 16px;
    border-radius: 50%;
    background: var(--wp--preset--color--light-green-bg);
    color: var(--wp--preset--color--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: all 0.25s ease;
}
.fudee-acc-item.is-open .fudee-acc-header::after {
    background: var(--wp--preset--color--primary);
    color: #ffffff;
}
.fudee-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.fudee-acc-item.is-open .fudee-acc-panel {
    max-height: 500px;
}
.fudee-acc-panel p {
    margin: 0;
    padding: 0 22px 22px;
}

@media (max-width: 781px) {
    .fudee-history-img { max-width: 460px; margin: 0 auto; }
}

/* -------------------------------------------------------------------------
   3septies. Carrousel produits marquee (patterns/products-carousel.php)
   ------------------------------------------------------------------------- */

.fudee-carousel {
    position: relative;
    overflow: hidden;
}
.fudee-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 15% 40%, #ffffff 0 3px, transparent 3px),
        radial-gradient(circle at 60% 70%, #ffffff 0 2px, transparent 2px);
    background-size: 90px 90px;
}
.fudee-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    position: relative;
}
.fudee-carousel.is-ready .fudee-carousel-track {
    animation: fudee-scroll 30s linear infinite;
}
.fudee-carousel.is-ready:hover .fudee-carousel-track {
    animation-play-state: paused;
}
@keyframes fudee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.fudee-carousel-badge { margin: 0; }
.fudee-carousel-badge img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .fudee-carousel-track { justify-content: center; flex-wrap: wrap; gap: 24px; width: auto; }
}

/* -------------------------------------------------------------------------
   3octies. Footer (parts/footer.html)
   ------------------------------------------------------------------------- */

.site-footer .fudee-footer-nav .wp-block-navigation__container { gap: 12px; }
.site-footer .fudee-footer-nav .wp-block-navigation-item__content {
    color: var(--wp--preset--color--mint);
    transition: color 0.2s ease;
}
.site-footer .fudee-footer-nav .wp-block-navigation-item__content::before {
    content: '\00BB';
    color: var(--wp--preset--color--primary);
    font-weight: 700;
    margin-right: 8px;
}
.site-footer .fudee-footer-nav .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--primary);
}

/* Réseaux sociaux : cercles translucides → vert au survol */
.fudee-footer-social.wp-block-social-links .wp-block-social-link {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.2s ease;
}
.fudee-footer-social.wp-block-social-links .wp-block-social-link:hover {
    background-color: var(--wp--preset--color--primary);
    transform: translateY(-2px);
}

/* Galerie photo : vignettes carrées arrondies + voile vert au survol */
.fudee-footer-gallery.wp-block-gallery { gap: 8px; }
.fudee-footer-gallery .wp-block-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin: 0;
}
.fudee-footer-gallery .wp-block-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}
.fudee-footer-gallery .wp-block-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--wp--preset--color--primary);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.fudee-footer-gallery .wp-block-image:hover::after { opacity: 0.4; }

/* -------------------------------------------------------------------------
   3quinquies. Pourquoi nous choisir (patterns/why-choose-us.php)
   ------------------------------------------------------------------------- */

.fudee-wcu-card {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--wp--preset--shadow--elevated);
}
.fudee-wcu-card .wp-block-cover__image-background {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fudee-wcu-card:hover .wp-block-cover__image-background {
    transform: scale(1.07);
}
/* Panneau texte navy en dégradé sur le bas de l'image */
.fudee-wcu-card .wp-block-cover__inner-container {
    width: 100%;
    margin: 0;
    padding: 70px 24px 24px;
    text-align: left;
    background: linear-gradient(180deg, rgba(16, 26, 35, 0) 0%, rgba(16, 26, 35, 0.92) 55%);
}
/* Flèche cliquable ronde */
.fudee-wcu-arrow .wp-block-button__link {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease;
}
.fudee-wcu-card:hover .fudee-wcu-arrow .wp-block-button__link {
    transform: translateX(8px);
    background: var(--wp--preset--color--primary);
}
.fudee-wcu-arrow .wp-block-button__link:focus-visible {
    outline: 3px solid rgba(125, 198, 66, 0.6);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   4. Cartes (produits, catégories, contenus génériques)
   ------------------------------------------------------------------------- */

.fudee-card {
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--light-green-bg);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--wp--preset--shadow--subtle);
    transition: all 0.3s ease;
}

.fudee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wp--preset--shadow--elevated);
    border-color: var(--wp--preset--color--primary);
}

.fudee-card--highlighted {
    background: var(--wp--preset--color--pale-green);
    border-left: 4px solid var(--wp--preset--color--primary);
    border-radius: 8px;
    padding: 36px;
}

/* -------------------------------------------------------------------------
   5. Badges
   ------------------------------------------------------------------------- */

.fudee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    line-height: 1.4;
}

.fudee-badge--success {
    background: var(--wp--preset--color--light-green-bg);
    color: var(--wp--preset--color--success);
    border: 1px solid var(--wp--preset--color--success);
}

.fudee-badge--warning {
    background: #FFF8DC;
    color: var(--wp--preset--color--warning);
}

.fudee-badge--error {
    background: #FFE5E5;
    color: var(--wp--preset--color--error);
}

/* -------------------------------------------------------------------------
   6. Formulaires (commentaires, recherche, contact, WC)
   ------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--mint);
    border-radius: 4px;
    padding: 12px 16px;
    font-family: var(--wp--preset--font-family--open-sans);
    font-size: 16px;
    color: var(--wp--preset--color--heading);
    transition: all 0.2s ease;
    min-height: 48px;
    width: 100%;
}

input::placeholder,
textarea::placeholder {
    color: var(--wp--preset--color--secondary-muted);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--wp--preset--color--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(125, 198, 66, 0.1);
}

label {
    display: block;
    font-weight: 600;
    color: var(--wp--preset--color--heading);
    margin-bottom: 8px;
    font-size: 14px;
}

/* -------------------------------------------------------------------------
   7. WooCommerce — ajustements visuels Fudee
   ------------------------------------------------------------------------- */

.fudee-wc .woocommerce-breadcrumb {
    font-size: 14px;
    color: var(--wp--preset--color--muted);
    margin-bottom: 32px;
}

.fudee-wc .woocommerce-breadcrumb a {
    color: var(--wp--preset--color--primary);
}

/* Boucle produits : carte produit */
.fudee-wc ul.products li.product {
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--light-green-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--wp--preset--shadow--subtle);
    transition: all 0.3s ease;
    padding: 0;
}

.fudee-wc ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--wp--preset--shadow--elevated);
}

.fudee-wc ul.products li.product img {
    margin: 0;
    aspect-ratio: 1;
    object-fit: cover;
}

.fudee-wc ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--wp--preset--font-family--signika);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: var(--wp--preset--color--heading);
    padding: 16px 20px 8px;
}

.fudee-wc ul.products li.product .price {
    font-family: var(--wp--preset--font-family--signika);
    font-weight: 700;
    font-size: 22px;
    color: var(--wp--preset--color--primary);
    padding: 0 20px 20px;
    display: block;
}

.fudee-wc ul.products li.product .price del {
    color: var(--wp--preset--color--muted);
    font-weight: 400;
    font-size: 16px;
}

/* Badge "Promo" sur la vignette */
.fudee-wc span.onsale {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--open-sans);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 12px;
    border: none;
    min-height: auto;
    min-width: auto;
    line-height: 1.4;
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    margin: 0;
}

/* Bouton ajouter au panier sur la boucle */
.fudee-wc ul.products li.product .button {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    margin: 0 20px 20px;
    display: inline-block;
}

.fudee-wc ul.products li.product .button:hover {
    background: var(--wp--preset--color--primary-hover);
}

/* Page produit unique */
.fudee-wc div.product .product_title {
    font-family: var(--wp--preset--font-family--signika);
    font-weight: 700;
    color: var(--wp--preset--color--heading);
    margin-bottom: 16px;
}

.fudee-wc div.product p.price,
.fudee-wc div.product span.price {
    font-family: var(--wp--preset--font-family--signika);
    font-weight: 700;
    font-size: 32px;
    color: var(--wp--preset--color--primary);
}

.fudee-wc div.product form.cart .quantity input {
    height: 48px;
    text-align: center;
}

.fudee-wc div.product form.cart .single_add_to_cart_button {
    height: 48px;
    padding: 0 32px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border-radius: 4px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.fudee-wc div.product form.cart .single_add_to_cart_button:hover {
    background: var(--wp--preset--color--primary-hover);
}

/* Onglets fiche produit */
.fudee-wc div.product .woocommerce-tabs ul.tabs {
    background: var(--wp--preset--color--pale-green);
    padding: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

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

.fudee-wc div.product .woocommerce-tabs ul.tabs li a {
    color: var(--wp--preset--color--muted);
    font-weight: 600;
    padding: 16px 24px;
    transition: all 0.2s ease;
}

.fudee-wc div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--wp--preset--color--white);
    border-bottom: 3px solid var(--wp--preset--color--primary);
}

.fudee-wc div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--wp--preset--color--primary);
}

/* Messages d'état */
.fudee-wc .woocommerce-message,
.fudee-wc .woocommerce-info,
.fudee-wc .woocommerce-error {
    border-radius: 8px;
    padding: 16px 20px;
    border-top: none;
    border-left: 4px solid var(--wp--preset--color--primary);
    background: var(--wp--preset--color--pale-green);
    color: var(--wp--preset--color--heading);
}

.fudee-wc .woocommerce-error {
    border-left-color: var(--wp--preset--color--error);
    background: #FFE5E5;
}

/* Mini-panier dans le header */
.wp-block-woocommerce-mini-cart {
    color: var(--wp--preset--color--heading);
}

/* -------------------------------------------------------------------------
   8. Utilitaires
   ------------------------------------------------------------------------- */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    padding: 12px 24px;
    border-radius: 0 0 8px 0;
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* -------------------------------------------------------------------------
   9. Responsive — overrides ciblés
   ------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .wp-block-navigation__responsive-container {
        background: var(--wp--preset--color--dark-navy);
    }
    .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
        color: var(--wp--preset--color--white);
        height: auto;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 575px) {
    .fudee-wc ul.products li.product .woocommerce-loop-product__title {
        font-size: 18px;
    }
    .fudee-wc div.product p.price,
    .fudee-wc div.product span.price {
        font-size: 26px;
    }
}
