/*--------------------------------------------------
 # Contact Page Styles
 # Author: Naery Web Development
 # Version: 1.0
--------------------------------------------------*/

/*--------------------------------------------------
 # Contact Hero Section
--------------------------------------------------*/
.contact-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 90px;
    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;
}

/* Overlay plus intense pour éliminer la luminosité blanche */
.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;
}

.hero-subtitle {
    white-space: nowrap;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.contact-hero .section-title h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.contact-hero .section-title h1:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.25);
    z-index: -1;
    transition: width 1s ease-in-out;
    transform: skew(-12deg) rotate(-1deg);
    border-radius: 2px;
}

.contact-hero .section-title.visible h1:after {
    width: 100%;
    left: 0;
    transform: none;
}

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

/*--------------------------------------------------
 # Contact Form Section
--------------------------------------------------*/
.contact-form-section {
    padding: 80px 0;
    margin-top: -60px;
    position: relative;
    z-index: 5;
    overflow: visible;
}

.contact-form-container {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
    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;
    color: #ffffff;
}

.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: center;
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.contact-icon .fa-circle {
    color: #4CAF50;
}

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

.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%;
}

/* 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;
}

/* 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: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
    margin-right: 15px;
}

.contact-info .animated-social-link:hover .icon-container {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.contact-info .social-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: all 0.3s ease;
}

.contact-info .animated-social-link:hover .social-icon {
    transform: scale(1.1); /* Lu00e9ger 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;
}

/* Status Messages */
.form-status {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95rem;
    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: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* 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; /* Supprimer la diagonale qui coupe les SVG */
}

.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));
}

/* Positionnement simplifié des SVG aux quatre coins */
/* Distribution horizontale des SVG sur toute la bannière */
.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);
}
