/* ================================
   BASE & RESET
================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0B0112;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    min-height: 100vh;
}

/* ================================
   HEADER (identique aux autres pages)
================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Zen Dots", sans-serif;
    font-size: 20px;
    background: #000000;
    padding: 16px 24px;
    border-bottom: 1px solid white;
    box-shadow: 0px 0px 17px 1px rgba(191, 0, 255, 0.9);
    position: relative;
    z-index: 10;
}

a {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin: 8px 16px;
}

nav { display: flex; align-items: center; }

nav > a {
    color: #BF00FF;
    transition: color 0.3s, text-shadow 0.3s;
}

nav > a:hover,
nav > a.nav-active {
    color: #ffffff;
    text-shadow: 0 0 12px #BF00FF;
}


/* ================================
   PARTICLES
================================ */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #0B0112;
}

/* ================================
   SCAN LINES (ambiance CRT)
================================ */
.scan-lines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.04) 3px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

/* ================================
   LAYOUT PRINCIPAL
================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    align-items: start;
}

/* ================================
   COLONNE GAUCHE — INFOS
================================ */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fadeInLeft 0.8s ease both;
}

/* Titre avec effet glitch */
.glitch-container {
    position: relative;
}

.contact-title {
    font-family: "Zen Dots", sans-serif;
    font-size: 72px;
    color: #BF00FF;
    margin: 0;
    text-shadow: 0 0 22px rgba(191, 0, 255, 0.8);
    position: relative;
}

.contact-title::before,
.contact-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.contact-title::before {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    animation: glitch1 4s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
    opacity: 0.7;
}

.contact-title::after {
    color: #ff00aa;
    text-shadow: 0 0 10px #ff00aa;
    animation: glitch2 4s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    opacity: 0.7;
}

@keyframes glitch1 {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    92% { transform: translate(-3px, 1px); opacity: 0.7; }
    94% { transform: translate(3px, -1px); opacity: 0.7; }
    96% { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    93% { transform: translate(3px, 2px); opacity: 0.7; }
    95% { transform: translate(-3px, -2px); opacity: 0.7; }
    97% { transform: translate(0); opacity: 0; }
}

.contact-subtitle {
    font-size: 18px;
    color: #b3a1bf;
    line-height: 1.7;
    margin: 0;
}

/* Éléments d'info */
.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(191, 0, 255, 0.05);
    border: 1px solid rgba(191, 0, 255, 0.15);
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.info-item:hover {
    border-color: rgba(191, 0, 255, 0.5);
    box-shadow: 0 0 12px rgba(191, 0, 255, 0.15);
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(191, 0, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #BF00FF;
    font-weight: 600;
    margin-bottom: 3px;
}

.info-value {
    display: block;
    font-size: 16px;
    color: #e5d8f0;
}

/* Réseaux sociaux */
.socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.socials-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6b4d7a;
    font-weight: 600;
}

.socials-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(191, 0, 255, 0.3);
    border-radius: 6px;
    color: #e5b3ff;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 0;
    background: rgba(191, 0, 255, 0.05);
}

.social-btn:hover {
    background: rgba(191, 0, 255, 0.15);
    border-color: #BF00FF;
    box-shadow: 0 0 15px rgba(191, 0, 255, 0.3);
    color: #fff;
}

/* ================================
   COLONNE DROITE — FORMULAIRE
================================ */
.contact-form-wrapper {
    position: relative;
    background: rgba(20, 5, 35, 0.7);
    border: 1px solid rgba(191, 0, 255, 0.25);
    border-radius: 12px;
    padding: 48px;
    backdrop-filter: blur(8px);
    animation: fadeInRight 0.8s ease both;
}

/* Coins décoratifs style cyberpunk */
.form-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #BF00FF;
    border-style: solid;
}

.form-corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.form-corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.form-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.form-corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ================================
   FORM FIELDS
================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #BF00FF;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background: rgba(11, 1, 18, 0.8);
    border: 1px solid rgba(191, 0, 255, 0.25);
    border-radius: 6px;
    padding: 14px 16px;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(179, 161, 191, 0.4);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* Lueur au focus */
.input-wrapper.focused input,
.input-wrapper.focused textarea,
.input-wrapper.focused select {
    border-color: #BF00FF;
    box-shadow: 0 0 0 2px rgba(191, 0, 255, 0.15), inset 0 0 12px rgba(191, 0, 255, 0.05);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #BF00FF, transparent);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.input-wrapper.focused .input-glow {
    transform: translateX(-50%) scaleX(1);
}

/* Select */
.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.contact-form select option {
    background: #160224;
    color: #ffffff;
}

/* ================================
   BOUTON SUBMIT
================================ */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #BF00FF;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: "Zen Dots", sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
    width: 100%;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(191, 0, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-submit:hover::before {
    width: 400px;
    height: 400px;
}

.btn-submit:hover {
    background: #BF00FF;
    box-shadow: 0 0 25px rgba(191, 0, 255, 0.6);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* État chargement */
.btn-submit.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   MESSAGE SUCCÈS
================================ */
.form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(191, 0, 255, 0.08);
    border: 1px solid rgba(191, 0, 255, 0.4);
    border-radius: 8px;
    font-family: "Zen Dots", sans-serif;
    font-size: 18px;
    color: #e5b3ff;
    text-align: center;
    animation: none;
}

.form-success.visible {
    display: flex;
    animation: fadeIn 0.6s ease both;
}

/* ================================
   FOOTER MMI
================================ */
.mmi {
    font-family: "Zen Dots", sans-serif;
    font-size: 32px;
    text-shadow: rgba(182, 101, 209, 0.9) 0px 0px 22px;
    color: #BF00FF;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1;
}

/* ================================
   ANIMATIONS D'ENTRÉE
================================ */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .contact-title {
        font-size: 52px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mmi {
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }
}
