/* =======================================================
   ✅ VARIABLES
========================================================= */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --info-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* =======================================================
   ✅ PAGE WRAPPER
========================================================= */
.contact-wrapper {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* =======================================================
   ✅ FLOATING BACKGROUND SHAPES
========================================================= */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    mix-blend-mode: multiply;
    animation: float 25s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-gradient);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--success-gradient);
    bottom: -100px;
    left: -100px;
    animation-delay: 8s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--info-gradient);
    top: 50%;
    left: 50%;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

/* =======================================================
   ✅ PAGE HEADER
========================================================= */
.page-header {
    position: relative;
    z-index: 1;
}

.header-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: var(--primary-gradient);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    animation: iconPulse 2.4s infinite ease-in-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

/* =======================================================
   ✅ CONTACT FORM
========================================================= */
.contact-card {
    background: var(--glass-bg);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.contact-card .card-header {
    background: rgba(102, 126, 234, 0.05);
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card .card-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.contact-card .card-body {
    padding: 2.5rem;
}

/* =======================================================
   ✅ FORM INPUTS
========================================================= */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #9ca3af;
}

.input-icon .form-control {
    padding-left: 3.5rem;
}

.form-control {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

textarea.form-control {
    min-height: 140px;
}

/* =======================================================
   ✅ BUTTON
========================================================= */
.btn-primary {
    padding: 1rem 2rem;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: white;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(102, 126, 234, 0.35);
}

/* =======================================================
   ✅ CONTACT INFO CARDS (GRID)
========================================================= */
.contact-info-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ≥480px = 2 colonnes */
@media (min-width: 480px) {
    .contact-info-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ≥992px = 3 colonnes */
@media (min-width: 992px) {
    .contact-info-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2.2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(15px);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

/* ICONES DES CARTES */
.info-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.info-icon.email { background: var(--primary-gradient); }
.info-icon.location { background: var(--info-gradient); }
.info-icon.social { background: var(--warning-gradient); }

/* Content */
.info-content h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #1f2937;
}

.info-content p {
    margin: 0;
    color: #6b7280;
}

/* Links */
.info-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.info-link:hover {
    text-decoration: underline;
}

/* =======================================================
   ✅ SOCIAL LINKS
========================================================= */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #4b5563;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

/* =======================================================
   ✅ FAQ CTA
========================================================= */
.faq-cta {
    background: var(--glass-bg);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px);
}

/* =======================================================
   ✅ MOBILE OPTIMISATION
========================================================= */
@media (max-width: 767px) {
    .contact-card .card-body,
    .contact-card .card-header {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1.8rem;
    }

    .header-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}
