/* Existing home palette, resources and Exo 2; transparent course surfaces. */
.sync-catalogue{position:relative;z-index:1;width:min(1120px,100%);margin:0 auto;padding:40px 28px 20px;font-family:"Exo 2";color:#EFF5FF}
.sync-levels,.sync-next,.sync-resources{display:flex;flex-wrap:wrap;gap:12px}.sync-levels a{padding:10px 15px;text-decoration:none;color:#EFF5FF}
.sync-levels [aria-current]{border-color:#FA8228;color:#FA8228}
.sync-lessons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:28px 0}.sync-lessons .lesson-row{padding:16px;border:1px solid #c2b6ff22;border-radius:12px;overflow-wrap:anywhere}
.sync-reader{display:block;width:100%;height:min(72vh,840px);min-height:440px;border:0;border-radius:20px;background:#0B1437}.sync-next,.sync-resources{margin:24px 0}
.sync-signature{position:fixed;right:24px;bottom:24px;z-index:20}.sync-signature img{display:block;object-fit:contain}
/* Scoped to the existing card: never style global nav or hide #app. */
.sync-language .lang-card-meta{min-width:0}
.sync-course-choice{all:unset;cursor:pointer;color:inherit;font:inherit}
.sync-course-choice:focus-visible{outline:2px solid #FA8228;outline-offset:3px;border-radius:4px}
.sync-language .sync-tags{display:flex;flex-wrap:wrap;gap:3px 9px;margin-top:4px;line-height:1.5}
.sync-tags a,.sync-tags span{font:600 11px/1.5 "Exo 2";white-space:nowrap;text-decoration:none}
.sync-tags a{color:#FA8228}
.sync-tags a:hover,.sync-tags a:focus-visible{text-decoration:underline}
.sync-tags span{color:#aeb8d8}
.sync-tags small{font:inherit;opacity:.8}
@media(max-width:700px){.sync-lessons{grid-template-columns:1fr}.sync-reader{height:72vh}.sync-signature{right:16px;bottom:16px}}
/* ==========================================================================
   PISTE A · « Seuil d'or — Gardien du Seuil » (Cerf doré + Cosmos vivant)
   Autonome : reprend intégralement piste-a-en-ligne.css + toutes les
   corrections d'audit (clavier iOS, autofill, contraste champs, paysage,
   sceau 44 px), enrichie du cerf doré lumineux et du ciel animé (nébuleuses
   dérivantes + 3 étoiles filantes desktop / 2 mobile, <= 4 calques mobile).
   Pur CSS + SVG · transform/opacity uniquement · aucune URI embarquée · zéro JS.
   ========================================================================== */

@font-face {
  font-family: "Exo 2";
  src: url(exo-2-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url(exo-2-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url(exo-2-900.woff2) format("woff2");
  font-weight: 900;
  font-display: swap;
}

/* ----- Animations GPU légères (transform & opacity exclusivement) ----- */
@keyframes a-twinkle {
  0%, 100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

/* Dérive lente des nébuleuses inspirée du panneau usine (sans scale > 1) */
@keyframes a-nebula-drift {
  0% {
    opacity: 0.76;
    transform: translate3d(-1.8%, -1.2%, 0);
  }
  50% {
    opacity: 1;
    transform: translate3d(1.6%, 1.1%, 0);
  }
  100% {
    opacity: 0.80;
    transform: translate3d(-0.8%, 1.4%, 0);
  }
}

/* Respiration hypnotique et calme de l'aura dorée du cerf (opacité seule) */
@keyframes a-cerf-souffle {
  0%, 100% {
    opacity: 0.58;
  }
  50% {
    opacity: 1;
  }
}

/* Étoile filante #1 : haute droite -> gauche, lueur champagne-or (desktop + mobile) */
@keyframes a-filante-1 {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-25deg);
  }
  1.6% {
    opacity: 0.95;
  }
  5.8% {
    opacity: 0.82;
  }
  9.2% {
    opacity: 0;
    transform: translate3d(-44vw, 20.5vw, 0) rotate(-25deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(-44vw, 20.5vw, 0) rotate(-25deg);
  }
}

/* Étoile filante #2 : gauche -> droite douce, éclat saphir-perle (desktop + mobile) */
@keyframes a-filante-2 {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(20deg);
  }
  1.4% {
    opacity: 0.88;
  }
  5.0% {
    opacity: 0.72;
  }
  7.8% {
    opacity: 0;
    transform: translate3d(42vw, 15.3vw, 0) rotate(20deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(42vw, 15.3vw, 0) rotate(20deg);
  }
}

/* Étoile filante #3 : zénith -> gauche, voile or-lavande (desktop uniquement) */
@keyframes a-filante-3 {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-32deg);
  }
  1.2% {
    opacity: 0.90;
  }
  4.2% {
    opacity: 0.76;
  }
  6.5% {
    opacity: 0;
    transform: translate3d(-34vw, 21.2vw, 0) rotate(-32deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(-34vw, 21.2vw, 0) rotate(-32deg);
  }
}

/* ----- Base cosmique lumineuse (strictement bornée à la vue auth) ----- */
body:has(#app > section.auth) {
  position: relative;
  isolation: isolate;
  overflow: visible;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Exo 2";
  color: #EFF5FF;
  background:
    radial-gradient(ellipse 88% 54% at 50% 38%, rgba(250, 130, 40, 0.20) 0%, rgba(107, 60, 255, 0.22) 38%, transparent 72%),
    radial-gradient(ellipse 76% 58% at 16% 14%, rgba(107, 60, 255, 0.42) 0%, transparent 64%),
    radial-gradient(ellipse 74% 58% at 84% 16%, rgba(15, 40, 225, 0.56) 0%, transparent 66%),
    linear-gradient(180deg, #131E63 0%, #0D1548 46%, #080D2E 100%);
  background-attachment: scroll;
}

/* Étoile filante #1 derrière la porte (z-index: 1 < main#app z-index: 5) */
body:has(#app > section.auth)::before {
  content: "";
  position: fixed;
  top: 12vh;
  left: 76vw;
  width: min(190px, 34vw);
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFF3D1 12%, #FFD685 28%, rgba(250, 130, 40, 0.36) 56%, transparent 100%);
  animation: a-filante-1 11s linear -9s infinite;
}

/* Étoile filante #2 derrière la porte (z-index: 1 < main#app z-index: 5) */
body:has(#app > section.auth)::after {
  content: "";
  position: fixed;
  top: 26vh;
  left: 8vw;
  width: min(160px, 30vw);
  height: 1.7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(270deg, #FFFFFF 0%, #D6E6FF 16%, rgba(128, 164, 255, 0.36) 52%, transparent 100%);
  animation: a-filante-2 15s linear -8.5s infinite;
}

/* ----- Voûte étoilée & nébuleuses dérivantes ----- */
body:has(#app > section.auth) .ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 42% at 50% 0%, rgba(124, 92, 255, 0.32) 0%, rgba(15, 40, 225, 0.18) 46%, transparent 76%),
    radial-gradient(ellipse 74% 38% at 50% 100%, rgba(250, 130, 40, 0.16) 0%, rgba(86, 54, 212, 0.14) 44%, transparent 74%);
}

/* Calque animé #1 (desktop & mobile) : scintillement d'étoiles et poussière */
body:has(#app > section.auth) .ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url(a-etoiles.svg) center / cover no-repeat;
  animation: a-twinkle 10.5s ease-in-out infinite;
}

/* Calque animé desktop uniquement (statique sur mobile) : nébuleuses lentes */
body:has(#app > section.auth) .ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 42% at 20% 24%, rgba(138, 92, 255, 0.24) 0%, rgba(15, 40, 225, 0.10) 50%, transparent 74%),
    radial-gradient(ellipse 44% 40% at 80% 26%, rgba(36, 92, 255, 0.28) 0%, rgba(15, 40, 225, 0.08) 52%, transparent 74%),
    radial-gradient(ellipse 34% 30% at 50% 18%, rgba(250, 130, 40, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 42% 36% at 74% 78%, rgba(107, 60, 255, 0.16) 0%, transparent 72%);
  animation: a-nebula-drift 36s ease-in-out infinite alternate;
}

/* ----- Barre du haut flottante, sceau ERES PROD discret (cible 44 px) ----- */
body:has(#app > section.auth) header.site-header {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
  max-width: none;
  width: 100%;
  min-height: 58px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(20px, calc((100vw - 1080px) / 2)) 8px;
  background: linear-gradient(180deg, rgba(8, 13, 44, 0.56) 0%, rgba(8, 13, 44, 0) 100%);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:has(#app > section.auth) header.site-header .brand {
  gap: 9px;
  min-height: 44px;
}

body:has(#app > section.auth) header.site-header .brand-name {
  font-family: "Exo 2";
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #EFF5FF;
}

body:has(#app > section.auth) header.site-header .brand-name em {
  color: #FA8228;
}

body:has(#app > section.auth) header.site-header .brand-link-line {
  width: 22px;
  background: rgba(214, 226, 255, 0.44);
}

body:has(#app > section.auth) header.site-header .brand-link-line::after {
  background: #FA8228;
  box-shadow: 0 0 8px rgba(250, 130, 40, 0.72);
}

body:has(#app > section.auth) header.site-header .brand-seal {
  width: 44px;
  height: 44px;
  margin: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(250, 130, 40, 0.16) 0%, transparent 68%);
}

body:has(#app > section.auth) header.site-header .brand-seal img {
  width: 32px;
  height: 32px;
  opacity: 0.92;
  filter: drop-shadow(0 0 8px rgba(250, 130, 40, 0.28));
}

/* ----- Scène centrée avec l'Arche d'or derrière le Gardien et la carte ----- */
body:has(#app > section.auth) main#app {
  position: relative;
  z-index: 5;
  flex: 1 0 auto;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 162px 18px 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  overflow-x: clip;
}

/* Arche architecturale monumentale centrée derrière la carte (jamais plus large que le viewport) */
body:has(#app > section.auth) main#app::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 56%;
  width: 100%;
  height: min(860px, 106%);
  min-height: 760px;
  transform: translateY(-50%);
  background: url(a-seuil.svg) center / min(980px, 148vw) 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Étoile filante #3 (desktop uniquement, z-index: 0 derrière l'arche et la carte) */
body:has(#app > section.auth) main#app::after {
  content: "";
  position: fixed;
  top: 7vh;
  left: 44vw;
  right: auto;
  bottom: auto;
  width: min(192px, 28vw);
  height: 1.6px;
  min-height: 0;
  transform: none;
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(90deg, #FFFDF5 0%, #FFD98A 16%, rgba(176, 154, 255, 0.30) 50%, transparent 100%);
  animation: a-filante-3 19s linear -8s infinite;
}

/* ----- Monolithe de verre sombre précieux + Gardien du Seuil couronnant la porte ----- */
#app > section.auth {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 446px;
  margin: 0;
  padding: 36px 34px 32px;
  border-radius: 28px 28px 24px 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(90deg, transparent 16%, #FFE7BD 36%, #FFF8E6 50%, #FFE7BD 64%, transparent 84%) top center / 100% 1.5px no-repeat padding-box,
    radial-gradient(260px 88px at 50% 0%, rgba(255, 206, 134, 0.20) 0%, rgba(250, 130, 40, 0.07) 55%, transparent 100%) padding-box,
    linear-gradient(166deg, rgba(22, 31, 78, 0.91) 0%, rgba(12, 18, 50, 0.95) 50%, rgba(15, 16, 46, 0.97) 100%) padding-box,
    linear-gradient(165deg, rgba(255, 224, 166, 0.88) 0%, rgba(250, 130, 40, 0.58) 24%, rgba(139, 118, 255, 0.38) 60%, rgba(250, 130, 40, 0.26) 100%) border-box;
  box-shadow:
    0 -14px 44px -10px rgba(250, 130, 40, 0.36),
    0 28px 72px rgba(4, 6, 24, 0.72),
    0 0 0 1px rgba(239, 245, 255, 0.06) inset,
    0 1px 0 rgba(255, 236, 200, 0.40) inset;
  overflow: visible;
}

/* Gardien du seuil : Cerf doré lumineux posé au-dessus de l'arche & de la porte */
#app > section.auth::before {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: auto;
  top: -202px;
  width: 274px;
  height: 224px;
  transform: translateX(-50%);
  background: url(a-cerf.svg) center / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Aura dorée respirante derrière le cerf (opacité uniquement, calme et hypnotique) */
#app > section.auth::after {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: auto;
  top: -222px;
  width: 340px;
  height: 230px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 232, 178, 0.44) 0%,
    rgba(250, 130, 40, 0.24) 40%,
    rgba(116, 72, 255, 0.12) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  animation: a-cerf-souffle 7.2s ease-in-out infinite;
}

/* Contenu du formulaire toujours strictement au premier plan */
#app > section.auth > * {
  position: relative;
  z-index: 2;
}

/* ----- Typographie haute joaillerie ----- */
#app > section.auth .eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding-bottom: 6px;
  font-family: "Exo 2";
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFBD73;
  border-bottom: 1px solid rgba(250, 130, 40, 0.42);
}

#app > section.auth h1 {
  font-family: "Exo 2";
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #EFF5FF;
  text-shadow: 0 2px 24px rgba(176, 204, 255, 0.24);
}

#app > section.auth .muted {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: #C9D7F5;
}

/* ----- Formulaire tactile & lumineux (contraste champs >= 3:1 + autofill Safari) ----- */
#app > section.auth label {
  display: block;
  margin: 14px 0 7px;
  font-family: "Exo 2";
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #D2DFF9;
}

#app > section.auth input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #8AA0EE;
  background-color: rgba(20, 26, 66, 0.96);
  color: #EFF5FF;
  font-family: "Exo 2";
  font-weight: 500;
  font-size: 16px;
  scroll-margin-bottom: 45vh;
  box-shadow: 0 2px 8px rgba(2, 5, 18, 0.45) inset;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

#app > section.auth input:hover {
  border-color: rgba(255, 186, 112, 0.78);
}

#app > section.auth input:focus {
  outline: none;
  border-color: #FA8228;
  background-color: rgba(14, 20, 56, 0.98);
  box-shadow:
    0 0 0 3px rgba(250, 130, 40, 0.26),
    0 0 22px rgba(250, 130, 40, 0.16),
    0 2px 8px rgba(2, 5, 18, 0.45) inset;
}

#app > section.auth input:focus-visible {
  outline: 2px solid #FFE2B8;
  outline-offset: 2px;
}

/* Remplissage auto Safari : pas de fond jaune, texte lisible */
#app > section.auth input:-webkit-autofill,
#app > section.auth input:-webkit-autofill:hover,
#app > section.auth input:-webkit-autofill:focus {
  -webkit-text-fill-color: #EFF5FF;
  caret-color: #EFF5FF;
  box-shadow: 0 0 0 1000px rgba(20, 26, 66, 0.96) inset;
  transition: background-color 9999s ease-out 0s;
}

#app > section.auth .notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(250, 130, 40, 0.38);
  border-left: 3px solid #FA8228;
  background: rgba(250, 130, 40, 0.12);
  color: #EFF5FF;
  font-size: 13.5px;
  line-height: 1.45;
}

#app > section.auth .notice:empty {
  display: none;
}

/* ----- Bouton principal « Prijavi se » : clé d'or-orange ----- */
#app > section.auth form > button[type="submit"],
#app > section.auth form .button {
  width: 100%;
  min-height: 52px;
  margin: 22px 0 14px;
  padding: 13px 22px;
  border-radius: 15px;
  border: 1px solid rgba(255, 224, 178, 0.45);
  background: linear-gradient(180deg, #FFA24C 0%, #FA8228 52%, #E56812 100%);
  color: #090D20;
  font-family: "Exo 2";
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 rgba(255, 246, 226, 0.58) inset,
    0 10px 30px rgba(250, 130, 40, 0.42),
    0 2px 8px rgba(4, 6, 20, 0.48);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 180ms ease;
}

#app > section.auth form > button[type="submit"] span {
  display: inline-block;
  transition: transform 180ms ease;
}

#app > section.auth form > button[type="submit"]:hover {
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 248, 232, 0.72) inset,
    0 14px 36px rgba(250, 130, 40, 0.54),
    0 3px 10px rgba(4, 6, 20, 0.52);
}

#app > section.auth form > button[type="submit"]:hover span {
  transform: translateX(4px);
}

#app > section.auth form > button[type="submit"]:active {
  transform: scale(0.985);
}

#app > section.auth form > button[type="submit"]:focus-visible {
  outline: 3px solid #EFF5FF;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #0C1338;
}

/* ----- Liens secondaires : cibles >= 44px, contraste AA/AAA ----- */
#app > section.auth .auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2px 14px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(138, 158, 232, 0.22);
  font-size: 13.5px;
}

#app > section.auth .auth-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #CBD9F7;
  text-decoration: underline;
  text-decoration-color: rgba(203, 217, 247, 0.36);
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

#app > section.auth .auth-links a:hover {
  color: #FFC680;
  text-decoration-color: rgba(255, 198, 128, 0.85);
}

#app > section.auth .auth-links a:focus-visible {
  outline: 2px solid #EFF5FF;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ----- Adaptation iPhone (390×844) : <= 4 calques animés, cerf ~105 px ----- */
@media (max-width: 700px) {
  /* Mobile budget : coupe la dérive nébuleuse + 3e étoile filante => exactement 4 calques animés */
  body:has(#app > section.auth) .ambient::after {
    animation: none;
  }
  body:has(#app > section.auth) main#app::after {
    animation: none;
    opacity: 0;
  }
  body:has(#app > section.auth)::before {
    top: 11vh;
    left: 72vw;
    width: 116px;
  }
  body:has(#app > section.auth)::after {
    top: 22vh;
    left: 6vw;
    width: 102px;
  }
  body:has(#app > section.auth) {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body:has(#app > section.auth) header.site-header {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 6px;
    min-height: 52px;
  }
  body:has(#app > section.auth) main#app {
    padding: 132px 16px 120px;
    align-items: flex-start;
  }
  body:has(#app > section.auth) main#app::before {
    left: 0;
    right: 0;
    top: -12px;
    width: 100%;
    height: 700px;
    min-height: 0;
    transform: none;
    background: url(a-seuil.svg) center top / 620px 680px no-repeat;
  }
  #app > section.auth {
    padding: 24px 22px 20px;
    border-radius: 26px 26px 22px 22px;
  }
  #app > section.auth::before {
    top: -128px;
    width: 176px;
    height: 144px;
  }
  #app > section.auth::after {
    top: -140px;
    width: 226px;
    height: 156px;
  }
  #app > section.auth h1 {
    font-size: 30px;
  }
  #app > section.auth .muted {
    font-size: 14.5px;
    margin-bottom: 16px;
  }
  #app > section.auth .auth-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  #app > section.auth .auth-links a {
    width: 100%;
  }
}

/* ----- iPhone en paysage : encoche latérale respectée, défilement fluide ----- */
@media (orientation: landscape) and (max-height: 500px) {
  body:has(#app > section.auth) .ambient::after {
    animation: none;
  }
  body:has(#app > section.auth) main#app::after {
    animation: none;
    opacity: 0;
  }
  body:has(#app > section.auth) header.site-header,
  body:has(#app > section.auth) main#app {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  body:has(#app > section.auth) main#app {
    padding-top: 106px;
    padding-bottom: 120px;
    align-items: flex-start;
  }
  body:has(#app > section.auth) main#app::before {
    left: 0;
    right: 0;
    top: 8px;
    width: 100%;
    min-height: 0;
    height: 620px;
    transform: none;
    background: url(a-seuil.svg) center top / 680px 620px no-repeat;
  }
  #app > section.auth::before {
    top: -96px;
    width: 138px;
    height: 112px;
  }
  #app > section.auth::after {
    top: -108px;
    width: 184px;
    height: 128px;
  }
}

/* ----- Mouvement réduit : tout coupé ----- */
@media (prefers-reduced-motion: reduce) {
  body:has(#app > section.auth)::before,
  body:has(#app > section.auth)::after,
  body:has(#app > section.auth) main#app::after {
    animation: none !important;
    opacity: 0 !important;
  }
  body:has(#app > section.auth) .ambient::before,
  body:has(#app > section.auth) .ambient::after,
  #app > section.auth::after {
    animation: none !important;
  }
  #app > section.auth input,
  #app > section.auth form > button[type="submit"],
  #app > section.auth form > button[type="submit"] span,
  #app > section.auth .auth-links a {
    transition: none !important;
  }
}
