/*
Theme Name: Amicale CSP Mayenne
Theme URI: https://amicalecspmayenne.lebarts.com
Description: Theme de l'intranet de l'Amicale des sapeurs-pompiers de Mayenne : espace adherent Ultimate Member, pret de materiel WooCommerce et demandes de billets de foot.
Author: LEB Communication
Author URI: https://www.leb-communication.fr
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: leb-amicale
*/

.um-form {
    padding: 2%;
}
/* Form layout */
.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group.half {
    flex: 0 0 calc(50% - 0.75rem);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        flex: 1;
    }
}

/* Make sure the form goes all the way to the bottom */
.wpcf7 {
    width: 100%;
}

.wpcf7 form {
    margin-bottom: 0;
}

/* Style the validation errors */
.wpcf7-not-valid-tip {
    color: #b12b2c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #b12b2c;
    color: #b12b2c;
    background-color: rgba(177, 43, 44, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1.5rem 0 0;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    color: #46b450;
    background-color: rgba(70, 180, 80, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1.5rem 0 0;
}
/* 🛒 Style Panier WooCommerce */
.woocommerce-cart table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.woocommerce-cart table.shop_table th {
    background-color: #f9f9f9;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.woocommerce-cart .product-thumbnail img {
    width: 70px;
    height: auto;
    border-radius: 8px;
}

.woocommerce-cart .cart_totals {
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 12px;
    background: #fefefe;
    max-width: 400px;
    margin-left: auto;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: #c40000;
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s ease;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #900000;
}

/* Responsive panier */
@media (max-width: 768px) {
    .woocommerce-cart table.shop_table thead {
        display: none;
    }

    .woocommerce-cart table.shop_table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 1rem;
        background: #fff;
    }

    .woocommerce-cart table.shop_table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
    }

    .woocommerce-cart .cart_totals {
        width: 100%;
    }
}
/* 🎯 Style fiche produit WooCommerce */
.woocommerce div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.woocommerce div.product .woocommerce-product-gallery {
    flex: 1 1 50%;
}

.woocommerce div.product .summary {
    flex: 1 1 40%;
}

.woocommerce div.product h1.product_title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #222;
}

.woocommerce div.product p.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c40000;
}

.woocommerce div.product .woocommerce-variation-price {
    margin-bottom: 1rem;
}

.woocommerce div.product form.cart {
    margin-top: 1.5rem;
}

.woocommerce div.product form.cart .button {
    background-color: #c40000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #900000;
}

/* Responsive single product */
@media (max-width: 768px) {
    .woocommerce div.product {
        flex-direction: column;
    }

    .woocommerce div.product .woocommerce-product-gallery,
    .woocommerce div.product .summary {
        flex: 1 1 100%;
    }
}
/* 🧾 STYLE PAGE CHECKOUT - WOOCOMMERCE */
.woocommerce-checkout .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.woocommerce-checkout .woocommerce form.checkout {
    flex: 1 1 60%;
}

.woocommerce-checkout .woocommerce form.checkout h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.woocommerce-checkout .woocommerce form .form-row input.input-text,
.woocommerce-checkout .woocommerce form .form-row select {
    width: 100%;
    padding: 0.75rem;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.woocommerce-checkout .woocommerce form .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-checkout .woocommerce-checkout-review-order {
    flex: 1 1 35%;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #eee;
}

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

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.woocommerce-checkout-payment {
    margin-top: 2rem;
}

#place_order {
    background: #c40000;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

#place_order:hover {
    background: #900000;
    cursor: pointer;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .woocommerce-checkout .woocommerce {
        flex-direction: column;
    }

    .woocommerce-checkout .woocommerce form.checkout,
    .woocommerce-checkout .woocommerce-checkout-review-order {
        flex: 1 1 100%;
    }
}
.wc-block-components-sidebar-layout {
 
    padding: 1%;
}
.is-large.wc-block-cart {

    padding: 1%;
}

/* =========================================================================
   Pret de materiel : periode et disponibilite sur la fiche produit
   ========================================================================= */

.leb-loc-reservation {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid #e3e3e3;
    border-left: 4px solid #b12b2c;
    border-radius: 6px;
    background: #fafafa;
}

.leb-loc-titre {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    color: #333;
}

.leb-loc-intro {
    margin: 0 0 1rem;
    font-size: .9rem;
    color: #666;
}

.leb-loc-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
}

.leb-loc-champ {
    flex: 1 1 180px;
    margin: 0;
}

.leb-loc-champ label {
    display: block;
    margin-bottom: .35rem;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #555;
}

.leb-loc-champ input[type="date"] {
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    background: #fff;
}

.leb-loc-champ input[type="date"]:focus {
    border-color: #b12b2c;
    outline: 2px solid rgba(177, 43, 44, .25);
    outline-offset: 1px;
}

.leb-loc-message {
    margin: 1rem 0 0;
    min-height: 1.4em;
    font-size: .9rem;
    font-weight: 600;
}

.leb-loc-message.leb-loc-ok {
    color: #1a7f37;
}

.leb-loc-message.leb-loc-ko {
    color: #b12b2c;
}

.leb-loc-message.leb-loc-attente {
    color: #666;
    font-weight: 400;
    font-style: italic;
}

/* Prix et caution */

.leb-loc-gratuit {
    font-weight: 700;
    color: #1a7f37;
}

.leb-loc-prix {
    font-weight: 700;
}

.leb-loc-caution,
.leb-loc-sep {
    color: #555;
}

.leb-loc-rappel {
    display: block;
    margin-top: .25rem;
    color: #666;
    font-size: .8rem;
}

/* Tableau du shortcode de disponibilite */

.leb-loc-planning {
    margin: 2rem 0;
}

.leb-loc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .75rem;
}

.leb-loc-table th,
.leb-loc-table td {
    padding: .55rem .7rem;
    border: 1px solid #e3e3e3;
    text-align: left;
    font-size: .9rem;
}

.leb-loc-table th {
    background: #f2f2f2;
    font-weight: 700;
}

.news-vide {
    margin: 0;
    text-align: center;
    color: #cccccc;
}

/* Les media queries restent en fin de fichier : une regle desktop declaree
   apres elles reprendrait le dessus, meme avec !important. */

@media (max-width: 600px) {
    .leb-loc-dates {
        flex-direction: column;
        gap: .75rem;
    }

    .leb-loc-reservation {
        padding: 1rem;
    }
}
