/*--------------------------------------------------
 # Contact Section Styles
--------------------------------------------------*/

/*--------------------------------------------------
 # Contact Hero Section
--------------------------------------------------*/
.contact-hero {
    position: relative;
    min-height: 34vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: visible;
    background: linear-gradient(to left, #e835d1 10%, #cc32c0 20%, rgba(165, 40, 175, 1) 35%, rgba(140, 50, 185, 1) 50%, rgba(110, 60, 195, 1) 75%, #303db5 100%);
    color: #fff;
    z-index: 1;
    clip-path: none !important;
}

/* More intense overlay to eliminate white brightness */
.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(65, 39, 132, 0) 0%, rgba(65, 39, 132, 0.35) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.contact-hero .container {
    position: relative;
    z-index: 10;
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}


.contact-hero .section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* SVG Animations in Contact Hero */
.contact-hero .svg-animations-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
    clip-path: none !important; /* Remove the diagonal that cuts through the SVGs */
}

.contact-hero .svg-item {
    position: absolute;
    width: 180px;
    height: auto;
    opacity: 0.3;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

/* Simplified positioning of SVGs at the four corners */
/* Horizontal distribution of SVGs across the entire banner */
.contact-hero .svg-item[data-svg="screen-coding"] {
    top: 15%;
    left: 4%;
    width: 130px !important;
    transform: translateY(-50%) rotate(0deg) scale(0.7); 
}

.contact-hero .svg-item[data-svg="code-connect"] {
    top: 55%;
    left: 15%;
    width: 130px !important;
    transform: translateY(-50%) rotate(0deg) scale(0.7);
}

.contact-hero .svg-item[data-svg="code-windows"] {
    top: 50%;
    right: 15%;
    width: 140px !important;
    transform: translateY(-50%) rotate(0deg) scale(0.7);
}

.contact-hero .svg-item[data-svg="gear"] {
    top: 15%;
    right: 3%;
    width: 140px !important;
    transform: translateY(-50%) rotate(0deg) scale(0.7);
}

/*--------------------------------------------------
 # Contact Form Section
--------------------------------------------------*/
.contact-form-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(69, 39, 160, 0.1), 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Contact Info */
.contact-info {
    padding: 40px;
    background: linear-gradient(135deg, #4527a0, #7b1fa2);
    color: #fff;
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.9;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.social-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.social-link {
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}

.social-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.social-link:hover {
    opacity: 1;
}

.social-link:hover:after {
    width: 100%;
}

/* Styles pour les liens sociaux dans la section contact */
.contact-social-links {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer horizontalement les icônes */
    width: 100%;
}

/* Styles pour les liens sociaux et email */
.contact-info .animated-social-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
    overflow: hidden;
    background: transparent;
    margin-bottom: 20px;
    color: white;
}

.contact-info .animated-social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.contact-info .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 2;
    margin-right: 15px;
}

.contact-info .animated-social-link:hover .icon-container {
    transform: scale(1.1);
}

.contact-info .social-icon {
    width: 20px;
    height: 20px;
    fill: white;
    transition: transform 0.3s ease;
}

.contact-info .animated-social-link:hover .social-icon {
    transform: scale(1.1); /* Léger effet de grossissement au survol */
}

.contact-info .link-text {
    position: relative;
    opacity: 0;
    transform: translateX(20px) translateY(1px); /* Léger décalage pour centrer le texte */
    transition: all 0.3s ease 0.1s; /* Léger délai pour commencer après le déplacement de l'icône */
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.contact-info .animated-social-link:hover .link-text {
    opacity: 1;
    transform: translateX(0) translateY(1px); /* Maintenir le décalage sur l'axe Y */
}

/* Animation du texte dactylographié */
.contact-info .typing-content {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    transition: max-width 0.4s ease 0.2s; /* Démarrer après l'apparition du texte */
}

.contact-info .animated-social-link:hover .typing-content {
    max-width: 200px;
}

/* Animation effet lame lumineuse */
.contact-info .animated-social-link:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.7s ease;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.contact-info .animated-social-link:hover:after {
    left: 130%;
    opacity: 0.8;
}

/* Form Container */
.form-container {
    padding: 40px;
    background-color: #fff;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 0 calc(50% - 10px);
    margin-bottom: 3px;
}

.form-group.full-width {
    flex: 1 0 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.required::after {
    content: ' *';
    color: #4527a0; /* Changé de rose à bleu */
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4527a0; /* Changé de rose à bleu */
    box-shadow: 0 0 0 2px rgba(69, 39, 160, 0.08); /* Effet plus subtil */
    background-color: #fff;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.recaptcha-container {
    margin: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.form-submit {
    width: 100%;
    margin-top: 10px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #4527a0, #7b1fa2);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #3b1f8a, #6a1a8c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 31, 162, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(123, 31, 162, 0.3);
}

.submit-btn .btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: block;
}

.submit-btn.loading {
    cursor: wait;
    opacity: 0.8;
}

/* Form Status Messages */
.form-status {
    margin-top: 20px;
    width: 100%;
    display: none;
    border-radius: 8px;
    padding: 15px;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.form-status .success-message {
    display: none;
}

.form-status .error-message {
    display: none;
}

.form-status.success .success-message {
    display: block;
}

.form-status.error .error-message {
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-form-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        border-radius: 20px 20px 0 0;
    }
    
    .contact-hero .section-title h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .form-group {
        flex: 1 0 100%;
    }
    
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-hero {
        padding: 100px 0 60px;
    }
    
.contact-hero .section-title h1 {
font-size: 2.5rem;
}
}

@media (max-width: 480px) {
.contact-info,
.form-container {
padding: 30px 20px;
}
    
.contact-hero .section-title h1 {
font-size: 2rem;
}
    
.contact-hero .section-title p {
font-size: 1rem;
}
}

/*--------------------------------------------------
 # Enhanced Contact Components
 # Added from contact-enhanced.css
--------------------------------------------------*/

/*--------------------------------------------------
 # Form Progress Bar
--------------------------------------------------*/
.form-progress-container {
width: 100%;
height: 8px;
background-color: rgba(255, 255, 255, 0.15);
border-radius: 12px;
position: relative;
overflow: hidden;
margin-bottom: 0px; /* Minimal space with captcha */
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-progress-bar {
position: absolute;
height: 100%;
background: linear-gradient(90deg, #4527a0, #7b1fa2, #bd28ba);
background-size: 200% 100%;
border-radius: 12px;
width: 0;
transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
box-shadow: 0 0 12px rgba(189, 40, 186, 0.7);
animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

.form-progress-bar.complete {
background: linear-gradient(90deg, #43a047, #00c853, #43a047);
background-size: 200% 100%;
box-shadow: 0 0 15px rgba(0, 200, 83, 0.6);
animation: completeGradient 2s ease infinite;
}

@keyframes completeGradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

.form-progress-stats {
display: flex;
justify-content: space-between;
color: rgba(255, 255, 255, 0.8);
font-size: 0.85rem;
margin-top: 2px;
margin-bottom: 0px; /* No margin with captcha */
font-weight: 500; /* Slightly bolder text */
}

/*--------------------------------------------------
 # Field Transitions & Animations
--------------------------------------------------*/
.form-group {
position: relative;
overflow: hidden;
transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
transform-origin: left center;
}

/* Slide up animation for form groups */
.form-group.fade-in {
animation: slideIn 0.6s forwards cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

/* Focus effects */
/* Subtle animation effect on focus (no pulsation) */
.form-group input:focus,
.form-group textarea:focus {
transform: scale(1.003);
transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Validation Indicators */
.form-group {
position: relative;
}

.validation-icon {
position: absolute;
right: 15px;
top: 40px; /* Adjusted to align with inputs */
font-size: 1.2rem;
opacity: 0;
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
transform: scale(0.5);
color: #4CAF50;
z-index: 2;
}

.form-group.error .validation-icon {
color: #F44336;
opacity: 1;
transform: scale(1);
}

.form-group.valid .validation-icon {
color: #4CAF50;
opacity: 1;
transform: scale(1);
}

/* Input labels animation */
.form-group label {
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group.has-value label {
transform: translateY(-5px) scale(0.95);
color: #4527a0; /* Changed to a more blue, less pink color */
}

/* Input Border animation */
.form-group input,
.form-group textarea {
position: relative;
transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.form-group input:focus,
.form-group textarea:focus {
border-color: #4527a0; /* Changed to a more blue, less pink color */
box-shadow: 0 0 0 2px rgba(69, 39, 160, 0.08);
}

.form-group.error input,
.form-group.error textarea {
border-color: #F44336;
box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-group.valid input,
.form-group.valid textarea {
border-color: #4CAF50;
box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Error Message Animation */
.error-tooltip {
position: absolute;
right: 40px; /* Positioned to the right of the field */
top: 40px; /* Aligned with the middle of the field */
background-color: rgba(244, 67, 54, 0.9);
color: white;
padding: 5px 10px;
border-radius: 4px;
font-size: 0.75rem;
opacity: 0;
transform: translateY(0);
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
z-index: 5; /* Increased z-index for visibility */
pointer-events: none;
max-width: none; /* Allow message to display in full */
white-space: nowrap;
overflow: visible; /* Ensure text isn't truncated */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-group.error .error-tooltip {
opacity: 1;
transform: translateY(0);
}

/*--------------------------------------------------
 # Success/Error Animations
--------------------------------------------------*/
.form-status {
transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
transform: translateY(20px);
opacity: 0;
}

.form-status.success,
.form-status.error {
transform: translateY(0);
opacity: 1;
animation: statusPulse 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes statusPulse {
0% {
transform: scale(0.95);
}
50% {
transform: scale(1.02);
}
100% {
transform: scale(1);
}
}

/* Success animation */
.status-icon {
font-size: 3rem;
display: inline-block;
margin-bottom: 10px;
opacity: 0;
transform: scale(0.5);
}

.form-status.success .status-icon,
.form-status.error .status-icon {
animation: iconAppear 0.6s forwards cubic-bezier(0.68, -0.55, 0.27, 1.55);
animation-delay: 0.2s;
}

@keyframes iconAppear {
0% {
opacity: 0;
transform: scale(0.5);
}
100% {
opacity: 1;
transform: scale(1);
}
}

/* Submit button animations */
.submit-btn {
position: relative;
overflow: hidden;
}

.submit-btn:after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 5px;
height: 5px;
background: rgba(255, 255, 255, 0.3);
opacity: 0;
border-radius: 100%;
transform: scale(1, 1) translate(-50%);
transform-origin: 50% 50%;
}

.submit-btn:hover:after {
animation: submitRipple 1s;
}

@keyframes submitRipple {
0% {
transform: scale(0, 0);
opacity: 0.5;
}
20% {
transform: scale(25, 25);
opacity: 0.3;
}
100% {
opacity: 0;
transform: scale(40, 40);
}
}

.submit-btn.loading {
animation: submitPulse 1.5s infinite cubic-bezier(0.66, 0, 0.34, 1);
}

@keyframes submitPulse {
0% {
opacity: 0.8;
}
50% {
opacity: 1;
}
100% {
opacity: 0.8;
}
}

/* Loading animation */
.btn-loading {
position: relative;
}

.btn-loading:before {
content: '';
width: 20px;
height: 20px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 1s infinite linear;
position: absolute;
left: calc(50% - 10px);
top: calc(50% - 10px);
}

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

/*--------------------------------------------------
 # Field Focus Effects
--------------------------------------------------*/
.form-container {
position: relative;
transition: all 0.3s ease;
}

/* Hover effect removed as requested */
.form-container:before {
display: none;
}
