/* lpds-divi-pixel-custom — front-end styles
 *
 * Self-contained baseline pour rendu correct out-of-the-box.
 * Override conseillé : `paradisduspa/style.css` (thème enfant).
 *
 * Les styles dynamiques injectés par Divi (Typography, Background, Border,
 * Spacing, Animation, etc. via les Settings panels) ont une spécificité plus
 * forte et viennent surcharger ces règles automatiquement.
 */

/* ========================================================================
 * Item layout (flex image + text)
 * ====================================================================== */

.dipi_price_list_custom_item_wrapper {
    display: flex;
    align-items: flex-start;
}

.dipi_price_list_custom_image_wrapper {
    width: 25%;
    flex-shrink: 0;
}

.dipi_price_list_custom_image_wrapper img {
    display: block;
    width: 100%;
    border-style: solid;
}

.dipi_price_list_custom_text_wrapper {
    padding: 2%;
    width: 100%;
    flex: 1;
    overflow-wrap: break-word;
}

/* ========================================================================
 * Header (title + separator + prices)
 * ====================================================================== */

.dipi_price_list_custom_header {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
}

.dipi_price_list_custom_title {
    margin: 0;
    flex-shrink: 1;
    min-width: 0;
}

/* ========================================================================
 * Separator (ligne pointillée entre titre et prix)
 * ====================================================================== */

.dipi_price_list_custom_separator {
    flex: 1 1 10%;
    margin: 0 8px;
    align-self: center;
    height: 0;
    min-width: 1em;
    border-top: 2px dotted #999;
    /* Reset bottom border to avoid stacking with stale dynamic styles. */
    border-bottom: 0 none transparent !important;
}

/* ========================================================================
 * Prices wrapper (price + clubPrice côte à côte)
 * ====================================================================== */

.dipi_price_list_custom_prices {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    flex-shrink: 0;
    /* Limite max pour éviter overflow dans des colonnes étroites */
    max-width: 100%;
}

/* Monospace + largeurs fixes pour alignement colonne-par-colonne entre items
 * (style "tableau sans bord"). Chaque colonne (price, clubPrice) a sa propre
 * width pour absorber préfixe/suffixe (ex. "€" ou " CLUB"). */
.dipi_price_list_custom_price,
.dipi_price_list_custom_club_price {
    font-family: 'Courier New', Courier, monospace;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.dipi_price_list_custom_price {
    width: 7ch;
}

.dipi_price_list_custom_club_price {
    width: 12ch;
}

/* Style par défaut du club price (gris foncé, gras) */
.dipi_price_list_custom_club_price {
    color: #444;
    font-weight: 700;
}

/* Préfixes/suffixes inline (€, /h, etc.) */
.dipi_price_list_custom_prefix_price,
.dipi_price_list_custom_suffix_price,
.dipi_price_list_custom_club_prefix_price,
.dipi_price_list_custom_club_suffix_price {
    display: inline;
}

/* ========================================================================
 * Item content (description sous le header)
 * ====================================================================== */

.dipi_price_list_custom_content {
    margin-top: 0.25em;
}

/* ========================================================================
 * Spacing entre items
 *
 * Divi ajoute automatiquement .et_pb_module à chaque bloc et lui applique
 * un margin-bottom global (~30px). Pour un PriceList où les items sont
 * groupés visuellement, on neutralise ce margin et on contrôle nous-mêmes
 * l'espacement entre items.
 * ====================================================================== */

/* !important nécessaire pour battre les règles Divi à forte spécificité
 * (ex. .et_pb_gutters3 .et_pb_column_1_2.et_block_column .et_pb_module
 * applique margin-bottom: 5.82% en min-width: 981px). */
.dipi_price_list_custom_item.et_pb_module {
    margin-bottom: 0 !important;
}

.dipi_price_list_custom_item + .dipi_price_list_custom_item {
    margin-top: 0.5em;
}

/* ========================================================================
 * Responsive (mobile : autoriser la galerie/lightbox sans cassures de layout)
 * ====================================================================== */

@media (max-width: 480px) {
    .dipi_price_list_custom_item_wrapper {
        flex-wrap: wrap;
    }
    .dipi_price_list_custom_image_wrapper {
        width: 100%;
        margin-bottom: 0.5em;
    }
}

.lpds-price-subtitle {
    color: #bac7db!important;
    font-weight: bold;
}