/* ═══════════════════════════════════════════════════════════
   Deaj — app.deaj.health (écran de connexion)
   Palette : forest #14332D · teal #245B51 · gold #B98A44/#E4C892 · cream #F6F3EC
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --forest: #14332D;
  --teal: #245B51;
  --teal-dark: #1B473F;
  --gold: #B98A44;
  --gold-light: #E4C892;
  --cream: #F6F3EC;
  --ink: #1E2B28;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--forest);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); }
a:hover { color: var(--gold); }

input::placeholder { color: #98A39E; }

/* ── Layout ─────────────────────────────────────────────── */
.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Brand panel ────────────────────────────────────────── */
.brand {
  background: var(--forest);
  color: #EAF0EC;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.brand__watermark {
  position: absolute;
  bottom: -90px;
  right: -24px;
  font-family: 'Instrument Serif', serif;
  font-size: 320px;
  line-height: 1;
  color: rgba(228, 200, 146, 0.05);
  pointer-events: none;
  user-select: none;
}

.brand__logo {
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  color: var(--cream);
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.brand__logo span { color: var(--gold-light); }
.brand__logo:hover { color: var(--cream); }

.brand__body { position: relative; z-index: 1; }

.brand__rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold-light);
  margin-bottom: 28px;
}

.brand__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 440px;
}
.brand__title em { color: var(--gold-light); font-style: italic; }

.brand__lead {
  font-size: 16px;
  line-height: 1.65;
  color: #A9BDB4;
  margin: 22px 0 0;
  max-width: 380px;
}

.brand__links {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  display: flex;
  gap: 22px;
}
.brand__links a { color: #A9BDB4; text-decoration: none; }
.brand__links a:hover { color: var(--gold-light); }

/* ── Login panel ────────────────────────────────────────── */
.login {
  background: var(--cream);
  display: grid;
  place-items: center;
  padding: 64px;
}

.login__frame {
  position: relative;
  width: 440px;
  max-width: 100%;
  padding: 0 16px 16px 0;
}

.login__shadowcard {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 0;
  bottom: 0;
  border: 1px solid #D8C9A8;
  border-radius: 26px;
}

.login__card {
  position: relative;
  background: #FFFDF8;
  border: 1px solid #E4DECF;
  border-radius: 26px;
  padding: 44px 40px;
  box-shadow: 0 2px 6px rgba(30, 43, 40, 0.06), 0 30px 60px -30px rgba(30, 43, 40, 0.4);
}

.login__badge {
  display: inline-block;
  background: var(--cream);
  border: 1px solid #E4DECF;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.login__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.01em;
  margin: 22px 0 0;
}

.login__sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: #5C6B66;
  margin: 10px 0 0;
}

/* ── Form ───────────────────────────────────────────────── */
.login__form {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.field { display: grid; gap: 7px; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: #40514C;
}

.field__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.field__link {
  font-size: 13px;
  color: #66706A;
  text-decoration: none;
}
.field__link:hover { color: var(--gold); }

.field input {
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid #D8D0BE;
  background: var(--cream);
  color: var(--ink);
  font-size: 15.5px;
  font-family: 'Instrument Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(36, 91, 81, 0.12);
}

.login__btn {
  margin-top: 8px;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--teal);
  color: var(--cream);
  font-size: 15.5px;
  font-weight: 700;
  font-family: 'Instrument Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(20, 51, 45, 0.25), 0 14px 28px -14px rgba(20, 51, 45, 0.5);
  transition: background 0.2s, transform 0.2s;
}
.login__btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.login__btn:active { transform: translateY(0); }

.login__notice {
  margin-top: 18px;
  background: #F3E9D9;
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #7A5A24;
}
.login__notice a { color: #7A5A24; font-weight: 600; }
.login__notice a:hover { color: var(--gold); }

.login__foot {
  font-size: 14px;
  color: #66706A;
  margin: 28px 0 0;
  text-align: center;
}
.login__foot a { font-weight: 600; }

/* ── Reveal animation ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .brand {
    padding: 40px 28px 48px;
    min-height: auto;
    gap: 40px;
  }
  .brand__watermark { font-size: 220px; bottom: -60px; }
  .brand__title { font-size: 38px; }
  .login { padding: 40px 24px 56px; }
  .login__frame { width: 420px; }
}

@media (max-width: 480px) {
  .brand { padding: 32px 22px 40px; }
  .brand__title { font-size: 32px; }
  .login__frame { padding: 0 10px 10px 0; }
  .login__card { padding: 34px 26px; }
  .login__title { font-size: 34px; }
}


/* ── Bandeau de consentement cookies (Consent Mode v2) ────── */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: #14332D;
  color: #EAF0EC;
  border: 1px solid #245B51;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 20px 50px -20px rgba(20, 51, 45, 0.6);
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
}
.cookie-bar__text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.6;
  color: #C9D6CF;
}
.cookie-bar__text a { color: #E4C892; text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__text a:hover { color: #EFD6A8; }
.cookie-bar__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-bar__btn {
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cookie-bar__btn--accept { background: #E4C892; color: #14332D; }
.cookie-bar__btn--accept:hover { background: #EFD6A8; }
.cookie-bar__btn--ghost { background: transparent; color: #C9D6CF; border-color: rgba(201, 214, 207, 0.35); }
.cookie-bar__btn--ghost:hover { border-color: #E4C892; color: #E4C892; }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-bar__actions { justify-content: stretch; }
  .cookie-bar__btn { flex: 1; }
}


/* ── 404 page ─────────────────────────────────────────────── */
.notfound { background: #F6F3EC; padding: 96px 0; }
.notfound__inner { max-width: 560px; margin: 0 auto; padding: 0 20px; text-align: center; }
.notfound__code { font-family: 'Instrument Serif', Georgia, serif; font-size: 88px; line-height: 1; color: #B98A44; margin: 0; }
.notfound h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 34px; margin: 12px 0 0; color: #1E2B28; }
.notfound p { font-size: 16px; line-height: 1.7; color: #5C6B66; margin: 14px 0 28px; }
.notfound__btn { display: inline-block; padding: 14px 28px; border-radius: 12px; background: #245B51; color: #F6F3EC; font-weight: 600; text-decoration: none; transition: background .2s; }
.notfound__btn:hover { background: #1B473F; color: #F6F3EC; }


/* ── Accessibilité : lien d'évitement + focus visible ─────── */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: #14332D; color: #F6F3EC; padding: 12px 20px; border-radius: 10px;
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #F6F3EC; }
:focus-visible { outline: 2px solid #245B51; outline-offset: 2px; border-radius: 3px; }

/* ── Sélecteur de version : entrée courante (non cliquable) ── */
.eco__current { color: inherit; opacity: .5; cursor: default; }
