/* Modal de confirmation d'inscription */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-overlay.show {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1a5490 0%, #2c5aa0 100%);
    color: white;
    padding: 2rem 2rem 1.5rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.modal-header .success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #f39c12;
    text-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-message {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.enfants-list {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 5px solid #f39c12;
}

.enfants-list h4 {
    color: #1a5490;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.enfant-item {
    background: white;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: enfantSlideIn 0.5s ease-out;
}

.enfant-item:nth-child(1) { animation-delay: 0.1s; }
.enfant-item:nth-child(2) { animation-delay: 0.2s; }
.enfant-item:nth-child(3) { animation-delay: 0.3s; }
.enfant-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes enfantSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.enfant-icon {
    color: #f39c12;
    font-size: 1.2rem;
}

.enfant-name {
    font-weight: 600;
    color: #2c3e50;
}

.modal-footer {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #1a5490 0%, #2c5aa0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 84, 144, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 84, 144, 0.4);
}

.modal-btn-secondary {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.modal-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.modal-btn-outline {
    background: transparent;
    color: #1a5490;
    border: 2px solid #1a5490;
}

.modal-btn-outline:hover {
    background: #1a5490;
    color: white;
    transform: translateY(-2px);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 600px) {
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 0 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation de fermeture */
.modal-overlay.closing {
    animation: modalFadeOut 0.3s ease-in forwards;
}

.modal-overlay.closing .modal-container {
    animation: modalSlideOut 0.3s ease-in forwards;
}

@keyframes modalFadeOut {
    to {
        opacity: 0;
    }
}

@keyframes modalSlideOut {
    to {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
} 