
/* Conteneur des catégories */
.oob-shop-categories {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 850px;
    margin: 35px auto 55px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Grande carte horizontale */
.oob-shop-categories #oob_category {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;

    width: 100%;
    min-height: 145px;
    padding: 30px 40px;

    background: #fff;
    border: 1px solid #e9e9e9;
    border-top: 4px solid #ef9c13;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
    box-sizing: border-box;
}

/* Titre */
.oob-shop-categories #oob_category h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 600;
    color: #292929;
}

/* Description */
.oob-shop-categories #oob_category > div {
    flex-basis: 100%;
    font-size: 15px;
    color: #666;
}

/* Bouton */
.oob-shop-categories #oob_category > a {
    margin: 0;
    padding: 15px 28px;
    font-size: 15px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 600px) {
    .oob-shop-categories {
        margin: 25px auto 35px;
    }

    .oob-shop-categories #oob_category {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding: 25px;
    }

    .oob-shop-categories #oob_category h2 {
        font-size: 23px;
    }
}


.oob-shop-categories #oob_category > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 30px;
    background: #ef9c13;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all .2s ease;
}

.oob-shop-categories #oob_category > a::after {
    content: "→";
    font-size: 20px;
    transition: transform .2s ease;
}

.oob-shop-categories #oob_category > a:hover {
    background: #d88900;
    color: #fff;
}

.oob-shop-categories #oob_category > a:hover::after {
    transform: translateX(5px);
}



/* ==================================================
   RDA — Archive WooCommerce : traitements
   ================================================== */

body.tax-product_cat #primary {
    width: 100%;
    max-width: 1100px;
    margin: 35px auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Fil d'Ariane */
body.tax-product_cat .woocommerce-breadcrumb {
    margin: 0 0 25px;
    font-size: 14px;
    color: #777;
}

body.tax-product_cat .woocommerce-breadcrumb a {
    color: #d88a00;
    text-decoration: none;
}

/* Titre */
body.tax-product_cat .woocommerce-products-header {
    margin-bottom: 30px;
}

body.tax-product_cat .woocommerce-products-header__title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #292929;
    text-transform: capitalize;
}

/* Masquer le compteur et le tri */
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering {
    display: none;
}

/* Zone des produits */
body.tax-product_cat ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Cartes produits WooCommerce */
body.tax-product_cat ul.products li.product {
    width: auto;
    float: none;
    margin: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-top: 4px solid #ef9c13;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    box-sizing: border-box;
}

/* Titres produits */
body.tax-product_cat ul.products li.product h2,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
    font-size: 22px;
    font-weight: 600;
    color: #292929;
}

/* Boutons */
body.tax-product_cat ul.products .button {
    padding: 13px 22px;
    background: #ef9c13;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

body.tax-product_cat ul.products .button:hover {
    background: #d88900;
    color: #fff;
}

@media (max-width: 600px) {
    body.tax-product_cat #primary {
        margin: 20px auto 35px;
    }

    body.tax-product_cat ul.products {
        grid-template-columns: 1fr;
    }
}



/* ==================================================
   RDA — Messages sur les traitements
   ================================================== */

.oob-treatment-notice {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    margin: 20px 0;
    padding: 24px 28px;

    background: #fff8eb;
    border: 1px solid #f0d9ac;
    border-left: 5px solid #ef9c13;
    border-radius: 10px;

    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
}

/* Icône */

.oob-treatment-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;

    background: #ef9c13;
    border-radius: 50%;

    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

/* Texte */

.oob-treatment-notice-content {
    flex: 1;
    min-width: 0;
}

.oob-treatment-notice-content strong {
    display: block;
    margin-bottom: 7px;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #704a14;
}

.oob-treatment-notice-content p {
    margin: 0;

    font-size: 15px;
    line-height: 1.7;
    color: #704a14;
}

/* Information : attente de la prochaine période */

.oob-treatment-notice--info {
    background: #eef6ff;
    border-color: #c9dff7;
    border-left-color: #3b82c4;
}

.oob-treatment-notice--info
.oob-treatment-notice-icon {
    background: #3b82c4;
}

.oob-treatment-notice--info
.oob-treatment-notice-content strong,
.oob-treatment-notice--info
.oob-treatment-notice-content p {
    color: #24547b;
}

/* Période définitivement close */

.oob-treatment-notice--closed {
    background: #fff0ee;
    border-color: #f1cbc6;
    border-left-color: #c85c4b;
}

.oob-treatment-notice--closed
.oob-treatment-notice-icon {
    background: #c85c4b;
}

.oob-treatment-notice--closed
.oob-treatment-notice-content strong,
.oob-treatment-notice--closed
.oob-treatment-notice-content p {
    color: #8c342a;
}

/* Responsive */

@media (max-width: 600px) {

    .oob-treatment-notice {
        padding: 18px;
        gap: 12px;
    }

    .oob-treatment-notice-icon {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .oob-treatment-notice-content strong {
        font-size: 16px;
    }

    .oob-treatment-notice-content p {
        font-size: 14px;
    }
}



/* ==================================================
   RDA — Affichage large des traitements
   ================================================== */

/* Une seule colonne au lieu des 4 colonnes WooCommerce */
body.tax-product_cat ul.products.columns-4 {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px;
    width: 100% !important;
    max-width: 900px !important;
    margin: 25px auto 45px !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Les produits occupent toute la largeur */
body.tax-product_cat ul.products.columns-4 > li.product {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Avertissement sur toute la largeur */
body.tax-product_cat .oob-treatment-notice {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 20px 0 !important;
    padding: 28px 32px !important;
    box-sizing: border-box;
}

/* Texte plus confortable */
body.tax-product_cat .oob-treatment-notice-content {
    flex: 1;
    min-width: 0;
}

body.tax-product_cat .oob-treatment-notice-content strong {
    font-size: 20px;
    margin-bottom: 8px;
}

body.tax-product_cat .oob-treatment-notice-content p {
    font-size: 16px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 600px) {

    body.tax-product_cat ul.products.columns-4 {
        margin: 20px auto 30px !important;
    }

    body.tax-product_cat .oob-treatment-notice {
        padding: 20px !important;
    }

    body.tax-product_cat .oob-treatment-notice-content strong {
        font-size: 17px;
    }

    body.tax-product_cat .oob-treatment-notice-content p {
        font-size: 14px;
    }
}




/* ==================================================
   RDA — Messages de la page Shop
   ================================================== */

/* Masquer le titre technique "Shop" */
body.page-id-27 .entry-header {
    display: none;
}

/* Zone de contenu */
body.page-id-27 .entry-content {
    width: 100%;
    max-width: 1050px;
    margin: 35px auto 55px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Grand encadré d'information */
body.page-id-27 .oob-shop-message {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100% !important;
    max-width: 900px !important;
    min-height: 130px;
    margin: 25px auto 45px !important;
    padding: 30px 38px !important;

    background: #fff8eb;
    border: 1px solid #f0d9ac;
    border-left: 5px solid #ef9c13;
    border-radius: 12px;

    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    box-sizing: border-box;
}

/* Texte */
body.page-id-27 .oob-shop-message p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #704a14;
}

/* Titres éventuels */
body.page-id-27 .oob-shop-message h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    color: #704a14;
}

/* Responsive */
@media (max-width: 600px) {

    body.page-id-27 .entry-content {
        margin: 20px auto 35px;
        padding: 0 15px;
    }

    body.page-id-27 .oob-shop-message {
        min-height: auto;
        padding: 22px !important;
    }

    body.page-id-27 .oob-shop-message p {
        font-size: 16px;
    }
}
body.page-id-27 .oob-shop-message p::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    margin-right: 16px;

    background: #ef9c13;
    color: white;
    border-radius: 50%;

    font-size: 22px;
    font-weight: 700;
    vertical-align: middle;
}