/* ============================================
   SUPPRIMER-FOND-IMAGE.FR - Styles
   ============================================ */

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

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52E0;
    --primary-light: #8B83FF;
    --secondary: #3B82F6;
    --accent: #10B981;
    --dark: #1E293B;
    --dark-light: #334155;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
    border-radius: 12px;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.logo small {
    color: var(--primary);
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary);
}

/* --- Hero --- */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* --- Upload Zone --- */
.upload-zone {
    max-width: 700px;
    margin: 0 auto;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    background: var(--light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.04);
    transform: scale(1.01);
}

.upload-zone.drag-over {
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.upload-text {
    color: var(--gray-light);
    margin-bottom: 16px;
}

.upload-btn {
    margin-bottom: 16px;
}

.upload-formats {
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* --- Loading State --- */
.upload-loading {
    text-align: center;
}

.upload-loading h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.upload-loading p {
    color: var(--gray);
    margin-bottom: 24px;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

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

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

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

/* --- Result Zone --- */
.result-zone {
    max-width: 900px;
    margin: 0 auto;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.result-header h2 {
    font-size: 1.5rem;
    color: var(--accent);
}

.result-preview {
    margin-bottom: 32px;
}

/* --- Comparison --- */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.comparison-result {
    background-image:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.comparison-image img,
.comparison-image canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.comparison-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Reveal Animation --- */
.comparison.animating {
    grid-template-columns: 1fr;
}

.comparison.animating .comparison-original {
    display: none;
}

.comparison.animating .comparison-result {
    min-height: 350px;
    max-height: 70vh;
    border-radius: var(--radius-lg);
}

.comparison.animating .comparison-label {
    opacity: 0;
    transition: opacity 0.4s;
}

.comparison.reveal-done .comparison-original {
    animation: fadeSlideIn 0.5s ease both;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Result Actions --- */
.result-actions {
    text-align: center;
}

.result-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* --- Trust --- */
.trust {
    padding: 60px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.trust-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.trust-item span {
    font-size: 0.82rem;
    color: var(--gray);
}

/* --- How It Works --- */
.how-it-works {
    padding: 80px 0;
    background: var(--light);
}

.how-it-works h2,
.use-cases h2,
.pricing h2,
.faq h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- Use Cases --- */
.use-cases {
    padding: 80px 0;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.usecase {
    padding: 32px 24px;
    background: var(--light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.usecase-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.usecase h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.usecase p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

/* --- Pricing --- */
.pricing {
    padding: 80px 0;
    background: var(--light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 6px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin: 24px 0 32px;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 12px;
    color: var(--primary);
}

.pricing-value {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--dark);
}

.pricing-period {
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 40px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-cta {
    width: 100%;
}

/* --- FAQ --- */
.faq {
    padding: 80px 0;
}

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

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    padding: 20px 0;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gray-light);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 0 20px;
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

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

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- SEO Content Pages --- */
.seo-content {
    padding: 60px 0;
    background: var(--light);
}

.content-block {
    max-width: 780px;
    margin: 0 auto 48px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.content-block h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 8px;
    color: var(--dark);
}

.content-block p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.content-block ul,
.content-block ol {
    color: var(--gray);
    line-height: 1.8;
    margin: 12px 0 12px 24px;
    font-size: 0.95rem;
}

.content-block li {
    margin-bottom: 8px;
}

/* --- Internal Links Grid --- */
.internal-links {
    padding: 60px 0;
}

.internal-links h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.link-card {
    display: block;
    padding: 24px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.link-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.link-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary);
}

.link-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

/* --- Legal Pages --- */
.legal-page {
    padding: 60px 0 80px;
}

.legal-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-update {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-content {
    max-width: 780px;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--dark);
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 20px 0 8px;
}

.legal-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
    color: var(--gray);
    line-height: 1.8;
    margin: 8px 0 16px 24px;
    font-size: 0.95rem;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

/* --- Utility --- */
.hidden {
    display: none !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero {
        padding: 40px 0 24px;
    }

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

    .upload-zone {
        padding: 40px 24px;
    }

    .comparison {
        grid-template-columns: 1fr;
    }

    .comparison-image {
        min-height: 200px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 40px 24px;
    }

    .seo-content {
        padding: 40px 0;
    }

    .internal-links {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .upload-title {
        font-size: 1.15rem;
    }
}
