/**
 * Style de la page Nous joindre — Redesign Premium
 * @author Shawn Dutil
 */

/* ===========================
   LAYOUT
=========================== */
.container_contenu_NousJoindre {
    display: flex;
    justify-content: center;
    padding: 64px 32px;
    background: var(--creme);
    min-height: calc(100vh - var(--navbar-h));
    width: 100%;
}

.contact-info-container-nousjoindre {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===========================
   TITRE
=========================== */
.contact-info-container-nousjoindre > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--vert-profond);
    text-align: center;
    margin: 0 0 12px 0;
    width: 100%;
}

.contact-info-container-nousjoindre > h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--or), transparent);
    margin: 16px auto 0;
}

/* ===========================
   CARTES COORDONNÉES
=========================== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 36px 0 32px;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 2px;
    border-left: 3px solid var(--or);
    padding: 18px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.5s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.icon-text:nth-child(1) { animation-delay: 0.1s; }
.icon-text:nth-child(2) { animation-delay: 0.2s; }
.icon-text:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.icon-text:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.icon-text i {
    color: var(--or);
    font-size: 1rem;
    width: 18px;
    flex-shrink: 0;
}

.icon-text a,
.icon-text span {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--vert-profond);
    text-decoration: none;
    transition: color 0.2s ease;
}

.icon-text a:hover { color: var(--vert-moyen); }

/* ===========================
   FORMULAIRE
=========================== */
.contact-container {
    width: 100%;
    background: #fff;
    border-radius: 2px;
    border-top: 2px solid var(--or);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    padding: 44px 52px;
}

.contact-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vert-profond);
    margin: 0 0 32px 0;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Alertes */
.alert {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 20px;
    border-radius: 2px;
    margin-bottom: 24px;
}

.alert-success {
    background: #edf7ed;
    color: #2d6a2d;
    border-left: 3px solid #4caf50;
}

.alert-error {
    background: #fdf0f0;
    color: #8b2020;
    border-left: 3px solid #e53935;
}

/* Structure du formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-nom-prenom {
    display: flex;
    gap: 20px;
}

.form-prenom,
.form-nom,
.form-courriel,
.form-sujet,
.form-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Labels */
.contact-form label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vert-profond);
}

/* Inputs */
.contact-form input,
.contact-form textarea {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--texte-sombre);
    background: var(--creme);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    padding: 12px 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--or);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* Messages d'erreur */
.error-container {
    min-height: 18px;
}

.error-message {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #c0392b;
    letter-spacing: 0.04em;
}

/* Bouton envoyer */
.form-button {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

#envoyerButton {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vert-profond);
    background: linear-gradient(135deg, var(--or) 0%, var(--or-clair) 100%);
    border: none;
    border-radius: 2px;
    padding: 16px 48px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
    width: 60%;
}

#envoyerButton::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--or-clair) 0%, var(--or) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

#envoyerButton span { position: relative; z-index: 1; }

#envoyerButton:hover {
    color:#fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5);
}
#envoyerButton:active { transform: translateY(0); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .container_contenu_NousJoindre { padding: 40px 16px; }
    .contact-container { padding: 32px 24px; }
    .form-nom-prenom { flex-direction: column; gap: 20px; }
    #envoyerButton { width: 100%; }
}

@media (max-width: 480px) {
    .contact-info-container-nousjoindre > h2 { font-size: 2rem; }
    .contact-container h2 { font-size: 1.3rem; }
}