/* Styles pour les pages d'inscription */

/* Bouton de soumission principal */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1abc9c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

/* Animation pour le bouton de soumission */
@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(40, 167, 69, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
}

.btn-success.btn-lg {
    animation: pulse 2s infinite !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    min-height: 50px !important;
    position: relative !important;
    z-index: 999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-success.btn-lg:hover {
    animation: none !important;
}

/* Assurer la visibilité absolue du bouton de soumission */
button[type="submit"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    background: #28a745 !important;
    color: white !important;
    border: 2px solid #28a745 !important;
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

button[type="submit"]:hover {
    background: #218838 !important;
    border-color: #218838 !important;
    transform: translateY(-2px) !important;
}

/* Styles pour les cartes d'inscription */
.inscription-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.inscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Hero section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::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="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* En-tête des cartes d'inscription */
.inscription-header {
    min-height: 96px;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.inscription-ribbon {
    border-radius: 999px !important;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    background: rgba(0, 0, 0, 0.25) !important; /* ensure readable on blue */
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.header-icon-bg {
    right: 12px;
    bottom: 8px;
    font-size: 56px;
    color: rgba(255,255,255,0.6);
    pointer-events: none;
}

/* Amélioration des formulaires */
.form-control:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.text-danger {
    color: #dc3545 !important;
}

/* Cartes */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.alert {
    border: none;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-success.btn-lg {
        width: 100% !important;
        margin-top: 1rem !important;
    }
    
    .d-md-flex {
        flex-direction: column !important;
    }
    
    .justify-content-md-between {
        align-items: stretch !important;
    }
    
    .inscription-card:hover {
        transform: none;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .vr {
        display: none;
    }
}

/* Séparateur vertical */
.vr {
    width: 1px;
    height: 2rem;
    background-color: currentColor;
    opacity: 0.25;
}

/* Badges compacts (chips) */
.chip {
    font-weight: 500;
    padding: 0.35rem 0.6rem;
}

.meta-badges {
    gap: 0.5rem !important;
}

/* Boutons d'action principaux */
.btn-primary.w-100.btn-lg {
    font-weight: 600 !important;
    padding: 15px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-primary.w-100.btn-lg:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3) !important;
}

/* Bouton clair secondaire (voir détails) */
.btn-outline-light.border-0.text-primary.bg-light {
    border-radius: 8px !important;
}
