/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE - PREMIUM STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Global overflow fix */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   ✨ HERO SECTION - ULTRA STYLÉ PREMIUM
   ═══════════════════════════════════════════════════════════════ */

/* Hero Container - Dégradé animé premium */
.hero-contact {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px 2rem;
    overflow: visible;
    background: linear-gradient(135deg, 
        #0f172a 0%, 
        #1e293b 25%, 
        #334155 50%, 
        #1e293b 75%, 
        #0f172a 100%);
    background-size: 400% 400%;
    animation: heroGradientFlow 20s ease infinite;
}

@keyframes heroGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Background - Multi-couches */
.hero-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 10s ease-in-out infinite;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Gradient Orbs - Orbes lumineux animés */
.hero-contact::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -10%;
    left: -5%;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.6) 0%, 
        rgba(99, 102, 241, 0.4) 35%, 
        transparent 70%);
    filter: blur(120px);
    opacity: 0.6;
    animation: floatOrb1 25s ease-in-out infinite;
    mix-blend-mode: screen;
    z-index: 0;
}

@keyframes floatOrb1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translate(30px, -50px) scale(1.1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-20px, -80px) scale(0.95);
        opacity: 0.7;
    }
    75% { 
        transform: translate(40px, -30px) scale(1.05);
        opacity: 0.65;
    }
}

/* Second Orb (via pseudo-element sur container-fluid) */
.hero-contact .container-fluid::before {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    bottom: -15%;
    right: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.6) 0%, 
        rgba(168, 85, 247, 0.4) 35%, 
        transparent 70%);
    filter: blur(120px);
    opacity: 0.6;
    animation: floatOrb2 30s ease-in-out infinite -5s;
    mix-blend-mode: screen;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatOrb2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translate(-30px, 50px) scale(1.1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(20px, 80px) scale(0.95);
        opacity: 0.7;
    }
    75% { 
        transform: translate(-40px, 30px) scale(1.05);
        opacity: 0.65;
    }
}

/* Container */
.hero-contact .container-fluid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: auto;
    overflow: visible;
}

.hero-contact-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    overflow: visible;
    height: auto;
}

/* Contact Badge - Style premium glassmorphism */
.hero-contact .contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-contact .contact-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s;
}

.hero-contact .contact-badge:hover::before {
    left: 100%;
}

.hero-contact .contact-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 48px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-contact .contact-badge i {
    font-size: 1.125rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(10deg); }
}

/* Headline - Titre principal */
.hero-contact h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin: 0;
    letter-spacing: -0.03em;
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(59, 130, 246, 0.3);
    animation: titleReveal 1s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Text - Texte avec gradient animé */
.hero-contact .highlight-gradient {
    background: linear-gradient(135deg, 
        #60a5fa 0%, 
        #818cf8 25%, 
        #a78bfa 50%, 
        #c084fc 75%, 
        #e879f9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShine 8s linear infinite;
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.5));
    display: inline-block;
}

@keyframes gradientShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Subheadline - Sous-titre */
.hero-contact p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 800px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    text-align: center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTACT SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-section {
    padding: 100px 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

body.dark-mode .contact-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INFO CARDS - GLASSMORPHISM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.dark-mode .info-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card:hover {
    transform: translateX(8px);
    box-shadow: 
        0 20px 60px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.3);
}

.info-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.info-card:hover .info-icon {
    transform: rotateY(360deg) scale(1.1);
}

.info-icon i {
    font-size: 2rem;
    color: white;
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-card p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.info-card a {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-card a:hover {
    color: #8B5CF6;
    text-decoration: underline;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTACT FORM - PREMIUM GLASSMORPHISM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

body.dark-mode .contact-form-wrapper {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.form-header p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    background: rgba(15, 23, 42, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(4px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SUCCESS MESSAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: none;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: slideIn 0.4s ease;
}

.success-message.show {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message i {
    font-size: 1.5rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .hero-contact {
        padding: 120px 1.5rem 80px 1.5rem;
    }

    .hero-contact h1 {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }

    .hero-contact .container-fluid::before,
    .hero-contact::after {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-contact {
        min-height: 80vh;
        padding: 140px 1.5rem 80px 1.5rem;
        overflow: visible;
    }

    .hero-contact-content {
        gap: 1.5rem;
        overflow: visible;
    }

    .hero-contact .contact-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .hero-contact h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
        line-height: 1.15;
    }

    .hero-contact p {
        font-size: clamp(1rem, 4vw, 1.125rem);
        line-height: 1.6;
    }

    .hero-contact p br {
        display: none;
    }

    .hero-contact .container-fluid::before,
    .hero-contact::after {
        width: 300px;
        height: 300px;
        filter: blur(80px);
    }

    .contact-form-wrapper {
        padding: 2.5rem 2rem;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-contact {
        min-height: 80vh;
        padding: 130px 1.25rem 70px 1.25rem;
    }

    .hero-contact-content {
        gap: 1.25rem;
    }

    .hero-contact .contact-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .hero-contact h1 {
        font-size: clamp(1.875rem, 10vw, 2.5rem);
    }

    .hero-contact p {
        font-size: clamp(0.9375rem, 4.5vw, 1.0625rem);
    }
}

@media (max-width: 480px) {
    .hero-contact {
        min-height: 80vh;
        padding: 120px 1rem 60px 1rem;
    }

    .hero-contact-content {
        gap: 1.25rem;
    }

    .hero-contact .contact-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .hero-contact h1 {
        font-size: clamp(1.75rem, 11vw, 2.25rem);
    }

    .hero-contact p {
        font-size: clamp(0.875rem, 5vw, 1rem);
    }
}