/*
Theme Name: Brode Stick
Description: Theme enfant de Kadence.
Author: Brode stick
Author URI: https://brodestick.fr
Template: kadence
Version: 1.0
*/

/* ==========================================================================
   1. BLOCS ET COLONNES PERSONNALISÉS
   ========================================================================== */

/* Style de carte pour colonnes spécifiques */
.colonne-style-pro {
    background: #E2E5E9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Conteneur parent pour le bloc de 5 cartes */
.conteneur-cinq-cartes {
    background: #E2E5E9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Style des 5 colonnes individuelles à l'intérieur */
.conteneur-cinq-cartes .wp-block-column {
    flex-basis: calc(20% - 12px);
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
}

/* Utilitaire pour centrer une colonne */
.ma-colonne-centree {
    display: flex !important;
    justify-content: center !important;
}

/* ==========================================================================
   2. TABLEAUX DE TARIFS PERSONNALISÉS (VERSION MOBILE OPTIMISÉE)
   ========================================================================== */

.tableau-personnalise {
    width: 100% !important;
    max-width: 800px; 
    margin: 20px auto;
    border-collapse: collapse;
    border: none !important;
}

/* En-tête */
.tableau-personnalise thead th {
    background-color: #f1f4f8 !important; 
    color: #183762 !important; 
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    border: none !important;
}

.tableau-personnalise tr:nth-child(even) { background-color: #f1f4f8; }
.tableau-personnalise tr:nth-child(odd) { background-color: #B3CDEC; }

.tableau-personnalise td,
.tableau-personnalise th {
    padding: 10px 8px;
    text-align: left !important;
    border: none !important;
    vertical-align: middle;
}

/* CONFIGURATION POUR LES ÉCRANS LARGES (ORDINATEURS) */
@media screen and (min-width: 600px) {
    .tableau-personnalise th:nth-child(1), .tableau-personnalise td:nth-child(1) { width: 20%; }
    .tableau-personnalise th:nth-child(2), .tableau-personnalise td:nth-child(2) { width: 15%; }
    .tableau-personnalise th:nth-child(3), .tableau-personnalise td:nth-child(3) { width: 50%; }
    .tableau-personnalise th:nth-child(4), .tableau-personnalise td:nth-child(4) { width: 15%; }
}

/* CONFIGURATION POUR MOBILE (ÉCRANS DE MOINS DE 600PX) */
@media screen and (max-width: 600px) {
    .tableau-personnalise {
        font-size: 13px;
    }

    .tableau-personnalise th, .tableau-personnalise td {
        word-break: normal !important;
        white-space: normal;
    }

    .tableau-personnalise th:nth-child(1), .tableau-personnalise td:nth-child(1) { width: 25%; font-weight: bold; }
    .tableau-personnalise th:nth-child(2), .tableau-personnalise td:nth-child(2) { width: 15%; }
    .tableau-personnalise th:nth-child(3), .tableau-personnalise td:nth-child(3) { width: 45%; }
    .tableau-personnalise th:nth-child(4), .tableau-personnalise td:nth-child(4) { width: 15%; font-weight: bold; }
}

/* ==========================================================================
   3. FOND PAGE PRODUIT CATALOGUE / BOUTIQUE (WooCommerce)
   ========================================================================== */
main {
    background: #B3CDEC;
}

.site-main {
    background: #f1f4f8;
    padding: 2rem !important;
    border-radius: 5px;
}

/* ==========================================================================
   4. FOND BLOC PRODUIT CATALOGUE / BOUTIQUE (WooCommerce)
   ========================================================================== */

.woocommerce ul.products li.product {
    background: #E2E5E9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.woocommerce ul.products li.product .entry-content-wrap {
    background: #E2E5E9;
}
.content-style-unboxed .content-bg.loop-entry .content-bg:not(.loop-entry) {
    background: #E2E5E9 !important;
}

/* ==========================================================================
   RETOUR DU DESIGN BRODE STICK (BORDURES + OMBRES + ALIGNEMENT)
   ========================================================================== */

.wp-block-columns {
    align-items: stretch !important;
}

.carte-tarif-perso {
    background-color: #f1f4f8 !important;
    border-left: 6px solid #183762 !important;
    padding: 10px 25px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.carte-tarif-perso .wp-block-group.is-layout-flex {
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
}

.carte-tarif-perso .wp-block-button__link {
    background-color: #183762 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(24, 55, 98, 0.2) !important;
}

.carte-tarif-perso h3 {
    margin: 0 0 5px 0 !important;
    color: #183762 !important;
    font-weight: bold !important;
}

.carte-tarif-perso p {
    margin: 0 !important;
    line-height: 1.4 !important;
}

.carte-tarif-perso p em {
    font-size: 0.9em !important;
    color: #555 !important;
}

/* ==========================================================================
   CONFIGURATION GLOBALE DU FORMULAIRE BRODE STICK
   ========================================================================== */

.bs-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eee;
    max-width: 650px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.bs-field input, .bs-field select, .bs-field textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.bs-instructions {
    background: #f4f7f9;
    padding: 20px;
    border-left: 6px solid #183762;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.bs-field-file {
    margin-top: 10px;
    margin-bottom: 35px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bs-field-file label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 16px;
    color: #183762;
}

.bs-submit input {
    background-color: #183762 !important;
    color: #ffffff !important;
    padding: 18px 30px;
    border: none !important;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    width: 100%;
    transition: background 0.3s;
    -webkit-appearance: none;
}

.bs-submit input:hover {
    background-color: #0d213d !important;
}

#quiz-input {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.wpcf7-quiz-label {
    font-weight: bold;
    color: #183762;
}

@media screen and (max-width: 600px) {
    .bs-form-container {
        padding: 15px; 
        border: none !important; 
        box-shadow: none !important;
        margin: 5px auto;
    }

    .bs-field input, .bs-field select, .bs-field textarea {
        font-size: 14px;
        padding: 12px;
        margin-bottom: 15px;
    }

    .bs-instructions {
        font-size: 13px;
        padding: 12px;
        line-height: 1.5;
    }

    .bs-field-file {
        padding: 10px 5px;
        background: transparent;
        margin-bottom: 25px;
    }

    .bs-field-file input[type="file"] {
        font-size: 11px; 
        max-width: 100%;
    }

    .bs-submit input {
        font-size: 16px;
        padding: 15px;
    }
}

/* ==========================================================================
   Masquage des éléments en anglais de Mollie
   ========================================================================== */

/* Masquer le texte après 'chiffrées' */
.mollie-component-description {
    display: none !important;
}

/* Alternative si vous voulez juste cacher le logo Amex précisément */
/* (Note : l'identifiant peut varier selon la version, testez celui-ci) */
img[src*="americanexpress"] {
    display: none !important;
}


/* ==========================================================================
Désactive la largeur minimale sur les formulaires mobiles     ========================================================================== */

@media screen and (max-width: 768px) {
    .prad-addons-wrapper {
        min-width: 0px !important;
        width: 100% !important;
        display: block !important;
    }
}