/* ==========================================================================
   creapres — les petits dessins

   Des motifs en rapport avec le métier : casque, textile, sac, recyclage,
   feuille, mug, stylo. Ils meublent les endroits qui sonnaient creux — page
   vide, en-tête, connexion — sans jamais gêner la lecture.

   Tout est dans ce fichier et dans brands/fip/motifs.php. Pour revenir à
   l'ancienne allure, retirer les deux : rien d'autre n'en dépend.
   ========================================================================== */

.motif { width: 1em; height: 1em; color: inherit; display: inline-block; vertical-align: -0.125em; }

/* ---- Bandeau décoratif d'un en-tête de page ---------------------------- */
.deco {
  position: absolute; inset-inline-end: 0; top: -14px; z-index: 0;
  display: none; gap: 26px; pointer-events: none; color: var(--green-900);
}
.deco .motif { width: 46px; height: 46px; opacity: 0.09; }
.deco .motif:nth-child(2) { opacity: 0.13; transform: rotate(-8deg); }
.deco .motif:nth-child(3) { opacity: 0.07; transform: rotate(6deg); }
.container > .page-tete { position: relative; }
@media (min-width: 900px) { .deco { display: flex; } }

/* ---- Pages vides : un dessin plutôt qu'un grand blanc ------------------- */
.empty { position: relative; }
.empty__motif {
  width: 84px; height: 84px; margin: 0 auto 14px; display: block;
  color: var(--green-500); opacity: 0.55;
}

/* ---- Connexion : une frise discrète en pied ---------------------------- */
.auth__frise {
  display: flex; justify-content: center; gap: 22px; margin-top: 26px;
  color: var(--green-900); opacity: 0.16; pointer-events: none;
}
.auth__frise .motif { width: 26px; height: 26px; }

/* ---- Cartes de retour : le motif dit le genre du retour ----------------- */
.retour__genre .motif { width: 15px; height: 15px; margin-right: 5px; opacity: 0.8; }

/* ---- Filigrane au dos des grandes zones -------------------------------- */
.filigrane { position: relative; }
.filigrane::after {
  content: ""; position: absolute; right: 18px; bottom: 14px; width: 92px; height: 92px;
  background: currentColor; opacity: 0.05; pointer-events: none;
  -webkit-mask: var(--motif) center / contain no-repeat;
  mask: var(--motif) center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .empty__motif { animation: motif-pose 0.6s var(--ease-out, ease) both; }
}
@keyframes motif-pose {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to   { opacity: 0.55; transform: none; }
}
