/* ==========================================
   DASHCENTRE - CSS PRINCIPAL
   Design moderne et corporate pour B2B
   ========================================== */

/* Variables CSS */
:root {
    /* Couleurs principales */
    --primary-blue: #1E3A8A;
    --primary-green: #059669;
    --accent-orange: #F97316;
    --dark: #1F2937;
    --dark-lighter: #374151;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typographie */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-icon .bar {
    animation: pulse 2s ease-in-out infinite;
}

.logo-icon .bar-1 {
    animation-delay: 0s;
}

.logo-icon .bar-2 {
    animation-delay: 0.2s;
}

.logo-icon .bar-3 {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.7; transform: scaleY(0.8); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background-color: rgba(30, 58, 138, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition-fast);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--gray-light);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    background-color: rgba(30, 58, 138, 0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(30, 58, 138, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 58, 138, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   SOLUTIONS SECTION
   ========================================== */

.solutions {
    background-color: var(--light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.solution-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.solution-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.solution-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

.solution-description {
    color: var(--gray);
    line-height: 1.7;
}

/* ==========================================
   TECH SECTION
   ========================================== */

.tech-section {
    background-color: var(--dark);
    color: var(--white);
}

.tech-section .section-title {
    color: var(--white);
}

.tech-section .section-subtitle {
    color: var(--gray-light);
}

.tech-grid {
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    margin-bottom: var(--spacing-md);
}

.tech-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.tech-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.tech-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    border-radius: 10px;
    transition: width 1s ease;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */

.projects-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.project-image {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.project-preview {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    padding: var(--spacing-md);
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.dashboard-preview-1 {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(5, 150, 105, 0.05));
}

.dashboard-preview-2 {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(249, 115, 22, 0.05));
}

.dashboard-preview-3 {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(30, 58, 138, 0.05));
}

.dashboard-preview-4 {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(30, 58, 138, 0.1));
}

/* Mini visualisations dans les previews */
.mini-chart {
    margin-bottom: var(--spacing-sm);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}

.chart-bars span {
    flex: 1;
    background: var(--primary-blue);
    border-radius: 4px 4px 0 0;
    transition: var(--transition-normal);
}

.project-card:hover .chart-bars span {
    background: var(--primary-green);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: var(--spacing-sm);
}

.inventory-item {
    height: 50px;
    border-radius: 8px;
    background-color: var(--primary-green);
}

.inventory-item.status-low {
    background-color: var(--accent-orange);
}

.inventory-item.status-critical {
    background-color: #EF4444;
}

.team-viz {
    display: flex;
    gap: 8px;
    margin-bottom: var(--spacing-sm);
}

.team-member {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-blue);
}

.team-member.absent {
    background-color: var(--gray-light);
}

.finance-chart {
    margin-bottom: var(--spacing-sm);
}

.line-chart {
    width: 100%;
    height: 80px;
}

.preview-stats {
    display: flex;
    gap: var(--spacing-sm);
}

.preview-stat {
    flex: 1;
    text-align: center;
    padding: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-value.alert {
    color: var(--accent-orange);
}

.stat-value.success {
    color: var(--primary-green);
}

.stat-text {
    font-size: 0.85rem;
    color: var(--gray);
}

.project-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.project-description {
    color: var(--gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-features {
    margin-bottom: var(--spacing-md);
}

.feature {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ==========================================
   PROCESS SECTION
   ========================================== */

.process {
    background-color: var(--light);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 39px;
    top: 80px;
    width: 2px;
    height: calc(100% + var(--spacing-lg));
    background: linear-gradient(to bottom, var(--primary-blue), var(--primary-green));
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.step-content {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

.step-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.step-duration {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
}

.author-role {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq {
    background-color: var(--light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 12px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background-color: rgba(30, 58, 138, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: var(--transition-fast);
}

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

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

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--gray);
    line-height: 1.7;
}

.faq-answer ul {
    padding-left: calc(var(--spacing-md) * 2);
}

.faq-answer li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--primary-blue);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
}

.contact-icon {
    font-size: 1.5rem;
}

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

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-value:hover {
    text-decoration: underline;
}

.contact-form {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: var(--spacing-sm);
    text-align: center;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    opacity: 0.7;
    margin-top: var(--spacing-sm);
}

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column a {
    opacity: 0.7;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-location {
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .solutions-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 60px 1fr;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll reveal (sera géré par JS) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
