/* Variables CSS */
:root {
    --primary: #03045e;
    --secondary: #0077b6;
    --accent: #00b4d8;
    --light-accent: #90e0ef;
    --dark: #0f172a;
    --light: #f8fafc;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: white;
    overflow-x: hidden;
    cursor: auto;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.logo:hover .logo-glow {
    opacity: 0.3;
}

.logo-image-container {
    width: 40px;
    height: 40px;
}

.logo-image {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.particles-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(3, 4, 94, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 20%;
    left: 10%;
    opacity: 0.2;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 60%;
    right: 20%;
    opacity: 0.15;
    animation-delay: -10s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: 10%;
    left: 50%;
    opacity: 0.1;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.glitch {
    font-size: 3.5rem;
    font-weight: 900;
    position: relative;
    display: block;
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px var(--accent); }
    25% { text-shadow: -2px 0 10px var(--accent), 2px 0 10px var(--secondary); }
    50% { text-shadow: 2px 0 10px var(--accent), -2px 0 10px var(--primary); }
    75% { text-shadow: 0 2px 10px var(--secondary), 0 -2px 10px var(--accent); }
}

.highlight-animated {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 2rem 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: white;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover .btn-shine {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
}

/* Floating 3D Cards */
.floating-cards-3d {
    position: relative;
    width: 500px;
    height: 500px;
    perspective: 1000px;
}

.stat-card-3d {
    position: absolute;
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    animation: rotate3d 20s infinite linear;
}

.card-inner {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    transform: translateZ(50px);
}

.card-inner i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-1 { top: 50px; left: 50px; }
.card-2 { top: 50px; right: 50px; animation-delay: -5s; }
.card-3 { bottom: 50px; left: 50px; animation-delay: -10s; }
.card-4 { bottom: 50px; right: 50px; animation-delay: -15s; }

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

/* Mouse scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.mouse-scroll {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    position: relative;
}

.mouse-scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 0; top: 8px; }
    50% { opacity: 1; top: 20px; }
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.title-word {
    display: inline-block;
    animation: fadeInUp 0.8s backwards;
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.3s; }
.title-word:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* About Section */
#about {
    background: linear-gradient(180deg, var(--dark) 0%, #1e1b4b 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 180, 216, 0.3);
}

.about-card:hover .card-glow {
    opacity: 0.1;
}

.icon-bubble {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.approach-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.timeline-step:hover {
    background: rgba(0, 180, 216, 0.1);
    transform: translateX(10px);
}

.step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-content strong {
    color: white;
    margin-bottom: 0.25rem;
}

.step-content span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Services 3D */
#services {
    background: var(--dark);
}

.services-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.service-card-3d {
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.service-card-3d:hover {
    transform: rotateY(180deg);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    z-index: 10;
}

.service-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.service-front, .service-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-front {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-back {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: rotateY(180deg);
}

.holographic-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: holographic 3s linear infinite;
}

@keyframes holographic {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.service-front i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent), var(--light-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.service-front h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-back ul {
    list-style: none;
}

.service-back li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Portfolio modernisé */
#portfolio {
    background: linear-gradient(180deg, var(--dark) 0%, #1e1b4b 100%);
}

.portfolio-showcase {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.showcase-label {
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.showcase-label.success {
    color: #22c55e;
}

.transform-arrow {
    font-size: 2rem;
    color: var(--accent);
}

.excel-mockup-modern, .dashboard-mockup-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-header, .dashboard-header-modern {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-mess {
    padding: 1rem;
}

.data-line {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    border-radius: 5px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

.problems-modern, .benefits-modern {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.problems-modern span {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.benefits-modern span {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.dashboard-content-modern {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.kpi-modern {
    text-align: center;
}

.kpi-modern .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--light-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kpi-modern .label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.25rem 0;
}

.kpi-modern .trend {
    color: #22c55e;
    font-size: 0.875rem;
}

/* Contact avec effet néon */
#contact {
    background: var(--dark);
    position: relative;
}

.neon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
}

.contact-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.neon-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

.contact-methods-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.contact-item-modern:hover {
    background: rgba(0, 180, 216, 0.1);
    transform: translateX(10px);
    border-color: var(--accent);
}

.contact-icon-modern {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-text-modern {
    display: flex;
    flex-direction: column;
}

.contact-text-modern .label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-text-modern .value {
    font-weight: 600;
}

/* Form moderne */
.contact-form-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group-modern {
    position: relative;
    margin-bottom: 2rem;
}

.form-group-modern input,
.form-group-modern textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group-modern label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    pointer-events: none;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group-modern input:focus + label,
.form-group-modern input:not(:placeholder-shown) + label,
.form-group-modern textarea:focus + label,
.form-group-modern textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem);
    font-size: 0.875rem;
    color: var(--accent);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--light-accent));
    transition: width 0.3s;
}

.form-group-modern input:focus ~ .input-line,
.form-group-modern textarea:focus ~ .input-line {
    width: 100%;
}

.submit-modern {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 3rem 0 1rem;
}

.footer-modern {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-footer img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo-footer span {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand-modern p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.social-modern {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-modern a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-modern a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom-modern {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease-out;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Excel table styling */
.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.excel-table th,
.excel-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.excel-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.excel-table td {
    color: rgba(255, 255, 255, 0.7);
}

.more-data {
    text-align: center;
    font-style: italic;
    opacity: 0.5;
}

/* Chart container */
.chart-container {
    grid-column: span 1;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
}

/* Better responsive for showcase */
@media (max-width: 768px) {
    .dashboard-content-modern {
        grid-template-columns: 1fr;
    }
    
    .excel-table {
        font-size: 0.65rem;
    }
    
    .excel-table th,
    .excel-table td {
        padding: 0.3rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content, .contact-modern, .showcase-split {
        grid-template-columns: 1fr;
    }
    
    .transform-arrow {
        transform: rotate(90deg);
    }
    
    .floating-cards-3d {
        width: 400px;
        height: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .glitch, .highlight-animated {
        font-size: 2rem;
    }
    
    .services-3d-grid, .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-cards-3d {
        width: 300px;
        height: 300px;
    }
    
    .stat-card-3d {
        width: 100px;
        height: 100px;
    }
}

/* Status pulse */
.pulse {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

/* AJOUTEZ CE CSS À LA FIN DE VOTRE FICHIER style.css */

/* ========================================
   DASHBOARD ANALYTIQUE AVANCÉ
   ======================================== */

.dashboard-mockup-advanced {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(0, 180, 216, 0.3);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* En-tête dashboard */
.dashboard-header-advanced {
    background: linear-gradient(135deg, #03045e, #0077b6);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 180, 216, 0.3);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dashboard-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.last-update {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.status-badge-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #22c55e;
    font-size: 0.875rem;
    font-weight: 600;
}

.pulse-dot-live {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); 
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); 
    }
}

/* KPIs Grid */
.kpi-grid-advanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kpi-card-advanced {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.kpi-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00b4d8, #90e0ef);
}

.kpi-card-advanced:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.2);
}

.kpi-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00b4d8, #90e0ef);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.kpi-content {
    flex: 1;
}

.kpi-label-advanced {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.kpi-value-advanced {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00b4d8, #90e0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.kpi-trend-advanced {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.kpi-trend-advanced.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.kpi-trend-advanced.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.kpi-subtitle-advanced {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Section Analytics */
.analytics-section-advanced {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title-advanced {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.section-title-advanced i {
    color: #00b4d8;
}

/* Segmentation */
.segment-column {
    display: flex;
    flex-direction: column;
}

.segment-item-advanced {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.875rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border-left: 3px solid;
    transition: all 0.3s;
}

.segment-item-advanced:hover {
    transform: translateX(5px);
    background: rgba(0, 180, 216, 0.08);
}

.segment-item-advanced.champions {
    border-color: #22c55e;
}

.segment-item-advanced.fideles {
    border-color: #00b4d8;
}

.segment-item-advanced.risque {
    border-color: #f59e0b;
}

.segment-header-advanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.segment-name-advanced {
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
}

.segment-value-advanced {
    font-weight: 700;
    font-size: 0.875rem;
    color: #00b4d8;
}

.segment-bar-advanced {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.segment-fill-advanced {
    height: 100%;
    background: linear-gradient(90deg, #00b4d8, #90e0ef);
    border-radius: 10px;
    transition: width 1.5s ease;
}

.segment-detail-advanced {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Prédictions */
.predictions-column {
    display: flex;
    flex-direction: column;
}

.prediction-item-advanced {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.875rem;
    border-radius: 10px;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.prediction-item-advanced:hover {
    background: rgba(0, 180, 216, 0.08);
}

.prediction-icon-advanced {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.prediction-item-advanced.forecast .prediction-icon-advanced {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.prediction-item-advanced.warning .prediction-icon-advanced {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.prediction-item-advanced.opportunity .prediction-icon-advanced {
    background: linear-gradient(135deg, #22c55e, #4ade80);
}

.prediction-content-advanced {
    flex: 1;
}

.prediction-title-advanced {
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    margin-bottom: 0.25rem;
}

.prediction-text-advanced {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.confidence-badge-advanced {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.confidence-badge-advanced.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Insights Business */
.insights-row-advanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.insight-card-advanced {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(3, 4, 94, 0.1));
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.insight-card-advanced::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.2), transparent);
    border-radius: 50%;
}

.insight-card-advanced:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 180, 216, 0.4);
}

.insight-number-advanced {
    font-size: 1.75rem;
    font-weight: 900;
    color: #00b4d8;
    margin-bottom: 0.5rem;
}

.insight-label-advanced {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.insight-detail-advanced {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .kpi-grid-advanced {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-section-advanced {
        grid-template-columns: 1fr;
    }
    
    .insights-row-advanced {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kpi-grid-advanced,
    .insights-row-advanced {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header-advanced {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .kpi-value-advanced {
        font-size: 1.25rem;
    }
}

/* ===================================
   PAGES LÉGALES - À ajouter à style.css
   =================================== */

/* Conteneur principal des pages légales */
.legal-page {
    display: none !important;
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #03045e 0%, #0077b6 100%);
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
}

.legal-page.active {
    display: block !important;
}

/* Container du contenu */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* En-tête de page légale */
.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #00b4d8;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-header .date {
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
}

/* Contenu de la page légale */
.legal-content h2 {
    color: #00b4d8;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.legal-content h3 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-content p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
    list-style-type: disc;
}

.legal-content li {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-content strong {
    color: #2d3748;
    font-weight: 600;
}

.legal-content a {
    color: #00b4d8;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-content a:hover {
    color: #0077b6;
    text-decoration: underline;
}

/* Boîtes d'information */
.info-box {
    background: #f7fafc;
    border-left: 4px solid #00b4d8;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.info-box p {
    margin-bottom: 10px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Bouton retour accueil */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 12px 30px;
    background: #00b4d8;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-home:hover {
    background: #0077b6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Liens légaux dans le footer */
.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-legal-links a:hover {
    color: white;
}

.footer-legal-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.footer-legal-links a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .legal-page {
        padding: 100px 10px 40px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 20px 15px;
    }
    
    .legal-header h1 {
        font-size: 1.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .info-box {
        padding: 15px;
    }
}