/* STYLES SPÉCIFIQUES À LA PAGE RENDEZ-VOUS */

/* Breadcrumb */
.breadcrumb-nav {
    background: var(--chu-light-blue);
    padding: 15px 0;
    margin-bottom: 0;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--chu-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--chu-dark-blue);
}

.breadcrumb-item.active {
    color: var(--chu-dark);
    font-weight: 500;
}

/* Hero Section Rendez-vous */
.appointment-hero {
    background: linear-gradient(135deg, var(--chu-blue) 0%, var(--chu-dark-blue) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.appointment-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/medical-pattern.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.appointment-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.appointment-illustration {
    text-align: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Carte de rendez-vous */
.appointment-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* Étapes du formulaire */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.step-title {
    color: var(--chu-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--chu-light-blue);
    position: relative;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--chu-blue);
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 500;
    color: var(--chu-dark);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--chu-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 166, 0.15);
}

.form-control:invalid {
    border-color: var(--chu-red);
}

/* Actions du formulaire */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Résumé de confirmation */
.confirmation-summary {
    background: var(--chu-light-blue);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.summary-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 86, 166, 0.1);
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-item strong {
    color: var(--chu-blue);
    display: block;
    margin-bottom: 5px;
}

/* Informations de disponibilité */
.availability-info {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2e7d32;
}

.availability-info i {
    font-size: 1.2rem;
}

/* Cartes d'information */
.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-card i {
    font-size: 3rem;
    color: var(--chu-blue);
    margin-bottom: 20px;
}

.info-card h5 {
    color: var(--chu-dark);
    margin-bottom: 15px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Indicateur de progression */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--chu-blue);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--chu-blue);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États de validation */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: var(--chu-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .appointment-hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .appointment-card {
        padding: 25px;
        margin-top: -60px;
    }
    
    .appointment-features {
        justify-content: center;
        gap: 20px;
    }
    
    .feature-item {
        flex: 0 0 calc(50% - 20px);
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .appointment-illustration {
        font-size: 5rem;
        margin-top: 30px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .confirmation-summary {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .appointment-hero {
        padding: 40px 0;
    }
    
    .appointment-card {
        padding: 20px;
        margin-top: -40px;
        border-radius: 15px;
    }
    
    .feature-item {
        flex: 0 0 100%;
    }
    
    .appointment-illustration {
        font-size: 4rem;
    }
}

/* États de chargement */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--chu-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages de succès/erreur */
.alert-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}