@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* ---- Variables Globales ---- */
:root {
    --primary-color-contact: #00BFFF;
    --secondary-color: #007BFF;
    --background-dark: #0d0d0d;
    --background-light: #1a1a1a;
    --card-bg: #121212;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-color-contact: #ffffff;
    --input-bg: #0a0a0a;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* ---- Conteneur Principal ---- */
.contact_container {
    text-align: center;
    padding: clamp(20px, 3vw, 35px);
    max-width: 85%;
    margin: 60px auto;
    display: flex;
    background: var(--card-bg);
    /* border-radius: 15px; */
    box-shadow: 0px 6px 20px var(--shadow-color);
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
}

/* ---- Section Contact ---- */
.contact-info {
    width: 40%;
    background: var(--background-light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 2px solid var(--border-color);
    min-height: 350px;
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color-contact);
}

.contact-info p {
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 80%;
    text-align: center;
    color: var(--text-color-contact);
}

/* ---- Informations de contact ---- */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: aliceblue;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s ease;
    margin-bottom: 10px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-item i {
    font-size: 18px;
    margin-right: 12px;
    color: var(--primary-color-contact);
}

.contact-item a {
    text-decoration: none;
    color: var(--primary-color-contact);
    transition: 0.3s;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* ---- Carte Google Maps ---- */
iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: none;
    margin-top: 12px;
    margin-bottom: 12px;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

/* ---- Réseaux sociaux ---- */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: nowrap;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 16px;
    color: var(--primary-color-contact);
    text-decoration: none;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* ---- Section Formulaire ---- */
.contact-form {
    width: 60%;
    padding: 30px;
    color: var(--text-color-contact);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.form-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
}

.input-group {
    display: flex;
    gap: 8px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: var(--input-bg);
    border: 2px solid #444;
    color: var(--text-color-contact);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--primary-color-contact);
    outline: none;
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.5);
}

textarea {
    resize: none;
    min-height: 320px;
    flex-grow: 1;
    max-height: 380px;
}

/* ---- Bouton Envoyer ---- */
.send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color-contact));
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    gap: 8px;
}

.send-btn:hover {
    background: linear-gradient(135deg, #0056b3, var(--secondary-color));
    transform: scale(1.02);
}

.send-btn i {
    font-size: 16px;
}

/* ---- Responsive Design ---- */
@media (max-width: 1024px) {
    .contact_container {
        flex-direction: column;
        max-width: 90%;
    }

    .contact-info, .contact-form {
        width: 100%;
        padding: 20px;
    }

    .contact-info {
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

    .input-group {
        flex-direction: column;
        gap: 5px;
    }

    textarea {
        min-height: 150px;
        max-height: 200px;
    }

    .send-btn {
        font-size: 14px;
        padding: 10px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links a {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .contact-info h2, .form-title {
        font-size: 18px;
    }

    .contact-item {
        font-size: 13px;
        padding: 8px;
    }

    .contact-item i {
        font-size: 16px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links a {
        font-size: 12px;
        padding: 6px 10px;
    }
}
