/* Styles modernes pour la page de confirmation de rendez-vous - Compatible avec styles.css */

/* ===== VARIABLES CSS (héritées de styles.css) ===== */
:root {
    --primary-color: #8000ff;
    --primary-light: #a050ff;
    --secondary-color: #4343FF;
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --animation-duration: 0.6s;
    --animation-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SECTION CONFIRMATION - DESIGN PREMIUM ===== */
.confirmation-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 8%;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 100%);
    position: relative;
    overflow: hidden;
}

.confirmation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(128, 0, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(67, 67, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.confirmation-container {
    max-width: 800px;
    text-align: center;
    padding: 60px 50px;
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    animation: confirmationEntry 1s ease-out;
    border: 1px solid rgba(128, 0, 255, 0.1);
    overflow: hidden;
}

.confirmation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

@keyframes confirmationEntry {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== ICÔNE DE CONFIRMATION ANIMÉE ===== */
.confirmation-icon {
    margin-bottom: 40px;
    position: relative;
}

.confirmation-icon i {
    font-size: 5rem;
    color: #28a745;
    animation: checkmarkBounce 1.2s ease-out;
    position: relative;
    z-index: 1;
}

.confirmation-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: ripple 1.5s ease-out;
}

.confirmation-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 50%;
    animation: ripple 1.5s ease-out 0.3s;
}

@keyframes checkmarkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===== TITRE ET MESSAGE ===== */
.confirmation-section h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.confirmation-message {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 50px;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== DÉTAILS DE CONFIRMATION ===== */
.confirmation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.05) 0%, rgba(67, 67, 255, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(128, 0, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(128, 0, 255, 0.15);
}

.detail-item i {
    font-size: 2rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.1), rgba(67, 67, 255, 0.1));
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item span {
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}

/* ===== BOUTONS D'ACTION ===== */
.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 50px 0;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(128, 0, 255, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary::before, .btn-secondary::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-primary:hover::before, .btn-secondary:hover::before {
    left: 100%;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(128, 0, 255, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===== PROCHAINES ÉTAPES ===== */
.next-steps {
    text-align: left;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out 1.1s both;
    border: 1px solid rgba(128, 0, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.next-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.next-steps h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
}

.next-steps h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps ul li {
    padding: 15px 0;
    position: relative;
    padding-left: 40px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(128, 0, 255, 0.1);
    transition: all 0.3s ease;
}

.next-steps ul li:last-child {
    border-bottom: none;
}

.next-steps ul li:hover {
    padding-left: 45px;
    color: var(--primary-color);
}

.next-steps ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--white);
    transition: all 0.3s ease;
}

.next-steps ul li:nth-child(1):before { content: "1"; }
.next-steps ul li:nth-child(2):before { content: "2"; }
.next-steps ul li:nth-child(3):before { content: "3"; }

.next-steps ul li:hover:before {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(128, 0, 255, 0.3);
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.confirmation-icon i {
    animation: checkmarkBounce 1.2s ease-out, pulse 2s ease-in-out 2s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .confirmation-section {
        padding: 80px 5%;
        min-height: 80vh;
    }

    .confirmation-container {
        padding: 40px 30px;
        margin: 20px;
    }

    .confirmation-section h1 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .confirmation-icon i {
        font-size: 4rem;
    }
    
    .confirmation-icon::before {
        width: 100px;
        height: 100px;
    }
    
    .confirmation-icon::after {
        width: 70px;
        height: 70px;
    }
    
    .confirmation-message {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .confirmation-details {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
        margin: 40px 0;
    }
    
    .detail-item {
        padding: 15px;
    }
    
    .detail-item i {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        padding: 12px;
    }
    
    .confirmation-buttons {
        flex-direction: column;
        gap: 15px;
        margin: 40px 0;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .next-steps {
        padding: 30px 25px;
        margin-top: 30px;
    }
    
    .next-steps h3 {
        font-size: 1.2rem;
    }
    
    .next-steps ul li {
        font-size: 0.95rem;
        padding: 12px 0;
        padding-left: 35px;
    }
    
    .next-steps ul li:before {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .confirmation-container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .confirmation-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .confirmation-icon i {
        font-size: 3.5rem;
    }
    
    .confirmation-message {
        font-size: 0.95rem;
    }
    
    .confirmation-details {
        padding: 25px 15px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    .detail-item span {
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .next-steps {
        padding: 25px 20px;
    }
    
    .next-steps ul li {
        font-size: 0.9rem;
        padding-left: 32px;
    }
    
    .next-steps ul li:before {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

/* ===== ANIMATION D'ENTRÉE PROGRESSIVE ===== */
.confirmation-container > * {
    opacity: 0;
    transform: translateY(20px);
}

.confirmation-container .confirmation-icon {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.confirmation-container h1 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.confirmation-container .confirmation-message {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.confirmation-container .confirmation-details {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.confirmation-container .confirmation-buttons {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.confirmation-container .next-steps {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}