/* Ondes Mail — les pages autonomes du webmail (application, connexion,
   réglages). Le client lui-même est stylé par mail.css, sous `.om`. */
html.om-page, body.om-page { height: 100%; margin: 0; }
body.om-page {
  background: var(--om-bg); color: var(--om-text); font-family: var(--om-font);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
body.om-page > .om { height: 100vh; height: 100dvh; }
.om-noscript { padding: 24px; text-align: center; }

/* ── Fond de marque : grille de points + halo d'orbes (saas_website) ─────── */
.om-fond { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.om-fond::before { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--om-dot) 1px, transparent 1px); background-size: 32px 32px; }
.om-fond i { position: absolute; border-radius: 50%; filter: blur(140px); opacity: .55;
  animation: om-derive 18s ease-in-out infinite alternate; }
.om-fond i:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -200px; background: rgba(106, 95, 214, .22); }
.om-fond i:nth-child(2) { width: 520px; height: 520px; right: -140px; bottom: -180px; background: rgba(118, 75, 162, .18); animation-delay: -6s; }
.om-fond i:nth-child(3) { width: 380px; height: 380px; right: 22%; top: 12%; background: rgba(50, 173, 230, .12); animation-delay: -11s; }
@keyframes om-derive { to { transform: translate(40px, 30px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .om-fond i { animation: none; } }

/* ── Connexion ──────────────────────────────────────────────────────────── */
.om-connexion { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex;
  flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.om-carte-verre { width: 100%; max-width: 420px; padding: 34px 32px 28px; border-radius: 20px;
  background: color-mix(in srgb, var(--om-surface) 70%, transparent); border: 1px solid var(--om-border);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--om-shadow-card); animation: om-entree .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes om-entree { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.om-marque { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.om-marque img { width: 44px; height: 44px; filter: drop-shadow(0 6px 16px rgba(106, 95, 214, .35)); }
.om-marque h1 { margin: 0; font: 700 22px/1.1 var(--om-font-display); letter-spacing: -.4px; }
.om-marque h1 b { color: var(--om-accent); }
.om-marque p { margin: 3px 0 0; font-size: 13px; color: var(--om-text-muted); }
.om-form label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--om-text-secondary); }
.om-form .om-champ-l { margin-bottom: 16px; position: relative; }
.om-form input[type=email], .om-form input[type=text], .om-form input[type=password] {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 15px;
  background: var(--om-surface-2); color: var(--om-text); border: 1px solid var(--om-border); outline: none;
  transition: border-color .15s, box-shadow .2s;
}
.om-form input::placeholder { color: var(--om-text-muted); }
.om-form input:focus { border-color: var(--om-accent); box-shadow: 0 0 0 4px var(--om-accent-soft); background: var(--om-surface); }
.om-form .om-oeil { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border: 0; background: none;
  border-radius: 9px; color: var(--om-text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.om-form .om-oeil:hover { color: var(--om-text); background: var(--om-surface-hover); }
.om-form .om-oeil svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.om-form .om-case-l { display: flex; align-items: center; gap: 9px; margin: 2px 0 20px; font-size: 13.5px;
  color: var(--om-text-secondary); cursor: pointer; font-weight: 400; }
.om-form .om-case-l input { width: 17px; height: 17px; accent-color: var(--om-accent); margin: 0; }
.om-form button[type=submit] { width: 100%; padding: 14px; border: 0; border-radius: 14px; cursor: pointer; color: #fff;
  font: 600 15px/1 var(--om-font); background: linear-gradient(135deg, var(--om-ai-1), var(--om-ai-2)); background-size: 200% auto;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .25s, background-position .4s; }
.om-form button[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--om-ai-glow); background-position: right center; }
.om-form button[type=submit]:disabled { opacity: .7; cursor: progress; transform: none; }
.om-erreur { margin-bottom: 18px; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; color: var(--om-danger);
  background: color-mix(in srgb, var(--om-danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--om-danger) 25%, transparent); }
.om-sous { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--om-border); font-size: 13px;
  color: var(--om-text-muted); text-align: center; line-height: 1.6; }
.om-sous a { color: var(--om-accent); text-decoration: none; font-weight: 500; }
.om-sous a:hover { text-decoration: underline; }
.om-pied { margin-top: 22px; font-size: 12px; color: var(--om-text-muted); display: flex; gap: 14px; align-items: center; }
.om-pied button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; display: inline-flex; gap: 6px; align-items: center; }
.om-pied button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.9; }

/* ── Pages de configuration (/reglages/, /configurer/) ───────────────────── */
body.om-page--defile { height: auto; min-height: 100%; }
.om-reglages { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 22px 16px 64px; }
.om-reglages-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.om-reglages-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--om-text);
  font: 700 18px/1 var(--om-font-display); }
.om-reglages-logo b { color: var(--om-accent); }
.om-reglages-retour { color: var(--om-accent); text-decoration: none; font-weight: 500; font-size: 14px; }
.om-reglages h1 { margin: 0 0 8px; font: 700 clamp(26px, 4vw, 34px)/1.15 var(--om-font-display); letter-spacing: -.6px; }
.om-reglages-intro { margin: 0 0 24px; color: var(--om-text-secondary); font-size: 15px; max-width: 640px; }
.om-reglages-carte { padding: 22px; border-radius: 20px; background: color-mix(in srgb, var(--om-surface) 78%, transparent);
  border: 1px solid var(--om-border); box-shadow: var(--om-shadow-card); backdrop-filter: blur(12px); }
.om-ligne-form { display: flex; gap: 10px; }
.om-ligne-form input { flex: 1; }
.om-ligne-form button { width: auto !important; padding: 12px 22px !important; }
@media (max-width: 560px) { .om-reglages-carte { padding: 16px; } .om-ligne-form { flex-direction: column; } }
