/* Container principal de la section prestations */
.prestations-section {
    width: 100%;
    max-width: 1140px; /* largeur maximale comme Bootstrap */
    margin: 3rem auto 0; /* mt-5 = margin-top: 3rem */
    padding: 0 15px; /* padding horizontal */
    box-sizing: border-box;
}

/* Grille simple 2 colonnes */
.prestations-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px; /* compensation padding */
}

.prestations-section .col {
    padding: 0 15px;
    flex: 1 1 50%; /* deux colonnes par ligne */
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Cartes prestations */
.rounded-section {
  max-width: 100%; /* rétrécit la carte à 85 % de sa colonne */
    background-color: #ffffff;
    border-radius: 12px;
    padding: 12px 15px; /* réduit l'espace intérieur */
    margin-bottom: 15px; /* réduit l'espace entre les cartes */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rounded-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Lien cliquable sur toute la carte */
.prestation-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.prestation-link:hover .rounded-section {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.prestation-link p,
.prestation-link .prestation-title {
    color: inherit;
    text-decoration: none;
}

/* Titre de la prestation */
.prestation-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Images responsive dans les cartes */
.img {
    max-width: 100%;
    height: auto;
}

.price-bubble {
    position: absolute;
    top: 50%;               /* point central vertical */
    transform: translateY(-50%); /* centre verticalement */
    
    width: 100px;           /* plus grande */
    height: 100px;
    background: #2c71aa;    /* couleur principale */
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 10;
}

.price-bubble-left{
    left: -25px;            /* déborde légèrement de la carte */
}

.price-bubble-right{
    right: -25px;            /* déborde légèrement de la carte */
}

/* Texte à l’intérieur */
.price-bubble .price-line {
    font-size: 13px;
    line-height: 1;
}
.price-bubble .price-amount {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}
.price-bubble .price-ht {
    font-size: 12px;
    opacity: 0.9;
}

.price-bubble:hover {
    transform: translateY(calc(-50% - 10px));
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.btn-en-savoir-plus{
    background-color: #2c71aa;
    border: none;
    margin-top: 2%;
    padding: 2%;
    margin-left: 36%;
    font-size: 18px;
}

.btn-en-savoir-plus:hover{
    background-color: #2980b9;
}

@media (max-width: 991px) { 
    .text-box{
        margin: 0 !important;
    }

    h2{
        font-size: 24px;
    }

    p, .installation-list{
        font-size: 16px;
        margin: 0;
    }

    .noPadding{
        padding-bottom: 0 !important;

    }
    .btn-en-savoir-plus{
        margin-left: 30%;
    }

}

@media (max-width: 768px) {
    .prestations-section .col {
        flex: 1 1 100%;
    }
}
@media (max-width: 768px) {
    .price-bubble {
        position: relative; /* Sort de l’absolu */
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin-bottom: -15px; /* Pour coller la bulle au bloc */
        width: 80px;
        height: 80px;
    }
    .price-bubble .price-line {
        font-size: 11px;
    }
    .price-bubble .price-amount {
        font-size: 16px;
    }
    .price-bubble .price-ht {
        font-size: 10px;
    }
}

/* ===========================
   Correctifs tablettes
   =========================== */
@media (min-width: 768px) and (max-width: 1366px) {

    /* Réduit la hauteur du bandeau */
    .main-section {
        height: 40vh !important;   /* au lieu de 75vh */
        min-height: 350px;         /* sécurité */
    }

    /* Centrer verticalement le texte */
    .main-section .content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
    }

    /* Ajuste la taille du titre */
    .main-title {
        font-size: 1.6rem !important;
        margin-bottom: 10px;
        margin-top: 10%;
    }

    /* Ajuste le texte */
    .main-section p {
        font-size: 0.9rem !important;
        line-height: 1.4;
    }

    /* Ajuste l’image bandeau (trop zoomée sur tablette) */
    .bandeau img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}