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

/* Styles spécifiques à la page portfolio */
.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: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Filtres de portfolio */
.portfolio-filters {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Grille de portfolio */
.portfolio-grid {
    padding: 80px 0;
    background: var(--bg-primary);
}

.portfolio-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    max-width: 600px;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.view-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Previews des projets */
.dashboard-preview,
.automation-preview,
.analysis-preview,
.tool-preview,
.financial-preview,
.inventory-preview {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-controls {
    display: flex;
    gap: 0.25rem;
}

.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
}

.control-dot:first-child {
    background: #ef4444;
}

.control-dot:nth-child(2) {
    background: #f59e0b;
}

.control-dot:nth-child(3) {
    background: var(--secondary-color);
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Dashboard Preview */
.kpi-row {
    display: flex;
    gap: 1rem;
}

.kpi-mini {
    flex: 1;
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

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

.kpi-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.chart-mini {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    align-items: end;
    justify-content: center;
}

.bars-mini {
    display: flex;
    gap: 0.25rem;
    align-items: end;
    height: 60px;
}

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

/* Automation Preview */
.preview-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.status-indicator.active {
    animation: pulse 2s infinite;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
}

.step i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.step.completed i {
    background: var(--secondary-color);
    color: white;
}

.step.in-progress i {
    background: var(--accent-color);
    color: white;
}

.step-arrow {
    color: var(--text-light);
    font-size: 0.8rem;
}

.automation-stats {
    display: flex;
    gap: 1rem;
}

.stat-mini {
    flex: 1;
    text-align: center;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 4px;
}

.stat-mini .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-mini .label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Analysis Preview */
.trend-chart-mini {
    position: relative;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
}

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

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

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

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

.insights-mini {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

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

/* Tool Preview */
.preview-menu {
    display: flex;
    gap: 0.5rem;
}

.menu-item {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.menu-item.active {
    background: var(--primary-color);
    color: white;
}

.employee-list {
    margin-bottom: 1rem;
}

.employee-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.employee-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
}

.employee-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.employee-info .name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.employee-info .role {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.employee-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.hr-stats {
    display: flex;
    gap: 1rem;
}

.hr-stat {
    flex: 1;
    text-align: center;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 4px;
}

.hr-stat .number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hr-stat .label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Financial Preview */
.mini-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.7rem;
    background: white;
}

.financial-kpis {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.financial-kpi {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 6px;
}

.kpi-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.kpi-data {
    display: flex;
    flex-direction: column;
}

.kpi-data .value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.kpi-data .change {
    font-size: 0.7rem;
    font-weight: 600;
}

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

.financial-chart {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
}

.chart-area {
    width: 100%;
    height: 100%;
    position: relative;
}

.area-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--primary-color), transparent);
    border-radius: 4px 4px 0 0;
}

/* Inventory Preview */
.preview-alerts {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent-color);
}

.alert-badge {
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
}

.inventory-items {
    margin-bottom: 1rem;
}

.inventory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-stock {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.stock-level {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.stock-level.ok {
    background: var(--secondary-color);
}

.stock-level.low {
    background: var(--accent-color);
}

.inventory-summary {
    display: flex;
    gap: 1rem;
}

.summary-item {
    flex: 1;
    text-align: center;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.summary-item .label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.summary-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-item .value.warning {
    color: var(--accent-color);
}

/* Informations du portfolio */
.portfolio-info {
    padding: 2rem;
}

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

.portfolio-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.portfolio-client i {
    color: var(--primary-color);
}

.hidden {
    display: none !important;
}

/* Témoignages clients */
.client-testimonials {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* 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;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .portfolio-grid .container {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        max-width: 100%;
    }

    .kpi-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .workflow-steps {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .financial-kpis {
        flex-direction: column;
        gap: 0.5rem;
    }

    .testimonial-content {
        padding: 2rem 1.5rem;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .slider-controls {
        gap: 1rem;
    }

    .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;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .portfolio-info {
        padding: 1.5rem;
    }

    .portfolio-tags {
        gap: 0.25rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .testimonial-content {
        padding: 1.5rem 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

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

.portfolio-item {
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

