/* ========================================
   CONTACT SECTION
   ======================================== */

#contact {
    background: linear-gradient(135deg,
        var(--bs-white) 0%,
        rgba(var(--bs-light-rgb), 0.3) 50%,
        var(--bs-white) 100%);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

#contact > .container {
    position: relative;
    z-index: 1;
}

/* Titre section */
#contact h2 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#contact .lead {
    color: var(--bs-gray-600);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Section informations de contact */
.contact-info {
    padding-inline: 2rem;
}

.contact-intro h3 {
    color: var(--bs-primary);
    font-weight: 600;
}

.contact-intro p {
    line-height: 1.6;
}

/* Méthodes de contact */
.contact-methods {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(var(--bs-primary-rgb), 0.02);
    border-radius: 12px;
    border-left: 4px solid var(--bs-primary);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-content h5 {
    color: var(--bs-dark);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-content p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Badge CTA */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb), 0.1), rgba(var(--bs-info-rgb), 0.1));
    color: var(--bs-success);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(var(--bs-success-rgb), 0.2);
}

.cta-badge i {
    font-size: 1rem;
}

/* Formulaire de contact */
.contact-form-wrapper {
    position: relative;
}

.contact-form-card {
    background: var(--bs-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(var(--bs-primary-rgb), 0.1);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.05);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
}

.form-header h4 {
    color: var(--bs-primary);
    font-weight: 600;
}

/* Champs de formulaire flottants */
.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating > .form-control {
    border: 2px solid rgba(var(--bs-gray-300-rgb, 206, 212, 218), 1);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(var(--bs-light-rgb), 0.3);
}

.form-floating > .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
    background: var(--bs-white);
}

.form-floating > label {
    color: var(--bs-gray-600);
    font-weight: 500;
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--bs-primary);
    font-weight: 600;
}

/* Zone de texte */
.form-floating textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Bouton de soumission */
.btn-contact {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bs-info), var(--bs-primary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
    color: white;
}

.btn-contact:hover::before {
    opacity: 1;
}

.btn-contact span {
    position: relative;
    z-index: 1;
}

/* Messages d'erreur et succès */
.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(var(--bs-danger-rgb), 0.1);
    color: var(--bs-danger);
    border-left: 4px solid var(--bs-danger);
}

.alert-success {
    background: rgba(var(--bs-success-rgb), 0.1);
    color: var(--bs-success);
    border-left: 4px solid var(--bs-success);
}

/* Responsive */
@media (max-width: 991px) {
    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-item {
        justify-content: center;
        text-align: left;
        max-width: 400px;
        margin: 1rem auto;
    }
}

@media (max-width: 768px) {
    #contact h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #contact .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .contact-form-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .contact-info {
        padding: 1rem;
    }

    .contact-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 1.5rem 1rem;
    }

    .form-floating > .form-control {
        padding: 0.9rem 0.75rem;
        font-size: 0.95rem;
    }

    .btn-contact {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-icon {
        margin-right: 0;
    }
}
