/* ==========================================================
   Kétogenic — Inscription / connexion (page d'accueil et app)
   ========================================================== */
html.au-lock { overflow: hidden; }
.au-ov { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(28,33,24,.5); backdrop-filter: blur(4px); animation: auFade 200ms ease-out both; }
.au-ov[hidden] { display: none; }
@keyframes auFade { from { opacity: 0; } }
.au-modal { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: grid; gap: 16px; padding: 28px; border-radius: 22px; background: #fff; color: #1c2118; font-family: "Karla", system-ui, sans-serif; box-shadow: 0 40px 80px -30px rgba(28,33,24,.55); animation: auIn 320ms cubic-bezier(.23,1,.32,1) both; }
@keyframes auIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.au-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1efe8; color: #4a5045; font-size: 15px; cursor: pointer; }
.au-modal h2 { margin: 6px 0 6px; font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 25px; line-height: 1.12; }
.au-modal p { margin: 0; color: #4a5045; font-size: 15px; line-height: 1.5; }
.au-gift { display: flex; gap: 18px; align-items: center; padding: 16px 16px 16px 20px; margin: 0 22px 0 0; border-radius: 18px; background: #fffaf0; border: 1.5px dashed #e0951f; }
.au-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #faeeda; color: #633806; }
.au-book { position: relative; flex: none; width: 78px; aspect-ratio: 3 / 4; border-radius: 4px 11px 11px 4px; padding: 8px 8px 7px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; color: #fff; background: #4f8a2a; box-shadow: 7px 9px 0 -3px rgba(39,80,10,.2); transform: rotate(-5deg); animation: auBook 4s ease-in-out infinite; }
.au-book i { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: rgba(0,0,0,.14); border-radius: 4px 0 0 4px; }
.au-book b { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 10.5px; line-height: 1.05; }
.au-book small { font-size: 8.5px; opacity: .85; }
.au-book em { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e0951f; }
@keyframes auBook { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-4px); } }
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #f1efe8; }
.au-tabs button { font: inherit; font-weight: 700; font-size: 14px; border: 0; padding: 9px; border-radius: 9px; background: transparent; color: #4a5045; cursor: pointer; }
.au-tabs button.on { background: #fff; color: #1c2118; box-shadow: 0 1px 3px rgba(28,33,24,.15); }
.au-form { display: grid; gap: 12px; }
.au-form label span { display: block; font-size: 13px; font-weight: 700; color: #4a5045; margin-bottom: 5px; }
.au-form input:not([type=checkbox]) { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfc8b8; background: #fff; color: #1c2118; }
.au-form input:focus { outline: 0; border-color: #3f5f2a; box-shadow: 0 0 0 3px #e9eedf; }
.au-ok { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #4a5045; }
.au-ok input { margin-top: 2px; accent-color: #4f8a2a; }
.au-link { justify-self: start; border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 700; color: #3f5f2a; cursor: pointer; }
.au-err { margin: 0 !important; font-size: 13.5px !important; font-weight: 700; color: #b5532f !important; }
.au-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-weight: 700; font-size: 16px; padding: 14px; border: 0; border-radius: 12px; background: #e0951f; color: #fff; cursor: pointer; text-decoration: none; transition: transform 160ms ease-out, filter 160ms; }
.au-go:hover { filter: brightness(1.05); } .au-go:active { transform: scale(.98); } .au-go[disabled] { opacity: .8; }
.au-note { text-align: center; font-size: 12.5px !important; color: #8a8f83 !important; }
.au-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: auSpin .7s linear infinite; }
@keyframes auSpin { to { transform: rotate(360deg); } }
.au-done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 12px 0 4px; }
.au-done .au-book { width: 110px; } .au-done .au-book b { font-size: 14px; }
.au-cta { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.au-sec { display: block; font: inherit; font-weight: 700; font-size: 15px; padding: 12px; border-radius: 12px; border: 1px solid #cfc8b8; background: #fff; color: #1c2118; text-decoration: none; text-align: center; cursor: pointer; }

/* Barre de navigation de la page d'accueil */
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-login { border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink, #1f261c); cursor: pointer; padding: 10px 8px; }
.nav-login:hover { color: var(--olive, #45562c); }
.nav-signup { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.nav-signup em { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #e0951f; color: #fff; }
.ns-gift { position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: #e0951f; box-shadow: 0 0 0 0 rgba(224,149,31,.6); animation: auPing 1.8s infinite; }
@keyframes auPing { 0% { box-shadow: 0 0 0 0 rgba(224,149,31,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(224,149,31,0); } }

/* Compte dans « Plus » */
.acct { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px !important; }
.acct > div { flex: 1; } .acct b { display: block; } .acct small { color: var(--text-2, #4a5045); font-size: 13.5px; }
.acct-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--more-soft, #f1efe8); color: var(--more, #5f5e5a); }

@media (max-width: 640px) {
  .nav-signup em { display: none; }
  .nav-login { font-size: 14px; padding: 8px 4px; }
  .nav-auth .btn { padding: 10px 14px; font-size: 13.5px; }
  .au-modal { padding: 22px 18px; }
  .au-gift { margin: 0 26px 0 0; padding: 12px; gap: 12px; }
  .au-book { width: 62px; }
  .au-modal h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .au-book, .ns-gift, .au-modal, .au-ov { animation: none !important; } }
.au-tabs[hidden] { display: none; }
