/* ==========================================
   TYPOCHECKER SERVICE PAGE STYLES
   ========================================== */

/* === VARIABLES & BASE === */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004999;
    --primary-light: #e6f2ff;
    --secondary-color: #ff6b35;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-bg: #1a1d29;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* === HEADER === */
.rapido-header-logo {
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 100;
 }

/* === HERO SECTION === */
.typochecker-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.typochecker-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.typochecker-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.typochecker-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #667eea;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #764ba2;
    text-decoration: none;
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    color: #ffffff;
    text-decoration: none;
}

/* === SECTION MENACES === */
.threats-section {
    padding: 100px 0;
    background: #f8f9ff;
    position: relative;
    overflow: hidden;
}

.threats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(102, 126, 234, 0.04) 40px, rgba(102, 126, 234, 0.04) 42px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(118, 75, 162, 0.04) 40px, rgba(118, 75, 162, 0.04) 42px);
    pointer-events: none;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title-underlined {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-subtitle-center {
    font-size: 1.15rem;
    color: #666;
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.6;
}

.threats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.threat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.threat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.threat-card:hover::before {
    transform: scaleX(1);
}

.threat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.1);
}

.threat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    text-align: center;
    transition: transform 0.3s ease;
}

.threat-card:hover .threat-icon {
    transform: scale(1.1) rotate(5deg);
}

.threat-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: center;
}

.threat-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
}

.threat-example {
    background: linear-gradient(135deg, #f8f9ff 0%, #eff1ff 100%);
    border-left: 3px solid #667eea;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-top: auto;
}

@media (max-width: 768px) {
    .threats-section {
        padding: 40px !important;
    }
}

/* === REPORTS SECTION === */
.reports-section {
    padding: 100px 0;
    background: var(--dark-bg);
    color: var(--white);
}

.reports-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-light {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.reports-intro {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

.reports-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.report-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.feature-content p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Report Mockup */
.reports-visual {
    display: flex;
    justify-content: center;
}

.report-mockup {
    background: #2a2d3a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 500px;
}

.mockup-header {
    background: #1f2229;
    padding: 15px;
    display: flex;
    gap: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5a5d6b;
}

.mockup-content {
    padding: 30px;
}

.mockup-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.mockup-alert {
    background: rgba(255, 107, 53, 0.15);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: var(--white);
}

.mockup-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-item strong {
    color: var(--white);
    font-size: 0.95rem;
}

.risk-high {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.risk-medium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc952;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.risk-low {
    background: rgba(40, 167, 69, 0.2);
    color: #5dd589;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mockup-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

@media (max-width: 1000px) {
    .reports-section {
        padding: 80px 30px;
    }
    
    .reports-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    /* Forcer l'ordre - l'image en dessous */
    .reports-content .reports-text {
        order: 1;
    }
    
    .reports-content .reports-visual {
        order: 2;
    }
    
    .section-title-light {
        font-size: 2rem;
    }
    
    .reports-intro {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .reports-section {
        padding: 60px 50px !important;
    }
    
    .reports-content {
        gap: 40px;
    }
    
    .section-title-light {
        font-size: 1.85rem;
    }
    
    .report-feature {
        gap: 15px;
    }
    
    .feature-icon {
        font-size: 1.75rem;
    }
    
    .feature-content h4 {
        font-size: 1.1rem;
    }
    
    .mockup-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .reports-section {
        padding: 50px 40px !important;
    }
    
    .section-title-light {
        font-size: 1.6rem;
    }
    
    .reports-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .reports-features {
        gap: 20px;
    }
    
    .mockup-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* === DEMO SECTION === */
.demo-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="rgba(255,255,255,0.05)"/></svg>');
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.demo-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.demo-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.demo-benefits {
    list-style: none;
    padding: 0;
}

.demo-benefits li {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 15px;
    padding-left: 0;
}

/* Demo Form */
.demo-form-container {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit-demo {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.btn-submit-demo:hover .btn-icon {
    transform: translateX(5px);
}

.form-privacy {
    margin-top: 20px;
    text-align: center;
    color: var(--text-light);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .demo-content,
    .reports-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .reports-visual {
        order: -1;
    }

    .hiw-timeline {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title-centered,
    .section-title-dark,
    .section-title-light {
        font-size: 2rem;
    }

    .demo-title {
        font-size: 2.2rem;
    }

    .threats-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .hiw-timeline {
        grid-template-columns: 1fr;
    }

    .advantage-row,
    .advantage-row-reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .container-fluid {
        padding: 0 20px;
    }

    .demo-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .typochecker-hero-section {
        padding: 120px 0 80px;
    }

    .hero-main-title {
        font-size: 1.8rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .threats-section,
    .how-it-works-section,
    .reports-section,
    .advantages-section,
    .use-cases-section,
    .demo-section {
        padding: 60px 50px;
    }

    .threat-card,
    .use-case-card {
        padding: 25px;
    }

    .hiw-step-content {
        padding: 25px;
    }

    .hiw-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Spinner dans le bouton */
.btn-submit-demo {
    position: relative;
}

.btn-submit-demo .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit-demo.loading .spinner {
    display: inline-block;
}

.btn-submit-demo.loading .btn-text,
.btn-submit-demo.loading .btn-icon {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-privacy a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-privacy a:hover {
    color: var(--primary-dark);
}
