/* smurfing.css - Design Professionnel pour Investigation Fraude Bancaire */

:root {
    /* Palette sécurité/conformité */
    --color-primary: #0f172a;
    --color-secondary: #334155;
    --color-accent: #1e40af; /* Bleu sécurité */
    --color-accent-light: #3b82f6;
    --color-fraud: #dc2626; /* Rouge alerte */
    --color-compliance: #059669; /* Vert conformité */
    --color-light: #ffffff;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-surface: #f8fafc;
    --color-investigation: #7c3aed; /* Violet investigation */
    --color-gradient-start: #1e40af;
    --color-gradient-end: #dc2626;
    --color-warning: #f59e0b; /* Orange avertissement */
    
    /* Espacements harmonieux */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
    
    /* Typographie */
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Bordures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 20px 40px rgba(30, 64, 175, 0.1);
    
    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-primary);
    background-color: var(--color-light);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 95%, rgba(30, 64, 175, 0.02) 100%),
        linear-gradient(-45deg, transparent 95%, rgba(220, 38, 38, 0.02) 100%);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header / Hero Section - Thème investigation */
.fraud-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef2f2 100%);
    padding: var(--space-xxl) 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.fraud-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 90% 10%, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.fraud-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-accent) 0%, 
        var(--color-fraud) 50%, 
        var(--color-compliance) 100%);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none;
    margin-bottom: var(--space-xl);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.back-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.back-link:hover::before {
    left: 100%;
}

.badge-fraud {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-fraud));
    color: var(--color-light);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    position: relative;
    overflow: hidden;
}

.badge-fraud::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.badge-fraud:hover::after {
    left: 100%;
}

.fraud-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    position: relative;
}

.text-gradient::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: var(--radius-sm);
    opacity: 0.2;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.lead {
    font-size: 1.375rem;
    color: var(--color-secondary);
    max-width: 700px;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    padding: var(--space-xxl) 0;
    position: relative;
}

/* Fraud Section */
.fraud-section {
    margin-bottom: var(--space-xxl);
}

.problem-box {
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.problem-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-fraud));
}

.problem-box h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.problem-box h3 i {
    color: var(--color-fraud);
    background-color: rgba(220, 38, 38, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.problem-box p {
    font-size: 1.125rem;
    color: var(--color-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.problem-box strong {
    color: var(--color-fraud);
    font-weight: 700;
    position: relative;
}

.problem-box strong::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-sm);
}

/* Stepper - Timeline Investigation */
.stepper {
    margin: var(--space-xxl) 0;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, 
        var(--color-accent) 0%, 
        var(--color-compliance) 50%, 
        var(--color-accent) 100%);
    opacity: 0.2;
}

.step {
    margin-bottom: var(--space-xxl);
    position: relative;
    padding-left: 80px;
}

.step:last-child {
    margin-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--color-light);
    border: 3px solid var(--color-accent);
    border-radius: var(--radius-full);
    z-index: 2;
}

.step:nth-child(2)::before {
    border-color: var(--color-compliance);
}

.step:nth-child(3)::before {
    border-color: var(--color-investigation);
}

.step-header {
    margin-bottom: var(--space-lg);
    position: relative;
}

.step-num {
    position: absolute;
    left: -80px;
    top: -8px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-mono);
    background-color: var(--color-light);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
}

.step:nth-child(2) .step-num {
    color: var(--color-compliance);
}

.step:nth-child(3) .step-num {
    color: var(--color-investigation);
}

.step-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.step-content {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.step:nth-child(odd) .step-content {
    grid-template-columns: 1fr 1fr;
}

.step:nth-child(even) .step-content {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.step:nth-child(even) .step-content > .text {
    direction: ltr;
}

.step-content .text {
    background-color: var(--color-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.step-content p {
    font-size: 1.125rem;
    color: var(--color-secondary);
    line-height: 1.7;
}

.step-content strong {
    color: var(--color-accent);
    font-weight: 700;
}

.image-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-box:hover {
    transform: translateY(-8px) scale(1.02);
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-box:hover img {
    transform: scale(1.05);
}

/* Image Grid pour l'étape 2&3 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.img-wrap:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.img-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-sm);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.label-red {
    background-color: rgba(220, 38, 38, 0.9);
}

.label-green {
    background-color: rgba(5, 150, 105, 0.9);
}

.img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Vision Card */
.vision-card {
    margin-top: var(--space-xxl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" opacity="0.05"><rect x="0" y="0" width="100" height="100" fill="none" stroke="%2310b981" stroke-width="1"/><circle cx="50" cy="50" r="40" fill="none" stroke="%233b82f6" stroke-width="0.5"/></svg>') repeat,
        radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
}

.vision-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-compliance));
}

.vision-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.vision-card h3 i {
    color: var(--color-compliance);
    background-color: rgba(16, 185, 129, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.vision-card p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-fraud {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-compliance));
    color: var(--color-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-fraud::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.btn-fraud:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.3);
    letter-spacing: 0.03em;
}

.btn-fraud:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .fraud-hero h1 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    .step-header h3 {
        font-size: 1.75rem;
    }
    
    .step:nth-child(odd) .step-content,
    .step:nth-child(even) .step-content {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .step:nth-child(even) .step-content > .text {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .fraud-hero {
        padding: var(--space-xl) 0;
    }
    
    .fraud-hero h1 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .stepper::before {
        left: 20px;
    }
    
    .step {
        padding-left: 60px;
    }
    
    .step::before {
        left: 16px;
    }
    
    .step-num {
        left: -60px;
        font-size: 1.5rem;
    }
    
    .step-header h3 {
        font-size: 1.5rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .problem-box,
    .vision-card {
        padding: var(--space-lg);
    }
    
    .vision-card h3 {
        font-size: 1.75rem;
    }
    
    .vision-card p {
        font-size: 1.125rem;
    }
    
    .btn-fraud {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .fraud-hero h1 {
        font-size: 2rem;
    }
    
    .step {
        padding-left: 50px;
    }
    
    .step-num {
        left: -50px;
        font-size: 1.25rem;
    }
    
    .step-header h3 {
        font-size: 1.25rem;
    }
    
    .problem-box h3 {
        font-size: 1.5rem;
    }
    
    .vision-card h3 {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-warning {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); 
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); 
    }
}

.fraud-section,
.step,
.vision-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.fraud-section { animation-delay: 0.1s; }
.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.4s; }
.vision-card { animation-delay: 0.5s; }

/* Animation pour l'icône d'avertissement */
.problem-box h3 i {
    animation: pulse-warning 3s infinite;
}

/* Effet de ligne de connexion entre les étapes */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 12px;
    bottom: -60px;
    width: 2px;
    background: linear-gradient(to bottom, 
        var(--color-accent) 0%, 
        var(--color-compliance) 50%, 
        var(--color-accent) 100%);
    opacity: 0.1;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-accent), var(--color-fraud));
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--color-accent-light), var(--color-fraud));
}

/* Effets de sélection */
::selection {
    background-color: rgba(30, 64, 175, 0.2);
    color: var(--color-primary);
}

/* Ajout de la police IBM Plex Mono pour les éléments techniques */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

.step-num {
    font-family: var(--font-mono), monospace;
}

/* Effet de défilement révélateur */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}