/* ============================================
   MODAL SERVICE - Design 2025 Premium
   ============================================ */

.service-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === MODAL GLASSMORPHISM === */
.service-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(90vw, 900px);
    max-height: 90vh;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 0 1px rgba(99, 102, 241, 0.05),
        0 8px 32px rgba(15, 23, 42, 0.12),
        0 32px 64px rgba(15, 23, 42, 0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* === GRADIENT SHIMMER TOP === */
.service-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--service-color, #6366f1) 20%,
        #8b5cf6 40%,
        var(--service-color, #6366f1) 60%,
        #8b5cf6 80%,
        transparent 100%
    );
    background-size: 200% auto;
    animation: shimmerGradient 3s ease-in-out infinite;
    filter: blur(2px);
    z-index: 10;
}

@keyframes shimmerGradient {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* === HEADER MODERNE === */
.service-modal__header {
    padding: clamp(2rem, 5vw, 2.5rem);
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(248, 250, 252, 0.9) 100%
    );
    border-bottom: 1px solid rgba(241, 245, 249, 0.6);
}

/* === CLOSE BUTTON MODERNE === */
.service-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
    z-index: 20;
}

.service-modal__close:hover {
    background: rgba(226, 232, 240, 0.8);
    transform: rotate(90deg) scale(1.05);
    border-color: rgba(203, 213, 225, 1);
    color: #334155;
}

/* === ICON AVEC GLOW === */
.service-modal__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--service-color, #6366f1);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--service-color, #6366f1) 10%, transparent) 0%,
        color-mix(in srgb, var(--service-color, #6366f1) 5%, transparent) 100%
    );
    border-radius: 18px;
    margin-bottom: 1.25rem;
    position: relative;
    transition: all 0.4s ease;
}

.service-modal__icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        var(--service-color, #6366f1),
        #8b5cf6
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.2;
}

.service-modal:hover .service-modal__icon {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--service-color, #6366f1) 25%, transparent);
}

/* === TITLES === */
.service-modal__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.service-modal__subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* === BODY SCROLLABLE === */
.service-modal__body {
    padding: clamp(1.75rem, 5vw, 2.5rem);
    overflow-y: auto;
    flex: 1;
}

.service-modal__body::-webkit-scrollbar {
    width: 6px;
}

.service-modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.service-modal__body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    border-radius: 10px;
}

.service-modal__body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

.service-modal__content {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #475569;
    font-size: 0.975rem;
}

.service-modal__content p {
    margin: 0 0 1rem 0;
}

.service-modal__content p:last-child {
    margin-bottom: 0;
}

/* === PRICING CARD MODERNE === */
.service-modal__pricing {
    background: linear-gradient(
        135deg,
        rgba(248, 250, 252, 0.8) 0%,
        rgba(241, 245, 249, 0.6) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.service-modal__price {
    font-size: clamp(2.25rem, 6vw, 3rem);
    font-weight: 700;
    background: linear-gradient(
        135deg,
        var(--service-color, #6366f1) 0%,
        #8b5cf6 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;
}

.service-modal__price-label {
    color: #64748b;
    font-size: 0.925rem;
    font-weight: 500;
}

.service-modal__duration {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    margin-top: 1.25rem;
    color: #475569;
    font-size: 0.875rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    font-weight: 500;
}

/* === SECTION === */
.service-modal__section {
    margin-bottom: 2rem;
}

.service-modal__section:last-child {
    margin-bottom: 0;
}

.service-modal__section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid rgba(241, 245, 249, 0.8);
    position: relative;
    letter-spacing: -0.01em;
}

.service-modal__section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--service-color, #6366f1) 0%,
        #8b5cf6 100%
    );
    border-radius: 2px;
}

/* === FEATURES LISTE === */
.service-modal__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.875rem;
}

.service-modal__feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(241, 245, 249, 0.8);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    position: relative;
}

.service-modal__feature::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--service-color, #6366f1);
    border-radius: 50%;
    margin-top: 0.5rem;
    box-shadow: 0 0 8px color-mix(in srgb, var(--service-color, #6366f1) 50%, transparent);
}

.service-modal__feature:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(203, 213, 225, 1);
    transform: translateX(4px);
}

/* === FOOTER MODERNE === */
.service-modal__footer {
    padding: 1.75rem clamp(1.75rem, 5vw, 2.5rem);
    background: linear-gradient(
        180deg,
        rgba(248, 250, 252, 0.5) 0%,
        rgba(241, 245, 249, 0.8) 100%
    );
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.service-modal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: linear-gradient(
        135deg,
        var(--service-color, #6366f1) 0%,
        #8b5cf6 100%
    );
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.925rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--service-color, #6366f1) 30%, transparent);
}

.service-modal__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-modal__cta:hover::before {
    transform: translateX(100%);
}

.service-modal__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--service-color, #6366f1) 45%, transparent);
}

.service-modal__cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-modal__cta:hover svg {
    transform: translateX(3px);
}

.service-modal__secondary {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem;
}

.service-modal__secondary:hover {
    color: var(--service-color, #6366f1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .service-modal {
        width: 94vw;
        max-height: 92vh;
    }
    
    .service-modal__header,
    .service-modal__body {
        padding: 1.5rem;
    }
    
    .service-modal__footer {
        padding: 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .service-modal__cta {
        width: 100%;
    }
    
    .service-modal__title {
        font-size: 1.65rem;
    }
    
    .service-modal__price {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .service-modal__icon {
        width: 60px;
        height: 60px;
    }
    
    .service-modal__close {
        width: 32px;
        height: 32px;
        top: 1rem;
        right: 1rem;
    }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    .service-modal,
    .service-modal-overlay,
    .service-modal__cta::before,
    .service-modal::before {
        animation: none;
        transition: none;
    }
    
    .service-modal__feature:hover {
        transform: none;
    }
}

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
    .service-modal {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.5);
    }
    
    .service-modal__header {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
        border-color: rgba(71, 85, 105, 0.4);
    }
    
    .service-modal__close {
        background: rgba(51, 65, 85, 0.6);
        border-color: rgba(71, 85, 105, 0.8);
        color: #cbd5e1;
    }
    
    .service-modal__close:hover {
        background: rgba(71, 85, 105, 0.8);
        color: #f8fafc;
    }
    
    .service-modal__title {
        color: #f8fafc;
    }
    
    .service-modal__subtitle,
    .service-modal__content {
        color: #cbd5e1;
    }
    
    .service-modal__pricing {
        background: linear-gradient(135deg, rgba(51, 65, 85, 0.6), rgba(71, 85, 105, 0.4));
        border-color: rgba(71, 85, 105, 0.8);
    }
    
    .service-modal__duration {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(71, 85, 105, 0.8);
        color: #cbd5e1;
    }
    
    .service-modal__section-title {
        color: #f8fafc;
        border-color: rgba(71, 85, 105, 0.6);
    }
    
    .service-modal__feature {
        background: rgba(51, 65, 85, 0.4);
        border-color: rgba(71, 85, 105, 0.6);
        color: #cbd5e1;
    }
    
    .service-modal__feature:hover {
        background: rgba(71, 85, 105, 0.6);
    }
    
    .service-modal__footer {
        background: linear-gradient(180deg, rgba(51, 65, 85, 0.4), rgba(71, 85, 105, 0.6));
        border-color: rgba(71, 85, 105, 0.4);
    }
}