/* ========================================
   AMÉLIORATIONS INDEX.PHP - CARDS ET LISIBILITÉ
   ======================================== */

/* Hero Section - Lisibilité améliorée */
.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #63c8d9 0%, #f8a799 50%, #5e3494 100%);
}

/* Conteneur vidéo */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Vidéo en arrière-plan */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    display: block;
}

/* Filtre de couleur opaque par-dessus la vidéo */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 200, 217, 0.6) 0%, rgba(248, 167, 153, 0.6) 50%, rgba(94, 52, 148, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Container du hero pour positionner le contenu par-dessus */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    margin-bottom: -1rem;
    color: white;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
    padding: 1.1rem 2.5rem;
    background: white;
    color: #5e3494;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    border: none;
}

.hero-cta .btn-primary i {
    color: #5e3494;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn-primary > * {
    position: relative;
    z-index: 2;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: white;
}

/* ========================================
   TABS PARENT (Services principaux)
   ======================================== */
.service-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(94, 52, 148, 0.03) 0%, rgba(99, 200, 217, 0.03) 100%);
    border-radius: 50px;
}

.service-tab {
    padding: 1.2rem 1.5rem;
    border: 2px solid transparent;
    background: white;
    color: #5e3494;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.service-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 200, 217, 0.15) 0%, rgba(248, 167, 153, 0.15) 50%, rgba(94, 52, 148, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-tab > * {
    position: relative;
    z-index: 1;
}

.service-tab i {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.service-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(94, 52, 148, 0.15);
    border-color: rgba(94, 52, 148, 0.2);
}

.service-tab:hover::before {
    opacity: 1;
}

.service-tab:hover i {
    transform: scale(1.1);
}

.service-tab.active {
    background: linear-gradient(135deg, rgba(99, 200, 217, 0.25) 0%, rgba(248, 167, 153, 0.25) 50%, rgba(94, 52, 148, 0.25) 100%);
    color: #5e3494;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(94, 52, 148, 0.2);
    transform: translateY(-2px);
}

.service-tab.active::before {
    opacity: 0;
}

/* Tab Content Container */
.service-tabs-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane {
    animation: fadeIn 0.4s ease;
}

/* Services Cards - Pas de lisérés, meilleure structure */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    border-left: none;
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(94, 52, 148, 0.15);
    transform: translateY(-8px);
}

.service-icon {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: none;
}

.service-sophrologie .service-icon {
    background: linear-gradient(135deg, #63c8d9 0%, #b3e5fc 100%);
    color: rgba(255, 255, 255, 0.7);
}

.service-psychopraticienne .service-icon {
    background: linear-gradient(135deg, #f8a799 0%, #ffb39b 100%);
    color: rgba(255, 255, 255, 0.7);
}

.service-hypnose .service-icon {
    background: linear-gradient(135deg, #5e3494 0%, #7c4dce 100%);
    color: rgba(255, 255, 255, 0.7);
}

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-title {
    font-size: 1.5rem;
    color: #5e3494;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.service-title i {
    font-size: 1.4rem;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

.service-details {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 12px;
    flex: 1;
    margin: 0.5rem 0;
}

.service-details strong {
    color: #5e3494;
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-dark);
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #63c8d9;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-mode {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Tarifs Cards - Meilleure structure */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tarif-card {
    background: white;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    border-top: none;
    display: flex;
    flex-direction: column;
}

.tarif-card:hover {
    box-shadow: 0 12px 30px rgba(94, 52, 148, 0.15);
    transform: translateY(-5px);
}

.tarif-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #f0f0f0;
}

.tarif-header i {
    font-size: 2rem;
    color: #5e3494;
}

.tarif-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #5e3494;
    font-weight: 700;
}

.tarif-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tarif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    gap: 1rem;
}

.tarif-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tarif-type {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

.tarif-duree {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.tarif-prix {
    font-weight: 800;
    color: #5e3494;
    font-size: 1.3rem;
    white-space: nowrap;
}

/* Badge - Pas de lisérés */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
}

.badge-presentiel {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-distanciel {
    background-color: #fce4ec;
    color: #c2185b;
}

/* Notes Tarifs */
.tarifs-notes {
    text-align: center;
    margin-top: 2.5rem;
}

.note-remboursement {
    background: linear-gradient(135deg, rgba(99, 200, 217, 0.1) 0%, rgba(248, 167, 153, 0.1) 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: inline-block;
    max-width: 600px;
    border: 1px solid rgba(94, 52, 148, 0.1);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Bouton Rendez-vous Flottant */
.floating-rdv-btn {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #5e3494 0%, #7c4dce 100%) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    text-decoration: none !important;
    box-shadow: 0 6px 25px rgba(94, 52, 148, 0.35) !important;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
    animation: floatingBtnAppear 0.5s ease !important;
    opacity: 1 !important;
    position: relative !important;
    overflow: hidden !important;
}

.floating-rdv-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #63c8d9, #f8a799, #5e3494) !important;
    z-index: 1 !important;
}

.floating-rdv-btn i {
    position: relative !important;
    z-index: 2 !important;
}

@keyframes floatingBtnAppear {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.floating-rdv-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(94, 52, 148, 0.45);
}

.floating-rdv-btn:active {
    transform: scale(0.95);
}

/* ========================================
   RESPONSIVE - Mobile First
   ======================================== */

/* Tablette */
@media (max-width: 1024px) {
    .service-tabs {
        gap: 0.75rem;
        padding: 0.4rem;
    }

    .service-tab {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .service-tab i {
        font-size: 1.8rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Tabs parent en colonne sur mobile */
    .service-tabs {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 0.4rem;
        margin-bottom: 2rem;
    }

    .service-tab {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        flex-direction: row;
        justify-content: center;
    }

    .service-tab i {
        font-size: 1.5rem;
    }

    /* Sous-tabs compacts sur mobile */
    .service-subtabs {
        gap: 0.5rem;
        padding: 0.3rem;
    }

    .service-subtab {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
    }

    .service-subtab i {
        font-size: 0.9rem;
    }

    /* Optimisation espace mobile */
    .service-header-section {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .service-icon-large {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }

    .service-title-main {
        font-size: 1.6rem;
    }

    .service-description-main {
        font-size: 1rem;
    }

    .service-content-section {
        padding: 1.2rem;
    }

    .tarifs-grid {
        grid-template-columns: 1fr;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta .btn-primary {
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    .floating-rdv-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.4rem !important;
        bottom: 1.5rem !important;
        right: 1.5rem !important;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .service-tab {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .service-subtab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .service-icon-large {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
}
