/* static/css/service_detail.css */

/* Styles supplémentaires pour la page de détail des services */

/* Animations spécifiques */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.service-icon-display {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.featured-badge, .popular-badge {
    animation: pulse 2s infinite;
}

/* Effets de hover améliorés */
.feature-card, .package-card, .tech-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.tech-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Gradient pour les cartes premium */
.package-card.premium {
    background: linear-gradient(135deg, #FFD70015 0%, #FFA50010 100%);
}

/* Styles pour les étoiles de notation */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star {
    color: #e2e8f0;
    font-size: 1.2rem;
}

.star.filled {
    color: #FFD700;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Badge pour les nouvelles fonctionnalités */
.new-badge {
    position: relative;
}

.new-badge:after {
    content: 'Nouveau';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53e3e;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

/* Compteurs animés */
.counter {
    font-weight: bold;
    transition: all 1s ease;
}

/* Progress bars */
.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Tabs pour les détails supplémentaires */
.service-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* Timeline pour les étapes du service */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -36px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item h4 {
    margin: 0 0 10px;
    color: #1a202c;
}

.timeline-item p {
    margin: 0;
    color: #4a5568;
}

/* FAQ Section */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question h4 {
    margin: 0;
    color: #1a202c;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.comparison-table th {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.feature-check {
    color: #48bb78;
    font-size: 1.2rem;
}

.feature-cross {
    color: #e53e3e;
    font-size: 1.2rem;
}

/* Price Calculator */
.price-calculator {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin: 30px 0;
}

.calculator-input {
    margin-bottom: 20px;
}

.calculator-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a202c;
}

.calculator-input input,
.calculator-input select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.calculator-result {
    text-align: center;
    padding: 20px;
    background: var(--primary-light);
    border-radius: 8px;
    margin-top: 20px;
}

.calculator-result h4 {
    margin: 0 0 10px;
    color: var(--primary-color);
}

.estimated-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 10px 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .service-hero {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .service-title,
    .section-title,
    .related-content h5,
    .feature-content h4,
    .package-name,
    .client-details h4 {
        color: #e2e8f0;
    }
    
    .service-subtitle,
    .rich-text,
    .package-description,
    .testimonial-content p,
    .contact-info p {
        color: #a0aec0;
    }
    
    .quick-nav,
    .related-services,
    .service-content,
    .package-card,
    .testimonial-card,
    .feature-card,
    .tech-item {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .feature-card:hover,
    .package-card:hover {
        background: #4a5568;
    }
    
    .form-control {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    }
}

/* Print Styles */
@media print {
    .service-hero,
    .quick-nav,
    .cta-card,
    .related-services,
    .hero-cta,
    .contact-section,
    .package-cta {
        display: none !important;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    .service-content {
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
    
    .btn {
        display: none !important;
    }
}

/* RTL Support */
[dir="rtl"] .hero-content,
[dir="rtl"] .contact-wrapper {
    direction: rtl;
}

[dir="rtl"] .service-icon-display {
    left: auto;
    right: -20px;
}

[dir="rtl"] .related-item:hover {
    transform: translateX(-5px);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .category-badge,
    .featured-badge,
    .popular-badge {
        border: 2px solid black;
    }
    
    .form-control {
        border: 2px solid black;
    }
}