/* consultation-domicile.css */

/* ======================================== */
/* STYLE DE BASE DE LA PAGE DE SERVICE    */
/* ======================================== */
.service-main {
    position: relative;
    padding: 140px 20px 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Important pour l'animation de fond */
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(-45deg, #e0f7fa, #e3f2fd, #f3e5f5, #ffebee);
    background-size: 400% 400%;
    animation: animatedBackground 20s ease infinite;
}

@keyframes animatedBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.service-container {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.page-title h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* ======================================== */
/* GRILLE DES TARIFS                      */
/* ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.15);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color-start);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color-start);
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    min-height: 40px; /* Pour aligner les listes de prix */
}

.price-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1; /* Pousse le bouton en bas */
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e7ff;
    font-weight: 500;
}
.price-list li:last-child {
    border-bottom: none;
}

.price-list .price {
    font-weight: 700;
    color: var(--primary-color-start);
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto; /* Aligne le bouton en bas */
}
.pricing-card .btn i {
    font-size: 1.2rem;
}


/* ======================================== */
/* RESPONSIVE DESIGN                      */
/* ======================================== */
@media (max-width: 768px) {
    .page-title h1 {
        font-size: 2.5rem;
    }
    .page-title p {
        font-size: 1rem;
    }
    .pricing-card.featured {
        transform: scale(1); /* Annule l'effet de zoom sur mobile */
    }
}