/* ========================================
   UPLOAD TOOL - SHARED STYLES
   Common styles for validation & empreinte pages
   Uses design-system.css tokens
   ======================================== */

/* Hero Tool Section (base) */
.hero-validation,
.hero-empreinte {
    background: linear-gradient(135deg, #ffffff 0%, var(--se-offwhite) 100%);
    padding: 60px 0 80px;
    border-bottom: 1px solid var(--se-gray-border);
}

.hero-header {
    text-align: center;
    margin-bottom: 50px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-badge i {
    font-size: 1.2rem;
}

.hero-validation h1,
.hero-empreinte h1 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--se-navy);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--se-gray);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Hero Content Grid */
.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 50px;
}

.hero-info h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--se-navy);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.05rem;
    color: var(--se-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Security Features */
.security-features {
    display: grid;
    gap: 24px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--se-gray-border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    border-color: var(--se-orange);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.feature-item i {
    font-size: 1.75rem;
    color: var(--se-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--se-navy);
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--se-gray);
    line-height: 1.6;
    margin: 0;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 15px;
    align-items: start;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid var(--se-warning);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--se-navy);
}

.info-box i {
    color: var(--se-warning);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Hero Upload Card */
.hero-upload {
    position: sticky;
    top: 100px;
    background: white;
    padding: 35px;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--se-gray-border);
}

.upload-title {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--se-navy);
    margin-bottom: 10px;
}

.upload-subtitle {
    font-size: 0.95rem;
    color: var(--se-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Upload Section */
.upload-section {
    padding: 0;
    background: transparent;
}

.upload-section h3 {
    display: none;
}

/* Upload Area */
.upload-area {
    background: linear-gradient(135deg, var(--se-offwhite) 0%, #ffffff 100%);
    border: 2px dashed var(--se-gray-border);
    border-radius: var(--radius-lg);
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--se-orange);
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.upload-area.drag-over {
    border-color: var(--se-orange);
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
    border-style: solid;
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--se-orange);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 1.1rem;
    color: var(--se-navy);
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--se-gray);
    margin-bottom: 20px;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--se-success) 0%, #218838 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35);
}

.btn-upload i {
    font-size: 1.1rem;
}

.upload-info {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--se-gray);
}

/* File Selected */
.file-selected {
    background: var(--se-offwhite);
    border: none;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--se-gray-border);
}

.file-details {
    flex: 1;
    text-align: left;
}

.file-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--se-navy);
    margin-bottom: 4px;
}

.file-size {
    font-size: 0.85rem;
    color: var(--se-gray);
}

.btn-remove {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid var(--se-gray-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--se-gray);
    flex-shrink: 0;
}

.btn-remove:hover {
    background: var(--se-danger);
    border-color: var(--se-danger);
    color: white;
    transform: rotate(90deg);
}

/* Action Button (validate / calculate) */
.btn-validate,
.btn-calculate {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--se-orange) 0%, var(--se-orange-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-orange);
}

.btn-validate:hover,
.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange-lg);
}

.btn-validate i,
.btn-calculate i {
    font-size: 1.2rem;
}

/* Result Section */
.result-section {
    padding: 0;
    background: white;
}

/* Result Details */
.result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.result-icon {
    font-size: 3rem;
}

.result-title {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-details {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    margin-top: 25px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--se-gray-border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--se-navy);
}

.result-value {
    color: var(--se-gray);
    text-align: right;
}

/* Slide-in Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.site-footer {
    background: var(--se-navy-light);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* CTA Banner Section */
.cta-banner {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2.75rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before,
.btn-cta-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta-primary:hover::before,
.btn-cta-secondary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-cta-primary {
    background: white;
    color: var(--se-orange);
    border: 2px solid white;
}

.btn-cta-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-cta-primary i,
.btn-cta-secondary i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.btn-cta-primary span,
.btn-cta-secondary span {
    position: relative;
    z-index: 1;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-upload {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .hero-validation h1,
    .hero-empreinte h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-info h2 {
        font-size: 1.5rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .feature-item {
        padding: 16px;
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    .feature-content h3 {
        font-size: 1rem;
    }

    .hero-upload {
        padding: 28px;
    }

    .upload-area {
        padding: 35px 20px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .upload-text {
        font-size: 1rem;
    }

    .btn-upload {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .file-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .file-details {
        text-align: center;
    }

    .btn-validate,
    .btn-calculate {
        font-size: 1rem;
        padding: 13px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.05rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}
