/* Import du CSS de base */
@import url('index.css');
@import url('global.css');

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Styles spécifiques à la page services */
.hero {
    padding: 120px 0 60px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Services détaillés */
.services-detailed {
    padding: 80px 0;
}

.service-section {
    margin-bottom: 120px;
}

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

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-section.reverse .service-content {
    direction: rtl;
}

.service-section.reverse .service-text {
    direction: ltr;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.service-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.service-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.features-list {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Mockups visuels */
.service-visual {
    position: relative;
}

/* Excel Mockup */
.excel-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.excel-header {
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.excel-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid var(--border-color);
}

.tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.excel-content {
    padding: 1rem;
}

.excel-toolbar {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.toolbar-section {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: var(--bg-secondary);
}

.excel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.grid-cell {
    background: white;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.grid-cell.header {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.grid-cell.positive {
    color: var(--secondary-color);
    font-weight: 600;
}

.grid-cell.negative {
    color: #ef4444;
    font-weight: 600;
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dashboard-header {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.control-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
}

.control-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.dashboard-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1.5rem;
}

.kpi-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.kpi-trend {
    font-size: 0.9rem;
    font-weight: 600;
}

.kpi-trend.positive {
    color: var(--secondary-color);
}

.chart-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: end;
    justify-content: center;
}

.chart-bars {
    display: flex;
    gap: 0.5rem;
    align-items: end;
    height: 80px;
}

.bar {
    width: 20px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
}

.bar:hover {
    opacity: 0.8;
}

/* Analysis Mockup */
.analysis-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.analysis-header {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.analysis-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.analysis-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.analysis-content {
    padding: 2rem;
}

.trend-chart {
    position: relative;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-secondary) 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.trend-line {
    position: relative;
    height: 100%;
}

.trend-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.trend-point::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.trend-point:last-child::before {
    display: none;
}

.analysis-insights {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.insight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.insight i {
    color: var(--secondary-color);
}

/* Support Mockup */
.support-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 350px;
}

.support-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.support-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.status.online::before {
    content: '●';
    color: var(--secondary-color);
    margin-right: 0.25rem;
}

.support-chat {
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.message.received {
    margin-right: auto;
}

.message.sent {
    margin-left: auto;
    text-align: right;
}

.message p {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.message.sent p {
    background: var(--primary-color);
    color: white;
}

.message .time {
    font-size: 0.7rem;
    color: var(--text-light);
}

.support-actions {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--bg-secondary);
}

/* Processus */
.process {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
}

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

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-section.reverse .service-content {
        direction: ltr;
    }

    .service-text h2 {
        font-size: 2rem;
    }


    .service-section,
    .service-content,
    .service-text,
    .service-visual {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .service-visual {
        order: 2;
        /* l’image en bas */
    }

    .service-text {
        order: 1;
        /* le texte en haut */
    }

    img,
    .excel-mockup,
    .excel-content {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

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

    .process-steps {
        grid-template-columns: 1fr;
    }

    .analysis-insights {
        flex-direction: column;
        align-items: center;
    }

    .support-mockup {
        max-width: 100%;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .service-text h2 {
        font-size: 1.8rem;
    }

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

    .dashboard-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .support-actions {
        flex-direction: column;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-section:nth-child(odd) .service-text {
    animation: slideInLeft 0.8s ease forwards;
}

.service-section:nth-child(odd) .service-visual {
    animation: slideInRight 0.8s ease forwards;
}

.service-section:nth-child(even) .service-text {
    animation: slideInRight 0.8s ease forwards;
}

.service-section:nth-child(even) .service-visual {
    animation: slideInLeft 0.8s ease forwards;
}