/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.pes-form-wrapper { margin: 20px 0; }

/* ── Message introductif ────────────────────────────────────────────────── */
.pes-form-message {
    margin-bottom: 18px;
    color: #444;
    line-height: 1.6;
}

/* ── Formulaire ─────────────────────────────────────────────────────────── */
.pes-email-form {
    max-width: 460px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    box-sizing: border-box;
}

/* ── Groupe de champ ────────────────────────────────────────────────────── */
.pes-form-group { margin-bottom: 20px; }

.pes-form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.pes-required { color: #d63638; margin-left: 2px; }

/* ── Input email ────────────────────────────────────────────────────────── */
.pes-email-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    color: #1d2327;
}
.pes-email-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,.15);
}
.pes-email-input.is-invalid { border-color: #d63638; }

/* ── Erreur de champ ────────────────────────────────────────────────────── */
.pes-field-error {
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
}

/* ── Bouton ─────────────────────────────────────────────────────────────── */
.pes-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    position: relative;
}
.pes-submit-btn:hover:not(:disabled) { background: #005a87; }
.pes-submit-btn:disabled { background: #b0c4d1; cursor: not-allowed; }

/* ── Spinner ────────────────────────────────────────────────────────────── */
.pes-btn-spin {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pes-spin .7s linear infinite;
}
@keyframes pes-spin { to { transform: rotate(360deg); } }

/* ── Feedback (succès / erreur) ─────────────────────────────────────────── */
.pes-form-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}
.pes-form-feedback.is-success {
    background: #edfaee;
    color: #1a7a1e;
    border: 1px solid #b6e4b8;
}
.pes-form-feedback.is-error {
    background: #fef0f0;
    color: #8a0000;
    border: 1px solid #f5c2c2;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .pes-email-form { padding: 20px 16px; }
    .pes-submit-btn { font-size: 15px; }
}

/* ── Alignement ─────────────────────────────────────────────────────────── */
.pes-form-wrapper.align-center { display: flex; justify-content: center; }
.pes-form-wrapper.align-right  { display: flex; justify-content: flex-end; }

/* Le message introductif hérite de l'alignement du wrapper */
.pes-form-inner { width: 100%; max-width: 460px; }
.pes-form-message { text-align: inherit; }
