/* === GENERAL === */
body {
margin: 0;
font-family: 'Inter', sans-serif;
color: #c9d1d9;
}

/* === BACKGROUND WAVE (Three.js) === */
#bg-wave {
    position: fixed;
    inset: 0;
    z-index: 0;          /* arrière-plan */
    pointer-events: none; /* le canvas ne bloque pas les clics */
}

/* Le canvas généré par Three.js */
#bg-wave canvas {
    width: 100%;
    height: 100%;
    display: block;
}

header {
    text-align: center;
    padding: 60px 20px 20px;
}

p {
margin: 0;
padding: 0;
}

h2 {
    font-size: 40px;
    color: #58a6ff;
    text-shadow: 0 0 15px rgba(88, 166, 255, 0.7);
    position: relative;
    text-decoration: underline;
}

/* === NAVBAR === */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 40px;
position: sticky;
top: 0;
z-index: 1000;
}

.navbar .logo {
font-size: 24px;
font-weight: bold;
color: #58a6ff;
font-family: 'Fira Code', monospace;
letter-spacing: 0.5px;
text-shadow: 0 0 5px rgba(88, 166, 255, 0.4), 0 0 10px rgba(88, 166, 255, 0.2);
transition: text-shadow 0.3s ease;
}

.navbar .logo:hover {
text-shadow: 0 0 8px rgba(88, 166, 255, 0.7), 0 0 12px rgba(88, 166, 255, 0.5);
}

.navbar .nav-links {
list-style: none;
display: flex;
gap: 30px;
}

.navbar .nav-links li a {
    text-decoration: none;
    color: #c9d1d9;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.nav-links li a i {
    margin-right: 6px;
}

.navbar .nav-links li a i {
    font-size: 20px;
    transition: transform 0.2s, color 0.3s;
}

.navbar .nav-links li a:hover i {
    transform: scale(1.2);
    color: #58a6ff;
}

.navbar .nav-links li a:hover {
    color: #58a6ff;
}

/* === CONTACT GRID === */
.contact-container {
    width: 85%;
    margin: 60px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px;
    background: rgba(22, 27, 34, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.4);
}

/* === LEFT COLUMN === */
.contact-left h3 {
    font-size: 28px;
    color: #58a6ff;
    margin-bottom: 15px;
}

.contact-left .intro {
    color: #b1b8c1;
    line-height: 1.5;
    margin-bottom: 25px;
}

.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-icons a {
    color: #c9d1d9;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s, text-shadow 0.3s;
}

.contact-icons a i {
    font-size: 22px;
    color: #58a6ff;
}

.contact-icons a:hover {
    color: #58a6ff;
    text-shadow: 0 0 12px rgba(88, 166, 255, 0.8);
}

/* === RIGHT COLUMN FORM === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 16px;
    color: #8b949e;
}

input,
textarea {
    padding: 12px;
    border: 2px solid #30363d;
    border-radius: 8px;
    background: rgba(13, 17, 23, 0.8);
    color: #c9d1d9;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Neon glow on focus */
input:focus,
textarea:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.6);
}

/* BUTTON */
/* === EMERALD BUTTON === */
.emerald-button {
    position: relative;
    z-index: 5;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 0.8em 1.3em;
    padding-right: 3.2em;
    background: transparent;
    color: #f9fafc;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    filter: brightness(0.95);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.emerald-button::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        90deg,
        #0d1b2a,
        #1f6feb,
        #58a6ff,
        #8ecbff,
        #58a6ff,
        #1f6feb,
        #0d1b2a
    );
    background-size: 300% 100%;
    border-radius: 6px;
    z-index: -1;
    padding: 2px;
    box-sizing: border-box;

    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;

    transition: background-position 0.8s ease;
}

.emerald-button:hover::before {
    background-position: 100% 0;
}

.emerald-button::after {
    content: "➔";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1em;
    display: flex;
    align-items: center;
    color: #8ecbff;
    transition: transform 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.emerald-button:hover::after {
    transform: translateX(4px);
    color: #58a6ff;
}

.emerald-button:active {
    transform: translateY(2px) scale(0.97);
    filter: brightness(0.85);
}

/* === FOOTER === */
footer {
text-align: center;
padding: 37px 20px;
color: #fcfcfc;
font-size: 0.9em;
z-index: 1000;
position: relative;
}

/* === LOADER NEON === */
.loader {
    display: none;
    margin: 15px auto;
    width: 35px;
    height: 35px;
    border: 4px solid #58a6ff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite, glow 1s alternate infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #58a6ff; }
    100% { box-shadow: 0 0 15px #58a6ff; }
}

/* MESSAGE DE RÉPONSE */
#formResponse {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

#formResponse.success {
    color: #4ade80; /* vert */
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

#formResponse.error {
    color: #ef4444; /* rouge */
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

/* === RESPONSIVE === */
@media (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 25px;
    }
}
@media (max-width: 768px) {
    .navbar .nav-links li a {
    font-size: 0;
    }

    .navbar .nav-links li a i {
    font-size: 22px;
    }
}