:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

/* Layout Utils */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .grid-2-cols { grid-template-columns: 1fr; }
}

.hidden { display: none !important; }
.full-width { width: 100%; }

/* Navigation */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo span { color: var(--primary); }

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%); /* Dégradé lumineux */
    color: #ffffff !important; /* Force le blanc */
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700; /* Plus gras */
    font-size: 1.2rem; /* Plus gros */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3); /* Ombre colorée */
    letter-spacing: 0.5px; /* Espacement léger */
    text-transform: uppercase; /* Optionnel: majuscules pour plus d'impact */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Landing Page - Hero */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff 0%, #f3f4f6 100%);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight { color: var(--primary); }

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trust-text {
    font-size: 3rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-5px); }

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 { margin-bottom: 0.5rem; }

/* App Page Styles */
.app-page { background-color: #f3f4f6; }

.app-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.examples-sidebar {
    width: 100px;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.examples-sidebar h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text);
    text-align: center;
}

.example-item {
    text-align: center;
    width: 100%;
    transition: transform 0.2s;
    cursor: pointer;
}

.example-item:hover {
    transform: scale(1.05);
}

.example-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin-bottom: 0.2rem;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.example-item:hover img {
    border-color: var(--primary);
}

.example-item span {
    font-size: 0.6rem;
    color: var(--text-light);
    font-weight: 500;
    display: block;
    line-height: 1.2;
}

.app-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
}

/* Responsive App Layout */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
        align-items: center;
    }

    .examples-sidebar {
        width: 100%;
        max-width: 600px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1rem;
    }
    
    .example-item span {
        display: none; /* Cacher le texte sur mobile pour gagner de la place si besoin, ou le garder */
    }
}


.app-header {
    text-align: center;
    margin-bottom: 2rem;
}

.app-header h2 { margin-bottom: 0.5rem; }
.app-header p { margin-top: 0; color: var(--text-light); }

/* Form Elements */
.form-group { margin-bottom: 1.5rem; }

.label-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--white);
    font-size: 1rem;
}

/* File Upload Styling */
.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    transition: 0.2s;
    background: #f9fafb;
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
}

.file-drop-area.is-active { background-color: #eff6ff; border-color: var(--primary); }

.fake-btn {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fake-btn-text-desktop {
    display: block;
}

.fake-btn-text-mobile {
    display: none;
}

@media (max-width: 768px) {
    .fake-btn-text-desktop {
        display: none;
    }
    
    .fake-btn-text-mobile {
        display: block;
    }
    
    .fake-btn {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
}

.file-msg {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-msg-desktop {
    display: block;
}

.file-msg-mobile {
    display: none;
}

@media (max-width: 768px) {
    .file-msg-desktop {
        display: none;
    }
    
    .file-msg-mobile {
        display: block;
    }
    
    .file-msg {
        font-size: 0.9rem;
    }
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Preview & Result */
#preview-container img, #result-section img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
    max-height: 400px;
    object-fit: cover;
}

.result-area {
    text-align: center;
    margin-top: 2rem;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.btn-download {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 25px;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    font-size: 1.2rem;
    background: #f9fafb;
    border-top: 1px solid var(--border);
}

/* ============================================
   RESPONSIVE MOBILE - RECOMMANDATIONS CRITIQUES, IMPORTANTES ET MINEURES
   ============================================ */

/* ===== RECOMMANDATIONS CRITIQUES (1-4) ===== */

/* 1. Navigation Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: space-between;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
        flex: 0 0 auto;
    }
    
    /* Empiler les boutons de navigation sur mobile */
    .nav-container > div {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
        position: static !important;
        transform: none !important;
        left: auto !important;
    }
    
    .nav-container > div:first-of-type {
        order: 2;
        margin-top: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-container > div {
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 280px;
    }
}

/* 2. Typographie Adaptative */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .app-header h2 {
        font-size: 1.5rem;
    }
    
    .app-header p {
        font-size: 0.9rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .label-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .trust-text {
        font-size: 1.75rem;
    }
}

/* 3. Padding/Marges Réduits */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .app-card {
        padding: 1.5rem;
    }
    
    .app-container {
        margin-top: 1rem;
        margin-bottom: 1rem;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .divider {
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .app-card {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* 4. Tailles de Boutons (Minimum 44x44px pour touch) */
@media (max-width: 768px) {
    .btn-primary {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
        min-height: 44px;
        min-width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    #generateBtn {
        font-size: 1.1rem !important;
        padding: 1.25rem 1.5rem !important;
        min-height: 52px !important;
    }
    
    .btn-download {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        font-size: 0.95rem;
    }
    
    .btn-text {
        min-height: 32px;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    #generateBtn {
        font-size: 1rem !important;
        padding: 1rem 1.25rem !important;
    }
}

/* ===== RECOMMANDATIONS IMPORTANTES (5-8) ===== */

/* 5. Formulaire Mobile */
@media (max-width: 768px) {
    .form-select {
        padding: 14px 12px;
        font-size: 1rem;
        min-height: 44px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .form-group input[type="email"] {
        padding: 14px 12px;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .file-drop-area {
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .fake-btn {
        padding: 10px 18px;
        font-size: 0.95rem;
        min-height: 40px;
    }
    
    .file-msg {
        font-size: 0.9rem;
    }
    
    .checkbox-group {
        padding: 1rem;
        margin: 1.25rem 0;
    }
    
    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
    
    .checkbox-group .checkbox-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .compteur-info {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .file-drop-area {
        padding: 1.25rem;
        min-height: 100px;
    }
    
    .form-select,
    .form-group input[type="email"] {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
}

/* 6. Hero Section Compacte */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 2rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .trust-text {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0 1.5rem;
    }
}

/* 7. Modal RGPD Optimisée */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.75rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    .modal-body {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .modal-body h3 {
        font-size: 1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.625rem;
    }
    
    .modal-body p {
        margin-bottom: 0.875rem;
    }
    
    .modal-body ul {
        margin-left: 1.25rem;
        margin-bottom: 0.875rem;
    }
    
    .rgpd-link {
        font-size: 0.85rem;
        display: inline-block;
        margin-top: 0.25rem;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 1.25rem;
        max-height: 95vh;
    }
    
    .modal-header h2 {
        font-size: 1.15rem;
    }
    
    .modal-body {
        font-size: 0.85rem;
    }
}

/* 8. Footer avec Liens Empilés */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 1.1rem;
        line-height: 1.8;
        padding: 0 1rem;
    }
    
    footer a {
        display: inline-block;
        padding: 0.25rem 0;
        min-height: 32px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    footer p {
        font-size: 1rem;
        line-height: 2;
    }
}

/* ===== RECOMMANDATIONS MINEURES (9-10) ===== */

/* 9. Espacement Features Grid */
@media (max-width: 768px) {
    .features {
        padding: 2.5rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card .icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 2rem 0;
    }
    
    .features-grid {
        gap: 1.25rem;
    }
}

/* 10. Amélioration Touch Target (Zones Cliquables) */
@media (max-width: 768px) {
    /* Augmenter les zones cliquables pour tous les éléments interactifs */
    .example-item {
        padding: 0.5rem;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .example-item img {
        min-height: 50px;
    }
    
    .nav-link {
        padding: 0.625rem 1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Améliorer l'espacement des liens dans le footer */
    footer a {
        margin: 0 0.25rem;
        padding: 0.375rem 0.5rem;
    }
    
    /* Zone de téléchargement plus grande */
    #download-link {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Input file plus accessible */
    .file-input {
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .example-item {
        min-height: 55px;
        padding: 0.375rem;
    }
}

/* Améliorations supplémentaires pour très petits écrans */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .app-card {
        padding: 0.875rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }
}

/* ===== CAMÉRA / SELFIE ===== */
.btn-camera {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-camera:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.4);
}

.btn-camera:active {
    transform: translateY(0);
}

/* Modal caméra */
.camera-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.camera-modal.hidden {
    display: none;
}

.camera-modal:not(.hidden) {
    display: flex;
}

.camera-modal-content {
    background-color: #1f2937;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #111827;
    border-bottom: 1px solid #374151;
}

.camera-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

.camera-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    min-width: 36px;
    min-height: 36px;
}

.camera-close:hover {
    background-color: #374151;
    color: #ffffff;
}

.camera-preview-container {
    position: relative;
    width: 100%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3/4; /* Format portrait pour selfie */
    overflow: hidden;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Miroir pour selfie (comme un vrai selfie) */
}

#camera-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.camera-controls {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #111827;
    justify-content: center;
}

.btn-capture {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 52px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.btn-capture:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.5);
}

.btn-capture:active {
    transform: translateY(0);
}

.btn-cancel {
    padding: 1rem 2rem;
    background-color: #374151;
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 52px;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background-color: #4b5563;
}

.camera-hint {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 0 1.5rem 1rem;
    margin: 0;
}

/* Responsive pour la caméra */
@media (max-width: 768px) {
    .camera-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .camera-preview-container {
        aspect-ratio: 3/4;
    }
    
    .camera-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-capture,
    .btn-cancel {
        width: 100%;
    }
    
    .btn-camera {
        font-size: 0.95rem;
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .camera-header {
        padding: 0.875rem 1rem;
    }
    
    .camera-header h3 {
        font-size: 1.1rem;
    }
    
    .camera-controls {
        padding: 1rem;
    }
    
    .btn-capture,
    .btn-cancel {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
    }
}

/* ===== TÉLÉCHARGEMENT MOBILE ===== */
.download-text-desktop {
    display: inline;
}

.download-text-mobile {
    display: none;
}

.mobile-download-hint {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.mobile-help-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e40af;
    text-align: center;
}

.mobile-help-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1e3a8a;
    text-align: center;
}

.mobile-help-text strong {
    color: #1e40af;
    font-weight: 700;
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .download-text-desktop {
        display: none;
    }
    
    .download-text-mobile {
        display: inline;
    }
    
    .mobile-download-hint:not(.hidden) {
        display: block !important;
    }
    
    .mobile-help-title {
        font-size: 1.1rem;
    }
    
    .mobile-help-text {
        font-size: 0.95rem;
    }
    
    /* Améliorer l'image pour l'appui long sur mobile */
    #final-image {
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: default; /* Permet le menu contextuel sur iOS */
    }
}

@media (max-width: 480px) {
    .mobile-download-hint {
        padding: 1rem;
        margin-top: 1.25rem;
    }
    
    .mobile-help-title {
        font-size: 1rem;
    }
    
    .mobile-help-text {
        font-size: 0.9rem;
    }
}
