:root {
  --forest: #052f27;
  --forest-deep: #00221c;
  --gold: #c5a267;
  --gold-light: #e8d3a2;
  --paper: #fffdf9;
  --cream: #fbf4ef;
  --ink: #18211f;
  --muted: #68655f;
  --line: #ddd8cf;
  --danger: #8a6a32;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.98) 0 8%, rgba(255,255,255,.42) 34%, transparent 58%),
    linear-gradient(135deg, #fffaf6 0%, #f8efea 48%, #fff9f4 100%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.access-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 22px;
}

.access-shell {
  width: min(100%, 780px);
  min-height: min(820px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px clamp(22px, 7vw, 94px) 34px;
  text-align: center;
}

.access-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seal-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  box-shadow:
    0 20px 46px rgba(197, 162, 103, .25),
    0 8px 22px rgba(0, 34, 28, .13);
}

.seal-wrap::after {
  content: "";
  position: absolute;
  inset: -17px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,162,103,.22), transparent 68%);
  filter: blur(8px);
}

.seal-wrap img {
  width: 92px;
  height: 92px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 11px rgba(0,34,28,.18));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .28em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--forest-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5vw, 50px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.subtitle {
  margin: 15px 0 0;
  color: #56514b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.4vw, 23px);
  font-style: italic;
  line-height: 1.33;
}

.title-rule {
  width: 42px;
  height: 2px;
  margin: 28px 0 0;
  background: var(--gold);
}

.access-form {
  width: min(100%, 420px);
  margin-top: 0;
  padding: 39px 42px 28px;
  text-align: left;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(200,195,184,.72);
  border-radius: 8px;
  box-shadow: 0 20px 58px rgba(35, 42, 38, .07);
}

.field-group + .field-group {
  margin-top: 25px;
}

.field-group label,
.label-row label {
  color: #393d3a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forgot-button {
  padding: 0;
  border: 0;
  color: #292d2b;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.forgot-button:hover,
.forgot-button:focus-visible {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-control {
  position: relative;
  margin-top: 10px;
}

.field-control input {
  width: 100%;
  height: 58px;
  padding: 0 52px 0 15px;
  border: 1px solid #c9c7c0;
  border-radius: 0;
  outline: none;
  background: rgba(255,255,255,.92);
  color: #171b19;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field-control input::placeholder {
  color: #b4b4b1;
}

.field-control input:hover {
  border-color: #aaa79f;
}

.field-control input:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197,162,103,.15);
}

.field-control input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(197,162,103,.18);
}

.field-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  transform: translateY(-50%);
  color: #aaa9a4;
  background: transparent;
}

.field-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle {
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--forest);
}

.password-toggle .icon-eye {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-lock {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye {
  display: block;
}

.access-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 11px;
  padding: 14px 19px;
  border: 1px solid var(--forest-deep);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 13px 28px rgba(0,34,28,.17);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.submit-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-button:hover {
  background: #0a463a;
  box-shadow: 0 16px 34px rgba(0,34,28,.22);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:focus-visible,
.forgot-button:focus-visible,
.password-toggle:focus-visible,
.access-footer a:focus-visible {
  outline: 3px solid rgba(197,162,103,.38);
  outline-offset: 3px;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 22px 0 0;
  color: #77756f;
  font-size: 9px;
  letter-spacing: .04em;
}

.security-note svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-footer {
  margin-top: 31px;
  color: #8a8780;
  font-size: 9px;
  letter-spacing: .035em;
}

.access-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 17px 30px;
}

.access-footer a {
  color: #353a37;
  font-weight: 700;
  text-decoration: none;
}

.access-footer a:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.access-footer p {
  margin: 18px 0 0;
}

.notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: min(390px, calc(100% - 44px));
  padding: 15px 18px;
  border: 1px solid rgba(197,162,103,.55);
  border-radius: 8px;
  color: var(--forest-deep);
  background: rgba(255,253,249,.97);
  box-shadow: 0 18px 48px rgba(0,34,28,.16);
  font-size: 13px;
  line-height: 1.45;
}

.notice[hidden] {
  display: none;
}

@media (max-width: 620px) {
  .access-page {
    display: block;
    padding: 24px 14px 34px;
  }

  .access-shell {
    width: 100%;
    min-height: auto;
    padding: 22px 0 8px;
  }

  .seal-wrap {
    width: 90px;
    height: 90px;
    margin-bottom: 14px;
  }

  .seal-wrap img {
    width: 80px;
    height: 80px;
  }

  .eyebrow {
    margin-bottom: 11px;
  }

  h1 {
    font-size: clamp(31px, 10vw, 39px);
  }

  .subtitle {
    font-size: 18px;
  }

  .title-rule {
    margin-top: 23px;
  }

  .access-form {
    width: min(100%, 430px);
    padding: 29px 22px 23px;
  }

  .field-control input {
    height: 55px;
  }

  .submit-button {
    min-height: 54px;
    font-size: 10px;
    letter-spacing: .11em;
  }

  .access-footer {
    margin-top: 28px;
  }
}

@media (max-height: 760px) and (min-width: 621px) {
  .access-page {
    padding-block: 24px;
  }

  .access-shell {
    min-height: auto;
    padding-block: 24px;
  }

  .seal-wrap {
    width: 88px;
    height: 88px;
  }

  .seal-wrap img {
    width: 78px;
    height: 78px;
  }

  .access-form {
    padding-block: 28px 22px;
  }
}

/* Maison Qeddus — état d'erreur harmonisé */
.field-control input[aria-invalid="true"] {
  border-color: #b59658 !important;
  box-shadow: 0 0 0 3px rgba(197,162,103,.18) !important;
}
.access-error {
  color: #8a6a32 !important;
}

/* Correction 08/09/2026 — lien « Oublié ? » : aucun bloc RGPD parasite */
#forgotNotice.notice{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:9999;width:min(560px,calc(100% - 32px));box-sizing:border-box;background:#fffaf1;border:1px solid #d8c7aa;border-radius:12px;padding:16px 18px;color:#123a32;box-shadow:0 14px 40px rgba(0,34,28,.12);font-size:1rem;line-height:1.45}
#forgotNotice.notice[hidden]{display:none!important}
@media(max-width:640px){#forgotNotice.notice{bottom:16px;width:calc(100% - 28px);font-size:.95rem}}
