/* Design professionnel et moderne - CARI St-Laurent */
:root {
    /* Couleurs principales */
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-button: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-error: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Couleurs de texte */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-white: #ffffff;
    
    /* Couleurs de fond */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-muted: #f3f4f6;
    
    /* Bordures */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-focus: #3b82f6;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Rayons de bordure */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-primary);
    min-height: 100vh;
    padding: var(--space-lg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Effet de particules en arrière-plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Header moderne avec logos */
.header {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899);
}

.header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.header img {
    max-width: 100%;
    height: auto;
    filter: brightness(1.1) contrast(1.05);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Main content */
.main {
    padding: 3rem;
    background: var(--bg-primary);
    position: relative;
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-weight: 500;
}

/* Carte d'information de l'événement */
.event-info {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.event-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.event-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.event-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.event-info .address {
    font-size: 1rem;
    color: white;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

/* Notice importante */
.important-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-left: 4px solid #f59e0b;
    box-shadow: var(--shadow-md);
    position: relative;
}

.important-notice h3 {
    color: #92400e;
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.important-notice p {
    color: #78350f;
    font-weight: 500;
    line-height: 1.6;
}

/* Messages de succès et d'erreur */
.success-message, .error-message {
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.success-message {
    background: var(--gradient-success);
    /*color: var(--text-white);*/
    border: 1px solid #10b981;
}

.error-message {
    background: var(--gradient-error);
    color: var(--text-white);
    border: 1px solid #ef4444;
}

.success-message h2, .error-message h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.confirmation-details {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
    text-align: center;
}

/* Formulaire moderne */
.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 100%;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-section {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.form-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.form-section h3 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
    font-size: 1.375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-light);
}

/* Groupes de champs */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    font-family: inherit;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-group select:disabled {
    background-color: var(--bg-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Conteneurs de champs alignés */
.date-name-container,
.age-fields-container,
.contact-fields-container,
.audiologist-fields-container {
    display: grid;
    gap: var(--space-lg);
    align-items: start;
}

.date-name-container {
    grid-template-columns: 1fr 2fr;
}

.age-fields-container {
    grid-template-columns: 1fr;
}

.contact-fields-container {
    grid-template-columns: 2fr 2fr 1fr;
}

.audiologist-fields-container {
    grid-template-columns: 1fr 1fr;
}

/* Radio buttons modernes */
.radio-group {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: var(--bg-primary);
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.radio-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.radio-label:hover::before {
    opacity: 0.05;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 700;
}

.radio-label input[type="radio"] {
    margin-right: var(--space-sm);
    transform: scale(1.2);
    accent-color: var(--primary);
    position: relative;
    z-index: 1;
}

.radio-label span {
    position: relative;
    z-index: 1;
}

/* Consentement */
.consent-group {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary);
    position: relative;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-right: var(--space-md);
    transform: scale(1.3);
    accent-color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.consent-text {
    color: var(--text-primary);
}

.consent-text ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.consent-text li {
    margin-bottom: var(--space-xs);
}

/* Boutons modernes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
    font-weight: 700;
    width: 100%;
    border-radius: var(--radius-xl);
}

.form-actions {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* Section consentement indépendante */
.consent-section {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.consent-section .form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: var(--space-sm);
    }
    
    .booking-form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-column.full-width {
        grid-column: 1;
    }
    
    .container {
        border-radius: var(--radius-xl);
    }
    
    .main {
        padding: var(--space-lg);
    }
    
    .header {
        padding: var(--space-lg);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .date-name-container,
    .age-fields-container,
    .contact-fields-container,
    .audiologist-fields-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .radio-group {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .form-section {
        padding: var(--space-lg);
    }
    
    .btn-large {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .form-section {
        padding: var(--space-md);
    }
    
    .event-info {
        padding: var(--space-lg);
    }
    
    .important-notice {
        padding: var(--space-lg);
    }
}

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

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

.form-section {
    animation: slideInUp 0.6s ease forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

.hero {
    animation: fadeIn 0.8s ease forwards;
}

.event-info {
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.important-notice {
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

/* Effets de focus améliorés */
.form-group input:focus,
.form-group select:focus {
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --bg-muted: #374151;
        --border-light: #374151;
        --border-medium: #4b5563;
    }
}
/* ======================================
   Page - Inscriptions fermées
   ====================================== */
.closed-registrations {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    max-width: 640px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease both;
}

.closed-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.35);
    color: white;
}

.closed-registrations h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
}

.closed-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.closed-event-card {
    width: 100%;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: var(--space-2xl);
    text-align: left;
}

.closed-event-row {
    display: flex;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
    align-items: flex-start;
}

.closed-event-row:last-child {
    border-bottom: none;
}

.closed-event-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    min-width: 90px;
    padding-top: 2px;
}

.closed-event-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.closed-event-value small {
    display: block;
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2px;
}

.closed-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.closed-contact p {
    width: 100%;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.closed-contact-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.closed-contact-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.closed-contact-separator {
    color: var(--text-muted);
}

.closed-contact-phone {
    font-weight: 500;
    color: var(--text-primary);
}

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