/**
 * Inviit - Application de Rencontres Authentiques
 * CSS Principal - Version 2.0
 * Design iOS-inspired, moderne et fluide
 */

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    /* Couleurs principales - Identité Inviit */
    --primary: #ffd96b;
    --primary-dark: #eab308;
    --primary-light: #fef3c7;
    --accent: #ed3b54;
    --accent-light: #fecdd3;
    
    /* Fond & Surfaces */
    --background: #ffffff;
    --surface: #fafafa;
    --surface-elevated: #f5f5f5;
    --surface-card: #ffffff;
    
    /* Textes */
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;
    --text-disabled: #d4d4d4;
    
    /* États */
    --success: #22c55e;
    --success-light: #dcfce7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Ombres iOS-style */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    /* Border Radius - iOS-style */
    --radius-xs: 0.375rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Transitions - iOS-like */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 1000;
    --z-toast: 2000;
    --z-loader: 10000;
    
    /* Hauteur dynamique (iOS) */
    --vh: 1vh;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    min-height: 100vh;
}

/* Supprimer les styles par défaut */
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

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

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

/* Sélection de texte */
::selection {
    background: var(--primary-light);
    color: var(--text-primary);
}

/* ========================================
   LOADER INITIAL
======================================== */
.app-loader {
    position: fixed;
    inset: 0;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity var(--transition-slow);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.loader-logo {
    width: 80px;
    height: 80px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-pulse {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8; 
    }
}

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

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    min-height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.hero-section.active {
    display: block;
    opacity: 1;
}

.hero-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: var(--z-base);
}

/* Header du Hero */
.hero-header {
    padding: var(--space-lg) 0;
    text-align: center;
}

.brand-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.brand-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-2xl);
    opacity: 0.1;
    z-index: -1;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.hero-title {
    text-align: center;
}

.hero-title h1 {
    font-size: 20px;
    font-weight: var(--font-weight-extrabold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-weight: 400;
    margin-top: 15px;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin-top: 20px;

}

.appname
{
    font-size: 25px;
    text-align: left;
}

.highlight:first-of-type {
    color: var(--primary-dark);
}

.highlight:last-of-type {
    color: var(--accent);
}


/* App Preview - Mockup Cards */
.app-preview {
    position: relative;
    height: 280px;
    margin: var(--space-lg) 0;
    perspective: 1000px;
}

.preview-card {
    position: absolute;
    width: 85%;
    background: var(--surface-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-card.card-1 {
    left: 5%;
    top: -44px;
    transform: rotate(-3deg);
    z-index: 2;
}

.preview-card.card-2 {
    right: 5%;
    top: 113px;
    transform: rotate(2deg);
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    flex-shrink: 0;
}

.avatar img {
    border-radius: 50%;
}

.card-info h3 {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-dark);
}

.card-tag i {
    font-size: 0.875rem;
}

/* ========================================
   FEATURES HIGHLIGHTS - REDESIGN
======================================== */
.features-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    margin-top: 100px;
}

.feature-highlight {
    background: var(--surface-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    border: 2px solid transparent;
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* Effet de survol */
.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-spring);
}

.feature-highlight:active::before {
    transform: scaleX(1);
}

.feature-highlight:active {
    transform: scale(0.97);
}

/* Badge */
.highlight-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 20px;
}

.highlight-badge-strong {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(237, 59, 84, 0.2);
}

.highlight-badge-light {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(255, 217, 107, 0.2);
}

.highlight-badge i {
    font-size: 0.75rem;
}

/* Icône principale */
.highlight-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-top: var(--space-md);
    transition: all var(--transition-spring);
    position: relative;
    margin-top: 30px;
}

/* Variante Primary (Invitation Directe) */
.feature-highlight-primary .highlight-icon {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(255, 217, 107, 0.3);
}

.feature-highlight-primary .highlight-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity var(--transition-base);
}

.feature-highlight-primary:active .highlight-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-highlight-primary:active .highlight-icon::after {
    opacity: 0.4;
}

/* Variante Secondary (Message Flash) */
.feature-highlight-secondary .highlight-icon {
    color: var(--primary);
}

.feature-highlight-secondary .highlight-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity var(--transition-base);
}

.feature-highlight-secondary:active .highlight-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-highlight-secondary:active .highlight-icon::after {
    opacity: 0.4;
}


/* Responsive - Mobile */
@media (max-width: 480px) {
    .features-highlights {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .feature-highlight {
        padding: var(--space-md);
    }
    
    .highlight-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .highlight-info h4 {
        font-size: 0.9375rem;
    }
    
    .highlight-info p {
        font-size: 0.8125rem;
    }
}

/* Desktop hover effects */
@media (hover: hover) {
    .feature-highlight:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }
    
    .feature-highlight:hover::before {
        transform: scaleX(1);
    }
    
    .feature-highlight-primary:hover .highlight-icon {
        transform: scale(1.1) rotate(5deg);
    }
    
    .feature-highlight-primary:hover .highlight-icon::after {
        opacity: 0.4;
    }
    
    .feature-highlight-secondary:hover .highlight-icon {
        transform: scale(1.1) rotate(-5deg);
    }
    
    .feature-highlight-secondary:hover .highlight-icon::after {
        opacity: 0.4;
    }
}

/* Informations */
.highlight-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.highlight-info h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
}

.highlight-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Animation d'apparition séquentielle */
.feature-highlight {
    opacity: 0;
    animation: fadeInScale 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.feature-highlight:nth-child(1) {
    animation-delay: 400ms;
}

.feature-highlight:nth-child(2) {
    animation-delay: 550ms;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Effet de brillance au survol */
.feature-highlight::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.feature-highlight:active::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}


/* Social Proof - Stats */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-item strong {
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    line-height: 1;
}

.stat-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
}

/* Hero Actions */
.hero-actions {
    padding-bottom: var(--space-xl);
/*    margin-top:220px;*/
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Buttons - iOS Style */
.btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    background : var(--primary);
/*    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);*/
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-primary:active::before {
    opacity: 1;
}

.btn-secondary {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--surface-elevated);
    border-radius: var(--radius-xl);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-base);
}

.btn-secondary:active {
    transform: scale(0.97);
    background: var(--surface);
}

/* Installation States */
.install-hint {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

.installing-state {
    text-align: center;
    padding: var(--space-xl);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--surface-elevated);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

.installing-state p {
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

/* Success State */
.success-state {
    text-align: center;
    padding: var(--space-xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--success-light) 0%, var(--success) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: scaleIn var(--transition-spring);
}

.success-icon i {
    font-size: 2.5rem;
    color: var(--success);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.success-state h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.success-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* iOS Guide Wrapper */
.ios-guide-wrapper {
    text-align: center;
}

.ios-guide-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 21px;
}

/* Hero Footer */
.hero-footer {
    text-align: center;
    padding-top: var(--space-lg);
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.link-button:active {
    background: var(--surface);
    color: var(--text-primary);
}

/* ========================================
   AUTH SECTIONS (Register & Login)
======================================== */
.auth-section {
    position: fixed;
    inset: 0;
    background: var(--background);
    display: none;
    opacity: 0;
    z-index: var(--z-sticky);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-section.active {
    display: block;
    opacity: 1;
    animation: slideInRight var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(100%); 
    }
    to { 
        opacity: 1;
        transform: translateX(0); 
    }
}

.auth-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth Navigation Header */
.auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.btn-back {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.btn-back:active {
    transform: scale(0.9);
    background: var(--surface-elevated);
}

.auth-nav h3 {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.spacer {
    width: 40px;
    flex-shrink: 0;
}

/* Progress Bar */
.auth-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.progress-track {
    flex: 1;
    height: 4px;
    background: var(--surface-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    white-space: nowrap;
}

/* Register Steps */
.register-step {
    display: none;
/*    opacity: 0;*/
}

.register-step.active {
    display: block;
    animation: slideUp var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.step-content {
    padding: var(--space-xl) var(--space-lg);
}

.step-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.step-header h2 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.step-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-field label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.char-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
    flex: 1;
    padding: 1rem 1rem 1rem 3rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--text-primary);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper:focus-within {
    background: var(--background);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input-wrapper.error {
    border-color: var(--error);
    background: var(--error-light);
}

/* Textarea */
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--text-primary);
    resize: vertical;
    min-height: 120px;
    transition: all var(--transition-base);
}

textarea::placeholder {
    color: var(--text-muted);
}

textarea:focus {
    background: var(--background);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Toggle Password Button */
.btn-toggle-password {
    position: absolute;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-toggle-password:active {
    background: rgba(0, 0, 0, 0.05);
}

/* Password Strength */
.password-strength {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--surface-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: var(--radius-full);
    transition: all var(--transition-spring);
}

.strength-fill.strength-weak {
    background: var(--error);
}

.strength-fill.strength-medium {
    background: var(--warning);
}

.strength-fill.strength-strong {
    background: var(--success);
}

.strength-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
}

.strength-label.strength-weak {
    color: var(--error);
}

.strength-label.strength-medium {
    color: var(--warning);
}

.strength-label.strength-strong {
    color: var(--success);
}

/* Gender Options */
.gender-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.gender-option {
    padding: var(--space-lg);
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    transition: all var(--transition-spring);
    position: relative;
}

.gender-option i {
    font-size: 2rem;
    transition: transform var(--transition-base);
}

.gender-option span {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
}

.check-mark {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-spring);
}

.gender-option.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--text-primary);
}

.gender-option.active .check-mark {
    opacity: 1;
    transform: scale(1);
}

.gender-option.active i {
    transform: scale(1.1);
}

.gender-option:active {
    transform: scale(0.97);
}

/* Field Error */
.field-error {
    display: none;
    font-size: 0.875rem;
    color: var(--error);
    font-weight: var(--font-weight-medium);
    padding-left: var(--space-xs);
}


/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-md);
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-submit:active {
    transform: scale(0.97);
}

.btn-submit:active::before {
    opacity: 1;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    pointer-events: none;
}

.btn-submit.loading i {
    animation: spin 0.6s linear infinite;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.btn-text {
    padding: var(--space-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-text:active {
    background: var(--surface);
    color: var(--text-primary);
}

/* Login Content */
.login-content {
    padding: var(--space-xl) var(--space-lg);
}

.auth-divider {
    text-align: center;
    margin: var(--space-xl) 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--surface-elevated);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    display: inline-block;
    padding: 0 var(--space-md);
    background: var(--background);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.btn-text-large {
    width: 100%;
    padding: var(--space-md);
    color: var(--primary-dark);
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    text-align: center;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.btn-text-large:active {
    background: var(--primary-light);
    transform: scale(0.97);
}

/* ========================================
   MODALES
======================================== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    background: var(--background);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--surface-elevated);
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.btn-close {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.btn-close:active {
    transform: scale(0.9);
    background: var(--surface-elevated);
}

.modal-body {
    flex: 1;
    padding: var(--space-xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--surface-elevated);
}

.btn-modal-close {
    width: 100%;
}

/* iOS Installation Steps */
.installation-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.install-step {
    display: flex;
    gap: var(--space-lg);
    animation: slideInLeft var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.install-step:nth-child(1) { animation-delay: 100ms; }
.install-step:nth-child(2) { animation-delay: 200ms; }
.install-step:nth-child(3) { animation-delay: 300ms; }

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

.step-number {
    min-width: 48px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-extrabold);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.step-info h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
}

.step-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.step-icon {
    margin: var(--space-sm) 0;
}

.step-icon img {
    width: 40px;
    height: auto;
}

/* Privacy Sections */
.privacy-section {
    margin-bottom: var(--space-xl);
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.section-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.section-icon i {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.privacy-section h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.privacy-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   TOAST NOTIFICATIONS
======================================== */
.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    z-index: var(--z-toast);
    max-width: 360px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-left: 4px solid;
    pointer-events: auto;
    min-width: 280px;
}

.toast i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast span {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-error i {
    color: var(--error);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-warning i {
    color: var(--warning);
}

.toast-info {
    border-left-color: var(--info);
}

.toast-info i {
    color: var(--info);
}

/* ========================================
   ANIMATIONS BACKGROUND
======================================== */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 217, 107, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(237, 59, 84, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(255, 217, 107, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, -5%) rotate(1deg); }
    50% { transform: translate(-3%, 3%) rotate(-1deg); }
    75% { transform: translate(-5%, -3%) rotate(0.5deg); }
}

/* Particules flottantes */
.hero-container::before,
.hero-container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-full);
    opacity: 0.15;
    filter: blur(60px);
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.hero-container::before {
    top: -150px;
    right: -150px;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 100%);
    animation-delay: 0s;
}

.hero-container::after {
    bottom: -100px;
    left: -150px;
    background: linear-gradient(135deg, var(--accent-light) 0%, transparent 100%);
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.15;
    }
    25% { 
        transform: translate(20px, -40px) scale(1.1); 
        opacity: 0.2;
    }
    50% { 
        transform: translate(-30px, -20px) scale(0.9); 
        opacity: 0.1;
    }
    75% { 
        transform: translate(30px, 30px) scale(1.05); 
        opacity: 0.18;
    }
}

/* ========================================
   SCROLLBAR PERSONNALISÉE
======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--surface);
}

/* ========================================
   FOCUS STATES - ACCESSIBILITÉ
======================================== */
*:focus-visible {
/*    outline: 3px solid var(--primary);*/
/*    outline-offset: 2px;*/
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
/*    outline-offset: 4px;*/
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
======================================== */

/* Petits mobiles */
@media (max-width: 380px) {
    
}

/* Mobiles standard */
@media (max-width: 480px) {
    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }
    
    .feature-pill {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }
    
    .install-step {
        gap: var(--space-md);
    }
    
    .step-number {
        min-width: 40px;
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
}

/* Tablettes en portrait */
@media (min-width: 768px) {
   
}

/* Tablettes en paysage et petits desktops */
@media (min-width: 1024px) {
   
}

/* ========================================
   SAFE AREA - iOS NOTCH
======================================== */
@supports (padding: max(0px)) {
    .hero-container {
        padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    }
    
    .auth-container {
        padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    }
    
    .toast-container {
        top: max(var(--space-lg), env(safe-area-inset-top));
        right: max(var(--space-lg), env(safe-area-inset-right));
    }
    
    .modal {
        padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
    }
}

/* ========================================
   MODE SOMBRE (PRÉPARATION)
======================================== */
@media (prefers-color-scheme: dark) {
    /* Optionnel : préparer les variables pour le mode sombre */
    /* À activer si besoin */
    /*
    :root {
        --background: #0a0a0a;
        --surface: #1a1a1a;
        --surface-elevated: #262626;
        --surface-card: #1f1f1f;
        --text-primary: #fafafa;
        --text-secondary: #a3a3a3;
        --text-muted: #737373;
    }
    */
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .hero-actions,
    .auth-nav,
    .btn-back,
    .toast-container,
    .modal {
        display: none !important;
    }
    
    .hero-section,
    .auth-section {
        position: static !important;
        min-height: auto !important;
    }
}

/* ========================================
   ANIMATIONS SUPPLÉMENTAIRES
======================================== */

/* Pulse pour attirer l'attention */
@keyframes attentionPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 217, 107, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(255, 217, 107, 0);
    }
}

/* Shake pour erreur */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.input-wrapper.error {
    animation: shake 0.5s;
}

/* Bounce pour succès */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.success-icon {
    animation: bounce 0.8s;
}

/* Rotate pour loading */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

/* ========================================
   UTILITIES
======================================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.overflow-hidden {
    overflow: hidden;
}

.pointer-events-none {
    pointer-events: none;
}


/* ========================================
   SECTIONS POLITIQUE & CONDITIONS
======================================== */

.policy-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--surface-elevated);
}

.policy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.policy-section h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.policy-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.policy-section p:last-child {
    margin-bottom: 0;
}

/* Listes dans les sections */
.policy-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.policy-list li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: var(--space-lg);
    position: relative;
}

.policy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: var(--font-weight-bold);
}

/* Variante erreurs */
.policy-list li:has(strong):first-letter {
    /* Aucun changement, le texte naturel suffit */
}

/* Sections de contact */
.contact-info {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-md);
    border-left: 4px solid var(--primary);
}

.contact-info p {
    margin: var(--space-sm) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   MODALE - CONTENU SCROLLABLE
======================================== */

.modal-scrollable {
    /* Classe pour les modales avec beaucoup de contenu */
}

.modal-scrollable .modal-body {
    max-height: calc(85vh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   RESPONSIVE - POLITIQUE & CONDITIONS
======================================== */

@media (max-width: 480px) {
    .policy-section {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    
    .policy-section h4 {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
    }
    
    .policy-section p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .policy-list li {
        font-size: 0.875rem;
        padding-left: var(--space-md);
    }
    
    .contact-info {
        padding: var(--space-md);
        border-left: 3px solid var(--primary);
    }
    
    .contact-info p {
        font-size: 0.875rem;
        margin: var(--space-xs) 0;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-scrollable .modal-body {
        max-height: calc(90vh - 140px);
    }
}

/* ========================================
   ANIMATIONS - APPARITION CONTENU
======================================== */

.policy-section {
    opacity: 0;
    animation: fadeInSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.policy-section:nth-child(1) { animation-delay: 50ms; }
.policy-section:nth-child(2) { animation-delay: 100ms; }
.policy-section:nth-child(3) { animation-delay: 150ms; }
.policy-section:nth-child(4) { animation-delay: 200ms; }
.policy-section:nth-child(5) { animation-delay: 250ms; }
.policy-section:nth-child(n+6) { animation-delay: 300ms; }

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   AMÉLIORATION LISIBILITÉ MODAL
======================================== */

.modal-body {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.modal-body strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.modal-body em {
    color: var(--text-secondary);
    font-style: italic;
}

/* Meilleur contraste pour les listes */
.policy-list li strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* Espacement supplémentaire entre sections */
.modal-body .policy-section + .policy-section {
    margin-top: var(--space-lg);
}

/* ========================================
   ÉTATS INTERACTIFS MODAL
======================================== */

.modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--surface);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: var(--radius-full);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   MISE EN AVANT DES POINTS IMPORTANTS
======================================== */

.policy-section p strong {
    color: var(--text-primary);
}

/* Accentuer les "Non" / "Jamais" */
.policy-list li:has(strong:contains("JAMAIS")),
.policy-list li:has(strong:contains("jamais")),
.policy-list li:has(strong:contains("PAS")) {
    /* Impossible avec CSS pur, gérer en HTML avec <em> ou spans */
}

/* Alternative : utiliser des spans avec classe */
.emphasis-negative {
    color: var(--error);
    font-weight: var(--font-weight-semibold);
}

.emphasis-positive {
    color: var(--success);
    font-weight: var(--font-weight-semibold);
}

.emphasis-info {
    color: var(--info);
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   TABLEAU & LISTES STRUCTURÉES
======================================== */

.policy-section table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: 0.9375rem;
}

.policy-section table th,
.policy-section table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--surface-elevated);
    color: var(--text-secondary);
}

.policy-section table th {
    background: var(--surface);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.policy-section table tr:hover td {
    background: var(--surface);
}

/* ========================================
   BADGES ET ÉTIQUETTES
======================================== */

.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-important {
    background: var(--error-light);
    color: var(--error);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

/* ========================================
   CITATIONS & CALLOUTS
======================================== */

.callout {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.callout-warning {
    background: var(--warning-light);
    border-left-color: var(--warning);
}

.callout-error {
    background: var(--error-light);
    border-left-color: var(--error);
    color: var(--error);
}

.callout-success {
    background: var(--success-light);
    border-left-color: var(--success);
    color: var(--success);
}

/* ========================================
   AMÉLIORATION ACCESSIBILITÉ
======================================== */

.policy-section h4:focus-visible {
/*    outline: 3px solid var(--primary);*/
/*    outline-offset: 2px;*/
/*    border-radius: var(--radius-sm);*/
}

.policy-list li:focus-visible {
/*    outline: 2px solid var(--primary);*/
/*    outline-offset: 2px;*/
/*    border-radius: var(--radius-xs);*/
}

/* Pour le lecteur d'écran */
.sr-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

/* ========================================
   IMPRESSION / PRINT
======================================== */

@media print {
    .modal {
        position: static;
        max-width: 100%;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .modal-overlay,
    .modal-header,
    .modal-footer {
        display: none;
    }
    
    .policy-section {
        page-break-inside: avoid;
    }
    
    .policy-section h4 {
        page-break-after: avoid;
    }
    
    .contact-info {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
}








/* Timer Display */
.timer-display {
    margin-top: var(--space-lg);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

#install-timer {
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

/* Installation Complete State */
.install-complete-state {
    text-align: center;
    padding: var(--space-xl);
    display: none;
}

.complete-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--success-light) 0%, var(--success) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: scaleIn var(--transition-spring);
}

.complete-icon i {
    font-size: 2.5rem;
    color: var(--success);
}

.install-complete-state h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.install-complete-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
}

.app-icon-preview {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
}

.app-icon-preview img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    animation: bounce 0.8s ease-in-out;
}
/* ========================================
   FIN DU CSS
======================================== */