﻿/* ========================================
   CONTACT PAGE - Premium Design System
   Harmonisé avec le design moderne de l'application
   ======================================== */

/* ========================================
   STRUCTURE GÉNÉRALE
   ======================================== */

.contact-page-wrapper {
    animation: contactPageFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes contactPageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HERO SECTION - Contact - Design Moderne
   ======================================== */

.contact-hero {
    position: relative;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, 
        #1b6ec2 0%,
        #2e8ed8 50%,
        #1b6ec2 100%
    );
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    border: none;
    box-shadow: 0 10px 40px rgba(27, 110, 194, 0.3);
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroBackgroundPulse 8s ease-in-out infinite;
}

@keyframes heroBackgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.contact-hero-content {
    position: relative;
    z-index: 1;
}

.contact-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: floatContactIcon 3s ease-in-out infinite;
    position: relative;
}

.contact-hero-icon i {
    font-size: 2.25rem;
    color: white;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

@keyframes floatContactIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}

.contact-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ========================================
   FORMULAIRE DE CONTACT - Premium Design
   ======================================== */

.contact-form-card {
    background: white;
    border-radius: 1.5rem;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
                0 4px 15px rgba(0, 0, 0, 0.04);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        #1b6ec2 0%,
        #4a9fd8 25%,
        #7cb9e8 50%,
        #4a9fd8 75%,
        #1b6ec2 100%
    );
    background-size: 200% 100%;
    animation: gradientSlide 4s ease-in-out infinite;
}

@keyframes gradientSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-form-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(27, 110, 194, 0.2),
                0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-header {
    background: linear-gradient(135deg,
        #1b6ec2 0%,
        #2e8ed8 100%
    );
    border: none;
    padding: 2rem 1.75rem;
    margin: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.contact-form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: headerShine 3s ease-in-out infinite;
}

.contact-form-header-icon {
    width: 0;
    height: 0;
    display: none;
}

.contact-form-header-icon i {
    display: none;
}

.contact-form-header h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem; /* cohérent avec h5 des autres cartes */
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-form-header h3::before {
    content: '\F26C';
    font-family: 'bootstrap-icons';
    font-size: 1.75rem;
}

.contact-form-header p {
    color: rgba(255, 255, 255, 0.95); /* keep white on gradient */
    font-size: 0.95rem;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Body du formulaire */
.contact-form-card form {
    padding: 2rem 1.5rem;
}

/* Groupes de formulaire améliorés */
.form-group-enhanced {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group-enhanced label {
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.form-group-enhanced label i {
    color: #ffffff;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #1b6ec2 0%, #2e8ed8 100%);
    padding: 0.6rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(27, 110, 194, 0.3);
    transition: all 0.3s ease;
}

.form-group-enhanced label:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(27, 110, 194, 0.4);
}

.form-group-enhanced .form-control {
    border: 2px solid #e8ecf0;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000000;
    font-weight: 400;
    line-height: 1.6;
}

.form-group-enhanced .form-control:focus {
    border-color: #1b6ec2;
    box-shadow: 0 0 0 4px rgba(27, 110, 194, 0.1),
                0 8px 24px rgba(27, 110, 194, 0.15);
    background: white;
    transform: translateY(-3px);
}

.form-group-enhanced .form-control:hover {
    border-color: #2e8ed8;
    background: white;
}

.form-group-enhanced textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Animation pour les champs en erreur */
.form-group-enhanced .form-control.invalid {
    border-color: #dc3545;
    animation: shakeError 0.5s ease-in-out;
}

/* States from Blazor validation */
.form-group-enhanced .form-control.valid.modified,
.form-group-enhanced .form-control.valid.touched {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.form-group-enhanced .form-control.invalid.modified,
.form-group-enhanced .form-control.invalid.touched {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.form-group-enhanced .text-danger {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.form-group-enhanced .text-danger::before {
    content: '⚠️';
    font-size: 0.9rem;
}

/* Bouton d'envoi premium */
.btn-submit-contact {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #1b6ec2 0%, #2e8ed8 50%, #1b6ec2 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(27, 110, 194, 0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.btn-submit-contact:hover::before {
    left: 100%;
}

.btn-submit-contact:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 50px rgba(27, 110, 194, 0.5);
    background-position: 100% 0;
}

.btn-submit-contact:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-submit-contact:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-submit-contact i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-submit-contact:hover i {
    transform: translateX(5px);
}

/* Spinner de chargement */
.btn-submit-contact .spinner-border {
    width: 1.25rem;
    height: 1.25rem;
    border-width: 2px;
}

/* ========================================
   ALERTE DE SUCCÈS - Premium
   ======================================== */

.alert-success-contact {
    background: linear-gradient(135deg,
        #d4edda 0%,
        #e8f5e9 100%
    );
    border: 2px solid #28a745;
    border-radius: 14px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
    animation: successSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-success-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        #28a745 0%,
        #34d058 25%,
        #28a745 50%,
        #34d058 75%,
        #28a745 100%
    );
    background-size: 200% 100%;
    animation: successGradient 3s ease-in-out infinite;
}

@keyframes successGradient {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.alert-success-contact strong {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #155724;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.alert-success-contact strong::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #28a745 0%, #34d058 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
}

.alert-success-contact p {
    color: #155724;
    margin: 0;
    padding-left: 3.5rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ========================================
   CARTE D'INFORMATIONS - Premium
   ======================================== */

.contact-info-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
                0 4px 15px rgba(0, 0, 0, 0.04);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(27, 110, 194, 0.2),
                0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-card .card-header {
    background: linear-gradient(135deg,
        #1b6ec2 0%,
        #2e8ed8 100%
    );
    border: none;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
}

.contact-info-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.contact-info-card .card-header h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-info-card .card-header h5 i {
    font-size: 1.75rem;
}

.contact-info-card .card-body {
    padding: 2rem 1.5rem;
}

/* Info items avec icônes */
.contact-info-item {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: #f8fafb;
    border-radius: 14px;
    border: 2px solid #e8ecf0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
        #1b6ec2 0%,
        #1861ac 100%
    );
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-info-item:hover::before {
    transform: scaleY(1);
}

.contact-info-item:hover {
    transform: translateX(10px);
    border-color: #2e8ed8;
    box-shadow: 0 8px 24px rgba(27, 110, 194, 0.25);
    background: white;
}

.contact-info-item strong {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #000000;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-info-item strong i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg,
        #1b6ec2 0%,
        #2e8ed8 100%
    );
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 110, 194, 0.25);
}

.contact-info-item:hover strong i {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 6px 20px rgba(27, 110, 194, 0.4);
}

.contact-info-item a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.contact-info-item a:hover {
    color: #000000;
    transform: translateX(3px);
}

.contact-info-item p {
    margin: 0;
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ========================================
   CARTE LOGIN - Premium
   ======================================== */

.contact-login-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1.5rem;
}

.contact-login-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(27, 110, 194, 0.2),
                0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-login-card .card-header {
    background: linear-gradient(135deg,
        #1b6ec2 0%,
        #2e8ed8 100%
    );
    border: none;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
}

.contact-login-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: headerShine 3s ease-in-out infinite;
}

.contact-login-card .card-header h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-login-card .card-header h5 i {
    color: white;
    font-size: 1.75rem;
}

.contact-login-card .card-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.contact-login-card .card-body p {
    color: #000000;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.btn-login-contact {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #1b6ec2 0%, #2e8ed8 50%, #1b6ec2 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(27, 110, 194, 0.35);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
}

.btn-login-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.btn-login-contact:hover::before {
    left: 100%;
}

.btn-login-contact:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(27, 110, 194, 0.45);
    color: white;
}

.btn-login-contact i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-login-contact:hover i {
    transform: translateX(3px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .contact-hero {
        padding: 1.25rem 1.25rem;
    }

    .contact-hero-title {
        font-size: 1.5rem;
    }

    .contact-hero-icon {
        width: 56px;
        height: 56px;
    }

    .contact-hero-icon i {
        font-size: 1.65rem;
    }

    .contact-form-card {
        padding: 0; /* harmonisé avec les autres cartes */
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 1.25rem 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-hero-title {
        font-size: 1.5rem;
    }

    .contact-hero-subtitle {
        font-size: 0.9rem;
    }

    .contact-hero-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 0.875rem;
    }

    .contact-hero-icon i {
        font-size: 1.5rem;
    }

    .contact-form-card {
        padding: 0; /* harmonisé */
        border-radius: 1.5rem; /* cohérent avec desktop */
    }

    .contact-form-header {
        margin-bottom: 0; /* harmonisé */
    }

    .contact-form-header h3 {
        font-size: 1.35rem;
    }

    .form-group-enhanced {
        margin-bottom: 1.5rem;
    }

    .contact-info-card {
        margin-top: 2rem;
    }

    .contact-login-card {
        margin-top: 1.25rem;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        padding: 1rem 0.875rem;
        margin-bottom: 1.25rem;
        border-radius: 0.875rem;
    }

    .contact-hero-title {
        font-size: 1.35rem;
    }

    .contact-hero-subtitle {
        font-size: 0.875rem;
    }

    .contact-hero-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .contact-hero-icon i {
        font-size: 1.35rem;
    }

    .contact-form-card {
        padding: 0; /* harmonisé */
        border-radius: 1.5rem; /* cohérent */
    }

    .contact-form-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-form-header h3 {
        font-size: 1.25rem;
    }

    .contact-form-header p {
        font-size: 0.9rem;
    }

    .form-group-enhanced .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .btn-submit-contact {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .contact-info-item {
        padding: 1rem;
    }

    .contact-info-item strong {
        font-size: 0.95rem;
    }

    .btn-login-contact {
        width: 100%;
        max-width: 300px;
        padding: 0.7rem 1.5rem;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

.btn-submit-contact:focus,
.btn-login-contact:focus {
    outline: 3px solid rgba(27, 110, 194, 0.5);
    outline-offset: 3px;
}

.form-group-enhanced .form-control:focus {
    outline: none;
}

.contact-info-item:focus-within {
    border-color: #1b6ec2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.15);
}

/* ========================================
   ANIMATIONS PERFORMANCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   SUCCESS MODAL POPUP
   ======================================== */

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInOverlay 0.3s ease-out;
    padding: 1rem;
}

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

.success-modal-container {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-modal-header {
    background: linear-gradient(135deg, #28a745 0%, #34d058 100%);
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.success-modal-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s backwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-modal-icon i {
    font-size: 3.5rem;
    color: #28a745;
    animation: checkPulse 1s ease-in-out infinite;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.success-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.success-modal-close i {
    font-size: 1.25rem;
}

.success-modal-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.success-modal-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #155724;
    margin: 0 0 1rem 0;
    animation: fadeInUp 0.5s ease-out 0.3s backwards;
}

.success-modal-body p {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    animation: fadeInUp 0.5s ease-out 0.4s backwards;
}

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

.success-modal-thanks {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1rem;
    margin-top: 1.5rem !important;
    animation: fadeInUp 0.5s ease-out 0.5s backwards;
}

.success-modal-footer {
    padding: 0 2rem 2rem;
}

.btn-modal-close {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #28a745 0%, #34d058 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: fadeInUp 0.5s ease-out 0.6s backwards;
}

.btn-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-modal-close:active {
    transform: translateY(0);
}

.btn-modal-close i {
    font-size: 1.25rem;
}

/* Responsive Modal */
@media (max-width: 576px) {
    .success-modal-container {
        border-radius: 16px;
        margin: 1rem;
    }

    .success-modal-header {
        padding: 2rem 1.5rem 1rem;
    }

    .success-modal-icon {
        width: 80px;
        height: 80px;
    }

    .success-modal-icon i {
        font-size: 3rem;
    }

    .success-modal-body {
        padding: 2rem 1.5rem;
    }

    .success-modal-body h3 {
        font-size: 1.5rem;
    }

    .success-modal-body p {
        font-size: 0.95rem;
    }

    .success-modal-footer {
        padding: 0 1.5rem 1.5rem;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optionnel)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .contact-form-card,
    .contact-info-card,
    .contact-login-card {
        background: linear-gradient(135deg,
            #2c3e50 0%,
            #34495e 100%
        );
        border-color: rgba(27, 110, 194, 0.3);
    }

    .contact-hero,
    .form-group-enhanced .form-control {
        background: rgba(44, 62, 80, 0.5);
    }

    .contact-hero-subtitle,
    .contact-form-header p,
    .contact-info-item p,
    .contact-login-card .card-body p {
        color: #bdc3c7;
    }
    
    .success-modal-container {
        background: #2c3e50;
    }
    
    .success-modal-body h3 {
        color: #34d058;
    }
    
    .success-modal-body p {
        color: #bdc3c7;
    }
}
