/**
 * Bain Management - Frontend Styles
 */

a.bain {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a.bain:hover {
    color: #2fb5d2;
}

a.bain svg {
    width: 18px;
    height: 18px;
}

a.bain svg .cls-1 {
    fill: none;
    stroke: currentColor;
    stroke-miterlimit: 10;
    stroke-width: 0.5px;
}

/* ===== PAGE BAIN - Full width + fond ===== */
#module-bain_management-bain #content-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

#module-bain_management-bain #content-wrapper #main {
    max-width: 100%;
}


/* ===== HERO ===== */
.bain-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    max-height: 420px;
    position: relative;
    z-index: 1;
}

.bain-hero__image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.bain-intro {
    text-align: center;
    padding: 2rem 1rem 2.125rem;
    margin-bottom: 130px;
    background-color: #ffffff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.bain-intro__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0;
}

.bain-description {
    padding-bottom: 2rem;
}

.bain-description p {
    font-family: 'bryant-web', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
}

/* ===== FORMULAIRE ===== */
.bain-form {
    padding: 3rem 0;
}

.bain-form__selects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bain-form__group {
    display: flex;
    flex-direction: column;
}

.bain-form__label {
    font-family: 'bryant-web', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #42403D;
    margin-bottom: 0.5rem;
    text-align: left;
}

.bain-form__select {
    width: 100%;
    height: 48px;
    padding: 0 2.5rem 0 1rem;
    font-family: 'bryant-web', sans-serif;
    font-size: 0.95rem;
    color: #42403D;
    background-color: #fff;
    border: 1px solid #d0ccc7;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2342403D' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.bain-form__select:focus {
    outline: none;
    border-color: #42403D;
}

.bain-form__select:disabled {
    background-color: #f7f5f2;
    color: #a9a5a0;
    cursor: not-allowed;
}

/* ===== PRIX / QUANTITE / WARNING - Conteneur centré ===== */
#bain-price-section,
#bain-quantity-section,
.bain-warning {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRIX ===== */
.bain-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
    margin-bottom: 1.5rem;
}

.bain-price__label {
    font-family: 'bryant-web', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #42403D;
}

.bain-price__value {
    font-family: 'bryant-web', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #42403D;
}

.bain-price__hint {
    font-family: 'bryant-web', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== QUANTITE + BOUTON SUR LA MEME LIGNE ===== */
.bain-cart-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bain-quantity {
    display: flex;
    align-items: center;
}

.bain-quantity__controls {
    display: flex;
    align-items: center;
}

.bain-quantity__btn {
    width: 30px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #42403D;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
}

#qty-minus {
    border-right: none;
}

#qty-plus {
    border-left: none;
}

.bain-quantity__btn img {
    width: 12px;
    height: 12px;
}

.bain-quantity__btn:hover:not(:disabled) {
    background-color: #f7f5f2;
}

.bain-quantity__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bain-quantity__input {
    width: 40px;
    height: 52px;
    text-align: center;
    font-family: 'bryant-web', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #42403D;
    background: transparent;
    border: 1px solid #42403D;
    border-left: none;
    border-right: none;
    border-radius: 0;
    -moz-appearance: textfield;
}

.bain-quantity__input::-webkit-inner-spin-button,
.bain-quantity__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== BOUTONS D'ACTION ===== */
.bain-actions {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.bain-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    padding: 0 2rem;
    font-family: 'bryant-web', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.bain-actions__btn--outline {
    color: #42403D;
    background: transparent;
    border: 1px solid #42403D;
}

.bain-actions__btn--outline:hover:not(:disabled) {
    background-color: #42403D;
    color: #fff;
}

.bain-actions__btn--outline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bain-actions__btn--filled {
    color: #fff;
    background-color: #42403D;
    border: 1px solid #42403D;
}

.bain-actions__btn--filled:hover {
    background-color: #2e2d2b;
    border-color: #2e2d2b;
}

/* ===== MESSAGE SUCCES ===== */
.bain-success {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'bryant-web', sans-serif;
    font-size: 1rem;
    color: #42403D;
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
}

/* ===== WARNING ===== */
.bain-warning {
    text-align: center;
    margin-top: 2.5rem;
    font-family: 'bryant-web', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #B26A51;
    font-weight: 500;
}

.bain-explanation {
    margin: 2rem auto 120px;
    padding-top: 4rem;
    max-width: 1000px;
}

.bain-explanation__inner {
    margin: 0 auto;
    align-items: start;
    display: flex;
}

.bain-explanation__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.3;
}

.bain-explanation__text {
    font-family: 'bryant-web', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.bain-explanation__text:last-child {
    margin-bottom: 0;
}

.bain-3blocks {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.bain-3blocks .dolikom-3blocks-wrapper {
    margin-top: 0;
}

@media (max-width: 768px) {
    .bain-hero {
        max-height: 250px;
    }

    .bain-hero__image {
        height: 250px;
    }

    .bain-intro {
        margin: 2rem auto;
    }

    .bain-intro__title {
        font-size: 1.6rem;
    }

    .bain-form__selects {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bain-cart-row {
        flex-direction: column;
    }

    .bain-actions__btn {
        width: 100%;
    }

    .bain-explanation__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bain-explanation__title {
        font-size: 1.4rem;
    }

    .bain-explanation {
        padding: 2.5rem 1.25rem;
    }
}
#bain-selection-form{
    border-bottom: 1px solid #42403D;
    border-top: 1px solid #42403D;

}