/* ============================================================
   🧱 SOCLE ADMIN – WP-FRANCE THEA
   ============================================================ */
.wrap { max-width: 1600px; }

.thea-box-grey {
    background: #f1f3f5;
    padding: 28px 32px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.thea-box-grey h1 { margin-top: 0; font-size: 28px; }
.thea-box-grey p { font-size: 15px; margin-bottom: 12px; }

.thea-box-white {
    background: #ffffff;
    padding: 26px 30px;
    border-radius: 16px;
    margin-bottom: 26px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.thea-box-white h2,
.thea-box-white h3 { margin-top: 0; }
.thea-box-white a { text-decoration: none; }
.thea-box-white a:hover { text-decoration: underline; }

.thea-footer-logo { margin-top: 30px; }
.thea-footer-logo img { max-width: 200px; height: auto; }

/* ============================================================
   ✏︎ Anaïs Couleur – Admin
   ============================================================ */
.anais-couleur-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.anais-couleur-hero-text { flex: 1; }
.anais-couleur-hero-img img {
    max-width: 260px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.anais-couleur-examples {
    background: #f7fbff;
    border: 1px solid #dcecff;
    border-radius: 12px;
    padding: 14px;
    margin-top: 16px;
    line-height: 1.8;
}

.anais-couleur-warning {
    background: #fff8e1;
    border-left: 5px solid #f4b400;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.anais-couleur-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.anais-couleur-single {
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
}

.anais-couleur-single input { margin-right: 8px; }

.anais-progress-area {
    background: #f7f7fb;
    border: 1px solid #dedee8;
    border-radius: 14px;
    padding: 18px;
}

.anais-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
}

.anais-progress-bar-wrap {
    height: 18px;
    background: #e6e6ef;
    border-radius: 999px;
    overflow: hidden;
}

.anais-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8db9ff, #7be0b9);
    transition: width 0.25s ease;
}

.anais-couleur-stats li { margin-bottom: 8px; }
.anais-report-details {
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 14px 0;
}
.anais-report-details summary {
    cursor: pointer;
    font-weight: 700;
}
.anais-report-table { margin-top: 14px; }

.anais-palette-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.anais-color-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #f7f7f7;
    font-weight: 700;
}
.anais-color-rouge { background: #ffe2e2; color: #9d1010; }
.anais-color-rose { background: #ffe7f0; color: #9d2455; }
.anais-color-orange { background: #ffe9d2; color: #935006; }
.anais-color-jaune { background: #fff6c9; color: #7a6200; }
.anais-color-vert { background: #dff6e5; color: #126b2c; }
.anais-color-bleu { background: #e6effe; color: #1f5f9f; }
.anais-color-violet { background: #efe6ff; color: #5a2a92; }
.anais-color-marron { background: #eadbd2; color: #6d4633; }
.anais-color-terracotta { background: #f3d5c6; color: #98432b; }
.anais-color-sauge { background: #dfead9; color: #4d6844; }
.anais-color-lin { background: #eee1cc; color: #73522c; }
.anais-color-blanc-casse { background: #fff8e8; color: #7a6743; }
.anais-color-lavande { background: #eee8ff; color: #5c4387; }
.anais-color-bordeaux { background: #ead6dc; color: #7a1732; }
.anais-color-champagne { background: #fff1ca; color: #7a6200; }
.anais-color-noir { background: #222; color: #fff; }
.anais-color-gris { background: #e7e7e7; color: #555; }
.anais-color-blanc { background: #fff; color: #555; }

/* ============================================================
   ✏︎ Anaïs Couleur – Front
   ============================================================ */
.anais-couleur-front-box,
.anais-couleur-results {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

.anais-couleur-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 42px);
    margin: 20px 0 6px;
}

.anais-couleur-count {
    text-align: center;
    margin-bottom: 28px;
    opacity: 0.75;
}

.anais-couleur-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    margin: 0 !important;
    padding: 0 !important;
}

.anais-couleur-products ul.products::before,
.anais-couleur-products ul.products::after { display: none !important; }

.anais-couleur-products ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

.anais-couleur-pagination {
    margin: 36px 0 20px;
    text-align: center;
}
.anais-couleur-pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.anais-couleur-pagination a,
.anais-couleur-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #dcdcdc;
    text-decoration: none;
}
.anais-couleur-pagination .current {
    background: #222;
    color: #fff;
    border-color: #222;
}

@media (max-width: 1024px) {
    .anais-couleur-products ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .anais-couleur-hero { flex-direction: column; align-items: flex-start; }
    .anais-couleur-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .anais-couleur-results { padding: 12px; }
}

.anais-single-result {
    margin-top: 18px;
    background: #f7fff9;
    border: 1px solid #bfe8c8;
    border-radius: 14px;
    padding: 18px;
}
.anais-single-result h3 { margin-top: 0; }
.anais-single-result details { margin-top: 10px; }

/* ============================================================
   🌈 Anaïs Couleur – Recherche publique
   ============================================================ */
.anais-couleur-search-box {
    position: relative;
    max-width: 980px;
    margin: 10px auto 34px;
    padding: 26px 28px 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, #f8fbff);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    text-align: center;
    overflow: hidden;
}
.anais-couleur-search-rainbow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, #ff6b6b, #ffd166, #8bdc8b, #73c2fb, #b08cff, #ff8fc7);
}
.anais-couleur-search-box h2 {
    margin: 6px 0 8px;
    font-size: clamp(24px, 3vw, 38px);
    color: #1f5f9f;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.anais-couleur-search-box p {
    margin: 0 auto 18px;
    max-width: 760px;
    color: #5d6470;
    font-size: 16px;
}
.anais-couleur-search-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 780px;
    margin: 0 auto;
}
.anais-couleur-search-form input[type="text"] {
    flex: 1;
    min-height: 56px;
    border: 2px solid #d9e5f4;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 20px;
    background: #fff;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}
.anais-couleur-search-form input[type="text"]:focus {
    outline: none;
    border-color: #7dbdff;
    box-shadow: 0 0 0 4px rgba(125,189,255,0.18);
}
.anais-couleur-search-form button {
    min-width: 76px;
    min-height: 56px;
    border: 3px solid #7dbdff;
    border-radius: 16px;
    background: #ffffff;
    color: #1f5f9f;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 0 0 6px rgba(125, 189, 255, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.anais-couleur-search-form button:hover {
    transform: translateY(-1px);
    background: #f3f9ff;
    box-shadow: 0 0 0 7px rgba(125, 189, 255, 0.22);
}

@media (max-width: 640px) {
    .anais-couleur-search-box { padding: 22px 16px 24px; border-radius: 22px; }
    .anais-couleur-search-form { gap: 8px; }
    .anais-couleur-search-form input[type="text"] { min-height: 50px; font-size: 16px; }
    .anais-couleur-search-form button { min-width: 58px; min-height: 50px; font-size: 22px; }
}

/* ============================================================
   🛒 Anaïs Couleur – Grille produits autonome 1.0.8
   Corrige les thèmes WooCommerce qui cassent l’affichage.
   ============================================================ */
.anais-couleur-products.anais-product-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px !important;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
}

.anais-product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    min-width: 0;
}

.anais-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
    text-decoration: none !important;
}

.anais-product-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.anais-product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 16px 14px 18px;
    min-height: 135px;
}

.anais-product-title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: clamp(15px, 1vw, 18px) !important;
    line-height: 1.22 !important;
    font-weight: 500 !important;
}

.anais-product-title a {
    color: #111 !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anais-product-title a:hover { text-decoration: underline !important; }

.anais-product-price {
    margin: 0 0 18px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.anais-product-price del {
    opacity: 0.55;
    font-weight: 400;
    margin-right: 6px;
}

.anais-product-button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #f7f7f7;
    color: #111 !important;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.anais-product-button:hover {
    background: #eef6ff;
    border-color: #7dbdff;
}

/* Bouton recherche : même esprit bleu/blanc que le champ */
.anais-couleur-search-form button {
    border: 3px solid #7dbdff !important;
    background: #ffffff !important;
    color: #1f5f9f !important;
    box-shadow: 0 0 0 6px rgba(125, 189, 255, 0.16) !important;
}

.anais-couleur-search-form button:hover {
    background: #f3f9ff !important;
    box-shadow: 0 0 0 7px rgba(125, 189, 255, 0.22) !important;
}

@media (max-width: 1100px) {
    .anais-couleur-products.anais-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px !important;
    }
}

@media (max-width: 640px) {
    .anais-couleur-products.anais-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px !important;
    }
    .anais-product-content {
        padding: 12px 10px 14px;
        min-height: 165px;
    }
    .anais-product-button { padding: 8px 14px; min-height: 40px; }
    .anais-couleur-search-form button { border-radius: 14px; }
}


/* Version 1.0.8 : prix masqué sur la grille Anaïs, comme demandé. */
.anais-product-price { display: none !important; }

/* Version 1.0.9 : bloc admin pour forcer une catégorie couleur. */
.anais-couleur-force select {
    min-height: 34px;
    margin: 8px 8px 8px 0;
}
