/* ====================================================================
   CHATBOT DZ - ANALYTICS, PRICING & FOOTER
   FICHIER : css/footer-pricing.css
   VERSION : FINAL.1
   DESCRIPTION : Dashboard, Tickets 3D, Tarifs et Footer.
====================================================================
*/

/* =================================================================
   1. SECTION ANALYTICS (DASHBOARD MOCKUP)
================================================================= */

/* Conteneur principal du Dashboard */
.analytics-dashboard {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease;
}

/* Effet de survol subtil sur tout le dashboard */
.analytics-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 106, 255, 0.1);
}

/* En-tête du Dashboard */
.dash-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.dash-header strong {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
}

.dash-header i {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.dash-header i:hover {
    color: var(--text-main);
}

/* Grille de Statistiques (KPIs) */
.dash-stats {
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background-color: #ffffff;
}

.stat-card {
    background-color: var(--slate-50);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-200);
    transform: translateY(-2px);
}

.stat-card h4 {
    font-size: 2.5rem;
    margin: 0 0 8px 0;
    color: var(--text-main);
    letter-spacing: -0.05em;
}

.stat-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Zone du Graphique Animé */
.dash-chart {
    padding: 0 32px 32px 32px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    background: linear-gradient(to bottom, #ffffff, var(--slate-50));
}

/* Barres du graphique */
.bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 6px 6px 0 0;
    opacity: 0.85;
    height: 10%; /* Hauteur initiale (sera animée par JS) */
    transition: height 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    position: relative;
}

.bar:hover {
    opacity: 1;
    transform: scaleX(1.1);
    z-index: 2;
}

/* Tooltip au survol d'une barre (CSS pur) */
.bar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
    border-radius: 50%;
    transition: transform 0.2s;
}

.bar:hover::before {
    transform: translateX(-50%) scale(1);
}

/* =================================================================
   2. SECTION SUPPORT (TICKETS STACK 3D)
================================================================= */

/* Conteneur de la pile */
.ticket-stack {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* Profondeur pour l'effet 3D */
}

/* Style de base d'un ticket */
.ticket-card {
    position: absolute;
    width: 360px;
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center bottom;
}

/* État : Ticket Avant (Front) */
.ticket-card.front {
    z-index: 3;
    transform: translateY(0) scale(1);
    background-color: #ffffff;
}

/* État : Ticket Milieu (Mid) */
.ticket-card.mid {
    z-index: 2;
    transform: translateY(20px) scale(0.95);
    opacity: 0.7;
    background-color: var(--slate-50);
    border-color: var(--border-light);
    filter: blur(0.5px);
}

/* État : Ticket Arrière (Back) */
.ticket-card.back {
    z-index: 1;
    transform: translateY(45px) scale(0.9);
    opacity: 0.4;
    background-color: var(--slate-100);
    filter: blur(1px);
}

/* Animation au survol de la pile */
.ticket-stack:hover .ticket-card.front {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.ticket-stack:hover .ticket-card.mid {
    transform: translateY(15px) scale(0.96) rotate(-4deg) translateX(-10px);
    opacity: 0.9;
    filter: blur(0);
}

.ticket-stack:hover .ticket-card.back {
    transform: translateY(45px) scale(0.92) rotate(4deg) translateX(10px);
    opacity: 0.7;
    filter: blur(0);
}

/* Contenu interne du ticket */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-light);
}

.ticket-header span:first-child {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}

.ticket-priority {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    background-color: var(--danger-light);
    color: var(--danger-main);
}

.ticket-body p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 0;
    font-style: italic;
}

/* =================================================================
   3. SECTION TARIFS (PRICING GRID)
================================================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Modification spécifique pour 4 colonnes sur grand écran */
.pricing-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Carte Tarifaire */
.pricing-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
}

/* Hover Effect */
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-500);
}

/* Carte "Featured" (Mise en avant - Plan Ultra) */
.pricing-card.featured {
    border: 2px solid var(--primary-500);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Badge "Populaire" */
.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-500);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

/* En-tête du Plan */
.plan-header {
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 10px 0;
    letter-spacing: -0.02em;
}

.plan-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Liste des fonctionnalités */
.plan-features {
    flex-grow: 1; /* Pousse le bouton vers le bas */
    margin-bottom: 40px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.plan-features i {
    color: var(--primary-500);
    margin-top: 4px;
    flex-shrink: 0;
}

/* =================================================================
   4. SECTION CTA (Call To Action Final)
================================================================= */
.cta-section {
    background-color: var(--slate-50);
    text-align: center;
    border-top: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

/* Décoration arrière-plan (optionnelle) */
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-100) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* =================================================================
   5. FOOTER (PIED DE PAGE)
================================================================= */
footer {
    background-color: var(--bg-footer);
    color: var(--slate-400);
    padding-top: 100px;
    padding-bottom: 40px;
    font-size: 0.95rem;
    position: relative;
    z-index: 100; /* Au-dessus de tout sauf barre flottante */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Colonne marque plus large */
    gap: 60px;
    margin-bottom: 80px;
}

/* Colonne Marque */
.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-col p {
    line-height: 1.8;
    max-width: 320px;
    color: var(--slate-400);
    margin-bottom: 0;
}

/* Colonnes Liens */
.footer-col a {
    display: block;
    margin-bottom: 14px;
    color: var(--slate-400);
    transition: all 0.2s ease;
    position: relative;
    width: fit-content;
}

.footer-col a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-col a:hover::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-500);
}

/* Réseaux Sociaux */
.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-500);
    color: #ffffff;
    transform: translateY(-3px);
    padding-left: 0; /* Override le padding des liens standards */
}

.social-links a:hover::before {
    content: none; /* Pas de flèche pour les icônes */
}

/* Bas de page (Copyright) */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    font-size: 0.85rem;
    color: var(--slate-500);
}