/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.section-tarifs {
    max-width: 1200px;
    margin: auto;
    margin-top:35px;
}

.container-section-tarifs {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.titre-section-tarif {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 115%;
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
}

.container-pricing {
    width: 100%;
    min-width: 1100px;
}

/* --- Section Pricing Grid --- */
.pricing-grid {
    display: flex;
    margin-bottom: 20px;
    position:relative;
}

.background-pricing {
    position: absolute;
    top: 115px;
    width: 104%;
    background-color: white;
    height: 320px;
    margin-left: -2%;
    border-radius: 10px;
    z-index: -1;
}

/* Colonne des labels à gauche */
.labels-column {
    width: 250px;
    display: flex;
    flex-direction: column;
    margin-top: 115px;
    color: #555;
}

.label-item {
    height: 65px; /* Doit correspondre à la hauteur d'une ligne de carte */
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Conteneur des cartes */
.cards-container {
    display: flex;
    flex: 1;
    gap: 15px;
}

.card-pricing {
    flex: 1;
    background: linear-gradient(180deg, #004a99 0%, #00aaff 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.card-header {
    padding: 30px 20px;
    font-size: 1.4rem;
    font-weight: bold;
    min-height: 100px;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-row {
    height: 65px; /* Aligné avec label-item */
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.card-footer {
    padding: 20px;
    text-align: right;
}

.price-wrapper {
    display: inline-block;
    position: relative;
}

.price {
    font-size: 2.2rem;
    font-weight: bold;
}

.ht {
    font-size: 0.9rem;
    vertical-align: super;
    margin-left: 4px;
}

.per-an {
    font-size: 0.8rem;
    display: block;
    margin-top: -5px;
}

/* --- Section Bottom Offers --- */
.bottom-offers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 1rem;
}

.bottom-label {
    font-weight: bold;
    flex: 1;
}

.bottom-value {
    text-align: right;
    flex: 1;
}

.bottom-value small {
    font-size: 0.75rem;
}

/* Couleurs des lignes du bas */
.grey {
    background-color: #e0e0e0;
    color: #000;
}

.yellow {
    background-color: #ffcc33;
    color: #000;
}

.orange {
    background-color: #ffb366;
    color: #000;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        flex-direction: column;
    }
    .labels-column {
        display: none; /* On cache les labels sur mobile pour la lisibilité */
    }
    .cards-container {
        flex-direction: column;
    }
}
