﻿/* ================================
   CONTACT — NOTIFICATION STYLE
   ================================ */

/* Conteneur de la notif (caché par défaut) */
.contact-message {
    display: none;
    margin-bottom: 1.5rem;
}

    /* Quand on ajoute .show depuis JS */
    .contact-message.show {
        display: block;
        animation: contactFadeIn 0.35s ease-out;
    }

/* Boîte principale */
.contact-message-inner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.5rem;
    background: rgba(15, 15, 25, 0.95); /* fond sombre type site */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.6);
}

    /* Icône à gauche (fontawesome déjà chargé sur le site) */
    .contact-message-inner .icon {
        font-size: 1.3rem;
    }

/* Texte */
.contact-message-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.95rem;
}

#contact-message-title {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

#contact-message-body {
    opacity: 0.9;
}

/* Bouton de fermeture */
.contact-message-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    .contact-message-close:hover {
        opacity: 1;
        transform: scale(1.1);
    }

/* ================================
   VARIANTES SUCCESS / ERROR
   ================================ */

.contact-message.success .contact-message-inner {
    border-color: rgba(76, 175, 80, 0.7);
    box-shadow: 0 0.6rem 1.5rem rgba(76, 175, 80, 0.35);
}

.contact-message.success .icon {
    color: #4caf50;
}

.contact-message.error .contact-message-inner {
    border-color: rgba(244, 67, 54, 0.8);
    box-shadow: 0 0.6rem 1.5rem rgba(244, 67, 54, 0.4);
}

.contact-message.error .icon {
    color: #ff5757;
}

/* ================================
   FORMULAIRE CONTACT (léger polish)
   ================================ */

#contact #createForm {
    margin-top: 1rem;
}

#contact .fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

#contact .field {
    flex: 1 1 100%;
}

    #contact .field.half {
        flex: 1 1 calc(50% - 1.5rem);
    }

#contact label {
    display: block;
    margin-bottom: 0.4rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

    #contact input[type="email"]:focus,
    #contact textarea:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.07);
        border-color: #6ec6ff;
    }

/* Alignement des boutons */
#contact ul.actions {
    margin-top: 1rem !important;
}

/* ================================
   ANIMATION
   ================================ */

@keyframes contactFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   RESPONSIVE
   ================================ */

@media screen and (max-width: 736px) {
    #contact .field.half {
        flex: 1 1 100%;
    }

    .contact-message-inner {
        align-items: flex-start;
    }

    .contact-message-close {
        margin-top: -0.3rem;
    }
}
