* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #42a5f5;
    --primary-dark: #1976d2;
    --secondary-color: #64b5f6;
    --background-start: #1B2735;
    --background-end: #090A0F;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --error-color: #f44336;
    --success-color: #4caf50;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius-sm: 15px;
    --border-radius-md: 20px;
    --border-radius-lg: 50px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(ellipse at bottom, var(--background-start) 0%, var(--background-end) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: 6px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-end);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.loading-logo {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--glass-bg);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out;
}

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

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Particules animées */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Container principal */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    margin-top: 2rem;
    animation: fadeInDown 1s ease-out;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Contenu principal */
.main-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInLeft 1.2s ease-out 0.5s both;
}

/* Curseur de typing */
.typing-cursor {
    color: var(--primary-color) !important;
    background: none !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    font-weight: normal;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.title em {
    font-style: italic;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.title em::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, #42a5f5);
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 1.2s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

.subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    max-width: 600px;
    animation: slideInRight 1.2s ease-out 0.7s both;
}

/* Formulaire */
.email-form {
    margin-top: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.9s both;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 600px;
}

.input-group {
    position: relative;
    width: 100%;
}

.form-input {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 18px 24px;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--text-muted);
    transition: opacity var(--transition-fast);
}

.form-input:focus::placeholder {
    opacity: 0.5;
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
    animation: shake 0.5s ease-in-out;
}

.error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: var(--font-size-sm);
    color: var(--error-color);
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    pointer-events: none;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--text-primary);
    padding: 18px 48px;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.4);
    width: auto;
    min-width: 220px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.6);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1565c0 100%);
}

.submit-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.5);
}

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

.btn-text {
    transition: transform var(--transition-fast);
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px) rotate(15deg);
}

.submit-help {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--spacing-xs);
    opacity: 0.8;
}

/* Sections du formulaire */
.form-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
}

.full-width {
    grid-column: 1 / -1;
}

/* Labels des formulaires */
.form-label {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    text-align: left;
}

/* Textarea */
.form-textarea {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 18px 24px;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.3);
    transform: translateY(-2px);
}

.form-textarea::placeholder {
    color: var(--text-muted);
    transition: opacity var(--transition-fast);
}

.form-textarea:focus::placeholder {
    opacity: 0.5;
}

/* Fieldsets */
.form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.form-fieldset legend {
    padding: 0;
    margin-bottom: var(--spacing-sm);
}

/* Radio buttons */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    width: 100%;
}

.radio-item {
    position: relative;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    user-select: none;
}

.radio-label:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

.radio-item input[type="radio"]:checked + .radio-label .radio-custom {
    border-color: var(--primary-color);
    background: rgba(66, 165, 245, 0.1);
}

.radio-item input[type="radio"]:checked + .radio-label .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-item input[type="radio"]:checked + .radio-label {
    border-color: var(--primary-color);
    background: rgba(66, 165, 245, 0.05);
}

/* Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    width: 100%;
}

.checkbox-item {
    position: relative;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    user-select: none;
    line-height: 1.4;
}

.checkbox-label:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: transform var(--transition-normal);
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-label .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-label {
    border-color: var(--primary-color);
    background: rgba(66, 165, 245, 0.05);
}

/* Consent checkbox spécial */
.consent-checkbox {
    margin-top: var(--spacing-md);
}

.consent-label {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-md);
}

.consent-checkbox input[type="checkbox"]:checked + .consent-label {
    border-color: var(--success-color);
    background: rgba(76, 175, 80, 0.05);
}

.consent-checkbox .checkbox-custom {
    border-color: rgba(255, 255, 255, 0.4);
}

.consent-checkbox input[type="checkbox"]:checked + .consent-label .checkbox-custom {
    border-color: var(--success-color);
    background: var(--success-color);
}

/* Message de succès */
.success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(76, 175, 80, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.checkmark {
    font-size: 3rem;
    color: #4caf50;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Footer */
.footer {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.made-with {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.made-with:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* États spéciaux */
.form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.3);
}

/* Performance et animations */
.particle {
    will-change: transform;
}

.form-input {
    will-change: transform, border-color;
}

.submit-btn {
    will-change: transform;
}

/* Préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        animation: none;
    }
    
    .loading-logo {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .form-grid {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-sm);
        background: linear-gradient(145deg, rgba(27, 39, 53, 0.8) 0%, rgba(9, 10, 15, 0.9) 100%);
        border-radius: 20px;
        margin: 10px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 400px;
    }
    
    .form-section {
        max-width: 400px;
    }
    
    .input-group {
        margin-bottom: var(--spacing-md);
    }
    
    .form-input, .form-textarea {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--border-radius-sm);
        padding: 16px 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .form-input:focus, .form-textarea:focus {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.4), 0 8px 32px rgba(66, 165, 245, 0.2);
    }
    
    .radio-group {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .radio-label, .checkbox-label {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 14px 16px;
        font-size: var(--font-size-sm);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    
    .radio-label:hover, .checkbox-label:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(66, 165, 245, 0.4);
        transform: translateY(-2px);
    }
    
    .consent-label {
        background: rgba(255, 255, 255, 0.08);
        border: 2px solid rgba(255, 255, 255, 0.2);
        padding: 14px 16px;
        font-size: 0.8rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    
    .submit-btn {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        box-shadow: 0 8px 32px rgba(66, 165, 245, 0.4);
        border-radius: 30px;
        padding: 16px 32px;
        min-width: 180px;
    }
    
    .submit-btn:hover {
        background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
        box-shadow: 0 12px 40px rgba(66, 165, 245, 0.6);
        transform: translateY(-3px) scale(1.02);
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(circle at 20% 30%, rgba(66, 165, 245, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(25, 118, 210, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(100, 181, 246, 0.06) 0%, transparent 50%);
        z-index: -1;
        animation: gradientShift 8s ease-in-out infinite;
    }
    
    @keyframes gradientShift {
        0%, 100% { opacity: 0.8; }
        50% { opacity: 1; }
    }
    
    .title {
        font-size: 2.5rem;
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    .subtitle {
        font-size: var(--font-size-base);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        color: rgba(255, 255, 255, 0.85);
    }
    
    /* Amélioration du badge sur mobile */
    .badge {
        background: linear-gradient(135deg, rgba(66, 165, 245, 0.2) 0%, rgba(25, 118, 210, 0.2) 100%);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(66, 165, 245, 0.3);
        box-shadow: 0 8px 32px rgba(66, 165, 245, 0.2);
        animation: subtleFloat 4s ease-in-out infinite;
    }
    
    .badge:hover {
        background: linear-gradient(135deg, rgba(66, 165, 245, 0.3) 0%, rgba(25, 118, 210, 0.3) 100%);
        box-shadow: 0 12px 40px rgba(66, 165, 245, 0.3);
    }
    
    @keyframes subtleFloat {
        0%, 100% { 
            transform: translateY(0px);
        }
        50% { 
            transform: translateY(-5px);
        }
    }
    
    /* Animation d'entrée en séquence pour les éléments de formulaire */
    .form-grid .input-group:nth-child(1) { animation: slideInLeft 0.6s ease-out 0.2s both; }
    .form-grid .input-group:nth-child(2) { animation: slideInRight 0.6s ease-out 0.3s both; }
    .form-grid .input-group:nth-child(3) { animation: slideInLeft 0.6s ease-out 0.4s both; }
    .form-grid .input-group:nth-child(4) { animation: slideInRight 0.6s ease-out 0.5s both; }
    
    .form-section { animation: fadeInUp 0.6s ease-out 0.6s both; }
    
    /* Améliorations tactiles pour mobile */
    .form-input, .form-textarea, .radio-label, .checkbox-label, .submit-btn {
        -webkit-tap-highlight-color: rgba(66, 165, 245, 0.3);
        touch-action: manipulation;
    }
    
    /* Feedback visuel amélioré pour les touches */
    .form-input:active, .form-textarea:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .radio-label:active, .checkbox-label:active {
        transform: scale(0.97) translateY(-1px);
        transition: transform 0.1s ease;
    }
    
    /* Amélioration du footer mobile */
    .footer {
        animation: fadeInUp 0.6s ease-out 1s both;
    }
    
    .made-with {
        color: rgba(255, 255, 255, 0.7);
        background: rgba(255, 255, 255, 0.05);
        padding: 8px 16px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
        margin: 5px;
        background: linear-gradient(145deg, rgba(27, 39, 53, 0.9) 0%, rgba(9, 10, 15, 0.95) 100%);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }
    
    .form-grid {
        max-width: 280px;
    }
    
    .title {
        font-size: 1.8rem;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    
    .subtitle {
        font-size: var(--font-size-sm);
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .badge {
        padding: 10px 20px;
        font-size: var(--font-size-sm);
        background: linear-gradient(135deg, rgba(66, 165, 245, 0.25) 0%, rgba(25, 118, 210, 0.25) 100%);
        box-shadow: 0 6px 20px rgba(66, 165, 245, 0.3);
    }
    
    /* Amélioration des éléments de formulaire pour très petits écrans */
    .form-input, .form-textarea {
        padding: 14px 18px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .radio-label, .checkbox-label {
        padding: 12px 14px;
        font-size: 13px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .submit-btn {
        padding: 14px 28px;
        min-width: 160px;
        font-size: 14px;
    }
    
    /* Animation de pulsation subtile pour attirer l'attention sur le bouton */
    .submit-btn {
        animation: gentlePulse 3s ease-in-out infinite;
    }
    
    @keyframes gentlePulse {
        0%, 100% { 
            box-shadow: 0 8px 32px rgba(66, 165, 245, 0.4);
        }
        50% { 
            box-shadow: 0 8px 32px rgba(66, 165, 245, 0.6);
        }
    }
    
    /* Optimisation pour l'accessibilité tactile */
    .radio-label, .checkbox-label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .submit-btn {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Animation de "respiration" pour le container principal */
    .container {
        animation: breathe 6s ease-in-out infinite;
    }
    
    @keyframes breathe {
        0%, 100% { 
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
        }
        50% { 
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(66, 165, 245, 0.1);
        }
    }
}

/* Dark mode automatique pour les appareils qui le supportent */
@media (prefers-color-scheme: light) {
    /* Suppression du mode light automatique pour éviter l'apparence trop blanche */
    /*
    :root {
        --background-start: #f0f4f8;
        --background-end: #e2e8f0;
        --text-primary: #1a202c;
        --text-secondary: rgba(26, 32, 44, 0.7);
        --text-muted: rgba(26, 32, 44, 0.6);
        --glass-bg: rgba(255, 255, 255, 0.8);
        --glass-border: rgba(26, 32, 44, 0.1);
    }
    */
}

/* Améliorations pour l'impression */
@media print {
    .particles-container,
    .loading-screen,
    .submit-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
} 