/* === FORM CONTACT SECTION === */
.form-contact-section {
    padding: clamp(4rem, 10vw, 8rem) 0;
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f8fafc 100%);
}

.form-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #8b5cf6 10%,
        #6366f1 30%,
        #8b5cf6 50%,
        #6366f1 70%,
        #8b5cf6 90%,
        transparent 100%
    );
    background-size: 300% auto;
    background-position: 0% center;
    animation: shimmerGradient 10s ease-in-out infinite alternate;
    filter: blur(3px) brightness(1.25);
    mix-blend-mode: screen;
    opacity: 0.7;
    z-index: 5;
    pointer-events: none;
}

@keyframes shimmerGradient {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.form-contact__container {
    max-width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* === HEADER === */
.form-contact__header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 5rem);
    max-width: 680px;
    margin-inline: auto;
}

.form-contact__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-contact__title {
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 600;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

.form-contact__title em {
    font-style: normal;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-contact__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* === CONTENT GRID === */
.form-contact__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: start;
}

/* === PROCESSUS === */
.form-contact__process {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2rem);
    position: sticky;
    top: 2rem;
}

.form-contact__process-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.form-contact__process-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.form-contact__steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-contact__step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
}

.form-contact__step:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.form-contact__step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.form-contact__step-content {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    padding-top: 0.25rem;
}

/* === FORMULAIRE === */
.form-contact__form-wrapper {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-contact__success {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.form-contact__success-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-contact__success-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 0.5rem 0;
}

.form-contact__success-content p {
    font-size: 0.9rem;
    color: #047857;
    margin: 0;
    line-height: 1.5;
}

.form-contact__error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.form-contact__error-icon {
    color: #dc2626;
}

.form-contact__error p {
    font-size: 0.9rem;
    color: #dc2626;
    margin: 0;
}

.form-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-contact__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-contact__field--full {
    grid-column: 1 / -1;
}

.form-contact__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-contact__input,
.form-contact__select,
.form-contact__textarea {
    padding: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
}

.form-contact__input:focus,
.form-contact__select:focus,
.form-contact__textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-contact__textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-contact__submit {
    text-align: center;
    margin-top: 2rem;
}

.form-contact__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.form-contact__button::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;
    pointer-events: none;
}

.form-contact__button:hover::before {
    left: 100%;
}

.form-contact__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.form-contact__button svg {
    transition: transform 0.3s ease;
}

.form-contact__button:hover svg {
    transform: translateX(2px);
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .form-contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-contact__process {
        position: static;
        order: 2;
    }

    .form-contact__form-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .form-contact__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-contact__process {
        padding: 1.25rem;
    }

    .form-contact__form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-contact__step {
        padding: 0.875rem;
    }

    .form-contact__step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .form-contact__input,
    .form-contact__select,
    .form-contact__textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    .form-contact__button::before {
        animation: none;
        transition: none;
    }

    .form-contact__button:hover {
        transform: none;
    }

    .form-contact__step:hover {
        transform: none;
    }
}

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
    .form-contact-section {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }

    .form-contact__process,
    .form-contact__form-wrapper {
        background: #1e293b;
        border-color: #334155;
    }

    .form-contact__title {
        color: #f8fafc;
    }

    .form-contact__subtitle {
        color: #cbd5e1;
    }

    .form-contact__input,
    .form-contact__select,
    .form-contact__textarea {
        background: #334155;
        border-color: #475569;
        color: #f8fafc;
    }

    .form-contact__label {
        color: #cbd5e1;
    }
}

/* ============================================
   ANIMATION DE SUCCÈS
   ============================================ */

.form-contact__success-animation {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 2rem 0;
}

.form-contact__success-animation.active {
    opacity: 1;
    transform: scale(1);
}

.success-animation__content {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-animation__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

.success-animation__checkmark {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
}

.success-animation__circle {
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    animation: drawCircle 0.6s ease-out forwards;
}

.success-animation__check {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: drawCheck 0.4s 0.6s ease-out forwards;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.success-animation__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.success-animation__text {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.success-animation__loader {
    width: 100%;
    max-width: 200px;
    height: 4px;
    background: rgba(226, 232, 240, 0.6);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
    animation: loadingBar 5s linear forwards;
}

@keyframes loadingBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Animation du formulaire */
.form-contact__form-wrapper {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .success-animation__content {
        padding: 2rem 1.5rem;
    }
    
    .success-animation__checkmark {
        width: 60px;
        height: 60px;
    }
}

/* Message d'erreur inline */
.form-contact__error-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.error-message__icon {
    flex-shrink: 0;
    color: #ef4444;
}

.form-contact__error-message p {
    margin: 0;
    color: #dc2626;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* État de chargement du bouton */
.form-contact__button:disabled {
    cursor: not-allowed !important;
}