/* ==========================================================
   1. COLOR PALETTE & GLOBAL STYLES (Black, White, Gold)
   ========================================================== */

/* Buttons */
.btn {
    padding: 0.875rem 2.5rem; /* Plus large pour un look premium */
    border: none;
    border-radius: 4px; /* Plus carré, plus élégant */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Primary Button (Gold/Black) */
.btn-primary {
    background: #FFD700; /* Gold */
    color: #1C1C1C; /* Deep Black for text on primary */
    border: 1px solid #FFD700;
}

.btn-primary:hover {
    background: #e6c200; /* Darker Gold for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* Secondary Button (White/Black, Bordered) */
.btn-secondary {
    background: #FFFFFF; /* White */
    color: #1C1C1C; /* Deep Black */
    border: 1px solid #1C1C1C;
}

.btn-secondary:hover {
    background: #1C1C1C; /* Inverser les couleurs au hover */
    color: #FFD700; /* Gold text */
    border-color: #FFD700;
}

/* Hero Section */
.hero {
    background: #1C1C1C; /* Deep Black background */
    color: #FFFFFF; /* White text on hero */
    padding: 6rem 0; /* Plus de padding pour un effet "luxe" */
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem; /* Plus grand */
    margin-bottom: 1rem;
    font-weight: 300; /* Texte plus fin pour l'élégance */
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 2rem; /* Plus d'espace */
    justify-content: center;
    flex-wrap: wrap;
}

/* Navigation */
.navbar {
    background: #FFFFFF; /* White Nav Bar */
    padding: 1rem 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #F7F7F7;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1C1C1C; /* Deep Black Logo */
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu a {
    color: #1C1C1B; /* Dark Grey for navigation links #6E6E6E */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffbf00; /* Gold hover */
}

/* Language Switcher */
.btn-lang {
    padding: 0.5rem 0.8rem;
    border: 1px solid #E0E0E0;
    background: transparent;
    color: #1C1C1B;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-lang:hover,
.btn-lang.active {
    background: #1C1C1C;
    border-color: #1C1C1C;
    color: #FFD700; /* Gold active/hover text */
}

/* Form Styles */
legend {
    font-weight: bold;
    padding: 0 0.5rem;
    color: #FFD700; /* Gold for legend */
}

input:focus,
select:focus {
    outline: none;
    border-color: #FFD700; /* Gold focus border */
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.upload-box:hover {
    border-color: #FFD700; /* Gold hover border */
    background: #fcfcfc;
}

.classification-info {
    background: #fefefe;
    border-left: 4px solid #FFD700; /* Gold info border */
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Progress Bar and Steps */
.step-number {
    width: 50px; /* Plus petit pour le détail */
    height: 50px;
    background: #1C1C1C; /* Black step background */
    color: #FFD700; /* Gold step number */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 0 0 2px #FFD700; /* Double cerclage gold */
}

.progress-step.active .step-num {
    background: #FFD700; /* Gold active step */
    color: #1C1C1C;
    box-shadow: 0 0 0 4px #1C1C1C; /* Bordure noire pour le contraste */
}

.progress-bar {
    height: 100%;
    /* background: #FFD700; */ /* Gold progress bar */
    transition: width 0.5s ease;
}

/* Method Cards */
.method-card:hover {
    border-color: #FFD700; /* Gold border on hover */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #1C1C1C; /* Deep Black Footer */
    color: #FFFFFF;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 5rem;
    border-top: 3px solid #FFD700; /* Petite touche de gold */
}

/* Tooltip */
.tooltip-icon {
    color: #1C1C1C; /* Black icon text */
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: background 0.3s;
}

/* Payment Section */
.payment-header {
    background: #1C1C1C; /* Deep Black header */
    color: #FFFFFF;
    padding: 2rem;
    text-align: center;
}

.legal-notice {
    background: #FFFFFF;
    border-left: 4px solid #FFD700; /* Gold notice border */
    padding: 1.5rem;
    margin: 2rem;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.pricing-box {
    background: #F7F7F7; /* Light Grey for pricing */
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0 2rem 2rem 2rem;
}

.price-item.total {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1C1C1C; /* Black total price */
    padding-top: 1rem;
    border-top: 2px solid #FFD700; /* Gold total separator */
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FFD700; /* Gold spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

/* Stripe Elements Override */
.StripeElement--focus {
    border-color: #FFD700; /* Gold focus border */
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* ==========================================================
   2. SUCCESS, WARNING, AND ERROR STYLES (Standardized Colors)
   ========================================================== */

/* Success */
.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #28a745; /* Success Green */
}

.progress-step.completed .step-num {
    background: #FFD700; /* Success Green */
    color: #000000;
}

.hint {
    display: block;
    font-size: 0.875rem;
    color: #28a745; /* Success Green */
    margin-top: 0.25rem;
}

.total-box {
    background: #d4edda;
    border: 2px solid #28a745;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
}

.total-box h3 {
    color: #155724;
    margin: 0;
}

.security-info {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1rem;
    margin: 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.StripeElement--complete {
    border-color: #28a745;
}

/* Error & Warning */
.error {
    display: block;
    font-size: 0.875rem;
    color: #dc3545; /* Error Red */
    margin-top: 0.25rem;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.StripeElement--invalid {
    border-color: #dc3545;
}

.ocr-countdown-notice,
.notification-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.ocr-countdown-notice {
    animation: pulse-warning 2s ease-in-out infinite;
}

.ocr-countdown-notice p:first-child {
    font-weight: bold;
    font-size: 1.1rem;
    color: #856404;
}

.countdown-timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: #856404;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    background: rgba(255, 193, 7, 0.2);
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
}

.notification-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

.price-notice {
    margin: 1rem 0 0 0;
    padding: 0.75rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Info */
.notification-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

/* ==========================================================
   3. BASE & STRUCTURE (Less likely to change)
   ========================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1C1C1C; /* Deep Black text */
    background: #F7F7F7; /* Light grey background for luxury feel */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Features */
.features {
    padding: 5rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    color: #1C1C1C;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: 6px;
    background: #FFFFFF;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #EDEDED;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

/* How it works */
.how-it-works {
    padding: 5rem 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    font-weight: 300;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step-item {
    text-align: center;
}

/* Progress Bar (old) */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0 3rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    background: #ddd;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Progress Bar Container (new) */
.progress-bar-container {
    width: 100%;
    height: 10px; /* Plus fin */
    background: #EAEAEA;
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-section {
    text-align: center;
    padding: 2rem 0;
}

/* Method Cards */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.method-card {
    text-align: center;
    padding: 3rem 2rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #FFFFFF;
}

.method-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #1C1C1C;
}

/* Form */
.form {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 3rem; /* Plus de padding */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

fieldset {
    border: 1px solid #E0E0E0;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1C1C1C;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem; /* Plus d'espace */
}

/* Style des inputs: inclut text, email, number et select */
input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 0.9rem; /* Plus haut */
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

/* Upload Box */
.upload-box {
    border: 2px dashed #DDD;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-label {
    font-size: 1.1rem;
    cursor: pointer;
    color: #1C1C1B;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 1rem 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    height: 1.1em;
    width: 1.1em;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 3rem;
}

/* Success Content */
.success-content {
    text-align: center;
    padding: 3rem 0;
}

.next-steps-box {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.next-steps-box ol {
    padding-left: 1.5rem;
}

.next-steps-box li {
    margin-bottom: 0.7rem;
}

/* Disclaimer */
.footer .disclaimer {
    font-size: 0.875rem;
    opacity: 1;
    margin-top: 0.5rem;
    color: #ffffff;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 2rem 0;
}

/* Tooltips */
.tooltip-bubble {
    background: #1C1C1C;
    color: #FFFFFF;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    max-width: 30%;
    position: absolute;
    border: 1px solid #FFD700;
}

.tooltip-bubble::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #1C1C1C;
}

/* Radio labels */
.radio-label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

/* ===== PAYMENT PAGE STYLES ===== */
.payment-container {
    max-width: 800px;
    margin: 3rem auto;
}

.payment-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.payment-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
}

.payment-subtitle {
    margin: 0;
    opacity: 0.8;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid #E0E0E0;
}

.price-item:last-of-type {
    border-bottom: none;
}

.price-label {
    font-weight: 500;
}

.price-value {
    font-weight: 600;
}

.payment-form-container {
    padding: 3rem;
}

#payment-element {
    margin-bottom: 1.5rem;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.payment-actions .btn {
    flex: 1;
}

.payment-loading {
    text-align: center;
    padding: 3rem 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== OCR COUNTDOWN STYLES (Kept close to other warning styles) ===== */
@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.ocr-countdown-notice p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Désactiver le bouton pendant le countdown */
button[ng-disabled="ocrCountdownActive"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== NOTIFICATION STYLES (Kept together) ===== */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateX(0);
    opacity: 1;
}

.notification-hidden {
    transform: translateX(120%);
    opacity: 0;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}

/* ===== STRIPE ELEMENTS OVERRIDE (Kept together) ===== */
.StripeElement {
    background-color: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: border-color 0.3s;
}

/* ===== RESPONSIVE ADJUSTMENTS (Kept last) ===== */
@media (max-width: 768px) {
    .payment-header h1 {
        font-size: 1.5rem;
    }
    
    .payment-subtitle {
        font-size: 1rem;
    }
    
    .legal-notice,
    .pricing-box,
    .payment-form-container,
    .security-info {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .payment-actions {
        flex-direction: column-reverse;
    }
    
    .countdown-timer {
        font-size: 2rem;
        padding: 0.75rem 1.5rem;
    }
    
    .ocr-countdown-notice {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column-reverse; /* Mieux: met le bouton principal en bas */
    }
    
    .btn {
        width: 100%;
    }
}

/* ==========================================================
RESPONSIVE MOBILE STYLES
========================================================== */

@media (max-width: 768px) {
/* Global adjustments */
.container {
padding: 0 15px;
}

text
/* Hero Section */
.hero {
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 0 10px;
}

.cta-buttons {
    flex-direction: column;
    gap: 1rem;
    padding: 0 20px;
}

.cta-buttons .btn {
    width: 100%;
    text-align: center;
}

/* Navigation */
.navbar {
    padding: 0.8rem 0;
    position: relative;
}

.navbar .container {
    flex-direction: column;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
}

.nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
    display: none; /* Hidden by default on mobile */
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    padding: 0.8rem;
    display: block;
    border-bottom: 1px solid #f0f0f0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1C1C1C;
}

/* Features Section */
.features {
    padding: 3rem 0;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    margin: 0 10px;
}

/* How It Works */
.how-it-works {
    padding: 3rem 0;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.steps {
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Progress Bar */
.progress-bar {
    flex-direction: column;
    gap: 2rem;
    margin: 1rem 0;
}

.progress-bar::before {
    display: none;
}

.progress-step {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
}

.step-num {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Form Styles */
.form {
    padding: 1.5rem;
    margin: 1rem auto;
    border-radius: 8px;
}

.form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
}

fieldset {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

/* Form Actions */
.form-actions {
    flex-direction: column-reverse;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    width: 100%;
    margin: 0;
}

/* Buttons */
.btn {
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: center;
}

.import-export .btn.copy {
    max-width: 120px;
}

/* Method Cards */
.method-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.method-card {
    padding: 2rem 1rem;
    margin: 0 10px;
}

.method-icon {
    font-size: 3rem;
}

/* Upload Box */
.upload-box {
    padding: 2rem 1rem;
    margin: 1.5rem 0;
}

/* Success Content */
.success-content {
    padding: 2rem 0;
}

.next-steps-box {
    padding: 1.5rem;
    margin: 1.5rem 10px;
}

/* Tooltips */
.tooltip-bubble {
    max-width: 90%;
    position: relative;
    margin: 1rem auto;
}

.tooltip-bubble::before {
    display: none;
}

/* Payment Page */
.payment-container {
    margin: 1rem auto;
}

.payment-header {
    padding: 1.5rem 1rem;
}

.payment-header h1 {
    font-size: 1.8rem;
}

.payment-subtitle {
    font-size: 1rem;
}

.legal-notice {
    margin: 1rem;
    padding: 1rem;
}

.pricing-box {
    margin: 0 1rem 1rem 1rem;
    padding: 1rem;
}

.payment-form-container {
    padding: 1.5rem;
}

.payment-actions {
    flex-direction: column-reverse;
    gap: 1rem;
}

/* Notifications */
.notifications-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
}

.notification {
    margin-bottom: 0.5rem;
    padding: 1rem;
}

/* Countdown Timer */
.countdown-timer {
    font-size: 2rem;
    padding: 0.75rem 1.5rem;
}

.ocr-countdown-notice {
    padding: 1rem;
    margin: 1rem 10px;
}

/* Classification Info */
.classification-info {
    padding: 1rem;
    margin: 1rem 0;
}

/* Footer */
.footer {
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Progress Section */
.progress-section {
    padding: 1.5rem 0;
}

/* Security Info */
.security-info {
    margin: 1rem;
    padding: 1rem;
}

/* Total Box */
.total-box {
    padding: 1rem;
    margin: 1rem 0;
}

/* Language Switcher */
.btn-lang {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

/* Step Number */
.step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
.hero h1 {
font-size: 1.8rem;
}

text
.subtitle {
    font-size: 1rem;
}

.features h2,
.how-it-works h2 {
    font-size: 1.7rem;
}

.feature-icon,
.method-icon {
    font-size: 2.5rem;
}

.payment-header h1 {
    font-size: 1.5rem;
}

.countdown-timer {
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
}

.success-icon {
    font-size: 4rem;
}

.step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
}
}

/* Mobile landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
.hero {
padding: 2rem 0;
}


/* ===========================
   AMÉLIORATIONS MOBILE IMPORT/EXPORT CHATGPT 
   =========================== */

/* NAVBAR — version mobile */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    position: relative;
  }

  .navbar .logo {
    flex: 1;
    text-align: left;
  }

  .navbar .btn-lang {
    display: none; /* Masqué sur mobile */
  }

  /* Menu hamburger */
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #1C1C1C;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }
}

/* ===========================
   IMPORT-EXPORT PAGE MOBILE
   =========================== */
@media (max-width: 768px) {
  .import-export {
    padding: 1rem;
  }

  /* 1️⃣ TITRE PRINCIPAL */
  .import-export h1 {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  /* 2️⃣ BARRE DE PROGRESSION */
  .import-export .progress-bar {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 1rem auto 2rem;
    gap: 1rem;
  }

  .import-export .progress-bar::before {
    display: none;
  }

  .import-export .progress-bar .step-label {
    display: none !important;
  }

  .import-export .progress-step {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* 3️⃣ FORMULAIRE VALUATIONFORM — harmonisation des espacements */
  .import-export form[name="valuationForm"] .form-row,
  .import-export form[name="valuationForm"] .form-group {
    margin-bottom: 1rem;
  }

  .import-export form[name="valuationForm"] .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .import-export .form-group label {
    font-size: 1rem;
  }

  /* 4️⃣ BOUTON COPIER */
  .import-export .btn.copy {
    max-width: 120px;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  /* 5️⃣ RADIO BUTTONS (Déclarant) — empilés verticalement */
  .import-export .radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .import-export .radio-label input[type="radio"] {
    margin-right: 0.6rem;
  }

  .import-export .form-group > div[style*="display: flex; gap: 2rem"] {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  /* 6️⃣ DIVERS AMÉLIORATIONS GÉNÉRALES */
  .import-export .form {
    padding: 1.2rem;
    border-radius: 8px;
  }

  .import-export fieldset {
    margin-bottom: 1.2rem;
    padding: 1rem;
  }

  .import-export legend {
    font-size: 1.1rem;
  }

  .import-export input,
  .import-export select {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .import-export .btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .import-export .form-actions {
    flex-direction: column-reverse;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  /* 7️⃣ Petits ajustements visuels */
  .import-export .classification-info,
  .import-export .total-box {
    margin: 1rem 0;
    padding: 1rem;
  }

  .import-export .classification-info h4 {
    font-size: 1.1rem;
  }

  .import-export .method-card {
    margin-bottom: 1rem;
  }

  /* 8️⃣ Meilleure lisibilité notifications */
  .notifications-container {
    left: 10px;
    right: 10px;
    top: 10px;
    max-width: none;
  }

  .notification {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

/* ===========================
   MICRO-OPTIMISATIONS ULTRA SMALL (≤480px)
   =========================== */
@media (max-width: 480px) {
  .import-export h1 {
    font-size: 1.4rem;
  }

  .import-export .progress-bar {
    width: 90%;
    gap: 0.8rem;
  }

  .import-export .btn.copy {
    max-width: 100px;
    font-size: 0.8rem;
  }

  .import-export input,
  .import-export select {
    font-size: 0.95rem;
  }

  .import-export legend {
    font-size: 1rem;
  }

  .import-export .step-num {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
}
