/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === BASE === */
html, body {
    width: 100%;
    min-height: 100%;
    background: #000;
    color: rgb(253, 161, 249);
    font-family: Verdana, sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 24px;
}

/* === FOND ÉTOILÉ === */
#stars-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* === CARTE CONTACT === */
.contact-card {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 100%;
    background: rgba(12, 12, 18, 0.92);
    border: 1px solid rgba(253, 161, 249, 0.2);
    border-radius: 14px;
    padding: 40px 32px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 40px rgba(253, 161, 249, 0.08), 0 12px 40px rgba(0, 0, 0, 0.65);
    /* Arrivée avec ressort, cohérente avec le grossissement des planètes à l'arrêt */
    animation: contact-card-arrive 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes contact-card-arrive {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-card { animation: none; }
}

.contact-back {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(253, 161, 249, 0.55);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-back:hover,
.contact-back:focus-visible {
    color: rgb(253, 161, 249);
    transform: translateX(-2px);
}

.contact-title {
    font-size: 1.44rem;
    letter-spacing: 0.5px;
    color: rgb(253, 161, 249);
    margin-bottom: 10px;
}

.contact-intro {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(215, 215, 235, 0.88);
    margin-bottom: 24px;
}

/* === LIEN INSTAGRAM === */
.contact-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: rgba(253, 161, 249, 0.75);
    text-decoration: none;
    margin-bottom: 32px;
    padding: 8px 16px 8px 12px;
    border: 1px solid rgba(253, 161, 249, 0.25);
    border-radius: 8px;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-instagram svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-instagram:hover,
.contact-instagram:focus-visible {
    color: rgb(253, 161, 249);
    border-color: rgba(253, 161, 249, 0.6);
    transform: translateY(-1px);
}

/* === FORMULAIRE === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-field label {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(253, 161, 249, 0.55);
}

.contact-field input,
.contact-field textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(253, 161, 249, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: Verdana, sans-serif;
    font-size: 0.8rem;
    color: rgba(215, 215, 235, 0.95);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(215, 215, 235, 0.35);
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
    outline: none;
    border-color: rgba(253, 161, 249, 0.7);
    box-shadow: 0 0 0 3px rgba(253, 161, 249, 0.15);
}

/* Piège à bots : invisible et hors flux clavier, jamais display:none (certains bots l'ignorent) */
.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-submit {
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(253, 161, 249, 0.5);
    color: rgb(253, 161, 249);
    border-radius: 8px;
    padding: 10px 26px;
    font-family: Verdana, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover:not(:disabled),
.contact-submit:focus-visible:not(:disabled) {
    background: rgba(253, 161, 249, 0.1);
    box-shadow: 0 0 20px rgba(253, 161, 249, 0.25);
    transform: translateY(-1px);
    animation: none;
}

.contact-submit:active:not(:disabled) {
    transform: translateY(0);
}

.contact-submit:disabled {
    opacity: 0.5;
    cursor: default;
    animation: none;
}

/* Pulsation au repos, même geste que la planète "Votre projet" pour signaler l'action possible */
.contact-submit:not(:disabled) {
    animation: contact-submit-pulse 3s ease-in-out infinite;
}

@keyframes contact-submit-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(253, 161, 249, 0); }
    50%       { box-shadow: 0 0 16px rgba(253, 161, 249, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-submit:not(:disabled) { animation: none; }
}

.contact-status {
    margin-top: 16px;
    font-size: 0.8rem;
    line-height: 1.5;
    min-height: 1.2em;
}

.contact-status--success {
    color: rgb(253, 161, 249);
}

.contact-status--error {
    color: rgb(255, 90, 90);
}

.contact-noscript {
    margin-top: 20px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(215, 215, 235, 0.75);
}

.contact-noscript a {
    color: rgba(253, 161, 249, 0.8);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    body {
        padding: 32px 16px;
    }
    .contact-card {
        padding: 32px 22px;
    }
    .contact-title {
        font-size: 1.24rem;
    }
}

/*
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡾⠋⠉⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⠃⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢀⡏⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣠⣤⣤⣤⣤⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⡏⠀⠀⠀⠀⢸⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡤⠴⠒⠊⠉⠉⠀⠀⣿⣿⣿⠿⠋⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⢀⡠⠼⠴⠒⠒⠒⠒⠦⠤⠤⣄⣀⠀⢀⣠⠴⠚⠉⠀⠀⠀⠀⠀⠀⠀⠀⣼⠿⠋⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⣇⠔⠂⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢨⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⣀⡤⠖⠋⠁⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢰⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⠤⠒⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢀⡟⠀⣠⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⢻⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣤⡤⠤⢴
⠀⠀⠀⠀⠀⠀⣸⠁⣾⣿⣀⣽⡆⠀⠀⠀⠀⠀⠀⠀⢠⣾⠉⢿⣦⠀⠀⠀⢸⡀⠀⠀⢀⣠⠤⠔⠒⠋⠉⠉⠀⠀⠀⠀⢀⡞
⠀⠀⠀⠀⠀⢀⡏⠀⠹⠿⠿⠟⠁⠀⠰⠦⠀⠀⠀⠀⠸⣿⣿⣿⡿⠀⠀⠀⢘⡧⠖⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡼⠀
⠀⠀⠀⠀⠀⣼⠦⣄⠀⠀⢠⣀⣀⣴⠟⠶⣄⡀⠀⠀⡀⠀⠉⠁⠀⠀⠀⠀⢸⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⠁⠀
⠀⠀⠀⠀⢰⡇⠀⠈⡇⠀⠀⠸⡾⠁⠀⠀⠀⠉⠉⡏⠀⠀⠀⣠⠖⠉⠓⢤⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠃⠀⠀
⠀⠀⠀⠀⠀⢧⣀⡼⠃⠀⠀⠀⢧⠀⠀⠀⠀⠀⢸⠃⠀⠀⠀⣧⠀⠀⠀⣸⢹⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡰⠃⠀⠀⠀
⠀⠀⠀⠀⠀⠈⢧⡀⠀⠀⠀⠀⠘⣆⠀⠀⠀⢠⠏⠀⠀⠀⠀⠈⠳⠤⠖⠃⡟⠀⠀⠀⢾⠛⠛⠛⠛⠛⠛⠛⠛⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠙⣆⠀⠀⠀⠀⠈⠦⣀⡴⠋⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⠙⢦⠀⠀⠘⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⢠⡇⠙⠦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⠴⠋⠸⡇⠈⢳⡀⠀⢹⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⡼⣀⠀⠀⠈⠙⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⣷⠴⠚⠁⠀⣀⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⡴⠁⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣆⡴⠚⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⣼⢷⡆⠀⣠⡴⠧⣄⣇⠀⠀⠀⠀⠀⠀⠀⢲⠀⡟⠀⠀⠀⠀⠀⠀⠀⢀⡇⣠⣽⢦⣄⢀⣴⣶⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⡿⣼⣽⡞⠁⠀⠀⠀⢹⡀⠀⠀⠀⠀⠀⠀⠈⣷⠃⠀⠀⠀⠀⠀⠀⠀⣼⠉⠁⠀⠀⢠⢟⣿⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⣷⠉⠁⢳⠀⠀⠀⠀⠈⣧⠀⠀⠀⠀⠀⠀⠀⣻⠀⠀⠀⠀⠀⠀⠀⣰⠃⠀⠀⠀⠀⠏⠀⠀⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠹⡆⠀⠈⡇⠀⠀⠀⠀⠘⣆⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⣰⠃⠀⠀⠀⠀⠀⠀⠀⣸⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⢳⡀⠀⠙⠀⠀⠀⠀⠀⠘⣆⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⣰⠃⠀⠀⠀⠀⢀⡄⠀⢠⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢳⡀⣰⣀⣀⣀⠀⠀⠀⠘⣦⣀⠀⠀⠀⡇⠀⠀⠀⢀⡴⠃⠀⠀⠀⠀⠀⢸⡇⢠⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠉⠉⠀⠀⠈⠉⠉⠉⠙⠻⠿⠾⠾⠻⠓⢦⠦⡶⡶⠿⠛⠛⠓⠒⠒⠚⠛⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
*/
