/*
 * YT Collabs Manager — WooCommerce Theme Override
 * Appliqué sur : panier, checkout, confirmation, mon compte, pages boutique YTCM
 */

/* ═══════════════════════════════════════════════
   BASE — fond sombre + masquer navigation inutile
═══════════════════════════════════════════════ */
body.ytcm-wc-page {
    background: #0f0f1a !important;
    color: #e5e7eb !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Masquer header/nav/footer WordPress — on garde uniquement le contenu */
body.ytcm-wc-page header.site-header,
body.ytcm-wc-page .wp-block-template-part[class*="header"],
body.ytcm-wc-page nav.wp-block-navigation,
body.ytcm-wc-page .site-header,
body.ytcm-wc-page #masthead,
body.ytcm-wc-page .main-navigation,
body.ytcm-wc-page footer.site-footer,
body.ytcm-wc-page #colophon,
body.ytcm-wc-page .site-footer,
body.ytcm-wc-page .wp-block-template-part[class*="footer"] {
    display: none !important;
}

/* ═══════════════════════════════════════════════
   HEADER YTCM custom
═══════════════════════════════════════════════ */
body.ytcm-wc-page::before {
    content: '';
    display: block;
}

.ytcm-wc-header {
    background: #1a1a2e;
    border-bottom: 1px solid #2d2d44;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ytcm-wc-header-logo {
    width: 36px;
    height: 36px;
    background: #FF0000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    flex-shrink: 0;
}

.ytcm-wc-header-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.ytcm-wc-header-back {
    margin-left: auto;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}
.ytcm-wc-header-back:hover { color: #fff; }

/* ═══════════════════════════════════════════════
   LAYOUT GÉNÉRAL
═══════════════════════════════════════════════ */
body.ytcm-wc-page .entry-content,
body.ytcm-wc-page .wp-site-blocks,
body.ytcm-wc-page main,
body.ytcm-wc-page #primary,
body.ytcm-wc-page .site-content {
    background: #0f0f1a !important;
}

body.ytcm-wc-page .woocommerce,
body.ytcm-wc-page .woocommerce-page {
    background: #0f0f1a;
}

body.ytcm-wc-page .wp-block-woocommerce-cart,
body.ytcm-wc-page .wp-block-woocommerce-checkout,
body.ytcm-wc-page .woocommerce-cart,
body.ytcm-wc-page .woocommerce-checkout {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* ═══════════════════════════════════════════════
   TITRES
═══════════════════════════════════════════════ */
body.ytcm-wc-page h1,
body.ytcm-wc-page h2,
body.ytcm-wc-page h3,
body.ytcm-wc-page .wp-block-heading {
    color: #fff !important;
    font-weight: 800 !important;
}

body.ytcm-wc-page h1 { font-size: 28px !important; margin-bottom: 24px !important; }

/* ═══════════════════════════════════════════════
   NOTIFICATIONS / ALERTS
═══════════════════════════════════════════════ */
body.ytcm-wc-page .woocommerce-message,
body.ytcm-wc-page .woocommerce-info,
body.ytcm-wc-page .wc-block-components-notice-banner,
body.ytcm-wc-page .wp-block-woocommerce-cart .wc-block-cart__notice {
    background: #1e2d1e !important;
    border-left: 4px solid #22c55e !important;
    color: #86efac !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
}

body.ytcm-wc-page .woocommerce-error {
    background: #2d1e1e !important;
    border-left: 4px solid #ef4444 !important;
    color: #fca5a5 !important;
    border-radius: 8px !important;
}

/* ═══════════════════════════════════════════════
   TABLEAU PANIER
═══════════════════════════════════════════════ */
body.ytcm-wc-page .shop_table,
body.ytcm-wc-page .woocommerce-cart-form__contents {
    background: #1a1a2e !important;
    border: 1px solid #2d2d44 !important;
    border-radius: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    width: 100%;
}

body.ytcm-wc-page .shop_table thead tr,
body.ytcm-wc-page .shop_table thead th {
    background: #12122a !important;
    color: #9ca3af !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #2d2d44 !important;
}

body.ytcm-wc-page .shop_table tbody td {
    background: #1a1a2e !important;
    color: #e5e7eb !important;
    padding: 16px !important;
    border-bottom: 1px solid #2d2d44 !important;
    vertical-align: middle;
}

body.ytcm-wc-page .shop_table tbody tr:last-child td {
    border-bottom: none !important;
}

body.ytcm-wc-page .shop_table .product-name a {
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.ytcm-wc-page .shop_table .product-name .variation,
body.ytcm-wc-page .shop_table .product-subtotal,
body.ytcm-wc-page .cart-item__description {
    color: #9ca3af !important;
    font-size: 12px !important;
}

body.ytcm-wc-page .shop_table .product-total {
    color: #fff !important;
    font-weight: 700 !important;
}

/* Bouton supprimer */
body.ytcm-wc-page a.remove {
    color: #6b7280 !important;
    font-size: 18px !important;
    transition: color .15s !important;
}
body.ytcm-wc-page a.remove:hover { color: #ef4444 !important; }

/* ═══════════════════════════════════════════════
   CART TOTALS & COUPON
═══════════════════════════════════════════════ */
body.ytcm-wc-page .cart_totals,
body.ytcm-wc-page .wc-block-cart__totals-title {
    background: #1a1a2e !important;
    border: 1px solid #2d2d44 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 20px;
}

body.ytcm-wc-page .cart_totals h2,
body.ytcm-wc-page .cart_totals table th,
body.ytcm-wc-page .cart_totals table td {
    background: transparent !important;
    color: #e5e7eb !important;
    border-color: #2d2d44 !important;
    padding: 10px 0 !important;
}

body.ytcm-wc-page .cart_totals .order-total th,
body.ytcm-wc-page .cart_totals .order-total td {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #fff !important;
    padding-top: 14px !important;
}

body.ytcm-wc-page .cart_totals .discount td,
body.ytcm-wc-page .cart_totals .discount th {
    color: #22c55e !important;
    font-weight: 700 !important;
}

/* Coupon appliqué */
body.ytcm-wc-page .coupon-code,
body.ytcm-wc-page .wc-block-components-totals-coupon__code {
    background: #1e2d1e !important;
    color: #86efac !important;
    border-radius: 20px !important;
    padding: 3px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Champ coupon */
body.ytcm-wc-page .coupon input[type="text"],
body.ytcm-wc-page .wc-block-components-totals-coupon__input input {
    background: #12122a !important;
    border: 1.5px solid #3d3d5c !important;
    color: #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
}
body.ytcm-wc-page .coupon input[type="text"]:focus {
    border-color: #FF0000 !important;
    outline: none !important;
}

/* ═══════════════════════════════════════════════
   FORMULAIRE CHECKOUT
═══════════════════════════════════════════════ */
body.ytcm-wc-page .woocommerce-billing-fields,
body.ytcm-wc-page .woocommerce-shipping-fields,
body.ytcm-wc-page #order_review,
body.ytcm-wc-page .wc-block-checkout__billing-fields,
body.ytcm-wc-page .wc-block-checkout__shipping-fields,
body.ytcm-wc-page .wc-block-components-address-card {
    background: #1a1a2e !important;
    border: 1px solid #2d2d44 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
}

body.ytcm-wc-page .woocommerce-billing-fields h3,
body.ytcm-wc-page .woocommerce-shipping-fields h3,
body.ytcm-wc-page #order_review_heading {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #2d2d44 !important;
}

body.ytcm-wc-page .woocommerce-input-wrapper input,
body.ytcm-wc-page .woocommerce-input-wrapper select,
body.ytcm-wc-page .woocommerce-input-wrapper textarea,
body.ytcm-wc-page input.input-text,
body.ytcm-wc-page select,
body.ytcm-wc-page .wc-block-components-text-input input,
body.ytcm-wc-page .wc-block-components-select select {
    background: #12122a !important;
    border: 1.5px solid #3d3d5c !important;
    color: #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    width: 100% !important;
    font-size: 14px !important;
}

body.ytcm-wc-page input.input-text:focus,
body.ytcm-wc-page select:focus {
    border-color: #FF0000 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255,0,0,.15) !important;
}

body.ytcm-wc-page label,
body.ytcm-wc-page .wc-block-components-form-token-field__label {
    color: #9ca3af !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    margin-bottom: 5px !important;
}

/* Résumé de commande */
body.ytcm-wc-page #order_review,
body.ytcm-wc-page .wc-block-checkout__order-notes {
    background: #1a1a2e !important;
    border: 1px solid #2d2d44 !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

body.ytcm-wc-page .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

body.ytcm-wc-page .woocommerce-checkout-review-order-table th,
body.ytcm-wc-page .woocommerce-checkout-review-order-table td {
    color: #e5e7eb !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #2d2d44 !important;
    background: transparent !important;
}

body.ytcm-wc-page .woocommerce-checkout-review-order-table .order-total th,
body.ytcm-wc-page .woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #fff !important;
    border-bottom: none !important;
}

/* ═══════════════════════════════════════════════
   MÉTHODES DE PAIEMENT
═══════════════════════════════════════════════ */
body.ytcm-wc-page #payment,
body.ytcm-wc-page .wc-block-components-payment-methods {
    background: #1a1a2e !important;
    border: 1px solid #2d2d44 !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

body.ytcm-wc-page #payment .payment_methods li,
body.ytcm-wc-page .wc-block-components-payment-method-label {
    background: #12122a !important;
    border: 1.5px solid #3d3d5c !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin-bottom: 8px !important;
    color: #e5e7eb !important;
}

body.ytcm-wc-page #payment .payment_methods li.payment_method_stancer,
body.ytcm-wc-page #payment .payment_methods li input:checked + label {
    border-color: #FF0000 !important;
    background: #1a0808 !important;
}

body.ytcm-wc-page #payment .payment_box {
    background: #12122a !important;
    color: #9ca3af !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 13px !important;
}

/* ═══════════════════════════════════════════════
   BOUTONS
═══════════════════════════════════════════════ */
body.ytcm-wc-page .checkout-button,
body.ytcm-wc-page button[name="woocommerce_checkout_place_order"],
body.ytcm-wc-page #place_order,
body.ytcm-wc-page .wc-block-components-checkout-place-order-button,
body.ytcm-wc-page .wc-block-cart__submit-button,
body.ytcm-wc-page .wc-block-components-button.wc-block-cart__submit-button {
    background: #FF0000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: opacity .15s !important;
    letter-spacing: .02em !important;
}

body.ytcm-wc-page .checkout-button:hover,
body.ytcm-wc-page #place_order:hover,
body.ytcm-wc-page .wc-block-components-checkout-place-order-button:hover {
    opacity: .88 !important;
}

body.ytcm-wc-page .button,
body.ytcm-wc-page a.button,
body.ytcm-wc-page input[type="submit"].button {
    background: #FF0000 !important;
    color: #fff !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: opacity .15s !important;
}
body.ytcm-wc-page .button:hover { opacity: .88 !important; }

/* Bouton secondaire */
body.ytcm-wc-page .cart .coupon .button,
body.ytcm-wc-page button[name="apply_coupon"] {
    background: #2d2d44 !important;
    color: #e5e7eb !important;
}

/* ═══════════════════════════════════════════════
   PAGE CONFIRMATION COMMANDE
═══════════════════════════════════════════════ */
body.ytcm-wc-page .woocommerce-order-received h1,
body.ytcm-wc-page .wc-block-order-confirmation-status__title {
    color: #22c55e !important;
}

body.ytcm-wc-page .woocommerce-order {
    background: #1a1a2e !important;
    border: 1px solid #2d2d44 !important;
    border-radius: 12px !important;
    padding: 24px !important;
}

body.ytcm-wc-page .woocommerce-thankyou-order-received {
    background: #1e2d1e !important;
    border: 1px solid #22c55e !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    color: #86efac !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

body.ytcm-wc-page .woocommerce-order-overview {
    background: transparent !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    list-style: none !important;
}

body.ytcm-wc-page .woocommerce-order-overview li {
    background: #12122a !important;
    border: 1px solid #2d2d44 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #9ca3af !important;
    font-size: 13px !important;
}
body.ytcm-wc-page .woocommerce-order-overview li strong {
    color: #fff !important;
    display: block !important;
    font-size: 15px !important;
}

/* ═══════════════════════════════════════════════
   MON COMPTE
═══════════════════════════════════════════════ */
body.ytcm-wc-page .woocommerce-MyAccount-navigation {
    background: #1a1a2e !important;
    border: 1px solid #2d2d44 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin-bottom: 16px !important;
}

body.ytcm-wc-page .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.ytcm-wc-page .woocommerce-MyAccount-navigation ul li a {
    color: #9ca3af !important;
    padding: 8px 12px !important;
    display: block !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all .15s !important;
}

body.ytcm-wc-page .woocommerce-MyAccount-navigation ul li.is-active a,
body.ytcm-wc-page .woocommerce-MyAccount-navigation ul li a:hover {
    background: #FF000015 !important;
    color: #FF0000 !important;
}

body.ytcm-wc-page .woocommerce-MyAccount-content {
    background: #1a1a2e !important;
    border: 1px solid #2d2d44 !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

/* ═══════════════════════════════════════════════
   BREADCRUMB & MISC
═══════════════════════════════════════════════ */
body.ytcm-wc-page .woocommerce-breadcrumb {
    display: none !important;
}

body.ytcm-wc-page p {
    color: #9ca3af !important;
}

body.ytcm-wc-page a {
    color: #FF0000 !important;
}
body.ytcm-wc-page a:hover {
    color: #ff4444 !important;
}

/* Responsive */
@media (max-width: 768px) {
    body.ytcm-wc-page .woocommerce-cart .col2-set,
    body.ytcm-wc-page .woocommerce-checkout .col2-set {
        display: flex !important;
        flex-direction: column !important;
    }
    body.ytcm-wc-page .ytcm-wc-header {
        padding: 12px 16px !important;
    }
}
