/**
 * Style de la page modifier mot de passe — Redesign Premium
 * @author Shawn Dutil
 * Note : ce fichier étend stylesConnexion.css et stylesProfil.css
 */

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

/* ===========================
   CARTE
=========================== */
.profil-container.form-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 2px;
    border-top: 2px solid var(--or);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profil-container.form-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 400;
    font-style: italic;
    color: var(--vert-profond);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profil-container.form-card h2 i {
    font-size: 1.2rem;
    color: var(--or);
}

.profil-container.form-card h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--or), transparent);
    margin: 14px 0 0 0;
}

/* ===========================
   FORMULAIRE
=========================== */
.form-mdp {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
}

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

.form-group label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vert-profond);
}

.form-group input {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    color: var(--texte-sombre);
    background: var(--creme);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    padding: 13px 16px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

/* ===========================
   CRITÈRES MOT DE PASSE
=========================== */
.criteres {
    background: var(--creme);
    border-left: 3px solid rgba(201, 168, 76, 0.35);
    border-radius: 0 2px 2px 0;
    padding: 14px 16px;
    margin-bottom: 4px;
}

.criteres p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #c0392b;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.criteres p::before {
    content: '✕';
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.criteres p.valid {
    color: #2d6a2d;
}

.criteres p.valid::before {
    content: '✓';
}

/* ===========================
   MESSAGES
=========================== */
.message {
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-radius: 2px;
    margin: 16px 0 0 0;
}

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

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

/* ===========================
   BOUTON SOUMETTRE
=========================== */
.cta-button {
    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;
    width: 100%;
    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);
    margin-top: 8px;
}

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

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5);
}

.cta-button:hover::before { opacity: 1; }
.cta-button:active { transform: translateY(0); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 560px) {
    .profil-container.form-card { padding: 32px 24px; }
    .profil-container.form-card h2 { font-size: 1.4rem; }
}