/*
 * Newsletter Essentielle : styles de base volontairement discrets (sélecteurs :where(), spécificité nulle).
 * Le thème peut tout redéfinir sans !important.
 */

:where(.nle-formulaire) {
    display: grid;
    gap: 10px;
    position: relative;
}

:where(.nle-champs) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

:where(.nle-champs input[type="email"]) {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.7em 0.9em;
    font: inherit;
}

:where(.nle-champs button) {
    padding: 0.7em 1.3em;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

:where(.nle-champs button:disabled) {
    opacity: 0.6;
    cursor: progress;
}

:where(.nle-consentement) {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 0.85em;
    line-height: 1.5;
}

:where(.nle-consentement input) {
    margin-top: 0.25em;
    flex-shrink: 0;
}

:where(.nle-reponse) {
    margin: 0;
    padding: 0.6em 0.9em;
    border-radius: 8px;
    border-left: 3px solid currentColor;
    background: rgba(127, 127, 127, 0.12);
    font-size: 0.9em;
}

:where(.nle-reponse.nle-succes) {
    border-left-color: #16a34a;
}

:where(.nle-reponse.nle-erreur) {
    border-left-color: #dc2626;
}

.nle-masque {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Pages de confirmation et de désinscription */

:where(.nle-page) {
    padding: clamp(32px, 8vw, 88px) 16px;
}

:where(.nle-carte) {
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 40px);
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 16px;
    text-align: center;
}

:where(.nle-carte h1) {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
}

:where(.nle-carte p) {
    margin: 0 0 16px;
    overflow-wrap: anywhere;
}

:where(.nle-carte-surtitre) {
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

:where(.nle-carte form) {
    margin: 8px 0 20px;
}

:where(.nle-bouton) {
    padding: 0.8em 1.6em;
    border: 0;
    border-radius: 10px;
    background: #4f46e5;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

:where(.nle-carte-retour) {
    margin: 0;
    font-size: 0.9em;
}

:where(body.nle-autonome) {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
}
