/* =========================================================
   FLORA RP - Styles globaux + Navbar horizontale
   Thème : sombre, semi-transparent, accents néon rose + corail
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap");

:root {
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-tech: "Rajdhani", system-ui, sans-serif;

  --bg-deep: #07070b;
  --bg-mid: #0e0e16;
  --bg-soft: #161624;
  /* Fond des pages (hors accueil) : pas noir pur, léger gris bleu-violet */
  --bg-page: #14141f;

  --accent-pink: #ffb8ec;        /* rose principal du site */
  --accent-rose: #c93168;        /* rose plus profond */
  --accent-coral: #f4a8a8;       /* corail / pêche */
  --accent-magenta: #ff3d7f;     /* magenta vif (alertes) */
  --accent-red: #e23c3c;

  --text-primary: #f7f0f4;
  --text-secondary: rgba(247, 240, 244, 0.74);
  --text-muted: rgba(247, 240, 244, 0.48);

  --frame-border: rgba(255, 184, 236, 0.32);
  --frame-border-hover: rgba(255, 184, 236, 0.75);
  --frame-bg: rgba(28, 18, 26, 0.58);
  --frame-bg-hover: rgba(48, 24, 38, 0.82);

  --nav-height: 92px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* ---------- Vidéo de fond UNIQUEMENT sur la page Accueil ---------- */
html:has(body.flora-home-bg) {
  background: #100510;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(body.flora-home-bg)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.flora-home-bg {
  position: relative;
  background: transparent;
  min-height: 100dvh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.flora-home-bg::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.flora-home-bg > .flora-nav,
body.flora-home-bg > .flora-welcome,
body.flora-home-bg > main,
body.flora-home-bg > .flora-footer {
  position: relative;
  z-index: 1;
}

body.flora-home-bg .flora-nav {
  background: linear-gradient(180deg, rgba(8, 4, 10, 0.55) 0%, rgba(8, 4, 10, 0) 100%);
}

.flora-home-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.flora-home-video__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.flora-home-video__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 4, 10, 0.08) 0%, rgba(8, 4, 10, 0.18) 45%, rgba(8, 4, 10, 0.62) 100%);
}

/* Grille décorative (uniquement sur l'accueil pour ne pas alourdir le noir) */
body.flora-home-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 75%);
  opacity: 0.08;
}

/* =========================================================
   NAVBAR HORIZONTALE
   ========================================================= */

.flora-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  padding: 0 clamp(1rem, 3vw, 2.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  z-index: 100;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ---------- Logo (encadré, comme la carte d'accueil) ---------- */
.flora-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  padding: 0.4rem 1.1rem 0.4rem 0.55rem;
  background: rgba(10, 10, 18, 0.45);
  border: 1px solid rgba(255, 184, 236, 0.14);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 18px -8px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.flora-nav-logo:hover {
  border-color: rgba(255, 184, 236, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 22px -6px rgba(255, 184, 236, 0.4);
}

.flora-nav-logo-mark {
  width: 58px;                                 /* plus grand */
  height: 58px;
  display: block;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
  filter: drop-shadow(0 4px 14px rgba(255, 100, 130, 0.5));
  transition: filter 0.25s ease, transform 0.25s ease;
  transform-origin: center;
}

.flora-nav-logo:hover .flora-nav-logo-mark {
  transform: rotate(-6deg) scale(1.05);
  filter: drop-shadow(0 6px 18px rgba(255, 130, 160, 0.65));
}

.flora-nav-logo-text {
  display: flex;
  flex-direction: row;                         /* texte horizontal */
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
}

.flora-nav-logo-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.flora-nav-logo-sep {
  flex-shrink: 0;
  display: block;
  width: 2px;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 184, 236, 0.12) 0%,
    rgba(255, 184, 236, 0.92) 50%,
    rgba(255, 184, 236, 0.12) 100%
  );
  box-shadow: 0 0 12px rgba(255, 184, 236, 0.5);
}

.flora-nav-logo-sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-pink);
  text-shadow: 0 0 8px rgba(255, 184, 236, 0.45);
}

/* ---------- Animation flottante du logo pendant le typewriter ---------- */
.flora-nav.is-typing .flora-nav-logo-mark {
  animation: floraLogoFloat 1.4s ease-in-out infinite;
}

@keyframes floraLogoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35%      { transform: translateY(-7px) rotate(-5deg); }
  65%      { transform: translateY(-3px) rotate(4deg); }
}

/* ---------- Groupe encadré : onglets + séparateur + actions ---------- */
.flora-nav-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem;
  background: rgba(10, 10, 18, 0.45);
  border: 1px solid rgba(255, 184, 236, 0.14);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 18px -8px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.flora-nav-group.is-typing {
  border-color: rgba(255, 184, 236, 0.55);
  box-shadow:
    inset 0 0 22px rgba(255, 184, 236, 0.18),
    0 6px 26px -6px rgba(255, 184, 236, 0.4);
}

/* Séparateur vertical entre les onglets et les actions */
.flora-nav-sep {
  display: inline-block;
  width: 1px;
  height: 30px;
  flex-shrink: 0;
  margin: 0 0.25rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 22%,
    rgba(255, 184, 236, 0.55) 50%,
    rgba(255, 255, 255, 0.18) 78%,
    transparent 100%
  );
  border-radius: 1px;
}

/* ---------- Tabs (cases encadrées) ---------- */
.flora-nav-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.flora-nav-tabs.is-typing .flora-nav-tab {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Overlay terminal qui prend la place des 4 cases */
.flora-nav-typer {
  position: absolute;
  inset: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 184, 236, 0.7);
  background: linear-gradient(
    90deg,
    rgba(255, 184, 236, 0) 0%,
    rgba(255, 184, 236, 0.16) 50%,
    rgba(255, 184, 236, 0) 100%
  );
  border-radius: 10px;
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 0.18s ease 0.05s, transform 0.18s ease 0.05s;
  white-space: nowrap;
  overflow: hidden;
}

.flora-nav-tabs.is-typing .flora-nav-typer {
  opacity: 1;
  transform: translateY(0);
}

.flora-nav-typer-prefix {
  margin-right: 0.4rem;
  color: var(--accent-pink);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 184, 236, 0.8);
}

.flora-nav-typer-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 5px;
  background: var(--accent-pink);
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent-pink);
  animation: floraNavBlink 0.6s steps(2, start) infinite;
}

@keyframes floraNavBlink {
  to {
    opacity: 0;
  }
}

/* Transition de sortie de page */
body.flora-leaving {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.flora-nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--frame-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    color 0.2s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease;
  overflow: hidden;
}

.flora-nav-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 184, 236, 0.18), rgba(244, 168, 168, 0.12));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.flora-nav-tab::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-pink), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flora-nav-tab:hover {
  color: #fff;
  background: var(--frame-bg-hover);
  border-color: transparent;
  box-shadow: 0 6px 18px -8px rgba(255, 184, 236, 0.45);
  transform: translateY(-1px);
}

.flora-nav-tab:hover::before {
  opacity: 1;
}

.flora-nav-tab:hover::after {
  opacity: 0.7;
  transform: scaleX(1);
}

.flora-nav-tab.is-active {
  color: #0a0a10;
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border-color: transparent;
  box-shadow:
    0 8px 22px -8px rgba(255, 184, 236, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.flora-nav-tab.is-active::before {
  opacity: 0;
}

.flora-nav-tab.is-active::after {
  opacity: 0;
}

.flora-nav-tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
}

/* ---------- Actions (Connexion / Mon Compte / Admin / Déconnexion) ---------- */
.flora-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Les icônes dans le groupe sont un peu plus compactes */
.flora-nav-group .flora-nav-icon {
  width: 40px;
  height: 40px;
}

.flora-nav-group .flora-nav-icon--login {
  width: auto;
  height: 40px;
  padding: 0 0.95rem;
}

.flora-nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease;
}

.flora-nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.25s ease;
}

.flora-nav-icon:hover {
  background: var(--frame-bg-hover);
  border-color: var(--frame-border-hover);
  box-shadow: 0 6px 18px -8px rgba(255, 184, 236, 0.45);
  transform: translateY(-1px);
}

.flora-nav-icon:hover svg {
  transform: scale(1.08);
}

/* Tooltip natif compact */
.flora-nav-icon[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 0.35rem 0.6rem;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(15, 15, 25, 0.95);
  border: 1px solid var(--frame-border);
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.flora-nav-icon[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Variantes */
.flora-nav-icon--account {
  color: var(--accent-coral);
}

.flora-nav-icon--account:hover {
  border-color: rgba(244, 168, 168, 0.6);
  box-shadow: 0 6px 18px -8px rgba(244, 168, 168, 0.5);
}

.flora-nav-icon--admin {
  color: var(--accent-pink);
  background: linear-gradient(140deg, rgba(255, 184, 236, 0.18), rgba(255, 184, 236, 0.06));
  border-color: rgba(255, 184, 236, 0.55);
}

.flora-nav-icon--admin:hover {
  background: linear-gradient(140deg, rgba(255, 184, 236, 0.35), rgba(255, 184, 236, 0.12));
  border-color: rgba(255, 184, 236, 0.95);
  box-shadow: 0 8px 22px -8px rgba(255, 184, 236, 0.65);
}

.flora-nav-icon--login {
  width: auto;
  padding: 0 1rem;
  color: #0a0a10;
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border-color: rgba(255, 184, 236, 0.9);
}

.flora-nav-icon--login:hover {
  background: linear-gradient(140deg, #ffd4f4 0%, var(--accent-pink) 100%);
  box-shadow: 0 8px 22px -8px rgba(255, 184, 236, 0.8);
}

[hidden] {
  display: none !important;
}

/* Badge "ON" pour le compte connecté */
.flora-nav-icon-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ecc71;
  border: 2px solid var(--bg-mid);
}

/* ---------- Notifications navbar ---------- */
.flora-nav-notif-wrap {
  position: relative;
  flex-shrink: 0;
}

.flora-nav-icon--notif.is-open {
  border-color: rgba(255, 184, 236, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 184, 236, 0.35), 0 8px 22px -8px rgba(255, 184, 236, 0.55);
}

.flora-nav-icon--notif.is-pulse,
.flora-nav-notif-badge.is-pulse {
  animation: flora-notif-pulse 0.55s ease-in-out 2;
}

@keyframes flora-notif-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.flora-nav-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--accent-pink), var(--accent-rose));
  color: #0a0a10;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 61, 127, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.flora-nav-notif-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 1200;
  width: min(340px, calc(100vw - 1.5rem));
  max-height: min(440px, calc(100vh - var(--nav-height) - 2rem));
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 236, 0.32);
  background: linear-gradient(165deg, rgba(18, 14, 24, 0.98) 0%, rgba(10, 8, 14, 0.98) 100%);
  backdrop-filter: blur(18px);
  box-shadow:
    0 22px 52px -14px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 184, 236, 0.12);
  overflow: hidden;
}

.flora-nav-notif-head {
  flex-shrink: 0;
  padding: 0.85rem 0.9rem 0.7rem;
  border-bottom: 1px solid rgba(255, 184, 236, 0.14);
  background: linear-gradient(180deg, rgba(255, 184, 236, 0.1) 0%, transparent 100%);
}

.flora-nav-notif-head-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.flora-nav-notif-head-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(255, 184, 236, 0.14);
  border: 1px solid rgba(255, 184, 236, 0.28);
  font-size: 1rem;
  line-height: 1;
}

.flora-nav-notif-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.flora-nav-notif-head strong {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe8f8;
}

.flora-nav-notif-head-sub {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.flora-nav-notif-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.45rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 12px), transparent 100%);
}

.flora-nav-notif-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.flora-nav-notif-empty {
  margin: 0;
  padding: 1.25rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

.flora-nav-notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.flora-nav-notif-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.62rem 0.65rem 0.62rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left-width: 3px;
  border-left-color: var(--notif-accent, rgba(255, 184, 236, 0.45));
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.flora-nav-notif-item-chip {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: color-mix(in srgb, var(--notif-accent, #ffb8ec) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--notif-accent, #ffb8ec) 45%, transparent);
}

.flora-nav-notif-item--layout-success {
  background: linear-gradient(135deg, rgba(123, 227, 163, 0.08), rgba(255, 255, 255, 0.02));
}
.flora-nav-notif-item--layout-danger {
  background: linear-gradient(135deg, rgba(255, 107, 138, 0.1), rgba(255, 255, 255, 0.02));
}
.flora-nav-notif-item--layout-alert {
  background: linear-gradient(135deg, rgba(255, 196, 120, 0.1), rgba(255, 255, 255, 0.02));
}
.flora-nav-notif-item--layout-shield {
  background: linear-gradient(135deg, rgba(160, 140, 255, 0.1), rgba(255, 255, 255, 0.02));
}
.flora-nav-notif-item--layout-welcome {
  background: linear-gradient(135deg, rgba(255, 184, 236, 0.12), rgba(255, 255, 255, 0.02));
  border-style: dashed;
  border-left-style: solid;
}
.flora-nav-notif-item--layout-spark {
  background: linear-gradient(135deg, rgba(255, 214, 168, 0.1), rgba(255, 255, 255, 0.02));
}

.flora-nav-notif-item.is-unread {
  background: rgba(255, 184, 236, 0.07);
  border-color: rgba(255, 184, 236, 0.22);
}

.flora-nav-notif-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.flora-nav-notif-item.is-read {
  opacity: 0.78;
  border-left-color: rgba(255, 255, 255, 0.12);
}

.flora-nav-notif-item--wl_accepted { border-left-color: rgba(123, 227, 163, 0.85); }
.flora-nav-notif-item--wl_rejected { border-left-color: rgba(255, 107, 138, 0.85); }
.flora-nav-notif-item--wl_pending { border-left-color: rgba(255, 196, 120, 0.85); }
.flora-nav-notif-item--wl_submitted { border-left-color: rgba(255, 196, 120, 0.75); }
.flora-nav-notif-item--permission { border-left-color: rgba(160, 140, 255, 0.85); }
.flora-nav-notif-item--login,
.flora-nav-notif-item--page_visit { border-left-color: rgba(255, 184, 236, 0.75); }
.flora-nav-notif-item--account_created { border-left-color: rgba(123, 227, 163, 0.75); }

.flora-nav-notif-item-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: rgba(8, 6, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
  line-height: 1;
}

.flora-nav-notif-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  flex: 1;
  padding-right: 4.2rem;
}

.flora-nav-notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.flora-nav-notif-item-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.flora-nav-notif-item-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-pink), var(--accent-rose));
  box-shadow: 0 0 8px rgba(255, 61, 127, 0.65);
}

.flora-nav-notif-item-text {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.flora-nav-notif-item-time {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
}

@media (max-width: 640px) {
  .flora-nav-notif-panel {
    right: -0.35rem;
    width: min(300px, calc(100vw - 1rem));
  }
}

/* =========================================================
   PAGE D'ACCUEIL - Carte de bienvenue
   ========================================================= */

.flora-welcome {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: calc(var(--nav-height) + 2rem) clamp(1rem, 4vw, 3rem) 3rem;
}

/* Accueil : barre de boutons remontée, footer en dessous */
.flora-welcome--home {
  justify-content: flex-end;
  gap: 0;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 1rem);
  padding-bottom: clamp(3.25rem, 12vh, 6.5rem);
}

.flora-join-card--bottom-bar {
  width: fit-content;
  max-width: min(720px, 94vw);
  padding: 0.85rem 1rem 0.75rem;
  margin: 0 auto clamp(1.75rem, 7vh, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.flora-join-bar-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
}

.flora-join-bar-title span:first-child {
  color: #fff;
}

.flora-join-bar-sep {
  font-weight: 300;
  color: var(--accent-pink);
  text-shadow: 0 0 10px rgba(255, 184, 236, 0.55);
}

.flora-join-bar-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 184, 236, 0.45));
  flex-shrink: 0;
}

.flora-join-bar-title span:last-child {
  color: var(--accent-pink);
  text-shadow: 0 0 8px rgba(255, 184, 236, 0.4);
}

.flora-join-card--bottom-bar .flora-join-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem 1.1rem;
  width: auto;
}

.flora-join-card--bottom-bar .flora-join-btn {
  min-width: min(280px, 42vw);
  padding: 0.95rem 1.35rem;
}

body.flora-home-bg .flora-footer {
  margin-top: -0.5rem;
  padding-top: 0.35rem;
  padding-bottom: 0.85rem;
  border-top: none;
  background: transparent;
}

.flora-join-card {
  width: 100%;
  max-width: 820px;
  padding: 2.4rem 2rem 2.2rem;
  background: linear-gradient(170deg, rgba(20, 16, 24, 0.32) 0%, rgba(12, 10, 18, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow:
    0 24px 50px -28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: floraWelcomeIn 0.7s cubic-bezier(0.22, 0.9, 0.25, 1) both;
}

/* Variante "empilée" : logo en haut, titre au centre, boutons en bas */
.flora-join-card--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

.flora-join-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.flora-join-card--stacked .flora-join-icon img {
  width: clamp(150px, 22vw, 220px);
  height: clamp(150px, 22vw, 220px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 28px rgba(255, 184, 236, 0.55));
  animation: floraJoinLogoFloat 5s ease-in-out infinite;
}

.flora-join-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(255, 184, 236, 0.55));
}

.flora-join-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.flora-join-card--stacked .flora-join-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-pink) 60%, #ffd4f4 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(255, 184, 236, 0.35);
}

.flora-join-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 0;
  width: 100%;
}

/* Variante : un seul bouton, centré et de largeur naturelle */
.flora-join-actions--single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.flora-join-actions--single .flora-join-btn {
  width: min(100%, 360px);
}

@media (max-width: 560px) {
  .flora-join-actions {
    grid-template-columns: 1fr;
  }
}

/* Bouton primaire (rose plein) pour l'entrée du règlement */
.flora-join-btn--primary {
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border-color: rgba(255, 184, 236, 0.95);
  color: #1a0a14;
  box-shadow:
    0 14px 32px -16px rgba(255, 184, 236, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.flora-join-btn--primary svg {
  color: #1a0a14;
}

.flora-join-btn--primary:hover {
  background: linear-gradient(140deg, #ffd4f4 0%, var(--accent-pink) 100%);
  color: #0a0510;
  border-color: #fff;
  box-shadow:
    0 18px 40px -16px rgba(255, 184, 236, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.flora-join-btn--primary:hover svg {
  color: #0a0510;
}

@keyframes floraJoinLogoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.flora-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  background: rgba(8, 8, 14, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.flora-join-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-pink);
  transition: transform 0.25s ease;
}

.flora-join-btn:hover {
  border-color: rgba(255, 184, 236, 0.65);
  background: rgba(30, 12, 22, 0.42);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(255, 184, 236, 0.55);
}

.flora-join-btn:hover svg {
  transform: scale(1.12);
}

@keyframes floraWelcomeIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .flora-join-actions {
    grid-template-columns: 1fr;
  }

  .flora-join-card {
    padding: 1.2rem 1rem 1.4rem;
  }

  .flora-join-card--bottom-bar {
    width: 100%;
    max-width: 94vw;
    padding: 0.65rem 0.75rem;
  }

  .flora-join-card--bottom-bar .flora-join-actions {
    flex-direction: column;
    width: 100%;
  }

  .flora-join-card--bottom-bar .flora-join-btn {
    min-width: 0;
    width: 100%;
  }

  .flora-welcome--home {
    padding-bottom: clamp(0.85rem, 2.5vh, 1.5rem);
  }
}

/* =========================================================
   CONTENU PRINCIPAL
   ========================================================= */

.flora-main {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 3.5rem) clamp(1rem, 4vw, 3rem) 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.flora-hero {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.flora-hero-eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-pink);
  background: rgba(255, 184, 236, 0.08);
  border: 1px solid rgba(255, 184, 236, 0.32);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.flora-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #c8c8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(255, 184, 236, 0.18);
}

.flora-hero-title em {
  font-style: normal;
  background: linear-gradient(180deg, #ffd4f4 0%, #a8245a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flora-hero-subtitle {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flora-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.flora-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--frame-border);
  background: var(--frame-bg);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
}

.flora-btn:hover {
  border-color: var(--frame-border-hover);
  background: var(--frame-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(255, 184, 236, 0.45);
}

.flora-btn--primary {
  color: #0a0a10;
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border-color: rgba(255, 184, 236, 0.85);
}

.flora-btn--primary:hover {
  background: linear-gradient(140deg, #ffd4f4 0%, var(--accent-pink) 100%);
  box-shadow: 0 10px 26px -10px rgba(255, 184, 236, 0.7);
}

/* ---------- Cartes ---------- */
.flora-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.flora-card {
  position: relative;
  padding: 1.6rem 1.4rem;
  background: linear-gradient(160deg, rgba(20, 20, 32, 0.75), rgba(12, 12, 20, 0.65));
  border: 1px solid rgba(255, 184, 236, 0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.flora-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-pink), transparent);
  opacity: 0.45;
}

.flora-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 236, 0.4);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
}

.flora-card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 184, 236, 0.12);
  border: 1px solid rgba(255, 184, 236, 0.32);
  color: var(--accent-pink);
  margin-bottom: 1rem;
}

.flora-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.flora-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* ---------- Sections page ---------- */
.flora-section {
  margin-top: 3rem;
}

.flora-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}

.flora-section-subtitle {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-family: var(--font-tech);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.flora-section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 184, 236, 0.5),
    rgba(244, 168, 168, 0.35),
    transparent
  );
  margin: 3rem 0;
}

/* =========================================================
   PAGE RÈGLEMENT - Design poussé X1000
   ========================================================= */

/* =========================================================
   PAGE RÈGLEMENT - Sidebar fixée à gauche
   ========================================================= */

:root {
  --rules-sidebar-width: 300px;
  --rules-side-gap: 0.85rem;
  --rules-side-pad-x: 0.9rem;

  /* Liquid glass - règlement */
  --rules-glass-bg: rgba(255, 255, 255, 0.045);
  --rules-glass-bg-hover: rgba(255, 184, 236, 0.1);
  --rules-glass-bg-active: linear-gradient(
    140deg,
    rgba(255, 184, 236, 0.32) 0%,
    rgba(201, 49, 104, 0.22) 100%
  );
  --rules-glass-border: rgba(255, 255, 255, 0.11);
  --rules-glass-border-hover: rgba(255, 184, 236, 0.42);
  --rules-glass-blur: blur(11px) saturate(1.2);
  --rules-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.12),
                       inset 0 -1px 0 rgba(255, 184, 236, 0.05);
  --rules-glass-shadow: 0 8px 28px -14px rgba(0, 0, 0, 0.55);

  /* Panneaux type tablette WL */
  --flora-logo-watermark: url("https://i.imgur.com/Uzxlzj3.png");
  --flora-wm-size: clamp(30px, 7vw, 44px);
  --rules-tablet-bg: linear-gradient(170deg, rgba(20, 16, 26, 0.74) 0%, rgba(13, 11, 18, 0.66) 100%);
  --rules-tablet-border: rgba(255, 255, 255, 0.055);
  --rules-tablet-case-bg: rgba(14, 11, 19, 0.56);
  --rules-tablet-case-bg-hover: rgba(20, 16, 26, 0.64);
  --rules-tablet-case-bg-active: rgba(24, 18, 30, 0.7);
  --rules-tablet-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.rules-page-body {
  background:
    radial-gradient(ellipse 90% 55% at 12% -5%, rgba(255, 184, 236, 0.09), transparent 58%),
    radial-gradient(ellipse 70% 45% at 95% 105%, rgba(201, 49, 104, 0.07), transparent 52%),
    radial-gradient(ellipse 50% 35% at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%),
    var(--bg-page);
}

/* Page règlement : logo Flora fixé à gauche (détaché de la sidebar), onglets à droite */
body.rules-page-body .flora-nav-logo {
  display: none;
}

body.rules-page-body .flora-nav-group {
  margin-left: auto;
}

/* Colonne gauche : logo + sidebar séparés */
.rules-side-column {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rules-sidebar-width);
  max-height: 100vh;
  padding:
    calc((var(--nav-height) - 66px) / 2)
    var(--rules-side-pad-x)
    var(--rules-side-pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--rules-side-gap);
  z-index: 110;
  box-sizing: border-box;
  overflow: hidden;
}

.rules-side-brand {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rules-side-brand .flora-nav-logo-mark {
  width: 52px;
  height: 52px;
}

.rules-side-brand .flora-nav-logo-title {
  font-size: 1.28rem;
}

.rules-page {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 1.6rem) clamp(1.5rem, 3vw, 2.5rem) 4rem
           calc(var(--rules-sidebar-width) + clamp(1.5rem, 3vw, 2.5rem));
  max-width: 1400px;
  margin: 0 auto;
}

.rules-layout {
  display: block;
}

/* ---------- Sidebar - cases transparentes type WL ---------- */
.rules-sidebar {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, rgba(16, 12, 20, 0.68) 0%, rgba(10, 8, 14, 0.52) 100%);
  border: 1px solid var(--rules-tablet-border);
  border-radius: 10px;
  z-index: 1;
  box-shadow:
    0 18px 42px -22px rgba(0, 0, 0, 0.65),
    var(--rules-tablet-inset);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  overflow: hidden;
}

.rules-sidebar-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.rules-sidebar-watermark {
  opacity: 0.04;
}

.rules-sidebar > * {
  position: relative;
  z-index: 1;
}

.rules-toc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 0.65rem 1rem;
  background: transparent;
  border: none;
  margin: 0;
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.35) transparent;
}

.rules-toc.wl-scroll {
  padding: 0.75rem 0.65rem 1rem;
}

.rules-toc.wl-scroll::-webkit-scrollbar,
.rules-toc::-webkit-scrollbar {
  display: block;
  width: 5px;
}

.rules-toc.wl-scroll::-webkit-scrollbar-track,
.rules-toc::-webkit-scrollbar-track {
  background: transparent;
}

.rules-toc.wl-scroll::-webkit-scrollbar-thumb,
.rules-toc::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 236, 0.32);
  border-radius: 999px;
}

.rules-toc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.rules-toc-group-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.1rem;
  padding: 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
}

.rules-toc-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

/* Cases nav - transparentes comme .wl-case */
.rules-toc-link {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
  padding: 0.72rem 0.78rem 0.72rem 0.95rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  text-align: left;
  border-radius: 6px;
  border: 1px solid var(--rules-tablet-border);
  background: var(--rules-tablet-case-bg);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: var(--rules-tablet-inset);
  color: var(--text-secondary);
  overflow: hidden;
  isolation: isolate;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.18s ease,
    padding-left 0.18s ease,
    color 0.18s ease;
  cursor: pointer;
}

.rules-toc-link::before {
  display: none;
}

.rules-toc-icon {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.rules-toc-label {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.rules-toc-link:hover {
  color: #fff;
  background: var(--rules-tablet-case-bg-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
  padding-left: 0.95rem;
}

.rules-mobile-bar,
.rules-toc-backdrop,
.rules-toc-head-mobile {
  display: none;
}

.rules-toc-link.is-active {
  color: #fff;
  background: var(--rules-tablet-case-bg-active);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
  padding-left: 0.95rem;
}

/* Le footer doit aussi se décaler pour ne pas passer sous la sidebar */
body.rules-page-body .flora-footer {
  margin-left: var(--rules-sidebar-width);
}

/* ---------- Responsive : sidebar repasse en tiroir mobile ---------- */
@media (max-width: 900px) {
  body.rules-page-body .flora-nav-logo {
    display: flex;
  }
  body.rules-page-body .flora-nav-group {
    margin-left: 0;
  }
  body.rules-page-body .flora-footer {
    margin-left: 0;
  }
  .rules-layout {
    position: relative;
  }
  .rules-side-column {
    position: fixed;
    top: calc(var(--nav-height) + var(--safe-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: none;
    padding: 0;
    gap: 0;
    z-index: 210;
    display: none;
    flex-direction: column;
    background: rgba(8, 6, 12, 0.97);
    overflow: hidden;
  }
  body.rules-toc-open .rules-side-column {
    display: flex;
    pointer-events: auto;
  }
  .rules-side-brand {
    display: none;
  }
  .rules-sidebar {
    position: static;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .rules-sidebar-screen {
    border-radius: 0;
    max-height: none;
    height: 100%;
  }
  .rules-toc {
    max-height: none;
    flex: 1 1 auto;
    padding: 0.5rem 0.85rem 1.25rem;
  }
  .rules-toc-link {
    width: 100%;
    min-height: var(--touch-min, 44px);
  }
  .rules-page {
    padding: calc(var(--nav-height) + var(--safe-top, 0px) + 0.5rem) var(--page-pad-x, 1rem) 4rem;
  }
  .rules-mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: calc(var(--nav-height) + var(--safe-top, 0px));
    z-index: 45;
    margin: 0 0 1rem;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 184, 236, 0.28);
    background: rgba(12, 10, 18, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.65);
  }
  .rules-mobile-bar-toc {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: var(--touch-min, 44px);
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 184, 236, 0.45);
    background: rgba(255, 184, 236, 0.12);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .rules-mobile-bar-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  .rules-mobile-bar-nav {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
  }
  .rules-mobile-bar-prev,
  .rules-mobile-bar-next {
    width: var(--touch-min, 44px);
    height: var(--touch-min, 44px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
  }
  .rules-mobile-bar-prev:disabled,
  .rules-mobile-bar-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }
  .rules-toc-head-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }
  .rules-toc-head-mobile strong {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffb8ec;
  }
  .rules-toc-close {
    width: var(--touch-min, 44px);
    height: var(--touch-min, 44px);
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
  }
  .rules-toc-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 205;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .rules-toc-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }
  body.rules-toc-open {
    overflow: hidden;
  }
}

/* ---------- Page d'accueil du règlement (avec sidebar) ---------- */
.rules-intro {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at top, rgba(255, 184, 236, 0.16), transparent 65%),
    linear-gradient(170deg, rgba(28, 18, 32, 0.55) 0%, rgba(14, 10, 18, 0.45) 100%);
  border: 1px solid rgba(255, 184, 236, 0.25);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -32px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rules-intro-logo {
  display: inline-flex;
  margin-bottom: 1.4rem;
}

.rules-intro-logo img {
  width: clamp(140px, 18vw, 200px);
  height: clamp(140px, 18vw, 200px);
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(255, 184, 236, 0.55));
  animation: floraJoinLogoFloat 5s ease-in-out infinite;
}

.rules-intro-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-pink) 60%, #ffd4f4 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(255, 184, 236, 0.35);
}

.rules-intro-sep {
  -webkit-text-fill-color: var(--accent-pink);
  margin: 0 0.4rem;
  opacity: 0.85;
}

.rules-intro-sub {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.rules-intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.7rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a0a14;
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border: 1px solid rgba(255, 184, 236, 0.95);
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 14px 32px -16px rgba(255, 184, 236, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.22s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rules-intro-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.rules-intro-btn:hover {
  background: linear-gradient(140deg, #ffd4f4 0%, var(--accent-pink) 100%);
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px -16px rgba(255, 184, 236, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.rules-intro-btn:hover svg {
  transform: translateX(4px);
}

/* ---------- Zone de contenu (droite) ---------- */
.rules-content {
  position: relative;
  min-height: 320px;
}

/* ---------- Transition dans la zone contenu uniquement ---------- */
.rules-content.is-transitioning {
  min-height: clamp(460px, 62vh, 680px);
  overflow: hidden;
}

.rules-content.is-transitioning [data-rules-section] {
  display: none !important;
}

.rules-transition {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: transparent;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.rules-transition.is-playing {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.16s ease, visibility 0s linear 0s;
}

.rules-transition-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.35rem, 3.5vw, 2rem);
  text-align: center;
  opacity: 0;
  transform: scale(0.94);
}

.rules-transition.is-playing .rules-transition-stage {
  animation: rulesTransitionStage 0.6s cubic-bezier(0.22, 0.9, 0.25, 1) forwards;
}

.rules-transition-logo-wrap {
  position: relative;
  width: clamp(220px, 42vw, 320px);
  height: clamp(220px, 42vw, 320px);
  display: grid;
  place-items: center;
}

.rules-transition-logo {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.rules-transition-logo--main {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 32px rgba(255, 184, 236, 0.5));
}

.rules-transition-logo--ghost {
  z-index: 1;
  opacity: 0;
  transform: scale(0.94);
  filter: blur(1.5px) drop-shadow(0 0 36px rgba(255, 184, 236, 0.9));
}

.rules-transition.is-playing .rules-transition-logo--ghost {
  animation: rulesLogoDouble 0.58s cubic-bezier(0.22, 0.9, 0.25, 1) forwards;
}

.rules-transition.is-playing .rules-transition-logo--main {
  animation: rulesLogoPulse 0.58s cubic-bezier(0.22, 0.9, 0.25, 1) forwards;
}

.rules-transition-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  max-width: min(92vw, 560px);
}

.rules-transition-kicker {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.78);
}

.rules-transition-to {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 184, 236, 0.45);
  line-height: 1.25;
}

.rules-transition-from-wrap {
  margin: 0.15rem 0 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.rules-transition-from-label {
  margin-right: 0.35rem;
  text-transform: lowercase;
}

.rules-transition-from {
  color: rgba(255, 255, 255, 0.55);
}

@keyframes rulesTransitionStage {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  14% {
    opacity: 1;
    transform: scale(1);
  }
  78% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes rulesLogoDouble {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  22% {
    opacity: 0.72;
    transform: scale(1.08);
  }
  48% {
    opacity: 0.42;
    transform: scale(1.16);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes rulesLogoPulse {
  0%, 100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.05);
  }
}

/* ---------- Mode onglets : sections cachées sauf l'active ---------- */
[data-rules-section] {
  display: none;
}

[data-rules-section].is-active {
  display: block;
}

[data-rules-section].rules-section-enter {
  animation: rulesPanelIn 0.4s cubic-bezier(0.22, 0.9, 0.25, 1) both;
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .rules-transition {
    display: none !important;
  }
}

@keyframes rulesPanelIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ---------- Bloc "Points Importants" (alerte pulsante) ---------- */
/* =========================================================
   POINTS IMPORTANTS - Design refait
   Structure : grand bandeau d'en-tête + grille de cartes "interdit"
   ========================================================= */
.rules-important {
  position: relative;
  margin-bottom: 2.5rem;
}

/* En-tête : bande sombre avec accent rose */
.rules-important-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: var(--rules-tablet-bg);
  border: 1px solid var(--rules-tablet-border);
  border-radius: 8px;
  box-shadow: var(--rules-tablet-inset);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  overflow: hidden;
}

.rules-important-header::before {
  display: none;
}

.rules-important-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(255, 184, 236, 0.7));
  animation: rulesAlertIcon 2.6s ease-in-out infinite;
}

@keyframes rulesAlertIcon {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-6deg); }
  75%      { transform: rotate(6deg); }
}

.rules-important-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 184, 236, 0.45);
}

/* Grille de cartes "interdit" */
.rules-important-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

/* Carte individuelle */
.rules-important-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem 0.95rem 1.1rem;
  background: var(--rules-tablet-case-bg);
  border: 1px solid var(--rules-tablet-border);
  border-radius: 6px;
  backdrop-filter: blur(8px) saturate(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.06);
  box-shadow: var(--rules-tablet-inset);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

/* Filigrane logo (via bloc global en fin de fichier) */
.rules-important-list li::after {
  content: "";
}

/* Pastille interdit */
.rules-important-list li::before {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff20, transparent 60%),
    linear-gradient(140deg, var(--accent-pink), var(--accent-rose));
  box-shadow:
    0 0 14px rgba(255, 184, 236, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  position: relative;
  margin-top: 0.1rem;
}

/* Symbole "barre" du panneau interdit à l'intérieur de la pastille */
.rules-important-list li {
  --rules-bar-color: #ffffff;
}

.rules-important-list li > *:first-child {
  flex: 1;
}

/* On utilise une approche par background pour la barre interdite */
.rules-important-list li::before {
  background:
    linear-gradient(135deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%),
    linear-gradient(140deg, var(--accent-pink), var(--accent-rose));
  background-size: 100% 100%, 100% 100%;
}

.rules-important-list li:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--rules-tablet-case-bg-hover);
  transform: translateX(3px);
  box-shadow: var(--rules-tablet-inset);
}

/* ---------- Section catégorie ---------- */
.rules-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: calc(var(--nav-height) + 5rem);
}

.rules-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  background: var(--rules-tablet-bg);
  border: 1px solid var(--rules-tablet-border);
  border-radius: 8px;
  box-shadow: var(--rules-tablet-inset);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  position: relative;
  overflow: hidden;
}

.rules-section-header::before {
  display: none;
}

.rules-section-emoji {
  font-size: 1.85rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 184, 236, 0.4));
}

.rules-section-titles h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.rules-section-titles p {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rules-subsection-title {
  position: relative;
  margin: 1.35rem 0 0.65rem;
  padding: 0.72rem 0.95rem 0.72rem 1rem;
  background: var(--rules-tablet-bg);
  border: 1px solid var(--rules-tablet-border);
  border-radius: 8px;
  box-shadow: var(--rules-tablet-inset);
  backdrop-filter: blur(8px) saturate(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.06);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.rules-subsection-title::before {
  display: none;
}

.rules-subsection-title::after {
  display: none;
}

/* Premier sous-titre d'une section : moins d'espace en haut */
.rules-section-header + .rules-subsection-title,
.rules-important-header + .rules-subsection-title {
  margin-top: 1.4rem;
}

/* Mini-titre (sous-sous-section) : plus discret, simple barre rose à gauche */
.rules-mini-title {
  margin: 1.2rem 0 0.65rem;
  padding: 0.35rem 0 0.35rem 0.7rem;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.rules-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

@media (min-width: 760px) {
  .rules-cards--two {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Carte de règle ---------- */
.rules-item {
  position: relative;
  padding: 1rem 1.2rem;
  background: var(--rules-tablet-case-bg);
  border: 1px solid var(--rules-tablet-border);
  border-radius: 6px;
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
  box-shadow: var(--rules-tablet-inset);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.92rem;
  line-height: 1.65;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.22s ease;
}

.rules-item::before {
  display: none;
}

.rules-item:hover {
  background: var(--rules-tablet-case-bg-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
  box-shadow: var(--rules-tablet-inset);
}

.rules-item > strong:first-child {
  display: block;
  color: #fff;
  opacity: 1;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
  margin: 0;
}

.rules-item strong {
  color: #fff;
  opacity: 1;
  font-weight: 700;
  margin-right: 0.3rem;
  letter-spacing: 0.01em;
}

/* Indications sous le titre : liquid glass */
.rules-item-detail {
  display: block;
  margin-top: 0.42rem;
  padding: 0.58rem 0.72rem;
  border-radius: 5px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 42%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(11px) saturate(1.35);
  -webkit-backdrop-filter: blur(11px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 600;
}

.rules-item-detail--inline {
  display: inline;
  margin-top: 0;
  padding: 0.14rem 0.48rem;
  border-radius: 4px;
  vertical-align: baseline;
}

.rules-item:hover::before {
  display: none;
}

.rules-item .rules-emphasis {
  color: var(--accent-pink);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 184, 236, 0.4);
}

/* ---------- Blocs de remarques (note / warn / ok) ---------- */
.rules-note,
.rules-warn,
.rules-ok {
  position: relative;
  margin: 1.1rem 0;
  padding: 1rem 1.3rem 1rem 3.2rem;
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow: hidden;
}

/* Barre verticale colorée à gauche */
.rules-note::before,
.rules-warn::before,
.rules-ok::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

/* Icône en gros, semi-transparente, à gauche */
.rules-note::after,
.rules-warn::after,
.rules-ok::after {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1;
}

.rules-note {
  background: linear-gradient(135deg, rgba(244, 168, 168, 0.09), rgba(244, 168, 168, 0.02));
}
.rules-note::before { background: var(--accent-coral); box-shadow: 0 0 10px rgba(244, 168, 168, 0.5); }
.rules-note::after  { content: "i"; color: var(--accent-coral); font-style: italic; }
.rules-note strong  { color: var(--accent-coral); }

.rules-warn {
  background: linear-gradient(135deg, rgba(255, 61, 127, 0.1), rgba(255, 61, 127, 0.02));
}
.rules-warn::before { background: var(--accent-magenta); box-shadow: 0 0 12px rgba(255, 61, 127, 0.6); }
.rules-warn::after  { content: "!"; color: var(--accent-magenta); }
.rules-warn strong  { color: var(--accent-magenta); }

.rules-note,
.rules-warn,
.rules-ok {
  background: var(--rules-tablet-case-bg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  box-shadow: var(--rules-tablet-inset);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Règlement illégal : catégories plates (style WL) ---------- */
.rules-note--intro {
  margin-bottom: 1rem;
}

.rules-section--illegal-dynamic {
  margin-bottom: 1.5rem;
}

.rules-section--illegal-dynamic .rules-section-header {
  margin-bottom: 0.75rem;
}

.rules-section--illegal-dynamic .rules-note--intro {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.rules-section--illegal-dynamic .rules-note--intro::before,
.rules-section--illegal-dynamic .rules-note--intro::after {
  display: none;
}

.rules-illegal-categories {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rules-illegal-block {
  margin-bottom: 0.15rem;
}

.rules-illegal-block .rules-subsection-title {
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
  padding: 0.58rem 0.85rem;
  font-size: 0.88rem;
}

.rules-illegal-block:first-child .rules-subsection-title {
  margin-top: 0.2rem;
}

.rules-illegal-cat-head {
  justify-content: flex-start;
}

.rules-illegal-cat-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.rules-illegal-cat-title {
  flex: 1;
  min-width: 0;
}

.rules-cat-delete--inline {
  margin-left: auto;
}

.rules-cards--laws {
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

@media (min-width: 900px) {
  .rules-cards--laws {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
  }
}

.rules-law-row {
  position: relative;
  padding: 0.62rem 2rem 0.62rem 0.85rem;
  background: var(--rules-tablet-case-bg);
  border: 1px solid var(--rules-tablet-border);
}

.rules-law-row-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem 0.85rem;
  align-items: start;
  width: 100%;
}

.rules-law-row .rules-law-id {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-pink);
  min-width: 2.4rem;
  padding-top: 0.1rem;
}

.rules-law-row .rules-law-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
}

.rules-law-row .rules-law-text > strong:first-child {
  display: block;
  color: #fff;
  opacity: 1;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.rules-law-row .rules-law-text strong {
  color: #fff;
  opacity: 1;
  font-weight: 600;
}

.rules-law-row .rules-law-text .rules-item-detail {
  margin-top: 0.38rem;
}

.rules-law-row .rules-law-sanction {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-magenta);
  text-align: right;
  min-width: 4.5rem;
  padding-top: 0.15rem;
}

.rules-law-row .rules-rule-delete--inline {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  margin: 0;
}

body.rules-is-editing .rules-law-row {
  padding-right: 2.5rem;
}

.rules-illegal-block .rules-add-rule {
  margin: 0.15rem 0 0.65rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.72rem;
}

.rules-illegal-add-cat {
  margin-top: 0.5rem;
}

.rules-add-rule--category {
  width: 100%;
  justify-content: center;
}

@media (max-width: 720px) {
  .rules-law-row-inner {
    grid-template-columns: auto 1fr;
  }

  .rules-law-row .rules-law-sanction {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }
}

.rules-section--illegal-dynamic .rules-dynamic-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.rules-section--illegal-dynamic .rules-dynamic-sub {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.rules-admin-bar {
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.rules-cat-delete,
.rules-rule-delete {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-left: 0.45rem;
  padding: 0;
  background: rgba(255, 61, 127, 0.12);
  border: 1px solid rgba(255, 61, 127, 0.45);
  border-radius: 6px;
  color: var(--accent-magenta);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.rules-cat-delete:hover,
.rules-rule-delete:hover {
  background: rgba(255, 61, 127, 0.28);
  transform: scale(1.05);
}

.rules-add-rule {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.75rem 1.1rem 1rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 184, 236, 0.08);
  border: 1px dashed rgba(255, 184, 236, 0.45);
  border-radius: 8px;
  color: var(--accent-pink);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.rules-add-rule:hover {
  background: rgba(255, 184, 236, 0.16);
  border-color: rgba(255, 184, 236, 0.75);
}

body.rules-is-editing [contenteditable="true"] {
  outline: 1px dashed rgba(255, 184, 236, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
  padding: 0 2px;
  transition: outline-color 0.18s ease, background 0.18s ease;
}

body.rules-is-editing [contenteditable="true"]:hover {
  outline-color: rgba(255, 184, 236, 0.7);
}

body.rules-is-editing [contenteditable="true"]:focus {
  outline: 2px solid var(--accent-pink);
  background: rgba(255, 184, 236, 0.06);
}

body.rules-is-editing .rules-law-row-inner {
  grid-template-columns: auto 1fr auto auto;
}

.rules-ok {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.09), rgba(46, 204, 113, 0.02));
}
.rules-ok::before { background: #2ecc71; box-shadow: 0 0 10px rgba(46, 204, 113, 0.55); }
.rules-ok::after  { content: "✓"; color: #2ecc71; }
.rules-ok strong  { color: #2ecc71; }

/* ---------- Notions RP (cartes définition) ---------- */
.rules-defs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-def {
  position: relative;
  padding: 0.95rem 1.05rem 1rem 1.1rem;
  background: var(--rules-tablet-case-bg);
  border: 1px solid var(--rules-tablet-border);
  border-radius: 6px;
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
  box-shadow: var(--rules-tablet-inset);
  overflow: hidden;
  transition: background 0.22s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rules-def::before {
  display: none;
}

.rules-def:hover {
  transform: translateY(-2px);
  background: var(--rules-tablet-case-bg-hover);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--rules-tablet-inset);
}

.rules-def:hover::before {
  display: none;
}

.rules-def-term {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-pink);
  margin-bottom: 0.4rem;
  text-shadow: 0 0 8px rgba(255, 184, 236, 0.35);
}

.rules-def-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- Pills (zones safe) ---------- */
.rules-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1rem;
}

.rules-pills li {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0.85rem;
  background: var(--rules-tablet-case-bg);
  border: 1px solid var(--rules-tablet-border);
  border-radius: 6px;
  box-shadow: var(--rules-tablet-inset);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rules-pills li:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--rules-tablet-case-bg-hover);
  transform: translateY(-1px);
}

/* ---------- Stagger : items en cascade quand la section devient active ---------- */
[data-rules-section] .rules-item,
[data-rules-section] .rules-def,
[data-rules-section] .rules-pills li,
[data-rules-section] .rules-important-list li,
[data-rules-section] .rules-law-row {
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

[data-rules-section].is-active .rules-item,
[data-rules-section].is-active .rules-def,
[data-rules-section].is-active .rules-pills li,
[data-rules-section].is-active .rules-important-list li,
[data-rules-section].is-active .rules-law-row {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Animation reveal globale (utilisée uniquement pour le hero) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Perf scroll : un seul backdrop-filter (le conteneur), ----------
   pas sur chaque carte. Les fonds plus opaques gardent le look verre. */
.rules-toc-link,
.rules-section-header,
.rules-subsection-title,
.rules-item,
.rules-law-row,
.rules-item-detail,
.rules-def,
.rules-note,
.rules-warn,
.rules-ok {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.rules-item-detail {
  background: rgba(255, 255, 255, 0.05);
}

/* Section en cours d'édition (admin) */
body.rules-is-editing .rules-section-editable {
  outline: 2px dashed rgba(255, 184, 236, 0.55);
  outline-offset: 8px;
  border-radius: 12px;
}

/* ---------- Bandeau cookies (bas-droite, léger) ---------- */
.flora-cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4000;
  display: flex;
  gap: 0.7rem;
  width: min(340px, calc(100vw - 36px));
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 236, 0.28);
  background: linear-gradient(165deg, rgba(20, 15, 26, 0.97) 0%, rgba(12, 9, 16, 0.97) 100%);
  box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  color: #f4eaf2;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.flora-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.flora-cookie-ico {
  font-size: 1.3rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.flora-cookie-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.flora-cookie-text {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
}

.flora-cookie-text strong {
  color: var(--accent-pink, #ff9ad5);
  font-weight: 600;
}

.flora-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #ff5d9e 0%, #c9407a 100%);
  box-shadow: 0 8px 20px -10px rgba(255, 93, 158, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flora-cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(255, 93, 158, 0.95);
}

@media (max-width: 520px) {
  .flora-cookie-banner {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}

@media (max-width: 720px) {
  .rules-section-header {
    padding: 1rem 1.1rem;
  }
}

/* =========================================================
   PAGE FLORA NEWS
   ========================================================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, rgba(22, 22, 36, 0.85), rgba(10, 10, 18, 0.7));
  border: 1px solid rgba(255, 184, 236, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 236, 0.45);
  box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.75);
}

.news-card-cover {
  height: 160px;
  background: linear-gradient(135deg, #1d1d2e 0%, #11111b 100%);
  position: relative;
  overflow: hidden;
}

.news-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 184, 236, 0.32), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(244, 168, 168, 0.22), transparent 65%);
}

.news-card-cover[data-variant="event"]::after {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 61, 127, 0.35), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 184, 236, 0.22), transparent 65%);
}

.news-card-cover[data-variant="update"]::after {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(244, 168, 168, 0.4), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 184, 236, 0.22), transparent 65%);
}

.news-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.32rem 0.7rem;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-pink);
  background: rgba(7, 7, 12, 0.85);
  border: 1px solid rgba(255, 184, 236, 0.5);
  border-radius: 4px;
  z-index: 1;
}

.news-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-family: "Anton", var(--font-display), sans-serif;
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.news-card-excerpt {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.94rem;
  flex: 1;
}

.news-card-link {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 184, 236, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.news-card-link:hover {
  color: #fff;
  border-color: #fff;
}

/* =========================================================
   PAGE ÉQUIPE - tablette posée (flora-team.js)
   ========================================================= */

body.team-page-body {
  background: var(--bg-page);
  min-height: 100vh;
}

.team-page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 1.75rem) clamp(0.85rem, 3vw, 1.75rem) 4.5rem;
}

.team-tablet-stage {
  position: relative;
  perspective: 1400px;
  padding: 0 clamp(0.25rem, 2vw, 1rem) 2.5rem;
}

.team-tablet-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0.35rem;
  height: clamp(28px, 4vw, 44px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 117, 160, 0.28), rgba(0, 0, 0, 0.55) 72%);
  filter: blur(18px);
  transform: rotateX(72deg) scaleY(0.45);
  pointer-events: none;
}

.team-tablet {
  position: relative;
  transform: rotateX(4deg);
  transform-origin: center bottom;
  animation: teamTabletIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes teamTabletIn {
  from {
    opacity: 0;
    transform: rotateX(10deg) translateY(28px);
  }
  to {
    opacity: 1;
    transform: rotateX(4deg) translateY(0);
  }
}

.team-tablet-frame {
  position: relative;
  border-radius: clamp(22px, 3.2vw, 32px);
  padding: clamp(10px, 1.4vw, 14px);
  background:
    linear-gradient(165deg, rgba(42, 36, 52, 0.98) 0%, rgba(18, 14, 24, 0.98) 55%, rgba(10, 8, 14, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 80px -28px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 184, 236, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 8px rgba(0, 0, 0, 0.45);
}

.team-tablet-bezel-top,
.team-tablet-bezel-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14px;
}

.team-tablet-camera {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 184, 236, 0.55), rgba(8, 6, 12, 0.95) 68%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.team-tablet-speaker {
  width: 42px;
  height: 4px;
  margin-left: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.team-tablet-home-bar {
  display: block;
  width: clamp(72px, 16vw, 110px);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.team-tablet-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(14px, 2.2vw, 20px);
  min-height: 0;
  max-height: min(82vh, 680px);
  height: auto;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 184, 236, 0.04) 32%, rgba(255, 255, 255, 0.02) 100%),
    rgba(12, 10, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -24px 48px -32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.team-tablet-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(255, 184, 236, 0.2), transparent 58%),
    radial-gradient(ellipse 35% 55% at 0% 20%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.team-tablet-screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45) 20%, rgba(255, 184, 236, 0.85) 50%, rgba(255, 255, 255, 0.45) 80%, transparent);
  pointer-events: none;
  z-index: 0;
}

.team-tablet-head {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 2.4vw, 1.35rem) clamp(1rem, 2.4vw, 1.45rem) clamp(0.7rem, 1.6vw, 0.95rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-tablet-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.team-tablet-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 240px;
}

.team-tablet-brand-sep {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent-pink);
  text-shadow: 0 0 10px rgba(255, 184, 236, 0.55);
  opacity: 0.9;
  flex-shrink: 0;
}

.team-tablet-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 184, 236, 0.45));
  flex-shrink: 0;
}

.team-tablet-kicker {
  margin: 0 0 0.15rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.team-tablet-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  line-height: 1.1;
  color: var(--text-primary);
}

.team-tablet-title em {
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-pink);
}

.team-tablet-lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  line-height: 1.52;
  color: var(--text-secondary);
}

.team-tablet-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 0 0 auto;
  align-self: center;
}

.team-tablet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 184, 236, 0.1);
  border: 1px solid rgba(255, 184, 236, 0.24);
}

.team-tablet-pill--muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.team-tablet-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 8px rgba(255, 184, 236, 0.75);
}

.team-tablet-scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  overflow: auto;
  padding: clamp(0.85rem, 2vw, 1.25rem) clamp(0.85rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.35rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.35) transparent;
}

.team-tablet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.1rem);
}

.team-tablet-member {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.07) 0%, rgba(16, 12, 22, 0.55) 100%);
  border: 1px solid rgba(255, 184, 236, 0.16);
  box-shadow: 0 14px 32px -22px rgba(0, 0, 0, 0.75);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  animation: teamMemberIn 0.5s ease both;
  animation-delay: calc(var(--member-i, 0) * 0.06s);
}

@keyframes teamMemberIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.team-tablet-member:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 236, 0.38);
  box-shadow:
    0 18px 38px -18px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 184, 236, 0.06);
}

.team-tablet-member-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255, 184, 236, 0.06);
}

.team-tablet-member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-tablet-member-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  color: rgba(10, 8, 14, 0.92);
  background: linear-gradient(145deg, var(--accent-pink), var(--accent-rose));
}

.team-tablet-member-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 35%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.team-tablet-member-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.75rem 0.85rem;
  background: rgba(8, 6, 12, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.team-tablet-member-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 184, 236, 0.1);
  border: 1px solid rgba(255, 184, 236, 0.24);
}

.team-tablet-member-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.team-tablet-member-info {
  min-width: 0;
}

.team-tablet-member-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-tablet-member-role {
  margin: 0.18rem 0 0;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-pink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-tablet-member-role--owner {
  color: #ffd6a8;
}

.team-tablet-member-role--coowner {
  color: #c8b6ff;
}

.team-tablet-empty {
  text-align: center;
  margin: 2rem 0 0;
  padding: 1.5rem 1rem;
  border-radius: 14px;
  color: var(--text-muted);
  font-family: var(--font-tech);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 184, 236, 0.22);
}

@media (max-width: 640px) {
  .team-tablet {
    transform: none;
  }

  .team-tablet-stage {
    perspective: none;
    padding-bottom: 1.5rem;
  }

  .team-tablet-shadow {
    left: 5%;
    right: 5%;
  }

  .team-tablet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-tablet-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .team-tablet-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .team-tablet-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .team-tablet-member-foot {
    padding: 0.6rem 0.55rem 0.7rem;
  }

  .team-tablet-member-icon {
    width: 26px;
    height: 26px;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */

.flora-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 184, 236, 0.12);
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.flora-deploy-ver {
  color: rgba(255, 184, 236, 0.55);
  letter-spacing: 0.12em;
}

/* =========================================================
   PAGES SIMPLES (Login / Compte / Admin)
   ========================================================= */

.flora-panel {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 2rem 2.2rem;
  background: linear-gradient(170deg, rgba(22, 22, 36, 0.94), rgba(12, 12, 20, 0.9));
  border: 1px solid rgba(255, 184, 236, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
}

.flora-panel--wide {
  max-width: 760px;
}

.flora-panel h2 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
}

.flora-panel-sub {
  color: var(--text-muted);
  font-family: var(--font-tech);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin: 0 0 1.6rem;
}

.flora-form {
  display: grid;
  gap: 1rem;
}

.flora-form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.flora-form input {
  padding: 0.85rem 1rem;
  background: rgba(8, 8, 15, 0.85);
  border: 1px solid rgba(255, 184, 236, 0.22);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flora-form input:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 184, 236, 0.15);
}

.flora-form-error {
  min-height: 1.2rem;
  font-size: 0.82rem;
  color: var(--accent-magenta);
  font-family: var(--font-tech);
  letter-spacing: 0.12em;
}

.flora-credentials {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  background: rgba(244, 168, 168, 0.06);
  border: 1px dashed rgba(244, 168, 168, 0.4);
  border-radius: var(--radius-sm);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  line-height: 1.65;
}

.flora-credentials code {
  color: var(--accent-coral);
  font-family: "Fira Code", monospace;
  font-size: 0.82rem;
}

/* =========================================================
   RESPONSIVE (base - voir aussi FLORA RESPONSIVE GLOBAL en fin de fichier)
   ========================================================= */

@media (max-width: 960px) {
  .flora-hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}

@media (max-width: 560px) {
  .flora-nav-logo-text,
  .flora-nav-logo-sep {
    display: none;
  }
}

/* =========================================================
   FLORA NEWS - Édition journal "The Flora Times"
   ========================================================= */

.news-paper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) clamp(1rem, 4vw, 3rem) 5rem;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--text-primary);
}

/* Bandeau journal */
.news-masthead {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 0.5rem;
}

.news-masthead-rule {
  position: relative;
  height: 0;
  border-top: 2px solid rgba(255, 184, 236, 0.55);
  margin: 1.2rem 0;
}

.news-masthead-rule::before,
.news-masthead-rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(255, 184, 236, 0.2);
}
.news-masthead-rule::before { top: 4px; }
.news-masthead-rule::after  { top: -7px; }

.news-masthead-rule-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-page);
  padding: 0 0.75rem;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.news-masthead-meta {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.news-masthead-meta-item:not(:last-child)::after {
  content: "•";
  margin-left: 1.25rem;
  color: rgba(255, 184, 236, 0.4);
}

.news-masthead-title {
  margin: 0;
  font-family: "Anton", "DM Serif Display", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-pink) 60%, #ffd4f4 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 184, 236, 0.25);
}

.news-masthead-tagline {
  margin: 0.6rem 0 0;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Articles */
.news-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.news-article {
  position: relative;
  padding: 2rem clamp(1rem, 3vw, 2.2rem) 1.6rem;
  background: linear-gradient(165deg, rgba(28, 18, 32, 0.5) 0%, rgba(14, 10, 18, 0.42) 100%);
  border: 1px solid rgba(255, 184, 236, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* Article principal mis en avant */
.news-article--lead {
  border-color: rgba(255, 184, 236, 0.3);
  background:
    radial-gradient(ellipse at top right, rgba(255, 184, 236, 0.12), transparent 60%),
    linear-gradient(165deg, rgba(36, 22, 38, 0.55) 0%, rgba(16, 12, 22, 0.45) 100%);
}

.news-article--lead::before {
  content: "À LA UNE";
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  padding: 0.3rem 0.65rem;
  background: linear-gradient(140deg, var(--accent-pink), var(--accent-rose));
  color: #1a0a14;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(255, 184, 236, 0.5);
}

/* Bandeau métadonnées au-dessus du titre */
.news-article-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-tech);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.news-article-version {
  padding: 0.3rem 0.7rem;
  background: rgba(255, 184, 236, 0.14);
  border: 1px solid rgba(255, 184, 236, 0.4);
  border-radius: 6px;
  color: var(--accent-pink);
  font-weight: 700;
}

.news-article-bullet {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0;
}

.news-article-date,
.news-article-kicker {
  color: var(--text-muted);
}

/* Titre */
.news-article-title {
  margin: 0 0 0.7rem;
  font-family: "Anton", "DM Serif Display", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 3.9vw, 2.85rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 184, 236, 0.18);
}

/* Chapeau */
.news-article-lead {
  margin: 0 0 1.4rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 184, 236, 0.5);
}

/* Corps : sections en grille */
.news-article-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .news-article--lead .news-article-body {
    grid-template-columns: 1fr 1fr;
  }
}

.news-section {
  position: relative;
  padding: 1rem 1.2rem 1.1rem;
  background: linear-gradient(160deg, rgba(28, 24, 36, 0.5) 0%, rgba(16, 14, 22, 0.4) 100%);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255, 184, 236, 0.14);
  border-radius: 12px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.news-section[data-kind="new"]    .news-section-icon { background: #7be3a3; box-shadow: 0 0 10px rgba(123, 227, 163, 0.65); }
.news-section[data-kind="change"] .news-section-icon { background: var(--accent-pink); box-shadow: 0 0 10px rgba(255, 184, 236, 0.6); }
.news-section[data-kind="fix"]    .news-section-icon { background: #ffb277; box-shadow: 0 0 10px rgba(255, 178, 119, 0.65); }
.news-section[data-kind="warn"]   .news-section-icon { background: #ffd166; box-shadow: 0 0 10px rgba(255, 209, 102, 0.65); }
.news-section[data-kind="info"]   .news-section-icon { background: var(--accent-coral); box-shadow: 0 0 10px rgba(244, 168, 168, 0.6); }

.news-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.news-section-icon {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0;
  background: var(--accent-pink);
}

.news-section-title {
  margin: 0;
  font-family: "Anton", var(--font-display), sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

.news-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-section-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.news-section-bullet {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 8px rgba(255, 184, 236, 0.6);
}

.news-section[data-kind="new"]    .news-section-bullet { background: #7be3a3; box-shadow: 0 0 8px rgba(123, 227, 163, 0.6); }
.news-section[data-kind="fix"]    .news-section-bullet { background: #ffb277; box-shadow: 0 0 8px rgba(255, 178, 119, 0.6); }
.news-section[data-kind="warn"]   .news-section-bullet { background: #ffd166; box-shadow: 0 0 8px rgba(255, 209, 102, 0.6); }
.news-section[data-kind="info"]   .news-section-bullet { background: var(--accent-coral); box-shadow: 0 0 8px rgba(244, 168, 168, 0.6); }

.news-section-text { flex: 1; }

/* Pied d'article */
.news-article-foot {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(255, 184, 236, 0.2);
  text-align: right;
  font-family: "Anton", var(--font-display), sans-serif;
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.news-article-signature em {
  font-style: normal;
  font-family: "Anton", var(--font-display), sans-serif;
  color: var(--accent-pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* =========================================================
   MODE ÉDITION ADMIN
   ========================================================= */

.news-admin-bar {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  background: rgba(10, 8, 14, 0.96);
  border: 1px solid rgba(255, 184, 236, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  font-family: var(--font-tech);
}

.news-admin-bar-status {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-pink);
  padding-left: 0.4rem;
}

.news-admin-bar-actions {
  display: flex;
  gap: 0.45rem;
}

.news-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: rgba(20, 14, 22, 0.6);
  border: 1px solid rgba(255, 184, 236, 0.25);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.news-admin-btn svg { width: 14px; height: 14px; }

.news-admin-btn:hover {
  border-color: rgba(255, 184, 236, 0.6);
  background: rgba(40, 18, 32, 0.7);
  transform: translateY(-1px);
}

.news-admin-btn--primary {
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border-color: rgba(255, 184, 236, 0.95);
  color: #1a0a14;
  font-weight: 700;
}

.news-admin-btn--primary:hover {
  background: linear-gradient(140deg, #ffd4f4 0%, var(--accent-pink) 100%);
}

/* Indicateurs visuels en mode édition */
body.news-is-editing [contenteditable="true"] {
  outline: 1px dashed rgba(255, 184, 236, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
  padding: 0 2px;
  transition: outline-color 0.18s ease, background 0.18s ease;
}

body.news-is-editing [contenteditable="true"]:hover {
  outline-color: rgba(255, 184, 236, 0.7);
}

body.news-is-editing [contenteditable="true"]:focus {
  outline: 2px solid var(--accent-pink);
  background: rgba(255, 184, 236, 0.06);
}

.news-article-date-input {
  margin-left: 0.4rem;
  padding: 0.25rem 0.4rem;
  background: rgba(20, 14, 22, 0.7);
  border: 1px solid rgba(255, 184, 236, 0.4);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 0.72rem;
  color-scheme: dark;
}

.news-section-kind {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background: rgba(20, 14, 22, 0.7);
  border: 1px solid rgba(255, 184, 236, 0.4);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 0.72rem;
  cursor: pointer;
}

.news-article-delete,
.news-section-delete,
.news-item-delete {
  margin-left: auto;
  width: 26px;
  height: 26px;
  padding: 0;
  background: rgba(255, 61, 127, 0.12);
  border: 1px solid rgba(255, 61, 127, 0.45);
  border-radius: 6px;
  color: var(--accent-magenta);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.news-article-delete:hover,
.news-section-delete:hover,
.news-item-delete:hover {
  background: rgba(255, 61, 127, 0.28);
  transform: scale(1.05);
}

.news-item-delete {
  align-self: flex-start;
  margin-top: 0.2rem;
  margin-left: 0.5rem;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
}

.news-add-section,
.news-add-item {
  margin-top: 0.8rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 184, 236, 0.06);
  border: 1px dashed rgba(255, 184, 236, 0.45);
  border-radius: 8px;
  color: var(--accent-pink);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.news-add-section { width: 100%; }

.news-add-section:hover,
.news-add-item:hover {
  background: rgba(255, 184, 236, 0.12);
  border-style: solid;
}

@media (max-width: 600px) {
  .news-admin-bar {
    bottom: 0.8rem;
    right: 0.8rem;
    left: 0.8rem;
    flex-direction: column;
    align-items: stretch;
  }
  .news-admin-bar-actions { flex-wrap: wrap; }
}

/* =========================================================
   PAGE LOGIN - Plein écran, deux panneaux
   ========================================================= */

body.login-page-body { overflow-x: hidden; }
body.login-page-body .flora-footer {
  position: relative;
  z-index: 5;
}

/* ---------- Footer crédits ---------- */
.flora-footer-text {
  line-height: 1;
}

.flora-footer-credits {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 1px solid rgba(255, 184, 236, 0.3);
  border-radius: 50%;
  background: rgba(255, 184, 236, 0.08);
  color: rgba(255, 200, 235, 0.85);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.flora-footer-credits svg {
  width: 0.85rem;
  height: 0.85rem;
}

.flora-footer-credits:hover {
  transform: translateY(-1px);
  background: rgba(255, 93, 158, 0.18);
  border-color: rgba(255, 184, 236, 0.6);
  color: #fff;
}

/* Tablette crédits - fond 100% transparent (le site reste visible) */
.flora-credits-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.flora-credits-overlay.is-open {
  opacity: 1;
}

.flora-credits-card {
  position: relative;
  width: min(360px, 92vw);
  padding: 2rem 1.6rem 1.8rem;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 184, 236, 0.3);
  background: linear-gradient(165deg, rgba(24, 18, 30, 0.92) 0%, rgba(14, 10, 18, 0.92) 100%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.25, 1);
}

.flora-credits-overlay.is-open .flora-credits-card {
  transform: translateY(0) scale(1);
}

.flora-credits-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
}

.flora-credits-close svg { width: 1rem; height: 1rem; }
.flora-credits-close:hover { background: rgba(255, 93, 158, 0.25); color: #fff; }

.flora-credits-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 0.6rem;
  filter: drop-shadow(0 0 18px rgba(255, 184, 236, 0.45));
}

.flora-credits-kicker {
  margin: 0 0 1.3rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 200, 235, 0.8);
}

.flora-credits-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.flora-credits-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 236, 0.14);
  background: rgba(255, 184, 236, 0.05);
}

.flora-credits-role {
  font-family: var(--font-tech);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.75);
}

.flora-credits-names {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.login-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
}

/* ==================== PANNEAU GAUCHE ==================== */
.login-brand {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-page);
  border-right: 1px solid rgba(255, 184, 236, 0.08);
}

/* Carte logo + textes dans le panneau gauche */
.login-brand-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.login-brand-eyebrow {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.74rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin: 0.4rem 0 1rem;
  padding: 0;
  border: none;
  background: transparent;
}
.login-brand-card .flora-join-title.login-brand-title {
  margin: 0;
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.login-brand-name {
  background: linear-gradient(135deg, var(--accent-pink) 0%, #ffd4f4 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  white-space: nowrap;
}
.login-brand-pipe {
  color: var(--accent-pink);
  -webkit-text-fill-color: var(--accent-pink);
  margin: 0 0.18em;
  font-style: normal;
  opacity: 0.85;
}
.login-brand-sub {
  margin: 1rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==================== PANNEAU DROIT ==================== */
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: linear-gradient(135deg, #14101c 0%, #0e0a14 100%);
  position: relative;
  overflow: hidden;
}
.login-form-side::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -25%;
  width: 100%;
  height: 110%;
  background: radial-gradient(ellipse, rgba(255, 184, 236, 0.1), transparent 70%);
  pointer-events: none;
}

.login-form-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 2.5rem 2.2rem;
  background: rgba(28, 18, 32, 0.85);
  border: 1px solid rgba(255, 184, 236, 0.18);
  border-radius: 18px;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 184, 236, 0.04) inset;
  z-index: 2;
}

.login-form-head { margin-bottom: 1.8rem; }

.login-form-step {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 184, 236, 0.08);
  border: 1px solid rgba(255, 184, 236, 0.3);
  border-radius: 6px;
}

.login-form-title {
  margin: 0 0 0.45rem;
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-size: 1.95rem;
  font-weight: 700;
  color: #fff;
}
.login-form-sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Champs avec floating label */
.login-field {
  position: relative;
  margin-bottom: 1.2rem;
}
.login-field input {
  width: 100%;
  padding: 1.25rem 0.95rem 0.55rem;
  background: rgba(10, 8, 14, 0.55);
  border: 1px solid rgba(255, 184, 236, 0.18);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.login-field input:focus {
  border-color: var(--accent-pink);
  background: rgba(20, 14, 22, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 184, 236, 0.12);
}
.login-field--password input { padding-right: 3rem; }

.login-field label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: top 0.18s ease, left 0.18s ease, font-size 0.18s ease, color 0.18s ease, padding 0.18s ease, background 0.18s ease;
}

/* Floating effect : focus OU rempli */
.login-field input:focus + label,
.login-field input:not(:placeholder-shown) + label {
  top: 0;
  left: 0.7rem;
  transform: translateY(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-pink);
  padding: 0 0.4rem;
  background: linear-gradient(180deg, rgba(28, 18, 32, 0) 0%, rgba(28, 18, 32, 0.95) 50%, rgba(28, 18, 32, 0.95) 100%);
  border-radius: 4px;
}

.login-field-eye {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  padding: 0;
}
.login-field-eye:hover { color: var(--accent-pink); background: rgba(255, 184, 236, 0.08); }
.login-field-eye svg { width: 18px; height: 18px; }
.login-field-eye .eye-off { display: none; }
.login-field-eye.is-revealed .eye-on  { display: none; }
.login-field-eye.is-revealed .eye-off { display: block; }

.login-error {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 61, 127, 0.12);
  border: 1px solid rgba(255, 61, 127, 0.45);
  border-radius: 8px;
  color: var(--accent-magenta);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1.05rem 1.4rem;
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border: none;
  border-radius: 10px;
  color: #1a0a14;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 14px 36px -14px rgba(255, 184, 236, 0.6);
}
.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(255, 184, 236, 0.85);
  background: linear-gradient(140deg, #ffd4f4 0%, var(--accent-pink) 100%);
}
.login-submit svg { width: 18px; height: 18px; transition: transform 0.22s ease; }
.login-submit:hover svg { transform: translateX(4px); }

/* Comptes démo */
.login-demo {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(255, 184, 236, 0.2);
}
.login-demo-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}
.login-demo-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.login-demo-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: rgba(20, 14, 22, 0.55);
  border: 1px solid rgba(255, 184, 236, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  text-align: left;
  font-family: inherit;
}
.login-demo-chip:hover {
  border-color: var(--accent-pink);
  background: rgba(40, 18, 32, 0.7);
  transform: translateY(-1px);
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-dot--user  { background: #7be3a3; box-shadow: 0 0 8px rgba(123, 227, 163, 0.6); }
.chip-dot--admin { background: var(--accent-pink); box-shadow: 0 0 8px rgba(255, 184, 236, 0.7); }
.chip-text { display: flex; flex-direction: column; min-width: 0; gap: 0.05rem; }
.chip-text strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}
.chip-text small {
  font-family: var(--font-tech);
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== Responsive ==================== */
@media (max-width: 980px) {
  .login-stage {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 2.5rem 1.5rem 2rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 184, 236, 0.14);
    min-height: 480px;
  }
  .login-brand-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .login-brand-stat { padding: 0.7rem 0.8rem; }
  .login-brand-stat .num { font-size: 1.15rem; }
  .login-form-side { padding: 2rem 1.2rem; }
}

@media (max-width: 560px) {
  .login-brand-title { font-size: 2.2rem; }
  .login-brand-tagline { font-size: 0.95rem; margin-bottom: 1.6rem; }
  .login-brand-logo { width: 64px; height: 64px; }
  .login-form-card { padding: 1.7rem 1.3rem; }
  .login-demo-chips { grid-template-columns: 1fr; }
  .chip-text small { font-size: 0.62rem; }
}


/* =========================================================
   PAGE MON COMPTE - Dashboard pleine largeur
   ========================================================= */

body.account-page-body {
  background: var(--bg-page);
  overflow-x: hidden;
}

.account-stage {
  width: 100%;
  margin-top: var(--nav-height);
  padding: clamp(1.2rem, 2.4vw, 2.4rem) clamp(1.2rem, 3vw, 3rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2vw, 1.8rem);
}

/* ============== 1) CARTE DE MEMBRE ============== */
.account-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(1.6rem, 2.5vw, 2.4rem) clamp(1.6rem, 2.8vw, 2.8rem);
  background:
    linear-gradient(135deg, rgba(40, 22, 44, 0.92) 0%, rgba(22, 14, 26, 0.92) 100%);
  border: 1px solid rgba(255, 184, 236, 0.18);
  border-radius: 18px;
  box-shadow: 0 28px 70px -32px rgba(0, 0, 0, 0.7);
}

.account-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ac-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.5;
}
.ac-orb-1 {
  top: -40%;
  right: -8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 184, 236, 0.45), transparent 70%);
}
.ac-orb-2 {
  bottom: -50%;
  left: 30%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(201, 49, 104, 0.35), transparent 70%);
}
.ac-card-watermark {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(6rem, 16vw, 13rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 184, 236, 0.05);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.account-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.4rem, 2.5vw, 2.4rem);
  align-items: center;
}

/* Avatar */
.account-avatar {
  position: relative;
  width: clamp(96px, 9vw, 120px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--accent-pink) 0%, #ffd4f4 60%, var(--accent-rose) 100%);
  color: #1a0a14;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  font-weight: 700;
  border-radius: 18px;
  box-shadow:
    0 14px 36px -10px rgba(255, 184, 236, 0.55),
    0 0 0 1px rgba(255, 184, 236, 0.25) inset;
  flex-shrink: 0;
}
.account-avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 184, 236, 0.35);
  pointer-events: none;
}

/* Identité */
.account-id { min-width: 0; }
.account-id-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 0.55rem;
}
.account-id-label svg { width: 14px; height: 14px; }
.account-id-label span { color: var(--text-secondary); letter-spacing: 0.18em; font-size: 0.7rem; }

.account-id-name {
  margin: 0 0 0.85rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.005em;
}

.account-id-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}
.account-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.account-meta-item svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.account-meta-item span { color: var(--text-primary); }

/* Chip rôle */
.account-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.account-role-chip svg { width: 14px; height: 14px; }
.account-role-chip[data-role="user"] {
  background: rgba(123, 227, 163, 0.12);
  border: 1px solid rgba(123, 227, 163, 0.4);
  color: #b6f5cd;
}
.account-role-chip[data-role="admin"] {
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border: 1px solid transparent;
  color: #1a0a14;
  box-shadow: 0 6px 18px -8px rgba(255, 184, 236, 0.7);
}

/* Actions latérales */
.account-actions-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}
.account-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(123, 227, 163, 0.1);
  border: 1px solid rgba(123, 227, 163, 0.4);
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b6f5cd;
}
.account-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7be3a3;
  box-shadow: 0 0 0 0 rgba(123, 227, 163, 0.6);
  animation: pulseStatusDot 1.6s ease-in-out infinite;
}
.account-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  background: rgba(20, 14, 22, 0.55);
  border: 1px solid rgba(255, 184, 236, 0.25);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.account-logout-btn:hover {
  border-color: var(--accent-magenta);
  background: rgba(255, 61, 127, 0.12);
  color: #ffd0e0;
  transform: translateY(-1px);
}
.account-logout-btn svg { width: 15px; height: 15px; }

.account-infos-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(135deg, rgba(255, 184, 236, 0.16), rgba(201, 49, 104, 0.12));
  border: 1px solid rgba(255, 184, 236, 0.32);
  border-radius: 10px;
  color: #ffd6ed;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.account-infos-btn:hover {
  border-color: var(--accent-pink);
  background: linear-gradient(135deg, rgba(255, 184, 236, 0.24), rgba(201, 49, 104, 0.18));
  transform: translateY(-1px);
}
.account-infos-btn svg { width: 15px; height: 15px; }

.account-staff-docs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  background: rgba(16, 12, 22, 0.65);
  border: 1px solid rgba(255, 184, 236, 0.22);
  border-radius: 10px;
  color: rgba(255, 214, 237, 0.92);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.account-staff-docs-btn:hover {
  border-color: rgba(255, 184, 236, 0.5);
  background: rgba(255, 184, 236, 0.1);
  color: #fff;
  transform: translateY(-1px);
}
.account-staff-docs-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.account-staff-docs-btn[hidden] { display: none !important; }

.account-staff-hub {
  width: min(1020px, 100%);
  margin: 1.25rem auto 0;
}

.account-staff-hub[hidden] { display: none !important; }

.account-staff-hub-inner {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.account-staff-hub-head {
  margin-bottom: 1rem;
}

.account-staff-hub-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: #fff;
}

.account-staff-hub-lead {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  max-width: 52ch;
}

.account-staff-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.account-staff-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 236, 0.28);
  background: rgba(255, 184, 236, 0.08);
  color: #ffd4f4;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.account-staff-hub-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.account-staff-hub-btn:hover {
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(255, 184, 236, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.account-staff-hub-btn--docs {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
}

.account-staff-hub-btn--docs:hover {
  border-color: rgba(255, 184, 236, 0.4);
  background: rgba(255, 184, 236, 0.1);
  color: #fff;
}

.account-staff-hub-btn--parrainage {
  border-color: rgba(255, 184, 236, 0.35);
  background: rgba(255, 184, 236, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.account-staff-hub-btn--parrainage:hover {
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(255, 184, 236, 0.16);
  color: #fff;
}

.account-parrainage { margin-top: 1.25rem; }
.account-parrainage[hidden] { display: none !important; }
.account-parrainage-inner { padding: 1.35rem 1.5rem; }
.account-parrainage-head { margin-bottom: 1rem; }
.account-parrainage-title {
  margin: 0.35rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: #fff;
}
.account-parrainage-block {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 184, 236, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.75rem;
}
.account-parrainage-lead { margin: 0; line-height: 1.55; color: rgba(255,255,255,0.88); }
.account-parrainage-notes,
.account-parrainage-desc,
.account-parrainage-filleuls {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}
.account-parrainage-admin-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: #ffb8ec;
  text-decoration: none;
}
.account-parrainage-admin-link:hover { text-decoration: underline; }

/* =========================================================
   ADMIN PARRAINAGE WL
   ========================================================= */
.admin-parrainage-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.1rem;
}
.admin-parrainage-toolbar-meta {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}
.admin-parrainage-rules { margin-bottom: 1rem; }
.admin-parrainage-rules-inner {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 184, 236, 0.25);
  border-radius: 12px;
  background: rgba(255, 184, 236, 0.06);
}
.admin-parrainage-rules-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: #ffb8ec;
}
.admin-parrainage-rules-list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
  font-size: 0.88rem;
}
.admin-parrainage-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1rem;
  min-height: 420px;
}
@media (max-width: 900px) {
  .admin-parrainage-layout { grid-template-columns: 1fr; }
}
.admin-parrainage-sidebar {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 620px;
}
.admin-parrainage-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  flex: 1;
}
.admin-parrainage-nav-empty,
.admin-parrainage-empty,
.admin-parrainage-loading,
.admin-parrainage-error,
.admin-parrainage-no-filleuls {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.admin-parrainage-nav-btn {
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  color: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.admin-parrainage-nav-btn:hover {
  border-color: rgba(255, 184, 236, 0.35);
  background: rgba(255, 184, 236, 0.08);
}
.admin-parrainage-nav-btn.is-active {
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(255, 184, 236, 0.12);
}
.admin-parrainage-nav-kind {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffb8ec;
  margin-bottom: 0.2rem;
}
.admin-parrainage-nav-name {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.admin-parrainage-nav-meta,
.admin-parrainage-nav-count {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.admin-parrainage-main {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  padding: 1rem 1.1rem;
  overflow-y: auto;
}
.admin-parrainage-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.admin-parrainage-detail-kind {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffb8ec;
  margin-bottom: 0.25rem;
}
.admin-parrainage-detail-head h3 {
  margin: 0;
  font-size: 1.25rem;
}
.admin-parrainage-detail-sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.admin-parrainage-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-start;
}
.admin-parrainage-readonly {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.admin-parrainage-desc {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.admin-parrainage-desc h4,
.admin-parrainage-filleuls-title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
}
.admin-parrainage-desc p { margin: 0; line-height: 1.5; color: rgba(255,255,255,0.82); }
.admin-parrainage-person {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  background: rgba(255,255,255,0.03);
}
.admin-parrainage-person-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffb8ec;
  margin-bottom: 0.45rem;
}
.admin-parrainage-person-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.admin-parrainage-person-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}
.admin-parrainage-person-meta strong {
  display: block;
  margin-bottom: 0.15rem;
}
.admin-parrainage-person-sub {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.admin-parrainage-archived {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}
.admin-parrainage-warn {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  color: #ffb8a8;
  font-size: 0.78rem;
}
.admin-parrainage-missing {
  margin: 0.35rem 0 0;
  color: #ff8a8a;
  font-size: 0.82rem;
}
.admin-parrainage-filleul-notes {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
}
.admin-parrainage-filleul-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}
.admin-parrainage-filleuls-section { margin-top: 0.5rem; }
.admin-parrainage-modal-open { overflow: hidden; }
.admin-parrainage-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-parrainage-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #121018;
  border: 1px solid rgba(255, 184, 236, 0.25);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.1rem;
  color: #fff;
}
.admin-parrainage-modal h3 { margin: 0 0 0.35rem; }
.admin-parrainage-modal-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}
.admin-parrainage-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1.1rem;
}
.admin-parrainage-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.admin-parrainage-field span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
}
.admin-parrainage-field input,
.admin-parrainage-field select,
.admin-parrainage-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 0.55rem 0.65rem;
  font: inherit;
}
.admin-parrainage-field select option {
  background: #121018;
  color: #fff;
}
.admin-parrainage-modal--wide {
  width: min(720px, 100%);
}
.admin-parrainage-modal-warn,
.admin-parrainage-warn-inline {
  color: #ffb8a8;
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}
.admin-parrainage-rules-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.admin-parrainage-modal-schema {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed rgba(255, 184, 236, 0.3);
  border-radius: 14px;
  background: rgba(0,0,0,0.2);
}
.admin-parrainage-modal-slots {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.admin-parrainage-slots-lead {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.admin-parrainage-slot-field {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.admin-parrainage-slot-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
}

/* Schéma parrain → filleuls */
.admin-parrainage-schema {
  margin: 1rem 0;
  padding: 1.25rem 1rem 1rem;
  border: 1px solid rgba(255, 184, 236, 0.22);
  border-radius: 16px;
  background: rgba(255, 184, 236, 0.04);
}
.admin-parrainage-schema-top {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.admin-parrainage-schema-hub {
  display: flex;
  justify-content: center;
  height: 18px;
  position: relative;
}
.admin-parrainage-schema-hub span {
  display: block;
  width: 2px;
  height: 100%;
  background: rgba(255, 184, 236, 0.45);
}
.admin-parrainage-schema-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.admin-parrainage-schema[data-kind="simple"] .admin-parrainage-schema-slots {
  grid-template-columns: 1fr;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
.admin-parrainage-schema-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.admin-parrainage-schema-line {
  display: block;
  width: 2px;
  height: 14px;
  background: rgba(255, 184, 236, 0.35);
}
.admin-parrainage-node {
  width: 100%;
  max-width: 200px;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  text-align: center;
  color: #fff;
}
.admin-parrainage-node--link {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  font: inherit;
}
.admin-parrainage-node--link:hover {
  border-color: rgba(255, 184, 236, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 184, 236, 0.2);
  transform: translateY(-1px);
}
.admin-parrainage-node--empty {
  opacity: 0.55;
  border-style: dashed;
}
.admin-parrainage-node-tag {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffb8ec;
  margin-bottom: 0.35rem;
}
.admin-parrainage-node-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.35rem;
  display: block;
  border: 1px solid rgba(255,255,255,0.15);
}
.admin-parrainage-node-name {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.admin-parrainage-node-sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}
.admin-parrainage-node-empty {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

  min-height: 1.2rem;
  font-size: 0.85rem;
  color: #ffb8a8;
  margin: 0 0 0.5rem;
}
.admin-parrainage-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.staff-docs-page-body {
  background: #08060a;
  min-height: 100vh;
  color: #ffffff;
}

.staff-docs-app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--nav-height) 0 0;
  min-height: 100vh;
  align-items: stretch;
}

.staff-docs-sidebar {
  min-height: calc(100vh - var(--nav-height));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0a0f;
}

.staff-docs-sidebar-panel {
  position: sticky;
  top: var(--nav-height);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: calc(100vh - var(--nav-height));
  min-height: calc(100vh - var(--nav-height));
  padding: 1.25rem 1.1rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.staff-docs-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-docs-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 184, 236, 0.2);
}

.staff-docs-brand-kicker {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb8ec;
}

.staff-docs-brand-title {
  margin: 0.12rem 0 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
}

.staff-docs-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.staff-docs-search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

.staff-docs-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 0.86rem;
  outline: none;
}

.staff-docs-search-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.staff-docs-nav-label {
  margin: 0.15rem 0 0;
  padding: 0 0.35rem;
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.staff-docs-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.staff-docs-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.staff-docs-cat-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.staff-docs-cat-btn-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffd4f4;
  flex-shrink: 0;
}

.staff-docs-cat-btn-icon svg {
  width: 16px;
  height: 16px;
}

.staff-docs-cat-btn-label {
  text-align: left;
}

.staff-docs-cat-btn-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.staff-docs-cat-btn-count {
  min-width: 1.35rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-tech);
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.staff-docs-cat-btn-chevron {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.28);
}

.staff-docs-cat-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 184, 236, 0.22);
  color: #ffffff;
}

.staff-docs-cat-btn.is-active {
  background: linear-gradient(135deg, rgba(255, 184, 236, 0.16), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 184, 236, 0.35);
  color: #ffffff;
  box-shadow: 0 10px 24px -18px rgba(255, 184, 236, 0.35);
}

.staff-docs-cat-btn.is-active .staff-docs-cat-btn-icon {
  background: rgba(255, 184, 236, 0.12);
  border-color: rgba(255, 184, 236, 0.35);
  color: #ffb8ec;
}

.staff-docs-cat-btn.is-active .staff-docs-cat-btn-count {
  background: rgba(255, 184, 236, 0.15);
  color: #ffd4f4;
}

.staff-docs-sidebar-foot {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.staff-docs-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.staff-docs-user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 184, 236, 0.2);
  color: #ffb8ec;
}

.staff-docs-user-avatar svg {
  width: 17px;
  height: 17px;
}

.staff-docs-user-label {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
}

.staff-docs-user-name {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
}

.staff-docs-sidebar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.staff-docs-sidebar-back:hover {
  border-color: rgba(255, 184, 236, 0.35);
  background: rgba(255, 184, 236, 0.1);
  color: #ffffff;
}

.staff-docs-content {
  min-width: 0;
  min-height: calc(100vh - var(--nav-height));
  padding: 1.35rem clamp(1.25rem, 2.5vw, 2.5rem) 2rem;
  background: #08060a;
}

.staff-docs-content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.staff-docs-content-kicker {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb8ec;
}

.staff-docs-content-title {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #ffffff;
}

.staff-docs-content-desc {
  margin: 0.35rem 0 0;
  max-width: 52ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

.staff-docs-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.62rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 236, 0.35);
  background: rgba(255, 184, 236, 0.1);
  color: #ffd4f4;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.staff-docs-add-btn svg {
  width: 15px;
  height: 15px;
}

.staff-docs-add-btn:hover {
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(255, 184, 236, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -16px rgba(255, 184, 236, 0.35);
}

.staff-docs-content-panel {
  padding: 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: calc(100vh - var(--nav-height) - 8.5rem);
}

.staff-docs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.staff-docs-empty {
  margin: 0;
  padding: 1.35rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.55;
}

.staff-docs-resource-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.staff-docs-resource-type {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 236, 0.25);
  background: rgba(255, 184, 236, 0.08);
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb8ec;
}

.staff-docs-resource-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.staff-docs-resource-body {
  flex: 1 1 auto;
  min-height: 84px;
}

.staff-docs-card-text {
  font-size: 0.86rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
}

.staff-docs-card-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 0.72rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 236, 0.45);
  background: linear-gradient(140deg, rgba(255, 184, 236, 0.22) 0%, rgba(201, 49, 104, 0.18) 100%);
  color: #ffd4f4;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.staff-docs-card-link-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.staff-docs-card-link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 184, 236, 0.75);
  background: linear-gradient(140deg, rgba(255, 184, 236, 0.32) 0%, rgba(201, 49, 104, 0.24) 100%);
  color: #fff;
}

.staff-docs-link-option {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-docs-link-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  user-select: none;
}

.staff-docs-link-toggle input {
  accent-color: #ffb8ec;
}

.staff-docs-link-fields {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.staff-docs-link-fields label {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.staff-docs-link-fields input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
}

.staff-docs-link-fields input:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.45);
}

.staff-docs-card-placeholder {
  margin: 0;
  padding: 1rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.staff-docs-card-media {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-docs-resource-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-docs-resource-by {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.48);
}

.staff-docs-resource-by strong {
  color: #ffffff;
  font-weight: 600;
}

.staff-docs-card-edit {
  flex: 0 0 auto;
  padding: 0.3rem 0.58rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 236, 0.28);
  background: transparent;
  color: #ffb8ec;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.staff-docs-card-edit:hover {
  background: rgba(255, 184, 236, 0.1);
}

.staff-docs-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.staff-docs-modal[hidden] { display: none !important; }

.staff-docs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 10, 0.82);
  backdrop-filter: blur(4px);
}

.staff-docs-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(18, 14, 22, 0.98), rgba(8, 6, 10, 0.98));
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.staff-docs-modal.is-open .staff-docs-modal-card {
  opacity: 1;
  transform: translateY(0);
}

.staff-docs-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
}

.staff-docs-modal-title {
  margin: 0 0 1rem;
  padding-right: 2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffffff;
}

.staff-docs-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.staff-docs-type-tab {
  padding: 0.5rem 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.staff-docs-type-tab.is-active {
  border-color: rgba(255, 184, 236, 0.4);
  background: rgba(255, 184, 236, 0.12);
  color: #ffffff;
}

.staff-docs-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.staff-docs-field label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.staff-docs-field input,
.staff-docs-field textarea {
  width: 100%;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  font-size: 0.86rem;
}

.staff-docs-field textarea { resize: vertical; min-height: 110px; }

.staff-docs-field-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.staff-docs-dropzone {
  position: relative;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: #050408;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.staff-docs-dropzone.is-dragover {
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(255, 184, 236, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 236, 0.15);
}

.staff-docs-dropzone.has-file {
  border-color: rgba(255, 184, 236, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.staff-docs-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.staff-docs-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 148px;
  padding: 1.35rem 1rem;
  text-align: center;
  pointer-events: none;
}

.staff-docs-dropzone-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.15rem;
  color: #ffffff;
}

.staff-docs-dropzone-icon svg {
  width: 28px;
  height: 28px;
}

.staff-docs-dropzone-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.staff-docs-dropzone-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.38);
}

.staff-docs-dropzone-file {
  margin: 0.15rem 0 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 184, 236, 0.12);
  border: 1px solid rgba(255, 184, 236, 0.25);
  font-size: 0.74rem;
  color: #ffb8ec;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-docs-form-msg { margin: 0 0 0.75rem; font-size: 0.82rem; }
.staff-docs-form-msg.is-error { color: #ff8fa8; }
.staff-docs-form-msg.is-ok { color: #7be3a3; }

.staff-docs-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

body.staff-docs-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .staff-docs-app {
    grid-template-columns: 1fr;
    padding-top: var(--nav-height);
  }
  .staff-docs-sidebar {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .staff-docs-sidebar-panel {
    position: static;
    height: auto;
    min-height: 0;
    padding: 1rem;
  }
  .staff-docs-content {
    min-height: 0;
    padding: 1rem;
  }
  .staff-docs-content-panel {
    min-height: 0;
  }
  .staff-docs-content-head {
    flex-direction: column;
    align-items: stretch;
  }
  .staff-docs-add-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .staff-docs-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Bouton Whitelist (navbar) */
.flora-nav-icon--wl {
  color: rgba(255, 214, 237, 0.92);
  border-color: rgba(255, 184, 236, 0.28);
  background: rgba(255, 184, 236, 0.06);
}
.flora-nav-icon--wl:hover {
  color: #fff;
  border-color: rgba(255, 184, 236, 0.65);
  background: rgba(255, 61, 127, 0.14);
  box-shadow: 0 10px 28px -12px rgba(255, 184, 236, 0.55);
}
.flora-nav-icon--wl svg .wl-icon-badge {
  fill: rgba(255, 184, 236, 0.14);
  stroke: currentColor;
}
.flora-nav-icon--wl svg .wl-icon-dot {
  fill: var(--accent-pink);
}

.flora-nav-icon--console svg {
  width: 20px;
  height: 20px;
}

.flora-nav-icon--console svg circle {
  fill: #ffd6a8;
}

/* =========================================================
   CONSOLE STAFF - tablette fondateur / dev
   ========================================================= */

.flora-tablet--console {
  width: min(1080px, 100%);
  max-height: min(88vh, 680px);
}

.staff-console-screen {
  padding: 0;
}

.staff-console-layout {
  display: grid;
  grid-template-columns: minmax(190px, 220px) 1fr;
  min-height: min(72vh, 560px);
  max-height: inherit;
}

.staff-console-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 5, 10, 0.55);
}

.staff-console-sidebar-head {
  padding-right: 0.5rem;
}

.staff-console-sidebar-title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.staff-console-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.staff-console-nav-btn {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 14, 0.55);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.staff-console-nav-btn:hover {
  border-color: rgba(255, 184, 236, 0.35);
  color: #fff;
}

.staff-console-nav-btn.is-active {
  border-color: rgba(255, 184, 236, 0.6);
  background: rgba(255, 184, 236, 0.12);
  color: #fff;
}

.staff-console-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.staff-console-main-scroll {
  flex: 1;
  padding-top: clamp(1rem, 2vw, 1.25rem);
}

.staff-console-panel-head {
  margin-bottom: 1rem;
}

.staff-console-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.staff-console-panel-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.staff-console-api-msg {
  margin: 0 0 1rem;
}

.staff-console-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 14, 0.45);
}

.staff-console-empty--inline {
  padding: 0.75rem;
  font-size: 0.82rem;
}

.staff-console-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

.staff-console-staff-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 8, 14, 0.55);
}

.staff-console-staff-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.staff-console-staff-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: #fff;
}

.staff-console-staff-email,
.staff-console-staff-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.staff-console-role-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.staff-console-role-badge--owner {
  color: #ffd6a8;
  background: rgba(255, 180, 80, 0.12);
  border-color: rgba(255, 180, 80, 0.35);
}

.staff-console-role-badge--staff {
  color: #9ef0bc;
  background: rgba(123, 227, 163, 0.12);
  border-color: rgba(123, 227, 163, 0.35);
}

.staff-console-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 236, 0.1);
  border: 1px solid rgba(255, 184, 236, 0.32);
}

.staff-console-avatar--card {
  width: 48px;
  height: 48px;
}

.staff-console-avatar--sm {
  width: 36px;
  height: 36px;
}

.staff-console-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-console-avatar-fallback {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 220, 240, 0.95);
}

.staff-console-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.staff-console-log-row {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 14, 0.55);
}

.staff-console-log-row--permissions_update {
  border-color: rgba(255, 184, 236, 0.22);
}

.staff-console-log-row--user_revoked {
  border-color: rgba(255, 61, 127, 0.28);
}

.staff-console-log-row--wl_accepted {
  border-color: rgba(123, 227, 163, 0.28);
}

.staff-console-log-row--wl_rejected {
  border-color: rgba(255, 61, 127, 0.22);
}

.staff-console-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-console-log-action {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.staff-console-log-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.staff-console-log-detail-body {
  margin-top: 0.45rem;
}

.staff-console-log-target-line {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.staff-console-log-target-line strong {
  color: #fff;
}

.staff-console-log-subline {
  margin: 0.25rem 0 0;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.staff-console-log-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.staff-console-log-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 6, 10, 0.55);
}

.staff-console-log-chip-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.82);
}

.staff-console-log-chip-val {
  font-size: 0.82rem;
  line-height: 1;
}

.staff-console-log-actor {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.staff-console-revoke {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 560px;
}

.staff-console-revoke label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.staff-console-picker {
  position: relative;
  width: 100%;
}

.staff-console-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 6, 10, 0.72);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.staff-console-picker-trigger:hover {
  border-color: rgba(255, 184, 236, 0.4);
}

.staff-console-picker-trigger-inner {
  flex: 1;
  min-width: 0;
}

.staff-console-picker-chevron {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2px solid rgba(255, 255, 255, 0.65);
  transform: rotate(45deg) translateY(-2px);
}

.staff-console-picker-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(280px, 42vh);
  overflow-y: auto;
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 236, 0.35);
  background: rgba(8, 6, 12, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.staff-console-picker-search {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 0.35rem;
  background: rgba(8, 6, 12, 0.96);
}

.staff-console-picker-search .flora-list-search {
  margin-bottom: 0;
}

.staff-console-picker-search .flora-list-search-meta {
  display: none;
}

.staff-console-picker-row,
.staff-console-picker-selected,
.staff-console-picker-placeholder {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.staff-console-picker-row {
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 14, 0.72);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.staff-console-picker-row:hover {
  border-color: rgba(255, 184, 236, 0.35);
}

.staff-console-picker-row.is-selected {
  border-color: rgba(255, 184, 236, 0.6);
  background: rgba(255, 184, 236, 0.1);
}

.staff-console-avatar--picker {
  width: 40px;
  height: 40px;
}

.staff-console-picker-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.staff-console-picker-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: #fff;
}

.staff-console-picker-email {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-all;
}

.staff-console-picker-meta {
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.staff-console-picker-placeholder {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.staff-console-picker-placeholder-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.staff-console-revoke select,
.staff-console-note-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 6, 10, 0.65);
  color: #fff;
  font: inherit;
}

.staff-console-notes-layout {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr;
  gap: 0.85rem;
  align-items: start;
}

.staff-console-wl-restarts-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 0.85rem;
  align-items: start;
}

.staff-console-wl-accounts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(420px, 55vh);
  overflow: auto;
}

.staff-console-wl-account-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 14, 0.55);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.staff-console-wl-account-btn.is-selected {
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(255, 184, 236, 0.1);
}

.staff-console-wl-account-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.staff-console-wl-account-meta strong {
  font-size: 0.78rem;
  color: #fff;
}

.staff-console-wl-account-email {
  font-size: 0.66rem;
  color: var(--text-muted);
  word-break: break-all;
}

.staff-console-wl-account-count {
  font-size: 0.64rem;
  color: var(--text-secondary);
}

.staff-console-wl-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-console-wl-badge--pending {
  color: #ffe0a8;
  background: rgba(255, 184, 80, 0.15);
  border: 1px solid rgba(255, 184, 80, 0.35);
}

.staff-console-wl-badge--accepted {
  color: #b8f5d0;
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.35);
}

.staff-console-wl-badge--rejected {
  color: #ffb8c8;
  background: rgba(255, 80, 120, 0.12);
  border: 1px solid rgba(255, 80, 120, 0.35);
}

.staff-console-wl-badge--none {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-console-wl-history {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: min(420px, 55vh);
  overflow: auto;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 6, 12, 0.45);
}

.staff-console-wl-hist-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 14, 0.55);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.staff-console-wl-hist-item:hover {
  border-color: rgba(255, 184, 236, 0.45);
  background: rgba(255, 184, 236, 0.08);
}

.staff-console-wl-hist-open {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd4f4;
}

.staff-console-wl-hist-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 236, 0.2);
  background: rgba(10, 8, 14, 0.55);
}

.staff-console-wl-hist-meta-row {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: 0.5rem;
  align-items: start;
}

.staff-console-wl-hist-meta-key {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.staff-console-wl-hist-meta-val {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  white-space: pre-wrap;
}

.staff-console-wl-hist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.staff-console-wl-hist-top strong {
  font-size: 0.74rem;
  color: #ffd4f4;
}

.staff-console-wl-hist-top time {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.staff-console-wl-hist-sub {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.staff-console-wl-hist-note {
  margin: 0.3rem 0 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 184, 236, 0.08);
  border-left: 2px solid rgba(255, 184, 236, 0.45);
  border-radius: 4px;
}

.staff-console-wl-hist-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.staff-console-wl-hist-row .staff-console-wl-hist-item {
  flex: 1;
  min-width: 0;
}

.staff-console-wl-hist-restore {
  flex-shrink: 0;
  align-self: center;
  border: 1px solid rgba(134, 239, 172, 0.35);
  border-radius: 8px;
  background: rgba(22, 101, 52, 0.25);
  color: #86efac;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.staff-console-wl-hist-restore:hover {
  background: rgba(22, 101, 52, 0.4);
}

.staff-console-wl-hist-restored {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  color: #86efac;
}

.staff-console-wl-restore {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(134, 239, 172, 0.22);
  background: rgba(20, 83, 45, 0.12);
}

.staff-console-wl-restore-head h4 {
  margin: 0;
  font-size: 0.92rem;
  color: #bbf7d0;
}

.staff-console-wl-restore-head p {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  color: rgba(187, 247, 208, 0.72);
  line-height: 1.45;
}

.staff-console-wl-restore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.staff-console-wl-restore-grid label span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(187, 247, 208, 0.65);
}

.staff-console-wl-restore-grid select,
.staff-console-wl-restore-grid input[type="datetime-local"] {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(134, 239, 172, 0.22);
  background: rgba(0, 0, 0, 0.25);
  color: #ecfdf5;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
}

.staff-console-wl-restore-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: rgba(236, 253, 245, 0.85);
}

.staff-console-wl-restore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.staff-console-wl-restore-msg {
  margin: 0.55rem 0 0;
  font-size: 0.74rem;
  color: rgba(187, 247, 208, 0.78);
}

.staff-console-notes-profiles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.staff-console-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 14, 0.55);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.staff-console-profile-btn.is-selected {
  border-color: rgba(255, 184, 236, 0.6);
  background: rgba(255, 184, 236, 0.1);
}

.staff-console-profile-name {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
}

.staff-console-note-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.staff-console-note-form label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.staff-console-notes-feed {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.staff-console-note {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 14, 0.55);
}

.staff-console-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.staff-console-note-head strong {
  color: #fff;
}

.staff-console-note-head span {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.staff-console-note-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-wrap;
}

.staff-console-note-votes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.staff-console-votes-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.staff-console-vote-btn {
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 6, 10, 0.65);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.staff-console-vote-btn--true.is-active {
  color: #9ef0bc;
  border-color: rgba(123, 227, 163, 0.45);
  background: rgba(123, 227, 163, 0.14);
}

.staff-console-vote-btn--false.is-active {
  color: #ff9fb8;
  border-color: rgba(255, 61, 127, 0.45);
  background: rgba(255, 61, 127, 0.14);
}

@media (max-width: 820px) {
  .staff-console-layout {
    grid-template-columns: 1fr;
  }
  .staff-console-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .staff-console-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .staff-console-notes-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TABLETTE WHITELIST - questionnaire
   ========================================================= */

.flora-tablet--wl {
  width: min(980px, 100%);
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 10px;
  background: #0e0b12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.75);
}

.flora-tablet-screen--wl {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
  background: #0e0b12;
  isolation: isolate;
}

.wl-watermark {
  display: none;
}

.flora-tablet-screen--wl > .flora-tablet-close {
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.1rem);
  right: clamp(0.85rem, 2vw, 1.1rem);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(12, 10, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.flora-tablet-screen--wl > .flora-tablet-close:hover {
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(24, 14, 22, 0.9);
  transform: none;
}

.wl-scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: clamp(0.95rem, 2vw, 1.25rem) clamp(1.1rem, 2.4vw, 1.5rem) 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.45) rgba(255, 255, 255, 0.04);
  contain: layout style paint;
}

.wl-scroll.is-scrolling .wl-section,
.wl-scroll.is-scrolling .wl-case,
.wl-scroll.is-scrolling .wl-case input,
.wl-scroll.is-scrolling .wl-case textarea,
.wl-scroll.is-scrolling .wl-select-trigger {
  transition: none !important;
}

.wl-scroll::-webkit-scrollbar {
  width: 6px;
}

.wl-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.wl-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 184, 236, 0.35), rgba(255, 154, 213, 0.65));
  border-radius: 999px;
}

/* Perf scroll WL : styles plats, pas de blur ni filigranes par case */
.flora-tablet-screen--wl .wl-section,
.flora-tablet-screen--wl .wl-case {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none;
}

.flora-tablet-screen--wl .wl-section {
  background: rgba(16, 12, 20, 0.92);
}

.flora-tablet-screen--wl .wl-case {
  background: rgba(10, 8, 14, 0.72);
}

.flora-tablet-screen--wl .wl-case::after {
  content: none;
  display: none;
}

.flora-tablet-screen--wl .wl-case input[type="text"],
.flora-tablet-screen--wl .wl-case textarea,
.flora-tablet-screen--wl .wl-select-trigger {
  transition: none;
}

.flora-tablet-screen--wl .wl-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}

.flora-tablet-screen--wl .wl-signpad {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(10, 8, 14, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.wl-top {
  text-align: center;
  margin: 0 0 0.85rem;
  padding-right: 2.5rem;
}

.wl-top-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.wl-top-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.wl-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wl-section {
  padding: clamp(0.75rem, 1.6vw, 0.95rem);
  border-radius: 8px;
  background: rgba(16, 12, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wl-section--sign {
  padding-bottom: 1.25rem;
}

.wl-section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.wl-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.wl-case {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 4.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  background: rgba(10, 8, 14, 0.28);
  border: 1px solid var(--rules-tablet-border);
  overflow: visible;
}

.wl-case:has(.wl-select-wrap.is-open) {
  z-index: 40;
}

.wl-section:has(.wl-select-wrap.is-open) {
  position: relative;
  z-index: 20;
}

.wl-case::before {
  display: none;
}

.wl-case--range {
  min-height: 5.5rem;
  justify-content: flex-start;
}

.wl-case--tall {
  min-height: 7.5rem;
}

.wl-case--full {
  grid-column: 1 / -1;
}

.wl-case label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.wl-case-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.wl-case-hint {
  position: relative;
  z-index: 1;
  font-size: 0.66rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.wl-case input[type="text"],
.wl-case textarea,
.wl-select-wrap select {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 6px;
  background: rgba(6, 6, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}

.wl-case textarea {
  min-height: 4.5rem;
  resize: vertical;
  line-height: 1.5;
}

.wl-case input:focus,
.wl-case textarea:focus,
.wl-select-wrap select:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(14, 10, 16, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 184, 236, 0.2);
}

.wl-case input::placeholder,
.wl-case textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.wl-select-wrap {
  position: relative;
  z-index: 1;
}

.wl-select-wrap.is-open {
  z-index: 50;
}

.wl-select-wrap select.wl-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wl-select-trigger {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.72rem 2.2rem 0.72rem 0.85rem;
  border-radius: 6px;
  background: rgba(6, 6, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.wl-select-trigger.is-placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.wl-select-trigger:focus,
.wl-select-wrap.is-open .wl-select-trigger {
  outline: none;
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(14, 10, 16, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 184, 236, 0.2);
}

.wl-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 236, 0.28);
  background: linear-gradient(165deg, rgba(22, 16, 28, 0.98), rgba(10, 8, 14, 0.98));
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.75);
  max-height: 220px;
  overflow: auto;
}

.wl-select-menu.is-floating {
  position: fixed;
  z-index: 1200;
}

.wl-select-option {
  padding: 0.55rem 0.65rem;
  border-radius: 5px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.wl-select-option:hover,
.wl-select-option.is-selected {
  background: rgba(255, 184, 236, 0.18);
  color: #fff;
}

.wl-select-option.is-placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.wl-select-wrap.is-enhanced::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 184, 236, 0.7);
  border-bottom: 2px solid rgba(255, 184, 236, 0.7);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  z-index: 2;
}

.wl-range {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.2rem;
}

.wl-range input[type="range"] {
  flex: 1;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
}

.wl-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, var(--accent-pink));
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.wl-range input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, var(--accent-pink));
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.wl-range-value {
  flex-shrink: 0;
  min-width: 3.5rem;
  text-align: right;
  font-family: var(--font-tech);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--accent-pink);
}

.wl-bg-count {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.wl-bg-count.is-warn { color: #ff8fb0; }
.wl-bg-count.is-ok { color: #7be3a3; }

.wl-bg-link-block {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255, 184, 236, 0.22);
}

.wl-bg-link-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.wl-bg-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.wl-bg-link-input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: var(--touch-min, 44px);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.wl-bg-link-input:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 184, 236, 0.25);
}

.wl-bg-link-clear {
  margin-top: 0.55rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-pink);
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  cursor: pointer;
}

.wl-bg-external-link {
  color: var(--accent-pink);
  word-break: break-all;
}

.wl-bg-external-link:hover {
  color: #fff;
}

.wl-sign-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.flora-tablet--wl .flora-tablet-required {
  margin-left: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: #ffd0e0;
  background: rgba(255, 61, 127, 0.22);
  border: 1px solid rgba(255, 61, 127, 0.55);
  vertical-align: middle;
}

.flora-tablet--wl .flora-tablet-btn {
  border-radius: 6px;
}

@media (max-width: 760px) {
  .wl-section-grid {
    grid-template-columns: 1fr;
  }
  .wl-top {
    padding-right: 0;
  }
}

/* ----- WL : bannière formulaire & lecture ----- */
.wl-form-banner {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  background: rgba(255, 184, 236, 0.12);
  border: 1px solid rgba(255, 184, 236, 0.35);
  color: #ffd6ed;
  font-size: 0.84rem;
  line-height: 1.45;
}

.wl-read-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.wl-read-value {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  word-break: break-word;
}

.wl-read-value--block {
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  background: rgba(6, 6, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: pre-wrap;
}

/* ----- Suivi compte ----- */
.account-wl-track {
  width: min(1020px, 100%);
  margin: 1.25rem auto 0;
}

.account-wl-track-inner {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.account-wl-track-head {
  margin-bottom: 1rem;
}

.account-wl-track-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: #fff;
}

.account-wl-track-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.wl-track-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wl-track-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(10, 8, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wl-track-key {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.wl-track-val {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.wl-status--pending { color: #ffd6a8; }
.wl-status--accepted { color: #9ef0bc; }
.wl-status--rejected { color: #f4c2d6; }

.wl-track-staff-msg {
  margin-top: 0.5rem;
}

.wl-track-row--status .wl-track-val {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wl-track-row--cooldown .wl-track-val {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.wl-cooldown-note {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(248, 222, 235, 0.92);
  background: rgba(255, 184, 236, 0.08);
  border: 1px solid rgba(255, 61, 127, 0.28);
}

.wl-countdown {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.7rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.wl-countdown strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wl-countdown--active {
  color: #f7dcec;
  background: rgba(255, 184, 236, 0.1);
  border-color: rgba(255, 184, 236, 0.34);
}

.wl-countdown--done {
  color: #9ef0bc;
  background: rgba(123, 227, 163, 0.12);
  border-color: rgba(123, 227, 163, 0.35);
}

/* ---------- Textes d'exemple en rose (formulaire WL) ---------- */
.wl-form .wl-case-lead {
  color: rgba(255, 154, 213, 0.85);
}
.wl-form input::placeholder,
.wl-form textarea::placeholder {
  color: rgba(255, 154, 213, 0.5);
}

/* ---------- En-tête WL avec logo ---------- */
.wl-top--logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.wl-top-sep {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent-pink);
  text-shadow: 0 0 10px rgba(255, 184, 236, 0.55);
  opacity: 0.85;
  flex-shrink: 0;
}
.wl-top-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 184, 236, 0.5));
}

/* ---------- Pad de signature (liquid glass) ---------- */
.wl-signpad-case label { display: block; }

.wl-signpad {
  position: relative;
  margin-top: 0.6rem;
  height: 172px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 236, 0.22);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(0, 0, 0, 0.1) 100%);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.12),
    inset 0 -8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  touch-action: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wl-signpad--active {
  border-color: rgba(255, 184, 236, 0.5);
  box-shadow:
    inset 0 0 32px rgba(255, 184, 236, 0.08),
    inset 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.wl-signpad--signed { border-color: rgba(158, 240, 188, 0.4); }

.wl-signpad-canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 172px;
  cursor: crosshair;
}

.wl-signpad-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 154, 213, 0.72);
  border: 1px solid rgba(255, 184, 236, 0.25);
  background: rgba(255, 184, 236, 0.06);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.wl-signpad--active .wl-signpad-hint,
.wl-signpad--signed .wl-signpad-hint { opacity: 0; }

.wl-signpad-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("https://i.imgur.com/Uzxlzj3.png") center / 90px no-repeat;
  opacity: 0.06;
}

.wl-signpad-actions { margin-top: 0.55rem; }

.flora-tablet-btn--mini {
  padding: 0.38rem 0.85rem;
  font-size: 0.75rem;
}

/* Signature vue par le staff */
.wl-signature-view {
  margin-top: 0.4rem;
  padding: 0.85rem;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 184, 236, 0.22);
}
.wl-signature-view img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* ----- Recherche listes admin / console ----- */
.flora-list-search {
  margin-bottom: 0.85rem;
}

.flora-list-search-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.85);
}

.flora-list-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.flora-list-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: rgba(255, 184, 236, 0.75);
  pointer-events: none;
}

.flora-list-search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.flora-list-search-input {
  width: 100%;
  padding: 0.72rem 2.4rem 0.72rem 2.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 236, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 184, 236, 0.08), rgba(8, 6, 12, 0.82));
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.flora-list-search-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.flora-list-search-input:hover {
  border-color: rgba(255, 184, 236, 0.42);
}

.flora-list-search-input:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 184, 236, 0.14);
  background: linear-gradient(160deg, rgba(255, 184, 236, 0.12), rgba(8, 6, 12, 0.88));
}

.flora-list-search-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.flora-list-search-clear svg {
  width: 0.85rem;
  height: 0.85rem;
}

.flora-list-search-clear:hover {
  background: rgba(255, 184, 236, 0.18);
  color: #fff;
}

.flora-list-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-top: 0.4rem;
}

.flora-list-search-count {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 220, 240, 0.92);
}

.flora-list-search-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.flora-list-search-empty {
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: rgba(255, 200, 210, 0.92);
  background: rgba(255, 61, 127, 0.1);
  border: 1px solid rgba(255, 61, 127, 0.25);
}

.flora-list-search-item--hidden {
  display: none !important;
}

.admin-access-list-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ----- Admin WL ----- */
.admin-showcase-card__visual--wl {
  background: linear-gradient(145deg, rgba(255, 184, 236, 0.14), rgba(120, 40, 80, 0.2));
}

.admin-wl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.admin-wl-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-wl-view-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 8, 14, 0.55);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.admin-wl-view-tab:hover {
  border-color: rgba(255, 184, 236, 0.35);
  color: #fff;
}

.admin-wl-view-tab.is-active {
  border-color: rgba(255, 184, 236, 0.65);
  background: rgba(255, 184, 236, 0.12);
  color: #fff;
}

.admin-wl-archive-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-wl-archive-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-wl-archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-wl-archive-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.admin-wl-archive-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-wl-empty--section {
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
}

.admin-wl-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-wl-empty {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 14, 0.45);
}

.wl-admin-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  background: linear-gradient(170deg, rgba(18, 14, 22, 0.78) 0%, rgba(12, 10, 16, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.wl-admin-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.wl-admin-row-lead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.wl-admin-row-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 236, 0.1);
  border: 1px solid rgba(255, 184, 236, 0.32);
  box-shadow: 0 0 0 2px rgba(255, 184, 236, 0.08);
}

.wl-admin-row-avatar--detail {
  width: 52px;
  height: 52px;
}

.wl-admin-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wl-admin-row-avatar-fallback {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 220, 240, 0.95);
}

.wl-top--admin-detail .wl-top-admin-lead {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wl-top--admin-detail .wl-top-admin-text {
  min-width: 0;
}

.wl-admin-row-foot {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wl-dossier-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.wl-dossier-tag--ok {
  color: #9ef0bc;
  background: rgba(123, 227, 163, 0.14);
  border-color: rgba(123, 227, 163, 0.45);
}

.wl-dossier-tag--nok {
  color: #f4c2d6;
  background: rgba(255, 184, 236, 0.12);
  border-color: rgba(255, 184, 236, 0.4);
}

.wl-dossier-tag--pending {
  color: #ffd6a8;
  background: rgba(255, 180, 80, 0.12);
  border-color: rgba(255, 180, 80, 0.35);
}

.wl-admin-row-comment {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  background: rgba(6, 6, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-wrap;
  word-break: break-word;
}

.wl-admin-row-comment--empty {
  color: var(--text-muted);
  font-style: italic;
}

.wl-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.45rem;
}

.wl-track-val--dossier {
  display: flex;
  align-items: center;
}

.wl-admin-row:hover {
  border-color: rgba(255, 184, 236, 0.35);
  transform: translateY(-1px);
}

.wl-admin-row.is-selected {
  border-color: rgba(255, 184, 236, 0.65);
  background: linear-gradient(170deg, rgba(28, 16, 26, 0.88) 0%, rgba(16, 10, 18, 0.82) 100%);
  box-shadow: 0 0 0 1px rgba(255, 184, 236, 0.15);
}

.wl-admin-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.wl-admin-row-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
}

.wl-admin-row-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.wl-admin-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.wl-admin-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.wl-admin-badge--pending {
  color: #ffd6a8;
  background: rgba(255, 180, 80, 0.12);
  border-color: rgba(255, 180, 80, 0.35);
}

.wl-admin-badge--accepted {
  color: #9ef0bc;
  background: rgba(123, 227, 163, 0.12);
  border-color: rgba(123, 227, 163, 0.35);
}

.wl-admin-badge--rejected {
  color: #ff9fb8;
  background: rgba(255, 61, 127, 0.12);
  border-color: rgba(255, 61, 127, 0.35);
}

.wl-admin-row-date,
.wl-admin-row-opened {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.flora-tablet-btn--danger {
  background: rgba(255, 61, 127, 0.16);
  border: 1px solid rgba(255, 61, 127, 0.45);
  color: #ffd0e0;
}

.flora-tablet-btn--danger:hover {
  background: rgba(255, 61, 127, 0.28);
  border-color: rgba(255, 61, 127, 0.7);
  color: #fff;
  transform: translateY(-1px);
}

.flora-tablet-btn--danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 720px) {
  .wl-admin-row-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .wl-admin-row-lead {
    width: 100%;
  }
  .wl-admin-row-foot {
    flex-direction: column;
  }
  .wl-admin-row-meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .wl-track-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TABLETTE "MES INFOS" - modale style Flora (glass)
   ========================================================= */

.flora-tablet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.flora-tablet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 12, 0.38);
  opacity: 0;
  transition: opacity 0.24s ease;
}

#wl-modal,
#staff-console-modal {
  z-index: 11000;
}

#wl-modal .flora-tablet-backdrop,
#staff-console-modal .flora-tablet-backdrop {
  background: rgba(4, 3, 8, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.flora-wl-open,
body.flora-tablet-open {
  overflow: hidden;
}

body.flora-tablet-open.flora-home-bg {
  background: #0a080c;
}

body.flora-tablet-open.flora-home-bg .flora-home-video {
  opacity: 0.22;
  visibility: visible;
}

body.flora-tablet-open.flora-home-bg .flora-home-video__shade {
  background:
    linear-gradient(180deg, rgba(8, 4, 10, 0.55) 0%, rgba(8, 4, 10, 0.72) 45%, rgba(8, 4, 10, 0.88) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .flora-home-video__el {
    display: none;
  }
}

body.flora-tablet-open.flora-home-bg::before {
  opacity: 0.04;
  visibility: visible;
}

body.flora-tablet-open.flora-home-bg .flora-welcome--home,
body.flora-tablet-open.flora-home-bg .flora-footer {
  visibility: hidden;
  pointer-events: none;
}

#staff-wl-hist-modal {
  z-index: 1300;
}

#staff-wl-hist-modal .flora-tablet-backdrop {
  background: rgba(5, 4, 8, 0.52);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
}

#staff-wl-hist-modal .flora-tablet {
  background: #0b0910;
  border: 1px solid rgba(255, 184, 236, 0.28);
  box-shadow:
    0 28px 64px -20px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#staff-wl-hist-modal .flora-tablet-screen {
  background: #0b0910;
}

body.flora-wl-hist-open {
  overflow: hidden;
}

.flora-tablet-overlay.is-open .flora-tablet-backdrop { opacity: 1; }

.flora-tablet {
  position: relative;
  width: min(940px, 100%);
  max-width: none;
  max-height: min(86vh, 620px);
  padding: 0;
  overflow: hidden;
  /* même style que la carte accueil (.flora-join-card) */
  background: linear-gradient(170deg, rgba(20, 16, 24, 0.32) 0%, rgba(12, 10, 18, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow:
    0 24px 50px -28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  animation: none;
}

.flora-tablet-overlay.is-open .flora-tablet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.flora-tablet-screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  max-height: inherit;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

/* ----- Panneau gauche (identité) ----- */
.flora-tablet-aside {
  flex: 0 0 38%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.3rem, 2.5vw, 1.75rem);
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.flora-tablet-aside-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.flora-tablet-aside-mail {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.flora-tablet-aside-mail-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.flora-tablet-aside-mail input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(8, 8, 14, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  opacity: 0.85;
  cursor: not-allowed;
}

/* ----- Panneau droit (formulaire) ----- */
.flora-tablet-main {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.flora-tablet-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.flora-tablet-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 184, 236, 0.3));
}

.flora-tablet-titles { display: flex; flex-direction: column; gap: 0.15rem; }

.flora-tablet-eyebrow {
  font-family: var(--font-tech, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-pink);
  text-shadow: 0 0 8px rgba(255, 184, 236, 0.4);
}

.flora-tablet-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.04em;
}

.flora-tablet-close {
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.15rem);
  right: clamp(0.85rem, 2vw, 1.15rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(8, 8, 14, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.flora-tablet-close:hover {
  border-color: rgba(255, 184, 236, 0.65);
  background: rgba(30, 12, 22, 0.42);
  color: #fff;
  transform: translateY(-2px);
}
.flora-tablet-close svg { width: 18px; height: 18px; }

.flora-tablet-body {
  flex: 1;
  padding: clamp(1.4rem, 3vw, 2rem);
  padding-top: clamp(2.4rem, 4vw, 3rem);
  overflow-y: auto;
}

.flora-tablet-form { display: flex; flex-direction: column; gap: 1.05rem; }

.flora-tablet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.flora-tablet-field { display: flex; flex-direction: column; gap: 0.4rem; }

.flora-tablet-field label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.flora-tablet-required {
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #ffd0e0;
  background: rgba(255, 61, 127, 0.18);
  border: 1px solid rgba(255, 61, 127, 0.4);
}

.flora-tablet-field input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(8, 8, 14, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.flora-tablet-field input::placeholder { color: rgba(255, 255, 255, 0.35); }
.flora-tablet-field input:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.65);
  background: rgba(30, 12, 22, 0.42);
  box-shadow: 0 14px 32px -16px rgba(255, 184, 236, 0.35);
}
.flora-tablet-field input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.flora-tablet-hint {
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

.flora-tablet-field--guard input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 14, 0.32);
}
.flora-tablet-field--guard input:focus {
  border-color: rgba(255, 184, 236, 0.65);
}

.flora-tablet-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0;
}
.flora-tablet-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
.flora-tablet-section-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-pink);
  white-space: nowrap;
}

.flora-tablet-msg {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.85rem;
}
.flora-tablet-msg.is-error { color: #ff8fb0; }
.flora-tablet-msg.is-ok { color: #7be3a3; }

.flora-tablet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.flora-tablet-btn {
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.flora-tablet-btn--ghost {
  background: rgba(8, 8, 14, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}
.flora-tablet-btn--ghost:hover {
  border-color: rgba(255, 184, 236, 0.65);
  background: rgba(30, 12, 22, 0.42);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(255, 184, 236, 0.55);
}
.flora-tablet-btn--primary {
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border: 1px solid rgba(255, 184, 236, 0.95);
  color: #1a0a14;
  box-shadow:
    0 14px 32px -16px rgba(255, 184, 236, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.flora-tablet-btn--primary:hover {
  background: linear-gradient(140deg, #ffd4f4 0%, var(--accent-pink) 100%);
  color: #0a0510;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px -16px rgba(255, 184, 236, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.flora-tablet-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 760px) {
  .flora-tablet { max-height: 90vh; }
  .flora-tablet-screen { flex-direction: column; }
  .flora-tablet-aside {
    flex: 0 0 auto;
    max-width: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    gap: 0.7rem;
    padding: 1.2rem 1.3rem;
  }
  .flora-tablet-aside-lead { display: none; }
  .flora-tablet-aside-mail { margin-top: 0; }
  .flora-tablet-body { padding-top: 1.4rem; }
}

@media (max-width: 480px) {
  .flora-tablet-grid { grid-template-columns: 1fr; }
}

/* ============== 2) STATS ============== */
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
}
.account-stat {
  position: relative;
  padding: 1.3rem 1.4rem 1.4rem;
  background:
    linear-gradient(135deg, rgba(28, 18, 32, 0.9) 0%, rgba(18, 12, 22, 0.9) 100%);
  border: 1px solid rgba(255, 184, 236, 0.15);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.account-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-rose));
  transition: width 0.35s ease;
}
.account-stat:hover {
  border-color: rgba(255, 184, 236, 0.35);
  transform: translateY(-2px);
}
.account-stat:hover::before { width: 100%; }
.account-stat-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 236, 0.1);
  border: 1px solid rgba(255, 184, 236, 0.25);
  border-radius: 10px;
  color: var(--accent-pink);
  margin-bottom: 0.25rem;
}
.account-stat-icon svg { width: 18px; height: 18px; }
.account-stat-num {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.account-stat-num .unit {
  font-size: 0.65em;
  color: var(--accent-pink);
  margin-left: 2px;
}
.account-stat-label {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.account-stat-trend {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.account-stat-trend--up { color: #7be3a3; }

/* ============== 3) GRILLE 2 COLONNES ============== */
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1rem, 1.6vw, 1.4rem);
}
.account-col-side {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.6vw, 1.4rem);
}

.account-block {
  padding: 1.6rem 1.6rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(28, 18, 32, 0.9) 0%, rgba(18, 12, 22, 0.9) 100%);
  border: 1px solid rgba(255, 184, 236, 0.15);
  border-radius: 14px;
}
.account-block-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 184, 236, 0.18);
}
.account-block-eyebrow {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-pink);
}
.account-block-head h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

/* Timeline */
.account-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.account-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 184, 236, 0.45), rgba(255, 184, 236, 0.05));
}
.account-timeline li {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.2rem;
}
.account-timeline li:last-child { padding-bottom: 0; }
.account-timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(28, 18, 32, 0.95);
  border: 2px solid var(--accent-pink);
  box-shadow: 0 0 0 4px rgba(255, 184, 236, 0.08);
}
.account-timeline-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.account-timeline-body p {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.account-timeline-date {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Quicklinks */
.account-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.account-quicklink {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(20, 14, 22, 0.55);
  border: 1px solid rgba(255, 184, 236, 0.16);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.account-quicklink:hover {
  border-color: var(--accent-pink);
  background: rgba(40, 18, 32, 0.7);
  transform: translateX(2px);
}
.account-quicklink-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 236, 0.1);
  border: 1px solid rgba(255, 184, 236, 0.25);
  border-radius: 8px;
  color: var(--accent-pink);
  flex-shrink: 0;
}
.account-quicklink-icon svg { width: 18px; height: 18px; }
.account-quicklink-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.account-quicklink-text strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.account-quicklink-text small {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.account-quicklink-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}
.account-quicklink:hover .account-quicklink-arrow {
  color: var(--accent-pink);
  transform: translateX(3px);
}

/* Bloc Discord */
.account-block--note {
  background: linear-gradient(135deg, rgba(50, 30, 56, 0.78) 0%, rgba(28, 16, 36, 0.78) 100%);
  border: 1px solid rgba(255, 184, 236, 0.22);
}
.account-note-text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.account-note-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border: none;
  border-radius: 10px;
  color: #1a0a14;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.22s ease;
  box-shadow: 0 12px 32px -14px rgba(255, 184, 236, 0.6);
}
.account-note-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(255, 184, 236, 0.8);
}
.account-note-btn svg { width: 15px; height: 15px; }

/* ============== LOCKED STATE ============== */
.account-locked {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height) - 80px);
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-locked-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(28, 18, 32, 0.92) 0%, rgba(18, 12, 22, 0.92) 100%);
  border: 1px solid rgba(255, 184, 236, 0.18);
  border-radius: 18px;
}
.account-locked-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 236, 0.1);
  border: 1px solid rgba(255, 184, 236, 0.3);
  border-radius: 16px;
  color: var(--accent-pink);
}
.account-locked-icon svg { width: 28px; height: 28px; }
.account-locked-eyebrow {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 0.6rem;
}
.account-locked-card h2 {
  margin: 0 0 0.6rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
}
.account-locked-card p {
  margin: 0 0 1.6rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.account-locked-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  border-radius: 10px;
  color: #1a0a14;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.22s ease;
  box-shadow: 0 14px 36px -14px rgba(255, 184, 236, 0.6);
}
.account-locked-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(255, 184, 236, 0.8);
}
.account-locked-btn svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.account-locked-btn:hover svg { transform: translateX(3px); }

/* ============== Responsive ============== */
@media (max-width: 1100px) {
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .account-card-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .account-actions-side { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .account-stats { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .ac-card-watermark { display: none; }
}
@media (max-width: 460px) {
  .account-stats { grid-template-columns: 1fr; }
}


/* =========================================================
   COMPTE - Avatar photo + upload
   ========================================================= */

.account-avatar { position: relative; }
.account-avatar.has-photo {
  background: rgba(20, 14, 22, 0.6);
}

.account-avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  z-index: 1;
}

/* Bouton edit en bas à droite de l'avatar */
.account-avatar-edit {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  color: #1a0a14;
  border: 2px solid var(--bg-page);
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(255, 184, 236, 0.7);
  transition: transform 0.18s ease, box-shadow 0.22s ease, opacity 0.18s ease;
  z-index: 3;
  padding: 0;
}
.account-avatar-edit:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 12px 26px -8px rgba(255, 184, 236, 0.9);
}
.account-avatar-edit:disabled { opacity: 0.6; cursor: progress; }
.account-avatar-edit svg { width: 16px; height: 16px; }

/* Spinner pendant l'upload */
.account-avatar-spinner {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  background: rgba(10, 8, 14, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.account-avatar-spinner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 184, 236, 0.25);
  border-top-color: var(--accent-pink);
  animation: avatarSpin 0.9s linear infinite;
}
@keyframes avatarSpin {
  to { transform: rotate(360deg); }
}
.account-avatar.is-busy .account-avatar-edit svg { opacity: 0.5; }

/* La photo recouvre les initiales : on les masque quand has-photo */
.account-avatar.has-photo .account-avatar-initials { display: none; }


/* =========================================================
   NAVBAR - Photo de profil dans l'icône Mon Compte
   ========================================================= */

.flora-nav-icon--account { position: relative; overflow: hidden; }
.flora-nav-icon-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}
.flora-nav-icon--account.has-photo { color: transparent; }
.flora-nav-icon--account.has-photo .flora-nav-icon-dot {
  z-index: 2;
}

/* =========================================================
   ADMIN HUB + GESTION DES ACCÈS
   ========================================================= */

.admin-main {
  --admin-blush: #e4b8bc;
  --admin-blush-light: #f3dfe2;
  --admin-blush-muted: #c9a8ad;
  --admin-blush-dim: rgba(228, 184, 188, 0.1);
  --admin-blush-border: rgba(210, 180, 185, 0.22);
  --admin-blush-glow: rgba(228, 184, 188, 0.14);
  max-width: none;
  width: 100%;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  padding-right: clamp(1rem, 2.5vw, 2rem);
}

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Encadré unique semi-transparent - pleine largeur */
.admin-frame {
  position: relative;
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    170deg,
    rgba(42, 36, 48, 0.96) 0%,
    rgba(26, 22, 30, 0.96) 100%
  );
  box-shadow:
    0 24px 50px -28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
  --admin-showcase-cut: #242030;
}

/* En-tête centré */
.admin-head {
  text-align: center;
  padding-bottom: 0.25rem;
}

.admin-head-logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.admin-head-logo img {
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(228, 184, 188, 0.25));
  animation: floraJoinLogoFloat 5s ease-in-out infinite;
}

.admin-head-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--admin-blush-light);
  background: var(--admin-blush-dim);
  border: 1px solid var(--admin-blush-border);
  border-radius: 999px;
}

.admin-head-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.92);
}

.admin-head-title em {
  font-style: normal;
  color: var(--admin-blush-light);
}

.admin-head-greeting {
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.admin-hub-divider {
  height: 1px;
  margin: 1.5rem 0 1.35rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--admin-blush-border),
    transparent
  );
}

/* Titres avec fleur (sobre) */
.admin-title-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.admin-title-frame-flower {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

.admin-title-frame-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.admin-title-frame--compact {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--admin-blush-border);
}

.admin-title-frame--compact .admin-title-frame-text {
  font-size: 0.8rem;
}

.admin-title-frame--compact .admin-title-frame-flower {
  width: 15px;
  height: 15px;
}

.admin-title-frame--section {
  margin: 0 auto;
}

.admin-title-frame--section .admin-title-frame-text {
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  letter-spacing: 0.04em;
  color: var(--admin-blush-light);
}

.admin-title-frame--section .admin-title-frame-flower {
  width: 22px;
  height: 22px;
}

/* Grille cartes showcase - 3 colonnes larges sur desktop */
.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  width: 100%;
}

.admin-showcase-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

button.admin-showcase-card,
a.admin-showcase-card {
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  color: inherit;
}

.admin-showcase-card__inner {
  position: relative;
  width: 100%;
  height: clamp(250px, 20vw, 320px);
  background: transparent;
  border-radius: 1.25rem;
  overflow: hidden;
}

.admin-showcase-card__box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 236, 0.16);
  background: linear-gradient(160deg, rgba(30, 26, 38, 0.5) 0%, rgba(16, 14, 22, 0.4) 100%);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.admin-showcase-card__visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem 3.75rem;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
}

.admin-showcase-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 65% at 50% 30%,
    rgba(243, 223, 226, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.admin-showcase-card__visual--access { --admin-card-accent: #f0d8db; }
.admin-showcase-card__visual--planning { --admin-card-accent: #e9d2f0; }
.admin-showcase-card__visual--parrainage { --admin-card-accent: #f0dce8; }
.admin-showcase-card__visual--times { --admin-card-accent: #ecd4d8; }
.admin-showcase-card__visual--team { --admin-card-accent: #f2dce0; }
.admin-showcase-card__visual--rules { --admin-card-accent: #e8d0d4; }
.admin-showcase-card__visual--stats { --admin-card-accent: #e6d6dc; }
.admin-showcase-card__visual--settings { --admin-card-accent: #eedee2; }

.admin-showcase-card__icon-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(88px, 10vw, 104px);
  height: clamp(64px, 8vw, 76px);
  border-radius: 12px;
  background: rgba(255, 250, 251, 0.06);
  border: 1px solid rgba(243, 223, 226, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 24px -12px rgba(0, 0, 0, 0.35);
  color: var(--admin-card-accent, var(--admin-blush-light));
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.admin-showcase-card__icon {
  width: 42%;
  height: 42%;
  opacity: 0.92;
  transition: transform 0.3s ease;
}

.admin-showcase-card__label {
  position: absolute;
  z-index: 1;
  left: 1.15rem;
  bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.admin-showcase-card__label::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 2px;
  margin-top: 0.35rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--admin-card-accent, var(--admin-blush)), transparent);
  opacity: 0.85;
}

.admin-showcase-card__soon {
  position: absolute;
  z-index: 1;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(36, 32, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Bouton coin découpé + logo lotus */
.admin-showcase-card__action {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 3.4rem;
  height: 3.4rem;
  background: transparent;
  z-index: 2;
}

.admin-showcase-card__action::before,
.admin-showcase-card__action::after {
  display: none !important;
}

.admin-showcase-card__action::before {
  position: absolute;
  content: "";
  bottom: 0.375rem;
  left: -1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  border-bottom-right-radius: 1.25rem;
  box-shadow: 0.313rem 0.313rem 0 0.313rem var(--admin-showcase-cut);
}

.admin-showcase-card__action::after {
  position: absolute;
  content: "";
  top: -1.25rem;
  right: 0.375rem;
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  border-bottom-right-radius: 1.25rem;
  box-shadow: 0.313rem 0.313rem 0 0.313rem var(--admin-showcase-cut);
}

.admin-showcase-card__action-btn {
  position: absolute;
  inset: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(255, 250, 251, 0.92) 0%,
    rgba(235, 210, 214, 0.85) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 4px 14px -4px rgba(228, 184, 188, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.admin-showcase-card__action-btn img {
  width: 54%;
  height: 54%;
  object-fit: contain;
}

.admin-showcase-card:hover:not(.is-disabled) .admin-showcase-card__box {
  border-color: rgba(243, 223, 226, 0.35);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.4);
}

.admin-showcase-card:hover:not(.is-disabled) .admin-showcase-card__icon-wrap {
  transform: translateY(-2px);
  border-color: rgba(243, 223, 226, 0.45);
  background: rgba(255, 250, 251, 0.1);
}

.admin-showcase-card:hover:not(.is-disabled) .admin-showcase-card__icon {
  transform: scale(1.05);
}

.admin-showcase-card:hover:not(.is-disabled) .admin-showcase-card__action-btn {
  transform: scale(1.04);
  box-shadow:
    0 8px 20px -6px rgba(228, 184, 188, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.admin-showcase-card.is-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.52;
}

.admin-showcase-card.is-disabled .admin-showcase-card__icon-wrap {
  opacity: 0.7;
}

.admin-showcase-card.is-disabled .admin-showcase-card__action-btn {
  background: linear-gradient(
    160deg,
    rgba(243, 223, 226, 0.4) 0%,
    rgba(210, 180, 186, 0.35) 100%
  );
}

/* ---------- Planning Staff - grille Excel + drag ---------- */
.admin-planning {
  width: 100%;
  max-width: none;
  margin: 0;
}

.admin-planning-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.admin-planning-week {
  flex: 1 1 auto;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.admin-planning-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.admin-planning-pool {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 236, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(12, 10, 18, 0.58));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-planning-pool-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.admin-planning-pool-hint {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.admin-planning-recruiters {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: min(52vh, 480px);
  overflow: auto;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.45) rgba(255, 255, 255, 0.05);
}

.admin-planning-recruiters::-webkit-scrollbar {
  width: 8px;
}

.admin-planning-recruiters::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.admin-planning-recruiters::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 184, 236, 0.35), rgba(255, 154, 213, 0.6));
  border-radius: 999px;
}

.admin-planning-pool-empty {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.admin-planning-rec {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 236, 0.2);
  background: rgba(8, 6, 12, 0.45);
  cursor: grab;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-planning-rec:hover {
  border-color: rgba(255, 184, 236, 0.45);
  transform: translateY(-1px);
}

.admin-planning-rec.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.admin-planning-rec-photo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 184, 236, 0.25);
}

.admin-planning-rec-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.admin-planning-rec-name {
  font-size: 0.82rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-planning-rec-role {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.admin-planning-rec-mail {
  font-size: 0.62rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-planning-rec-grip {
  color: rgba(255, 184, 236, 0.45);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.admin-planning-excel-wrap {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 6, 10, 0.4);
}

.admin-planning-excel {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
}

.admin-planning-day {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.admin-planning-day:last-child {
  border-right: none;
}

.admin-planning-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 184, 236, 0.08);
}

.admin-planning-day-name {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.admin-planning-day-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.admin-planning-day-check {
  margin-left: auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.65rem;
  color: #7be3a3;
  background: rgba(123, 227, 163, 0.12);
  border: 1px solid rgba(123, 227, 163, 0.35);
}

.admin-planning-day.is-past {
  background: rgba(255, 255, 255, 0.015);
  opacity: 0.72;
}

.admin-planning-day.is-past .admin-planning-day-head {
  background: rgba(120, 120, 130, 0.12);
}

.admin-planning-day.is-past .admin-planning-day-name,
.admin-planning-day.is-past .admin-planning-day-date {
  color: rgba(255, 255, 255, 0.45);
}

.admin-planning-day-body {
  flex: 1;
  min-height: 0;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.45) rgba(255, 255, 255, 0.04);
}

.admin-planning-day-body::-webkit-scrollbar {
  width: 7px;
}

.admin-planning-day-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.admin-planning-day-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 184, 236, 0.35), rgba(255, 154, 213, 0.65));
  border-radius: 999px;
}

.admin-planning-day-empty {
  margin: auto 0;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  padding: 0.65rem;
}

.admin-planning-day-drop {
  margin: 0.4rem;
  padding: 0.55rem 0.45rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 184, 236, 0.32);
  text-align: center;
  font-family: var(--font-tech);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.72);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-planning-day-drop.is-over {
  background: rgba(255, 184, 236, 0.12);
  border-color: rgba(255, 184, 236, 0.55);
  color: #fff;
}

.admin-planning-slot {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 236, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(8, 6, 12, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-planning-slot-top {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.admin-planning-slot-photo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 184, 236, 0.28);
}

.admin-planning-slot-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.admin-planning-slot-meta strong {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  word-break: break-word;
}

.admin-planning-slot-role {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.admin-planning-slot-time-label {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.72);
}

.admin-planning-slot-time-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 184, 236, 0.28);
  background: rgba(6, 5, 10, 0.75);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  word-break: break-word;
}

.admin-planning-slot-time-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.admin-planning-slot-time-input:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 184, 236, 0.12);
}

.admin-planning-slot-del {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(226, 60, 60, 0.88);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.admin-planning-slot-del:hover {
  transform: scale(1.06);
  background: rgba(240, 70, 70, 0.95);
}

body.admin-planning-pop-open {
  overflow: hidden;
}

.admin-planning-time-pop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.admin-planning-time-pop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-planning-time-pop-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 1.65rem 1.75rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 184, 236, 0.32);
  background: linear-gradient(165deg, rgba(28, 22, 36, 0.98), rgba(10, 8, 16, 0.98));
  box-shadow:
    0 28px 64px -20px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.5) rgba(255, 255, 255, 0.05);
}

.admin-planning-time-pop-card::-webkit-scrollbar {
  width: 8px;
}

.admin-planning-time-pop-card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.admin-planning-time-pop-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 184, 236, 0.4), rgba(255, 154, 213, 0.75));
  border-radius: 999px;
}

.admin-planning-time-pop-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-planning-time-pop-close svg {
  width: 18px;
  height: 18px;
}

.admin-planning-time-pop-close:hover {
  background: rgba(255, 184, 236, 0.12);
  border-color: rgba(255, 184, 236, 0.35);
}

.admin-planning-time-pop-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-right: 2.5rem;
}

.admin-planning-time-pop-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 184, 236, 0.35);
  box-shadow: 0 8px 24px -8px rgba(255, 154, 213, 0.45);
}

.admin-planning-time-pop-head-text {
  min-width: 0;
}

.admin-planning-time-pop-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #fff;
}

.admin-planning-time-pop-title span {
  color: var(--accent-pink);
}

.admin-planning-time-pop-sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.admin-planning-time-pop-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.8);
}

.admin-planning-time-pop-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 236, 0.35);
  background: rgba(6, 5, 10, 0.8);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.admin-planning-time-pop-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.admin-planning-time-pop-input:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 184, 236, 0.14);
}

.admin-planning-time-pop-hint {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.admin-planning-time-pop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.admin-planning-time-pop-actions .flora-tablet-btn {
  min-width: 7.5rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.78rem;
}

.admin-user-badge--recruiter {
  color: #ffd6a8;
  border-color: rgba(255, 214, 168, 0.35);
  background: rgba(255, 214, 168, 0.08);
}

@media (max-width: 900px) {
  .admin-planning-layout {
    grid-template-columns: 1fr;
  }

  .admin-planning-recruiters {
    max-height: 240px;
  }

  .admin-planning-excel-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 184, 236, 0.55) rgba(255, 255, 255, 0.06);
  }

  .admin-planning-excel-wrap::-webkit-scrollbar {
    height: 8px;
  }

  .admin-planning-excel-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
  }

  .admin-planning-excel-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(255, 184, 236, 0.35), rgba(255, 154, 213, 0.7));
    border-radius: 999px;
  }

  .admin-planning-excel {
    min-width: 720px;
  }
}

.admin-access-view {
  animation: rulesPanelIn 0.45s cubic-bezier(0.22, 0.9, 0.25, 1) both;
}

.admin-panel-intro {
  position: relative;
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
}

.admin-panel-intro .admin-access-back {
  position: absolute;
  top: 0;
  left: 0;
}

.admin-panel-sub {
  max-width: 560px;
  margin: 0.75rem auto 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.admin-access-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--admin-blush-light);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-access-back svg {
  width: 16px;
  height: 16px;
}

.admin-access-back:hover {
  background: var(--admin-blush-dim);
  border-color: var(--admin-blush-border);
}

.admin-access-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-access-empty {
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 1rem;
}

.admin-user-card {
  position: relative;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--rules-tablet-border);
  background: rgba(10, 8, 14, 0.22);
  box-shadow: var(--rules-tablet-inset);
  overflow: hidden;
}

.admin-user-card.is-owner {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(14, 11, 18, 0.28);
}

.admin-user-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-user-avatar {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.9;
}

.admin-user-avatar.has-photo {
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
  border: 1px solid rgba(255, 184, 236, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 184, 236, 0.12);
}

.admin-user-badge--owner {
  color: rgba(20, 14, 18, 0.9);
  background: linear-gradient(140deg, var(--admin-blush-light), var(--admin-blush));
  border: 1px solid var(--admin-blush-border);
}

.admin-user-perms-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--admin-blush-light);
}

.admin-user-perms-title::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("https://i.imgur.com/Uzxlzj3.png") center / contain no-repeat;
  opacity: 0.75;
}

.admin-perm-toggle:hover:not(.is-soon) {
  border-color: var(--admin-blush-border);
  background: var(--admin-blush-dim);
}

.admin-perm-toggle input:checked + .admin-perm-track {
  background: linear-gradient(140deg, var(--admin-blush-light), var(--admin-blush));
  border-color: var(--admin-blush-border);
}

.admin-perm-toggle input:checked + .admin-perm-track .admin-perm-thumb {
  transform: translateX(18px);
  background: rgba(20, 14, 18, 0.85);
}

.admin-perm-toggle--console .admin-perm-track {
  border-radius: 6px;
  background: rgba(255, 184, 236, 0.12);
  border-color: rgba(255, 184, 236, 0.35);
}

.admin-perm-toggle--console .admin-perm-thumb {
  border-radius: 4px;
  width: 16px;
  height: 16px;
  top: 3px;
  background: linear-gradient(140deg, #ffd4f4, #ff8ecf);
}

.admin-perm-toggle--console input:checked + .admin-perm-track {
  background: rgba(255, 184, 236, 0.28);
  border-color: rgba(255, 184, 236, 0.75);
  box-shadow: inset 0 0 12px rgba(255, 184, 236, 0.15);
}

.admin-perm-toggle--console input:checked + .admin-perm-track .admin-perm-thumb {
  background: linear-gradient(140deg, #fff, #ffe0f3);
}

.admin-save-btn {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--admin-blush-border);
  border-radius: 10px;
  background: linear-gradient(140deg, var(--admin-blush-light), var(--admin-blush));
  color: rgba(20, 14, 18, 0.9);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.admin-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgba(228, 184, 188, 0.45);
}

.admin-locked-panel {
  margin-top: 0;
}

@media (max-width: 860px) {
  .admin-hub-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 720px) {
  .admin-panel-intro {
    padding-top: 2.6rem;
  }

  .admin-panel-intro .admin-access-back {
    left: 50%;
    transform: translateX(-50%);
  }

  .admin-user-perms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-hub-grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin-inline: 0;
  }

  .admin-showcase-card__inner {
    height: clamp(220px, 55vw, 280px);
  }
}

.admin-user-name {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.admin-user-email {
  margin: 0 0 0.45rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-user-badge {
  display: inline-flex;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-user-badge--member {
  color: #b6f5cd;
  background: rgba(123, 227, 163, 0.12);
  border: 1px solid rgba(123, 227, 163, 0.35);
}

.admin-user-badge--muted {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user-perms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.admin-perm-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 6, 12, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-perm-toggle.is-soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-perm-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-perm-track {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.admin-perm-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, background 0.22s ease;
}

.admin-perm-toggle input:disabled + .admin-perm-track {
  opacity: 0.65;
}

.admin-perm-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.admin-perm-text strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-perm-text small {
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.4;
}

.admin-user-note {
  margin: 0.85rem 0 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.admin-user-master-block {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 236, 0.38);
  background: linear-gradient(160deg, rgba(255, 184, 236, 0.1), rgba(12, 10, 18, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 184, 236, 0.08);
}

.admin-user-master-head {
  margin-bottom: 0.75rem;
}

.admin-user-master-badge {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 240, 248, 0.98);
  background: linear-gradient(140deg, rgba(255, 184, 236, 0.55), rgba(180, 80, 140, 0.75));
  border: 1px solid rgba(255, 184, 236, 0.55);
}

.admin-user-master-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.admin-user-master-lead {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.admin-user-master-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-console-grant {
  display: inline-flex;
  cursor: pointer;
}

.admin-console-grant input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-console-grant-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 8, 14, 0.72);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-console-grant-btn.is-on {
  color: #ffe0f3;
  border-color: rgba(255, 184, 236, 0.65);
  background: rgba(255, 184, 236, 0.18);
}

.admin-console-save-btn {
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 184, 236, 0.55);
  background: rgba(255, 184, 236, 0.16);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-console-save-btn:hover {
  border-color: rgba(255, 184, 236, 0.7);
  background: rgba(255, 184, 236, 0.2);
}

.admin-user-badge--console {
  color: #ffe0f3;
  background: rgba(255, 184, 236, 0.14);
  border: 1px solid rgba(255, 184, 236, 0.45);
}

.admin-user-badge--staff {
  color: #9ef0bc;
  background: rgba(123, 227, 163, 0.12);
  border: 1px solid rgba(123, 227, 163, 0.35);
}

.admin-user-badge--role {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 93, 158, 0.35), rgba(201, 64, 122, 0.35));
  border: 1px solid rgba(255, 184, 236, 0.5);
}

.admin-user-badge--coowner {
  color: #ffe9b8;
  background: rgba(255, 196, 92, 0.16);
  border: 1px solid rgba(255, 196, 92, 0.5);
}

/* Champ rôle (libellé) dans la carte admin */
.admin-user-role-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.admin-user-role-label {
  font-family: var(--font-tech);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.75);
}

.admin-user-role {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 236, 0.25);
  background: rgba(10, 8, 14, 0.5);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.admin-user-role:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.6);
}

.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.admin-save-status {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.admin-save-status.is-ok { color: #b6f5cd; }
.admin-save-status.is-error { color: #ff9ab0; }
.admin-save-status.is-warn { color: #ffd89a; }

.account-role-chip[data-role="owner"] {
  background: linear-gradient(140deg, #ffd4f4 0%, var(--accent-pink) 55%, var(--accent-rose) 100%);
  border: 1px solid rgba(255, 184, 236, 0.85);
  color: #1a0a14;
  box-shadow: 0 8px 22px -10px rgba(255, 184, 236, 0.8);
}

/* Login : onglets connexion / inscription */
.login-mode-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.login-mode-tab {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 236, 0.2);
  background: rgba(255, 184, 236, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.login-mode-tab.is-active {
  color: #1a0a14;
  background: linear-gradient(140deg, var(--accent-pink), var(--accent-rose));
  border-color: rgba(255, 184, 236, 0.85);
}

.login-owner-hint {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 236, 0.28);
  background: rgba(255, 184, 236, 0.08);
  color: var(--accent-pink);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* =========================================================
   PERF - réduction des animations si l'utilisateur le demande
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   FLORA RESPONSIVE GLOBAL - mobile & tablette
   ========================================================= */

:root {
  --touch-min: 44px;
  --page-pad-x: clamp(0.85rem, 4vw, 2.25rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

.flora-nav-burger,
.flora-nav-backdrop,
.flora-nav-quick {
  display: none;
}

/* ---------- Navigation tiroir (≤1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --nav-height: 68px;
  }

  .flora-nav {
    flex-wrap: nowrap;
    height: calc(var(--nav-height) + var(--safe-top));
    padding: var(--safe-top) calc(0.65rem + var(--safe-right)) 0 calc(0.65rem + var(--safe-left));
    gap: 0.5rem;
    align-items: center;
  }

  .flora-nav-logo {
    padding: 0.35rem 0.75rem 0.35rem 0.45rem;
    max-width: min(48vw, 200px);
  }

  .flora-nav-logo-mark {
    width: 32px;
    height: 32px;
  }

  .flora-nav-quick {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  .flora-nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-min);
    height: var(--touch-min);
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid rgba(255, 184, 236, 0.28);
    border-radius: 12px;
    background: rgba(255, 184, 236, 0.08);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .flora-nav-burger:hover,
  .flora-nav--open .flora-nav-burger {
    border-color: rgba(255, 184, 236, 0.55);
    background: rgba(255, 184, 236, 0.16);
  }

  .flora-nav-burger-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
  }

  .flora-nav-burger-lines span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .flora-nav--open .flora-nav-burger-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .flora-nav--open .flora-nav-burger-lines span:nth-child(2) {
    opacity: 0;
  }
  .flora-nav--open .flora-nav-burger-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .flora-nav-group {
    position: fixed;
    top: calc(var(--nav-height) + var(--safe-top));
    right: 0;
    bottom: 0;
    width: min(320px, 92vw);
    margin: 0;
    padding: 1rem 1rem calc(1rem + var(--safe-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 200;
    pointer-events: auto;
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.25, 1);
    background: rgba(10, 8, 16, 0.98);
    border-left: 1px solid rgba(255, 184, 236, 0.22);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
    order: unset;
  }

  .flora-nav--open .flora-nav-group {
    transform: translateX(0);
  }

  .flora-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: calc(var(--nav-height) + var(--safe-top));
    z-index: 190;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  body.flora-nav-open .flora-nav-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }

  body.flora-nav-open {
    overflow: hidden;
  }

  .flora-nav-tabs {
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
  }

  .flora-nav-tab {
    width: 100%;
    justify-content: center;
    min-height: var(--touch-min);
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    flex-shrink: unset;
  }

  .flora-nav-sep {
    display: none;
  }

  .flora-nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .flora-nav-group .flora-nav-icon {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
    border-radius: 12px;
  }

  .flora-nav-group .flora-nav-icon--login {
    width: 100%;
    padding: 0.65rem 1rem;
  }

  .flora-nav-quick .flora-nav-icon {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }

  .flora-main,
  .flora-welcome,
  .rules-page,
  .account-stage,
  .admin-main,
  .staff-docs-app {
    padding-left: max(var(--page-pad-x), var(--safe-left));
    padding-right: max(var(--page-pad-x), var(--safe-right));
  }

  .flora-main {
    padding-top: calc(var(--nav-height) + var(--safe-top) + 1.75rem);
  }

  .flora-welcome {
    padding-top: calc(var(--nav-height) + var(--safe-top) + 1.25rem);
    padding-bottom: calc(2rem + var(--safe-bottom));
  }

  .flora-footer {
    padding-bottom: calc(1rem + var(--safe-bottom));
    padding-left: var(--page-pad-x);
    padding-right: var(--page-pad-x);
  }

  body.rules-page-body .flora-nav-logo {
    display: flex;
  }

  body.rules-page-body .flora-nav-group {
    margin-left: 0;
  }

  .rules-page {
    padding-top: calc(var(--nav-height) + var(--safe-top) + 1rem);
  }
}

/* ---------- Tablette (768-1024px) ---------- */
@media (max-width: 1024px) and (min-width: 641px) {
  .admin-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-docs-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-tablet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-planning-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

/* ---------- Mobile (≤640px) ---------- */
@media (max-width: 640px) {
  :root {
    --nav-height: 64px;
  }

  .flora-join-card {
    padding: 1.5rem 1.15rem;
    border-radius: 18px;
  }

  .flora-join-card--bottom-bar {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.85rem;
  }

  .flora-join-card--bottom-bar .flora-join-btn {
    min-height: var(--touch-min);
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
  }

  .flora-btn,
  .flora-join-btn,
  .flora-tablet-btn,
  .admin-save-btn,
  .staff-docs-add-btn,
  .account-infos-btn,
  .account-logout-btn,
  .account-staff-hub-btn {
    min-height: var(--touch-min);
  }

  .admin-hub-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .admin-showcase-card__label {
    font-size: 0.95rem;
  }

  .admin-wl-toolbar,
  .admin-parrainage-toolbar,
  .admin-planning-toolbar,
  .admin-parrainage-detail-actions,
  .admin-parrainage-modal-actions,
  .staff-docs-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-wl-toolbar .flora-tablet-btn,
  .admin-parrainage-toolbar .flora-tablet-btn,
  .admin-parrainage-detail-actions .flora-tablet-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-wl-view-tabs {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .admin-wl-view-tab {
    flex: 1 1 auto;
    min-height: var(--touch-min);
    text-align: center;
  }

  .admin-planning-layout {
    grid-template-columns: 1fr;
  }

  .admin-planning-pool {
    max-height: none;
  }

  .admin-planning-excel-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-planning-day {
    min-width: 200px;
  }

  .admin-user-perms-grid {
    grid-template-columns: 1fr;
  }

  .admin-parrainage-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .admin-parrainage-sidebar {
    max-height: 280px;
  }

  .admin-parrainage-schema-slots {
    grid-template-columns: 1fr;
  }

  .admin-parrainage-schema[data-kind="simple"] .admin-parrainage-schema-slots {
    max-width: 100%;
  }

  .admin-parrainage-modal--wide {
    width: 100%;
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
    margin-top: auto;
  }

  .admin-parrainage-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .account-card-grid {
    gap: 1rem;
  }

  .account-actions-side {
    width: 100%;
    justify-content: flex-start;
  }

  .account-staff-hub-actions {
    flex-direction: column;
  }

  .account-staff-hub-btn {
    width: 100%;
    justify-content: center;
  }

  .team-tablet {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .team-tablet-stage {
    padding: 0;
  }

  .team-tablet-grid {
    grid-template-columns: 1fr;
  }

  .news-paper {
    padding: 1rem 0.85rem;
  }

  .news-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .flora-tablet--wl {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    max-width: 100%;
  }

  .flora-tablet-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .flora-tablet {
    width: 100%;
    max-width: 100%;
    max-height: 96dvh;
    border-radius: 16px 16px 0 0;
  }

  .wl-top--admin-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .staff-docs-modal {
    width: 100%;
    max-width: 100%;
    max-height: 96dvh;
    border-radius: 16px 16px 0 0;
  }

  .staff-docs-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .rules-intro-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .rules-tablet,
  .rules-item {
    padding: 1rem 0.9rem;
  }

  .login-form-card {
    border-radius: 16px;
  }

  .flora-panel {
    padding: 1.25rem 1rem;
  }
}

/* ---------- Très petits écrans (≤400px) ---------- */
@media (max-width: 400px) {
  .flora-nav-logo-title {
    font-size: 0.95rem;
  }

  .account-role-chip,
  .account-status-pill {
    font-size: 0.68rem;
  }

  .admin-title-frame-text {
    font-size: 1.15rem;
  }

  .chip-text small {
    white-space: normal;
  }
}

/* ---------- Tablette paysage / petits laptops ---------- */
@media (max-width: 900px) {
  .flora-hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .flora-hero-cta .flora-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-access-list-items {
    gap: 0.85rem;
  }

  .admin-user-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Touch : zones cliquables ---------- */
@media (hover: none) and (pointer: coarse) {
  .flora-nav-tab:hover,
  .flora-join-btn:hover,
  .admin-showcase-card:hover {
    transform: none;
  }

  .flora-nav-tab:active,
  .flora-join-btn:active,
  .flora-tablet-btn:active {
    transform: scale(0.98);
  }
}

/* Filigrane Flora semi-transparent sur toutes les cases */
.rules-toc-link::after,
.rules-item::after,
.rules-def::after,
.rules-law-row::after,
.rules-important-list li::after,
.rules-section-header::after,
.rules-important-header::after,
.rules-subsection-title::after,
.rules-pills li::after,
.admin-user-card::after,
.wl-case::after {
  content: "";
  display: block;
  position: absolute;
  right: 0.55rem;
  bottom: 0.45rem;
  width: var(--flora-wm-size);
  height: var(--flora-wm-size);
  max-width: 44px;
  max-height: 44px;
  background: var(--flora-logo-watermark) center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.rules-toc-link > *,
.rules-item > *,
.rules-def > *,
.rules-law-row > *,
.rules-important-list li > *,
.rules-section-header > *,
.rules-important-header > *,
.rules-subsection-title > *,
.rules-pills li > *,
.admin-user-card > *,
.wl-case > * {
  position: relative;
  z-index: 1;
}

/* =========================================================
   FLORA CARTE ENTREPRISES
   ========================================================= */

html.flora-carte-page-html,
body.flora-carte-page-body,
body.admin-carte-mode,
.flora-carte-page-shell,
.flora-carte-page-root,
.flora-carte-admin-view {
  --carte-glass-bg: linear-gradient(170deg, rgba(20, 16, 24, 0.32) 0%, rgba(12, 10, 18, 0.28) 100%);
  --carte-glass-bg-btn: rgba(8, 8, 14, 0.32);
  --carte-glass-bg-hover: rgba(30, 12, 22, 0.42);
  --carte-glass-border: rgba(255, 255, 255, 0.12);
  --carte-glass-border-accent: rgba(255, 184, 236, 0.65);
  --carte-glass-blur: blur(14px) saturate(1.2);
  --carte-glass-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.55);
  --carte-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --carte-glass-radius: 14px;
  --carte-glass-radius-lg: 22px;
}

.flora-nav-icon--carte {
  padding: 0.35rem;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-inset);
}

.flora-nav-icon--carte:hover {
  border-color: var(--carte-glass-border-accent);
  background: var(--carte-glass-bg-hover);
  box-shadow: 0 14px 32px -16px rgba(255, 184, 236, 0.45), var(--carte-glass-inset);
}

.flora-nav-carte-img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.flora-nav-icon--carte.is-active {
  border-color: var(--carte-glass-border-accent);
  background: rgba(255, 184, 236, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 184, 236, 0.25), var(--carte-glass-inset);
}

/* ---------- Page carte entreprises (plein écran) ---------- */
html.flora-carte-page-html,
body.flora-carte-page-body,
body.admin-carte-mode {
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: #0a1422 !important;
}

body.flora-carte-page-body .flora-footer,
body.admin-carte-mode .flora-footer {
  display: none;
}

body.admin-carte-mode .admin-main,
body.admin-carte-mode .admin-shell,
body.admin-carte-mode .admin-frame,
body.admin-carte-mode #flora-admin-content {
  padding: 0;
  margin: 0;
  max-width: none;
}

body.admin-carte-mode .admin-head,
body.admin-carte-mode .admin-hub-divider,
body.admin-carte-mode #admin-view-hub {
  display: none !important;
}

body.admin-carte-mode #admin-view-carte {
  position: fixed !important;
  top: calc(var(--nav-height) + var(--safe-top, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 40;
  display: block !important;
  overflow: hidden;
  background: #0a1422;
  border-radius: 0 !important;
  animation: none !important;
}

body.admin-carte-mode #admin-view-carte .flora-carte-page-bar {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  right: auto;
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  z-index: 510;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  padding: 0.45rem 0.65rem;
  background: var(--carte-glass-bg);
  border: 1px solid var(--carte-glass-border);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-shadow), var(--carte-glass-inset);
}

body.admin-carte-mode #admin-carte-root {
  position: absolute;
  inset: 0;
  flex: none;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.flora-carte-page-shell,
.flora-carte-admin-view {
  position: fixed;
  top: calc(var(--nav-height) + var(--safe-top, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 40;
  overflow: hidden;
  background: #0a1422;
  display: flex;
  flex-direction: column;
}

.flora-carte-page-root {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto;
}

.flora-carte-page-bar {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  right: auto;
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  pointer-events: none;
  border-radius: var(--carte-glass-radius-lg);
  background: var(--carte-glass-bg);
  border: 1px solid var(--carte-glass-border);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-shadow), var(--carte-glass-inset);
}

.flora-carte-page-bar--admin {
  flex-wrap: wrap;
}

.flora-carte-page-bar--admin .flora-carte-page-bar-copy {
  min-width: 0;
}

.flora-carte-page-bar--admin .flora-carte-page-title {
  font-size: 0.92rem;
  line-height: 1.15;
}

.flora-carte-page-bar--admin .flora-carte-page-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.flora-carte-page-bar--admin .flora-carte-page-back {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  font-size: 0.65rem;
}

.flora-carte-page-bar--admin .flora-carte-page-badge {
  margin-left: 0;
  padding: 0.28rem 0.55rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.flora-carte-page-bar > * {
  pointer-events: auto;
}

.flora-carte-page-bar-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.flora-carte-page-kicker {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.flora-carte-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
}

.flora-carte-page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-inset);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.flora-carte-page-back:hover {
  border-color: var(--carte-glass-border-accent);
  background: var(--carte-glass-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -16px rgba(255, 184, 236, 0.45), var(--carte-glass-inset);
}

.flora-carte-page-back svg {
  width: 16px;
  height: 16px;
}

.flora-carte-page-badge {
  margin-left: auto;
  padding: 0.4rem 0.75rem;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-inset);
  color: var(--accent-pink);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flora-carte-map-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.flora-carte-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #0a1422;
}

.flora-carte-map [data-flora-emap],
.flora-carte-page-root .leaflet-container,
.flora-carte-page-root .leaflet-map-pane,
.flora-carte-page-root .leaflet-tile-pane,
.flora-carte-page-root .leaflet-pane {
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
}

.flora-carte-map .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: #0a1422 !important;
  overflow: visible !important;
}

.flora-carte-map-wrap .leaflet-popup-pane {
  z-index: 1000 !important;
  pointer-events: none;
}

.flora-carte-map-wrap .leaflet-popup {
  pointer-events: auto;
  margin-bottom: 8px;
}

.flora-carte-map-wrap .leaflet-marker-pane {
  z-index: 800 !important;
  pointer-events: auto;
}

.flora-pin-card {
  position: absolute;
  z-index: 920;
  width: min(300px, calc(100vw - 24px));
  max-height: min(44vh, 360px);
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: auto;
  border-radius: var(--carte-glass-radius-lg);
  background: linear-gradient(170deg, rgba(20, 16, 24, 0.9) 0%, rgba(12, 10, 18, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.flora-pin-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.flora-pin-micro {
  position: absolute;
  z-index: 915;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.flora-pin-micro.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(-100% - 14px));
}

.flora-pin-micro[hidden] {
  display: none !important;
}

.flora-pin-micro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 236, 0.45);
  background: linear-gradient(170deg, rgba(24, 18, 30, 0.94) 0%, rgba(12, 10, 18, 0.88) 100%);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.flora-pin-micro-btn:hover {
  border-color: rgba(255, 184, 236, 0.75);
  background: linear-gradient(170deg, rgba(36, 20, 34, 0.96) 0%, rgba(18, 12, 22, 0.9) 100%);
  transform: translateY(-1px);
}

.flora-pin-micro-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(12, 10, 18, 0.88);
}

.flora-pin-micro-btn {
  position: relative;
}

.flora-pin-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(12, 10, 18, 0.82);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.flora-pin-card.is-open {
  opacity: 1;
  transform: translateY(0);
}

.flora-pin-card[hidden] {
  display: none !important;
}

.flora-pin-card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(8, 8, 14, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.flora-pin-card-close:hover {
  border-color: rgba(255, 184, 236, 0.45);
  background: rgba(30, 12, 22, 0.65);
}

.flora-pin-card .flora-gpop-card {
  background: transparent;
}

.flora-pin-card .flora-gpop-ribbon {
  top: 8px;
  right: 44px;
}

.flora-pin-context-menu {
  position: fixed;
  z-index: 9600;
  min-width: 172px;
  padding: 6px;
  border-radius: var(--carte-glass-radius-lg);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-shadow), var(--carte-glass-inset);
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top left;
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}

.flora-pin-context-menu.is-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.flora-pin-ctx-item {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.flora-pin-ctx-item:hover {
  border-color: var(--carte-glass-border-accent);
  background: var(--carte-glass-bg-hover);
  color: #fff;
}

.flora-pin-ctx-item--danger:hover {
  border-color: rgba(255, 96, 120, 0.45);
  background: rgba(80, 16, 28, 0.55);
  color: #ffb4c8;
}

.flora-carte-map-ui {
  position: absolute;
  left: 12px;
  bottom: calc(12px + var(--safe-bottom, 0px));
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: min(96vw, 560px);
  pointer-events: none;
}

.flora-carte-ui-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.flora-carte-ui-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  width: min(200px, 72vw);
}

.flora-carte-compass {
  display: none;
  position: absolute;
  top: calc(0.65rem + 72px);
  right: 12px;
  z-index: 520;
  width: min(240px, 72vw);
  padding: 10px 12px;
  border-radius: var(--carte-glass-radius-lg);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-shadow), var(--carte-glass-inset);
  pointer-events: auto;
}

body.admin-carte-mode .flora-carte-compass {
  display: block;
}

.flora-carte-compass-head {
  margin-bottom: 6px;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.flora-carte-compass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.flora-carte-compass-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: #fff;
}

.flora-carte-compass-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.flora-carte-compass-btn {
  flex: 1 1 auto;
  min-height: 32px;
  padding: 0.4rem 0.55rem;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-inset);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.flora-carte-compass-btn--primary {
  border-color: rgba(255, 184, 236, 0.45);
  background: rgba(255, 184, 236, 0.12);
  color: var(--accent-pink);
}

.flora-carte-compass-btn:hover {
  border-color: var(--carte-glass-border-accent);
  background: var(--carte-glass-bg-hover);
  transform: translateY(-1px);
}

.flora-carte-zoom,
.flora-carte-styles {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.flora-carte-mz,
.flora-carte-mz-lvl {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-inset);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.flora-carte-mz:hover {
  border-color: var(--carte-glass-border-accent);
  background: var(--carte-glass-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -16px rgba(255, 184, 236, 0.4), var(--carte-glass-inset);
}

.flora-carte-mz-lvl {
  min-width: 54px;
  font-size: 0.78rem;
  cursor: default;
}

.flora-carte-mz-lvl:hover {
  transform: none;
  box-shadow: var(--carte-glass-inset);
}

.flora-carte-styles {
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: var(--carte-glass-radius-lg);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-shadow), var(--carte-glass-inset);
}

.flora-carte-mstyle {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.flora-carte-mstyle.is-on {
  color: #fff;
  border-color: var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  box-shadow: var(--carte-glass-inset);
}

.flora-carte-mstyle:hover:not(.is-on) {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.flora-carte-hint {
  pointer-events: none;
  align-self: flex-start;
  width: min(200px, 72vw);
  padding: 0.45rem 0.65rem;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-shadow), var(--carte-glass-inset);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.flora-carte-list {
  pointer-events: auto;
  width: min(200px, 72vw);
  max-height: min(28vh, 200px);
  display: flex;
  flex-direction: column;
  border-radius: var(--carte-glass-radius-lg);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-shadow), var(--carte-glass-inset);
  overflow: hidden;
  flex: 0 1 auto;
}

.flora-pl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.flora-pl-head-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 184, 236, 0.35));
}

.flora-pl-count {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  color: var(--accent-pink);
}

.flora-pl-scroll {
  overflow: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.flora-pl-scroll::-webkit-scrollbar {
  width: 4px;
}

.flora-pl-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.flora-pl-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.flora-pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: var(--carte-glass-radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.flora-pl-item:hover {
  border-color: var(--carte-glass-border-accent);
  background: var(--carte-glass-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -16px rgba(255, 184, 236, 0.35);
}

.flora-pl-thumb {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  box-shadow: var(--carte-glass-inset);
}

.flora-pl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flora-pl-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flora-pl-name {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flora-pl-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flora-pl-item.is-free .flora-pl-tag { color: #9fd0ff; }
.flora-pl-item.is-taken .flora-pl-tag { color: #ffb8ec; }

.flora-pl-item.is-ctx {
  border-color: var(--carte-glass-border-accent);
  background: var(--carte-glass-bg-hover);
  box-shadow: 0 14px 32px -16px rgba(255, 184, 236, 0.35), var(--carte-glass-inset);
}

.flora-pl-context-menu {
  position: fixed;
  z-index: 9600;
  min-width: 172px;
  padding: 6px;
  border-radius: var(--carte-glass-radius-lg);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-shadow), var(--carte-glass-inset);
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top left;
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}

.flora-pl-context-menu.is-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.flora-pl-ctx-item {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.flora-pl-ctx-item:hover,
.flora-pl-ctx-item:focus-visible {
  border-color: var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  outline: none;
  transform: translateY(-1px);
}

.flora-pl-ctx-item--danger {
  color: #ff9ab8;
}

.flora-pl-ctx-item--danger:hover,
.flora-pl-ctx-item--danger:focus-visible {
  background: rgba(255, 93, 158, 0.16);
  color: #ffc8dc;
}

.flora-pl-empty {
  margin: 0;
  padding: 0.65rem 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.flora-map-pin { background: none; border: none; }
.leaflet-marker-icon.flora-map-pin {
  pointer-events: auto !important;
  cursor: pointer;
}

.flora-pin-wrap {
  position: relative;
  width: 40px;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: flora-pin-drop 0.35s ease;
}

.flora-pin-img {
  width: 30px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

.flora-pin-logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
  background: rgba(10, 20, 40, 0.85);
}

.flora-pin-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flora-map-pin.is-free .flora-pin-img { filter: drop-shadow(0 0 6px rgba(90, 166, 238, 0.5)); }
.flora-map-pin.is-taken .flora-pin-img { filter: drop-shadow(0 0 6px rgba(255, 154, 213, 0.55)); }

@keyframes flora-pin-drop {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.leaflet-popup.flora-gta-popup {
  opacity: 1 !important;
  visibility: visible !important;
}

.leaflet-popup.flora-gta-popup .leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border-radius: var(--carte-glass-radius-lg);
  background: linear-gradient(170deg, rgba(20, 16, 24, 0.82) 0%, rgba(12, 10, 18, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.leaflet-popup.flora-gta-popup .leaflet-popup-close-button {
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  padding: 8px 10px 0 0;
  z-index: 5;
}

.leaflet-popup.flora-gta-popup .leaflet-popup-close-button:hover {
  color: #fff;
}

.leaflet-popup.flora-gta-popup .leaflet-popup-content {
  margin: 0;
  width: 288px !important;
}

.leaflet-popup.flora-gta-popup .leaflet-popup-tip {
  background: rgba(16, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.flora-carte-page-root .leaflet-popup-pane,
.flora-carte-admin-view .leaflet-popup-pane,
#admin-carte-root .leaflet-popup-pane,
#flora-carte-page-root .leaflet-popup-pane {
  z-index: 1000 !important;
}

.flora-gpop-card { overflow: hidden; }
.flora-gpop-cover {
  position: relative;
  height: 108px;
  background: linear-gradient(135deg, rgba(255, 184, 236, 0.2), rgba(10, 8, 16, 0.9));
  overflow: visible;
}

.flora-gpop-cover.is-empty {
  display: grid;
  place-items: center;
  opacity: 0.45;
}

.flora-gpop-cover-ph {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 184, 236, 0.35));
}

.flora-gpop-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flora-gpop-logo-slot {
  position: absolute;
  left: 14px;
  bottom: -22px;
  z-index: 3;
}

.flora-gpop-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  background: rgba(10, 20, 40, 0.9);
}

.flora-gpop-logo-ph {
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

.flora-gpop-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
}

.flora-gpop-card.is-free .flora-gpop-ribbon {
  background: rgba(90, 166, 238, 0.88);
}

.flora-gpop-card.is-taken .flora-gpop-ribbon {
  background: rgba(255, 93, 158, 0.88);
}

.flora-gpop-body {
  padding: 32px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.flora-gpop-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.flora-gpop-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.flora-gpop-hire {
  border: 1px solid rgba(255, 184, 236, 0.18);
  border-radius: 11px;
  padding: 10px 12px;
  background: rgba(255, 184, 236, 0.06);
}

.flora-gpop-hire-l {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 4px;
}

.flora-gpop-hire p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.flora-gpop-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(180deg, #5865f2, #4752c4) !important;
  box-shadow: 0 8px 20px -8px rgba(88, 101, 242, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flora-gpop-discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(88, 101, 242, 0.75);
}

.flora-gpop-staff {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.flora-gpop-toggle,
.flora-gpop-edit,
.flora-gpop-del {
  border-radius: var(--carte-glass-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 14, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.flora-gpop-toggle:hover,
.flora-gpop-edit:hover,
.flora-gpop-del:hover {
  border-color: var(--carte-glass-border-accent);
  background: var(--carte-glass-bg-hover);
  transform: translateY(-1px);
}

.flora-gpop-toggle {
  flex: 1;
  min-height: 38px;
}

.flora-gpop-edit,
.flora-gpop-del {
  width: 38px;
  height: 38px;
}

.flora-gpop-toggle.to-taken {
  background: rgba(255, 93, 158, 0.16);
  border-color: rgba(255, 93, 158, 0.45);
}

.flora-gpop-toggle.to-free {
  background: rgba(90, 166, 238, 0.16);
  border-color: rgba(90, 166, 238, 0.45);
}

.flora-carte-editor {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(4, 3, 8, 0.52);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.flora-carte-editor-slot {
  pointer-events: auto;
  width: min(280px, 74vw);
  max-height: min(36vh, 280px);
  flex: 0 1 auto;
  align-self: flex-start;
}

.flora-carte-editor-slot[hidden] {
  display: none !important;
}

.flora-carte-editor-embedded {
  width: 100%;
  max-height: min(36vh, 280px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

.flora-carte-editor-embedded.is-open {
  opacity: 1;
  transform: translateY(0);
}

.flora-carte-editor-embedded .flora-carte-editor-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px;
  gap: 9px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.flora-carte-editor-embedded .flora-carte-editor-body::-webkit-scrollbar {
  width: 4px;
}

.flora-carte-editor-embedded .flora-carte-editor-body::-webkit-scrollbar-track {
  background: transparent;
}

.flora-carte-editor-embedded .flora-carte-editor-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.flora-carte-editor-embedded .flora-carte-editor-head {
  padding: 10px 12px 0;
  gap: 8px;
}

.flora-carte-editor-embedded .flora-carte-editor-head h3 {
  font-size: 0.88rem;
}

.flora-carte-editor-embedded .flora-carte-editor-head p {
  font-size: 0.68rem;
}

.flora-carte-editor-embedded .flora-carte-editor-prev {
  width: 40px;
  height: 40px;
}

.flora-carte-editor-embedded .flora-carte-editor-foot {
  flex-shrink: 0;
  padding: 8px 12px 10px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.flora-carte-editor.is-open {
  opacity: 1;
  pointer-events: auto;
}

.flora-carte-editor-card {
  width: min(440px, 96vw);
  margin: auto 0;
  border-radius: var(--carte-glass-radius-lg);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg);
  backdrop-filter: var(--carte-glass-blur);
  -webkit-backdrop-filter: var(--carte-glass-blur);
  box-shadow: var(--carte-glass-shadow), var(--carte-glass-inset);
  overflow: hidden;
}

.flora-carte-editor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 0;
}

.flora-carte-editor-prev {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 184, 236, 0.28);
  background: rgba(255, 184, 236, 0.08);
  overflow: hidden;
}

.flora-carte-editor-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flora-carte-editor-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.flora-carte-editor-head p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.flora-carte-editor-x {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  box-shadow: var(--carte-glass-inset);
  color: #fff;
  cursor: pointer;
}

.flora-carte-editor-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 18px;
  max-height: min(62vh, 520px);
  overflow-y: auto;
}

.flora-carte-editor-body input[type="text"],
.flora-carte-editor-body textarea {
  width: 100%;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  box-shadow: var(--carte-glass-inset);
  color: #fff;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.flora-ce-status {
  display: flex;
  gap: 8px;
}

.flora-ce-st {
  flex: 1;
  min-height: 42px;
  border-radius: var(--carte-glass-radius);
  border: 1px solid var(--carte-glass-border);
  background: var(--carte-glass-bg-btn);
  box-shadow: var(--carte-glass-inset);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.flora-ce-st.is-free.is-on {
  color: #fff;
  border-color: rgba(90, 166, 238, 0.5);
  background: rgba(90, 166, 238, 0.16);
}

.flora-ce-st.is-taken.is-on {
  color: #fff;
  border-color: rgba(255, 93, 158, 0.5);
  background: rgba(255, 93, 158, 0.16);
}

.flora-ce-lbl {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 6px;
}

.flora-ce-lbl em {
  font-style: normal;
  color: var(--accent-pink);
  text-transform: none;
  letter-spacing: 0;
}

.flora-ce-prev {
  min-height: 88px;
  border-radius: 11px;
  border: 1px dashed rgba(255, 184, 236, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.flora-ce-prev.has {
  border-style: solid;
  padding: 0;
}

.flora-ce-prev img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
  display: block;
}

.flora-ce-logo-prev img {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}

.flora-ce-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.flora-carte-editor-foot {
  display: flex;
  gap: 8px;
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.admin-showcase-card__visual--v2plan { --admin-card-accent: #d8e4f5; }

.admin-showcase-card__visual--carte {
  background: linear-gradient(145deg, rgba(75, 163, 216, 0.18), rgba(255, 184, 236, 0.12));
}

.admin-showcase-card__img-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .flora-carte-page-bar {
    padding: 0.5rem 0.65rem;
    flex-wrap: wrap;
  }

  .flora-carte-page-title {
    font-size: 0.92rem;
  }

  .flora-carte-ui-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .flora-carte-ui-tools,
  .flora-carte-list,
  .flora-carte-hint {
    width: min(190px, 82vw);
  }

  .flora-carte-editor-slot {
    width: min(260px, 92vw);
    max-height: 32vh;
  }

  .flora-carte-page-bar {
    max-width: calc(100% - 1rem);
  }
}

/* ---------- V2 PLAN - Board Kanban premium ---------- */

.v2plan-board-view {
  margin: 0 -0.5rem;
}

.v2plan-shell {
  position: relative;
  padding: 0.25rem 0 2rem;
  border-radius: 20px;
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(99, 102, 241, 0.14), transparent 55%),
    radial-gradient(900px 380px at 95% 0%, rgba(236, 72, 153, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.v2plan-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  padding: 0.35rem 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.v2plan-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.v2plan-back svg {
  width: 16px;
  height: 16px;
}

.v2plan-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.v2plan-topbar-main {
  flex: 1 1 220px;
  min-width: 0;
}

.v2plan-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.75);
  margin-bottom: 0.25rem;
}

.v2plan-board-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.v2plan-board-sub {
  margin: 0.35rem 0 0;
  max-width: 52ch;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.v2plan-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-left: auto;
}

.v2plan-save-pill {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  min-height: 1.2em;
}

.v2plan-save-pill.is-ok { color: #86efac; }
.v2plan-save-pill.is-error { color: #fda4af; }
.v2plan-save-pill.is-warn { color: #fcd34d; }

.v2plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.v2plan-btn:active { transform: translateY(1px); }

.v2plan-btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
}

.v2plan-btn--primary:hover {
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.38);
}

.v2plan-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
}

.v2plan-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.v2plan-btn--danger {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.v2plan-btn--danger:hover {
  background: rgba(244, 63, 94, 0.2);
}

.v2plan-board-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0.85rem 0.5rem;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.42) rgba(255, 255, 255, 0.05);
}

.v2plan-board-scroll::-webkit-scrollbar {
  height: 10px;
}

.v2plan-board-scroll::-webkit-scrollbar-track {
  margin: 0 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.v2plan-board-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(255, 184, 236, 0.35), rgba(129, 140, 248, 0.45));
  border: 2px solid rgba(8, 6, 12, 0.35);
  border-radius: 999px;
}

.v2plan-board-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(255, 184, 236, 0.55), rgba(129, 140, 248, 0.62));
}

.v2plan-board {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 420px;
  width: max-content;
  min-width: 100%;
  padding-bottom: 0.5rem;
}

.v2plan-col {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  max-height: calc(100vh - 280px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 40px rgba(0, 0, 0, 0.22);
}

.v2plan-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: var(--v2plan-accent, #8b9cff);
  opacity: 0.9;
}

.v2plan-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.8rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.v2plan-col-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.v2plan-col-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
}

.v2plan-col-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  font-weight: 700;
}

.v2plan-col-add {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.v2plan-col-add:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.v2plan-col-cards {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem 0.55rem 0.75rem;
  min-height: 120px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.35) transparent;
  transition: background 0.15s, box-shadow 0.15s;
}

.v2plan-col-cards::-webkit-scrollbar {
  width: 8px;
}

.v2plan-col-cards::-webkit-scrollbar-track {
  background: transparent;
}

.v2plan-col-cards::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.v2plan-col-cards::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 184, 236, 0.38);
  background-clip: padding-box;
}

.v2plan-col-cards.is-drop-target {
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.4);
  border-radius: 12px;
}

.v2plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.72rem 0.78rem 0.68rem;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.16);
  cursor: grab;
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.v2plan-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.24);
}

.v2plan-card.is-dragging {
  opacity: 0.45;
  transform: rotate(2deg);
  cursor: grabbing;
}

.v2plan-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.v2plan-card-label {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2plan-card-cover {
  margin: -0.15rem -0.1rem 0.15rem;
  border-radius: 8px;
  overflow: hidden;
  max-height: 120px;
}

.v2plan-card-cover img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.v2plan-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.v2plan-card-title--empty {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

.v2plan-card-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v2plan-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.15rem;
}

.v2plan-card-due {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
}

.v2plan-card-due.is-overdue {
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
}

.v2plan-card-meta-icon {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.45);
}

.v2plan-card-actions {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: flex;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity 0.15s;
}

.v2plan-card:hover .v2plan-card-actions,
.v2plan-card:focus-within .v2plan-card-actions {
  opacity: 1;
}

.v2plan-card-act {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.v2plan-card-act:hover {
  background: rgba(99, 102, 241, 0.55);
  color: #fff;
}

.v2plan-access-panel,
.v2plan-modal {
  display: none;
}

/* Drawers (idée + accès) - hors admin-frame */
.v2plan-drawer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  visibility: hidden;
  pointer-events: none;
}

.v2plan-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.v2plan-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 12, 0.42);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.v2plan-drawer.is-open .v2plan-drawer-backdrop {
  opacity: 1;
}

.v2plan-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #121018;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
  transform: translate3d(104%, 0, 0);
  transition: transform 0.22s cubic-bezier(0.22, 0.9, 0.25, 1);
  will-change: transform;
}

.v2plan-drawer.is-open .v2plan-drawer-panel {
  transform: translate3d(0, 0, 0);
}

.v2plan-drawer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 1rem;
  background: #0e0c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.v2plan-drawer-logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.1;
}

.v2plan-drawer-logo-sep {
  color: rgba(255, 184, 236, 0.85);
  font-weight: 700;
  padding: 0 0.15em;
}

.v2plan-drawer-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.02em;
}

.v2plan-drawer-head,
.v2plan-drawer-kicker {
  display: none;
}

.v2plan-drawer-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}

.v2plan-drawer-close:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.v2plan-drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #121018;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.35) rgba(255, 255, 255, 0.04);
}

.v2plan-drawer-scroll::-webkit-scrollbar {
  width: 8px;
}

.v2plan-drawer-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.v2plan-drawer-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.v2plan-drawer-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 184, 236, 0.42);
  background-clip: padding-box;
}

.v2plan-drawer-scroll--access {
  padding-top: 0.65rem;
}

.v2plan-form-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.v2plan-form-section--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.v2plan-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.v2plan-field-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.v2plan-field-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}

.v2plan-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0e0c14;
  flex-shrink: 0;
}

.v2plan-drawer-foot-right {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.v2plan-access-search-wrap {
  padding: 0.65rem 1.15rem 0;
  background: #121018;
  flex-shrink: 0;
}

.v2plan-access-search {
  width: 100%;
  padding: 0.62rem 0.85rem 0.62rem 2.2rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    rgba(0, 0, 0, 0.28)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffff88' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3 3'/%3E%3C/svg%3E")
    no-repeat 0.7rem center;
  color: #fff;
  font-size: 0.86rem;
}

.v2plan-access-search:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.v2plan-access-members {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.v2plan-access-member {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.72rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.v2plan-access-member:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.v2plan-access-member input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #8b5cf6;
}

.v2plan-access-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.v2plan-access-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2plan-access-email {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2plan-access-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

body.v2plan-drawer-open,
body.flora-crop-open {
  overflow: hidden;
}

.v2plan-field--compact {
  margin-top: 0.15rem;
}

.v2plan-image-uploader {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 100%;
}

.v2plan-image-uploader-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.v2plan-btn--sm {
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  font-size: 0.74rem;
}

.v2plan-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.v2plan-field > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.v2plan-field input,
.v2plan-field textarea,
.v2plan-field select {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.45;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.v2plan-field input:focus,
.v2plan-field textarea:focus,
.v2plan-field select:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.v2plan-field textarea {
  resize: vertical;
  min-height: 110px;
}

.v2plan-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.v2plan-field-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.v2plan-field-inline input {
  flex: 1 1 140px;
}

.v2plan-upload-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.v2plan-upload-btn:hover {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.12);
}

.v2plan-modal-preview {
  margin-top: 0.15rem;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  contain: layout paint;
}

.v2plan-modal-preview img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  vertical-align: middle;
}

.v2plan-modal-foot,
.v2plan-modal-foot-right {
  display: none;
}

@media (max-width: 900px) {
  .v2plan-topbar {
    padding-inline: 0.35rem;
  }

  .v2plan-col {
    flex-basis: 280px;
    width: 280px;
    max-height: calc(100vh - 240px);
  }

  .v2plan-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .v2plan-topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .v2plan-topbar-actions .v2plan-btn--primary {
    flex: 1;
  }

  .v2plan-board-scroll {
    padding-inline: 0.35rem;
  }

  .v2plan-col {
    flex-basis: 85vw;
    width: 85vw;
  }

  .v2plan-drawer-panel {
    width: 100%;
  }
}

/* Clic droit + fiche idée */
.v2plan-card-ctx-menu {
  z-index: 12250;
}

.v2plan-card.is-ctx {
  border-color: rgba(255, 184, 236, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(255, 184, 236, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.24);
}

.v2plan-idea-overlay {
  position: fixed;
  inset: 0;
  z-index: 12200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  pointer-events: none;
}

.v2plan-idea-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
}

.v2plan-view-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 12, 0.55);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.v2plan-idea-overlay.is-open .v2plan-view-backdrop {
  opacity: 1;
}

.v2plan-view-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 760px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #16141e 0%, #0e0c14 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 0.9, 0.25, 1);
  scrollbar-width: thin;
}

.v2plan-idea-overlay.is-open .v2plan-view-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.v2plan-view-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

.v2plan-view-close:hover {
  background: rgba(0, 0, 0, 0.65);
}

.v2plan-view-banner {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.04);
}

.v2plan-view-banner img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.v2plan-view-inner {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.v2plan-view-col {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: color-mix(in srgb, var(--v2plan-accent, #8b9cff) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--v2plan-accent, #8b9cff) 45%, transparent);
}

.v2plan-view-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.v2plan-view-due {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.v2plan-view-due.is-overdue {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

.v2plan-view-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
}

.v2plan-view-desc--empty {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.v2plan-view-link {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 600;
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v2plan-view-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.v2plan-view-open {
  overflow: hidden;
}

/* ---------- FLORA Image Crop (upload + recadrage) ---------- */

.flora-scroll {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 236, 0.35) rgba(255, 255, 255, 0.04);
}

.flora-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.flora-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.flora-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.flora-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 184, 236, 0.42);
  background-clip: padding-box;
}

.flora-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  pointer-events: none;
}

.flora-crop-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
}

.flora-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 12, 0.62);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.flora-crop-overlay.is-open .flora-crop-backdrop {
  opacity: 1;
}

.flora-crop-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121018;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 0.9, 0.25, 1);
}

.flora-crop-overlay.is-open .flora-crop-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.flora-crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background: #0e0c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.flora-crop-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.75);
}

.flora-crop-title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.flora-crop-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  flex-shrink: 0;
}

.flora-crop-close:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.flora-crop-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flora-crop-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.flora-crop-file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.flora-crop-file-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.flora-crop-file-btn:hover {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.12);
}

.flora-crop-file-name {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.flora-crop-stage-wrap {
  width: 100%;
  max-width: 100%;
}

.flora-crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0810;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.flora-crop-stage:active {
  cursor: grabbing;
}

.flora-crop-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

.flora-crop-zoom-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.flora-crop-zoom-wrap label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.flora-crop-zoom-wrap input[type="range"] {
  flex: 1;
  accent-color: #818cf8;
}

.flora-crop-hint {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}

.flora-crop-error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.28);
  color: #fda4af;
  font-size: 0.78rem;
}

.flora-crop-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0e0c14;
  flex-shrink: 0;
}

body.flora-crop-busy .flora-crop-stage {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 520px) {
  .flora-crop-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .flora-crop-dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
  }
}

/* ---------- STAFF CANDID - Recrutements ---------- */

.admin-user-badge--staff-mgr {
  background: rgba(244, 114, 182, 0.16);
  border-color: rgba(244, 114, 182, 0.35);
  color: #fbcfe8;
}

.admin-user-badge--sasp {
  background: rgba(163, 163, 163, 0.16);
  border-color: rgba(163, 163, 163, 0.35);
  color: #e5e5e5;
}

.flora-nav-icon--sasp svg,
.flora-nav-sasp-svg {
  width: 22px;
  height: 22px;
  color: #d4d4d4;
}

.admin-showcase-card__visual--staff-candid {
  background: radial-gradient(circle at 30% 20%, rgba(244, 114, 182, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.flora-nav-icon--staff-candid.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.flora-nav-icon--staff-candid svg,
.flora-nav-staff-svg {
  width: 22px;
  height: 22px;
  color: #f9a8d4;
}

.flora-nav-icon--staff-candid:hover svg {
  color: #fbcfe8;
}

.flora-nav-icon--staff-candid.is-disabled svg {
  opacity: 0.45;
}

.flora-nav-staff-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

/* Rocker switch ON/OFF */
.flora-rocker {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.flora-rocker-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  min-width: 160px;
}

.flora-rocker-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.flora-rocker-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.flora-rocker-track {
  position: relative;
  width: 52px;
  height: 88px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 48%, #1a1a1a 100%);
  border: 2px solid #2a2a2a;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.flora-rocker-thumb {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 46px;
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(180deg, #3a3a3a, #1f1f1f);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.08) inset, 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: top 0.22s cubic-bezier(0.22, 0.9, 0.25, 1);
}

.flora-rocker-switch input:checked + .flora-rocker-track .flora-rocker-thumb {
  top: 6px;
  background: linear-gradient(180deg, #fda4af, #e879a9);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.45);
}

.flora-rocker-on,
.flora-rocker-off {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.flora-rocker-on { align-self: start; margin-top: 4px; }
.flora-rocker-off { align-self: end; margin-bottom: 4px; }

.flora-rocker-switch input:checked ~ .flora-rocker-on { color: #fda4af; }
.flora-rocker-switch input:not(:checked) ~ .flora-rocker-off { color: rgba(255, 255, 255, 0.7); }

.admin-sc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.admin-sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#admin-sc-detail-modal {
  z-index: 11000;
}

#admin-sc-detail-modal .flora-tablet-backdrop {
  background: rgba(4, 3, 8, 0.96);
}

#admin-sc-detail-modal .flora-tablet-screen,
#admin-sc-detail-modal .flora-tablet-screen--wl {
  flex-direction: column;
}

#admin-sc-detail-modal .sc-id-card {
  margin-bottom: 0.5rem;
}

#admin-sc-list-search,
#admin-sc-archive-search {
  margin-bottom: 0.85rem;
}

.admin-sc-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-sc-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  min-height: 3.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.admin-sc-row:hover,
.admin-sc-row.is-selected {
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.08);
}

.admin-sc-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.admin-sc-row-main strong {
  font-size: 1rem;
}

.admin-sc-row-main span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.admin-sc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.admin-sc-badge--new {
  background: rgba(129, 140, 248, 0.2);
  color: #c4b5fd;
}

.admin-sc-badge--seen {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

/* Questionnaire staff · liquid glass (style accueil Flora) */
.sc-page-body {
  position: relative;
  background: #0a0810;
  min-height: 100vh;
  overflow-x: hidden;
}

.sc-page-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 55% at 12% -8%, rgba(255, 184, 236, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 45% at 98% 105%, rgba(201, 49, 104, 0.1), transparent 52%),
    radial-gradient(ellipse 50% 35% at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%),
    linear-gradient(180deg, #08060c 0%, #100c14 45%, #08060c 100%);
}

.sc-page-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 78%);
}

.sc-page-body > .flora-nav,
.sc-page-body > .sc-page,
.sc-page-body > .flora-footer {
  position: relative;
  z-index: 1;
}

.sc-page-body .flora-nav {
  background: linear-gradient(180deg, rgba(8, 4, 10, 0.58) 0%, rgba(8, 4, 10, 0) 100%);
}

.sc-page {
  position: relative;
  min-height: calc(100vh - 120px);
  padding: 1.25rem 1rem 5.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.sc-gate-msg {
  text-align: center;
  font-size: 0.88rem;
  color: #fda4af;
  min-height: 1.4em;
  margin-bottom: 0.75rem;
}

.sc-progress-wrap {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.sc-progress {
  height: 100%;
  width: 0;
  background: var(--accent-pink);
  transition: width 0.35s ease;
}

.sc-deck {
  position: relative;
  min-height: 420px;
}

.sc-deck.is-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.3);
}

.sc-slide {
  display: none;
}

.sc-slide.is-active {
  display: block;
  animation: scFadeIn 0.35s ease;
}

@keyframes scFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sc-glass {
  background: linear-gradient(170deg, rgba(20, 16, 24, 0.36) 0%, rgba(12, 10, 18, 0.3) 100%);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow:
    0 24px 50px -28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sc-slide-inner {
  padding: clamp(1.1rem, 3vw, 1.75rem);
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sc-head { margin-bottom: 1rem; }
.sc-head--center { text-align: center; }

.sc-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.75);
}

.sc-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
}

.sc-title span {
  color: rgba(255, 184, 236, 0.9);
}

.sc-lead {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  line-height: 1.55;
}

.sc-cover-icon {
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 8px 20px rgba(244, 114, 182, 0.35));
}

.sc-grid {
  display: grid;
  gap: 0.75rem;
}

.sc-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.sc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sc-field--full { grid-column: 1 / -1; }

.sc-field span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.sc-field input,
.sc-field textarea {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.65rem 0.75rem;
  font: inherit;
  width: 100%;
  resize: vertical;
}

.sc-field input:focus,
.sc-field textarea:focus {
  outline: none;
  border-color: rgba(244, 114, 182, 0.45);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.12);
}

.sc-field-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sc-field-count.is-warn { color: #ff8fb0; }
.sc-field-count.is-ok { color: #7be3a3; }

.sc-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.sc-skill span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.sc-meter {
  display: flex;
  gap: 5px;
}

.sc-seg {
  flex: 1;
  height: 9px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
}

.sc-seg.is-on {
  background: rgba(255, 184, 236, 0.82);
  box-shadow: 0 0 8px rgba(255, 184, 236, 0.35);
}

.sc-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.sc-photo {
  position: relative;
  aspect-ratio: 4/3;
  min-height: 150px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03) center/cover no-repeat;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}

.sc-photo input { display: none; }

.sc-photo span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 0.5rem;
}

.sc-photo.is-filled span { display: none; }

.sc-avail {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 0.72rem;
}

.sc-avail th {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.sc-avail-label {
  text-align: right;
  padding-right: 6px;
  color: rgba(255, 255, 255, 0.55);
}

.sc-avail-cell {
  width: 100%;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
}

.sc-avail-cell.is-on {
  background: linear-gradient(135deg, #f9a8d4, #818cf8);
  border-color: transparent;
}

.sc-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.sc-check input {
  margin-top: 0.2rem;
  accent-color: #f472b6;
}

.sc-nav {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(170deg, rgba(20, 16, 24, 0.42) 0%, rgba(12, 10, 18, 0.38) 100%);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  z-index: 50;
}

.sc-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.sc-nav-btn--primary {
  width: auto;
  border-radius: 999px;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-color: rgba(255, 184, 236, 0.45);
  background: rgba(255, 184, 236, 0.16);
  color: #fff;
}

.sc-nav-btn--primary:hover:not(:disabled) {
  background: rgba(255, 184, 236, 0.28);
  border-color: rgba(255, 184, 236, 0.65);
}

.sc-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sc-counter {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.sc-counter b { color: #fff; }

.sc-id-card {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(244, 114, 182, 0.22);
  background: rgba(244, 114, 182, 0.08);
}

.sc-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.sc-id-code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fbcfe8;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.sc-id-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.48);
}

.sc-id-hint--inline {
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-success-panel {
  text-align: center;
}

.sc-deck.sc-deck--success {
  min-height: 520px;
}

.sc-deck.sc-deck--success .sc-slide-inner {
  padding: clamp(2rem, 5vw, 3.25rem);
  max-height: none;
}

.sc-head--success {
  margin-bottom: 1.5rem;
}

.sc-title--success {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
}

.sc-lead--success {
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.sc-success-panel .sc-id-card {
  margin: 1.5rem auto 1.35rem;
  padding: 1.35rem 1.5rem 1.25rem;
  max-width: 560px;
  text-align: left;
  border-color: rgba(255, 184, 236, 0.35);
  background: rgba(255, 184, 236, 0.1);
  pointer-events: auto;
}

.sc-success-panel .sc-id-row {
  margin-top: 0.75rem;
  gap: 0.75rem;
  justify-content: stretch;
}

.sc-success-panel .sc-id-code {
  flex: 1 1 auto;
  font-size: clamp(1.2rem, 3.2vw, 1.75rem);
  padding: 0.65rem 0.9rem;
  user-select: all;
  cursor: text;
  color: #ffe4f3;
}

.sc-success-panel .sc-id-copy {
  flex: 0 0 auto;
  pointer-events: auto;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(255, 184, 236, 0.22);
  color: #fff;
}

.sc-success-panel .sc-id-copy:hover {
  background: rgba(255, 184, 236, 0.34);
  border-color: rgba(255, 184, 236, 0.75);
}

.sc-success-panel .sc-id-hint {
  font-size: 0.88rem;
  line-height: 1.55;
}

.sc-success-panel .wl-read-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.sc-success-panel a {
  color: var(--accent-pink);
  font-weight: 600;
}

/* Carte d'identité candidat (étape présentation) */
.sc-idcard {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 236, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(12, 10, 16, 0.28) 100%);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 40px rgba(0, 0, 0, 0.32);
}

.sc-idcard__stripe {
  height: 6px;
  background: var(--accent-pink);
}

.sc-idcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem 0.35rem;
}

.sc-idcard__brand-title {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.sc-idcard__brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.sc-idcard__chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 184, 236, 0.35);
  background: rgba(255, 184, 236, 0.12);
  position: relative;
}

.sc-idcard__chip::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 184, 236, 0.25);
}

.sc-idcard__main {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 0.85rem;
  padding: 0.35rem 1rem 0.85rem;
}

.sc-idcard__photo {
  width: 128px;
  height: 156px;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 236, 0.22);
  background: rgba(255, 184, 236, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 184, 236, 0.55);
  overflow: hidden;
}

.sc-idcard__photo svg {
  width: 42px;
  height: 42px;
}

.sc-idcard__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-idcard__fields {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.sc-idcard__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sc-idcard__field--wide {
  grid-column: 1 / -1;
}

.sc-idcard__field span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.65);
}

.sc-idcard__field input,
.sc-idcard__field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 0.55rem 0.65rem;
  font: inherit;
  resize: vertical;
}

.sc-idcard__field input:focus,
.sc-idcard__field textarea:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 184, 236, 0.12);
}

.sc-idcard__footer {
  padding: 0.55rem 1rem;
  border-top: 1px solid rgba(255, 184, 236, 0.14);
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
}

.sc-bg-panel.is-wl-import .sc-field textarea.is-wl-import {
  opacity: 0.92;
  cursor: default;
}

.sc-bg-wl-note {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 236, 0.22);
  background: rgba(255, 184, 236, 0.08);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 184, 236, 0.88);
}

.sc-bg-wl-link {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-pink);
  text-decoration: none;
}

.sc-bg-wl-link:hover {
  text-decoration: underline;
}

.sc-read-question.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  line-height: 1.45;
}

.sc-read-more-btn {
  margin-top: 0.2rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-pink);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
}

.sc-read-more-btn[hidden] {
  display: none;
}

.sc-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.sc-star {
  color: rgba(255, 255, 255, 0.18);
  font-size: 1.05rem;
  line-height: 1;
}

.sc-star.is-on {
  color: #f9a8d4;
  text-shadow: 0 0 8px rgba(249, 168, 212, 0.45);
}

.sc-stars-num {
  margin-left: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.sc-skills-read {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.sc-idcard--readonly .sc-idcard__read {
  border: 1px solid rgba(255, 184, 236, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.55rem 0.65rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  min-height: 2.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.sc-admin-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.75rem;
}

.sc-admin-photo {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 236, 0.18);
  aspect-ratio: 4/3;
  min-height: 160px;
}

.sc-admin-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 640px) {
  .sc-grid-2,
  .sc-skills,
  .sc-photos,
  .sc-skills-read,
  .sc-admin-photos {
    grid-template-columns: 1fr;
  }

  .sc-idcard__main {
    grid-template-columns: 1fr;
  }

  .sc-idcard__photo {
    width: 100%;
    height: 156px;
  }

  .flora-rocker-track {
    width: 44px;
    height: 72px;
  }
}

/* ---------- SASP MDT · tablette neutre ---------- */

.sasp-page-body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(180deg, #121214 0%, #0a0a0b 100%);
  min-height: 100vh;
}

.sasp-page-body .flora-nav--sasp-minimal {
  justify-content: flex-start;
  height: auto;
  padding: 1rem clamp(0.85rem, 2.5vw, 1.75rem) 0.35rem;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.sasp-page-body .flora-nav--sasp-minimal .flora-nav-logo {
  pointer-events: auto;
}

.sasp-page-body .flora-footer {
  display: none;
}

.sasp-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 0.5rem clamp(0.75rem, 2vw, 1.5rem) 1.5rem;
}

.sasp-device {
  width: min(1280px, 96vw);
  perspective: 1200px;
}

.sasp-device__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  padding: 10px;
  background:
    linear-gradient(145deg, #3a3a3f 0%, #222226 38%, #18181b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sasp-device__shell::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.sasp-device__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.25rem 0.35rem;
  flex-shrink: 0;
}

.sasp-device__top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.sasp-device__speaker {
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  justify-self: center;
}

.sasp-device__cam {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #52525b, #18181b 65%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sasp-device__status {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.sasp-device__power {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.sasp-device__power:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.sasp-device__screen {
  position: relative;
  flex: 1;
  min-height: min(84vh, 860px);
  border-radius: 22px;
  overflow: hidden;
  background: #141416;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sasp-device__chin {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0.22rem 0 0.12rem;
}

.sasp-device__home {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sasp-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #141416;
  overflow: auto;
}

.sasp-panel[hidden] {
  display: none !important;
}

.sasp-panel-inner {
  width: min(520px, 100%);
}

.sasp-panel-inner--wide {
  width: min(680px, 100%);
}

.sasp-panel-head {
  margin-bottom: 1.35rem;
}

.sasp-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.sasp-title {
  margin: 0;
  font-family: var(--font-tech);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5f5f5;
}

.sasp-lead,
.sasp-msg,
.sasp-hint {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.sasp-lead {
  margin-top: 0.55rem;
  font-size: 0.95rem;
}

.sasp-msg {
  margin: 1rem 0;
  font-size: 1rem;
}

.sasp-hint {
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.38);
}

.sasp-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.sasp-form-msg {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: #fca5a5;
}

.sasp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.sasp-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sasp-field--full {
  grid-column: 1 / -1;
}

.sasp-field span {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sasp-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #fafafa;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
}

.sasp-field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.sasp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
  padding: 0.75rem 1.15rem;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.sasp-btn--primary {
  background: linear-gradient(180deg, #fafafa 0%, #d4d4d4 100%);
  color: #171717;
  border-color: rgba(255, 255, 255, 0.35);
}

.sasp-btn--primary:hover {
  filter: brightness(1.03);
}

.sasp-btn--wide {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.15rem;
}

.sasp-panel--mdt {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.sasp-mdt-app {
  display: grid;
  grid-template-columns: 228px 1fr;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.sasp-mdt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.65rem;
  background: linear-gradient(180deg, #101014 0%, #0c0c0e 100%);
  border-right: 1px solid rgba(96, 165, 250, 0.12);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.sasp-mdt-brand {
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: rgba(15, 23, 42, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sasp-mdt-brand-title {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5f5f5;
}

.sasp-mdt-brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.sasp-mdt-sidebar-note {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.75);
}

.sasp-mdt-nav {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sasp-mdt-nav::-webkit-scrollbar {
  display: none;
}

.sasp-mdt-nav-btn,
.sasp-mdt-foot-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
  padding: 0.52rem 0.58rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sasp-mdt-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.sasp-mdt-nav-btn:hover,
.sasp-mdt-foot-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sasp-mdt-nav-btn.is-active {
  background: rgba(96, 165, 250, 0.12);
  color: #fff;
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.sasp-mdt-nav-btn.is-active .sasp-mdt-nav-dot {
  background: #93c5fd;
}

.sasp-mdt-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sasp-mdt-foot-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.sasp-mdt-agent {
  margin-top: 0;
  padding: 0.6rem 0.65rem;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(96, 165, 250, 0.14);
}

.sasp-mdt-agent strong {
  display: block;
  font-size: 0.92rem;
  color: #fafafa;
}

.sasp-mdt-agent-brand {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.sasp-mdt-agent-delete {
  margin-top: 0.55rem;
  width: 100%;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  font-size: 0.68rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.sasp-mdt-agent-delete:hover {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.sasp-mdt-agent-delete:disabled {
  opacity: 0.5;
  cursor: default;
}

.sasp-mdt-agent span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
}

.sasp-mdt-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #161618;
}

.sasp-mdt-main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.85rem 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sasp-mdt-tab {
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  padding: 0.65rem 1rem;
  font-size: 0.84rem;
  cursor: pointer;
}

.sasp-mdt-tab.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

.sasp-mdt-statusbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.85rem 1rem;
}

.sasp-mdt-stat {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sasp-mdt-stat span {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.sasp-mdt-stat strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.92rem;
  color: #f5f5f5;
  word-break: break-word;
}

.sasp-mdt-stat--risk strong.is-ok {
  color: #86efac;
}

.sasp-mdt-content {
  flex: 1;
  padding: 0.85rem 1rem 1.25rem;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sasp-mdt-content::-webkit-scrollbar {
  display: none;
}

.sasp-mdt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.sasp-mdt-panel-title {
  margin: 0;
  font-size: 1.05rem;
  color: #fafafa;
}

.sasp-mdt-panel-action {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  padding: 0.45rem 0.8rem;
  font-size: 0.76rem;
}

.sasp-mdt-panel-action:disabled {
  opacity: 0.45;
}

.sasp-mdt-placeholder {
  min-height: min(42vh, 420px);
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.sasp-mdt-placeholder p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.sasp-mdt-placeholder-sub {
  margin-top: 0.55rem !important;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.38) !important;
}

@media (max-width: 980px) {
  .sasp-device {
    width: 100%;
  }

  .sasp-device__shell {
    border-radius: 26px;
    padding: 8px;
  }

  .sasp-device__screen {
    min-height: min(80vh, 760px);
    border-radius: 18px;
  }

  .sasp-device__chin {
    padding: 0.15rem 0 0.08rem;
  }

  .sasp-device__home {
    width: 22px;
    height: 22px;
  }

  .sasp-mdt-app {
    grid-template-columns: 1fr;
  }

  .sasp-mdt-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    max-height: 240px;
  }

  .sasp-mdt-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sasp-mdt-nav-btn {
    width: auto;
    flex: 1 1 calc(50% - 0.25rem);
    font-size: 0.78rem;
    padding: 0.5rem 0.55rem;
  }

  .sasp-mdt-statusbar {
    grid-template-columns: 1fr 1fr;
  }

  .sasp-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- SASP MCD module ---------- */

.sasp-mdt-nav-label,
.sasp-mdt-nav-folder-title {
  margin: 0.15rem 0 0.1rem;
  padding: 0 0.35rem;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sasp-mdt-nav-folder {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sasp-mdt-nav-btn--sub {
  padding-left: 1.15rem;
  font-size: 0.82rem;
}

.sasp-mcd-view {
  padding: 0.25rem 0.15rem 1rem;
  height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sasp-mcd-view::-webkit-scrollbar {
  display: none;
}

.sasp-mcd-view-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #f5f5f5;
}

.sasp-mcd-view-head p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.45);
}

.sasp-mcd-view-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.sasp-mcd-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sasp-mcd-board {
  position: relative;
  min-height: min(52vh, 520px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.04), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #3d3428 0%, #2f2922 45%, #2a241e 100%);
  overflow: hidden;
}

.sasp-mcd-board-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.sasp-mcd-string {
  fill: none;
  stroke: #c0392b;
  stroke-width: 2;
  stroke-dasharray: 6 4;
  opacity: 0.85;
}

.sasp-mcd-board-nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.sasp-mcd-node {
  position: absolute;
  width: min(220px, 34vw);
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 252, 245, 0.94);
  color: #1a1a1a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  cursor: grab;
  user-select: none;
}

.sasp-mcd-node:active { cursor: grabbing; }
.sasp-mcd-node.is-link-pick { outline: 2px solid #c0392b; }

.sasp-mcd-node--case {
  width: min(260px, 38vw);
  border-top: 4px solid #737373;
}

.sasp-mcd-node--file {
  width: min(190px, 30vw);
  transform: rotate(-1.5deg);
}

.sasp-mcd-node-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #737373;
}

.sasp-mcd-node-del {
  border: none;
  background: transparent;
  color: #737373;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.sasp-mcd-node strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.3;
}

.sasp-mcd-node p {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #404040;
}

.sasp-mcd-node-files {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  font-size: 0.72rem;
  color: #525252;
}

.sasp-mcd-members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sasp-mcd-members-col h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sasp-mcd-members-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sasp-mcd-member-card {
  padding: 0.6rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.sasp-mcd-member-card strong {
  display: block;
  font-size: 0.88rem;
}

.sasp-mcd-member-card span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
}

.sasp-mcd-mini-btn {
  margin-top: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}

.sasp-mcd-inline-form,
.sasp-mcd-form-row {
  display: grid;
  gap: 0.65rem;
}

.sasp-mcd-form-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.65rem;
}

.sasp-mcd-inline-form label span,
.sasp-mcd-form-grid label span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.sasp-mcd-inline-form input,
.sasp-mcd-inline-form select,
.sasp-mcd-form-grid input,
.sasp-mcd-form-grid select,
.sasp-mcd-form-grid textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: #fafafa;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.sasp-mcd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sasp-mcd-form-full { grid-column: 1 / -1; }

.sasp-mcd-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.85rem;
}

.sasp-mcd-empty--cards {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(96, 165, 250, 0.22);
  background: rgba(15, 23, 42, 0.35);
}

.sasp-mcd-idcard {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: linear-gradient(165deg, rgba(18, 28, 48, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sasp-mcd-idcard:hover {
  border-color: rgba(96, 165, 250, 0.38);
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(96, 165, 250, 0.12);
}

.sasp-mcd-idcard-stripe {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.sasp-mcd-idcard-stripe-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.sasp-mcd-idcard-stripe-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  flex: 1;
}

.sasp-mcd-idcard-stripe-text span {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.72);
}

.sasp-mcd-idcard-stripe-text strong {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0f2fe;
}

.sasp-mcd-idcard-ref {
  flex-shrink: 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #93c5fd;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(0, 0, 0, 0.28);
}

.sasp-mcd-idcard-body {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem 0.55rem;
}

.sasp-mcd-idcard-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.sasp-mcd-idcard-title-row h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: #f8fafc;
  word-break: break-word;
}

.sasp-mcd-idcard-type {
  flex-shrink: 0;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.sasp-mcd-idcard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.45rem;
}

.sasp-mcd-idcard-stats div {
  min-width: 0;
}

.sasp-mcd-idcard-stats dt {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.sasp-mcd-idcard-stats dd {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sasp-mcd-idcard-excerpt {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sasp-mcd-idcard-photo {
  position: relative;
  width: 88px;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sasp-mcd-idcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sasp-mcd-idcard-photo img.is-placeholder {
  object-fit: contain;
  padding: 0.35rem;
  opacity: 0.85;
  background: rgba(15, 23, 42, 0.8);
}

.sasp-mcd-idcard-photo-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sasp-mcd-idcard-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(96, 165, 250, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.sasp-mcd-idcard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #dbeafe;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.45), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(96, 165, 250, 0.3);
  flex-shrink: 0;
}

.sasp-mcd-idcard-author {
  min-width: 0;
}

.sasp-mcd-idcard-author strong {
  display: block;
  font-size: 0.76rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sasp-mcd-idcard-author span {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.66rem;
  color: rgba(148, 163, 184, 0.85);
}

.sasp-mcd-idcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem 0.65rem;
  border-top: 1px dashed rgba(96, 165, 250, 0.12);
}

.sasp-btn--sm {
  padding: 0.35rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Legacy report card classes kept for paper view / forms */
.sasp-mcd-reports-list {
  display: grid;
  gap: 0.65rem;
}

.sasp-mcd-report-card {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sasp-mcd-report-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.sasp-mcd-report-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}

.sasp-mcd-report-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.sasp-mdt-content:has(.sasp-mcd-view--map) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0.65rem;
}

.sasp-mcd-view--map {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

.sasp-mcd-view--map .sasp-mcd-view-head {
  flex-shrink: 0;
}

.sasp-mcd-map-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(8, 12, 24, 0.72) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.sasp-mcd-map-wrap {
  flex: 1;
  position: relative;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sasp-mcd-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #0a0a0b;
  z-index: 1;
}

.sasp-mcd-map-wrap .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: #0a0a0b;
}

.sasp-mcd-map-ui {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  pointer-events: none;
}

.sasp-mcd-map-list {
  pointer-events: auto;
  width: min(240px, 72vw);
  max-height: min(32vh, 220px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(10, 16, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.sasp-mcd-pl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.sasp-mcd-pl-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.sasp-mcd-pl-count {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(30, 41, 59, 0.7);
  color: #93c5fd;
}

.sasp-mcd-pl-scroll {
  overflow: auto;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sasp-mcd-pl-scroll::-webkit-scrollbar {
  display: none;
}

.sasp-mcd-pl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sasp-mcd-pl-item:hover {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(30, 41, 59, 0.55);
}

.sasp-mcd-pl-pin {
  width: 20px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sasp-mcd-pl-pin img {
  width: 18px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.sasp-mcd-map-pin {
  background: transparent !important;
  border: none !important;
}

.sasp-mcd-map-pin .sasp-mcd-pin-img {
  width: 40px;
  height: 50px;
  display: block;
  pointer-events: auto;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.sasp-mcd-pl-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sasp-mcd-pl-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sasp-mcd-pl-note {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sasp-mcd-pl-empty {
  margin: 0;
  padding: 0.35rem 0.25rem;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.75);
}

.sasp-mcd-node-photo {
  margin-top: 0.35rem;
  border-radius: 6px;
  overflow: hidden;
  max-height: 90px;
}

.sasp-mcd-node-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.sasp-mcd-node-report {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  color: #404040;
}

.sasp-mcd-node--photo { border-top: 4px solid #2563eb; }
.sasp-mcd-node--report { border-top: 4px solid #7c3aed; }

.sasp-mcd-unit-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sasp-mcd-unit-head h2 { margin: 0; }
.sasp-mcd-unit-head p { margin: 0.25rem 0 0; }
.sasp-mcd-unit-head .sasp-btn { margin-left: auto; }

.sasp-mcd-unit-logo {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.sasp-mcd-unit-logo--sm { flex-shrink: 0; }

.sasp-mcd-board-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sasp-mcd-members-col--lead .sasp-mcd-role-dot { background: #fbbf24; }
.sasp-mcd-members-col--colead .sasp-mcd-role-dot { background: #60a5fa; }
.sasp-mcd-members-col--member .sasp-mcd-role-dot { background: #94a3b8; }

.sasp-mcd-members-col h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sasp-mcd-role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.sasp-mcd-member-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.sasp-mcd-member-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
}

.sasp-mcd-member-info strong { display: block; font-size: 0.88rem; }
.sasp-mcd-member-actions { display: flex; gap: 0.25rem; }

.sasp-mcd-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.85rem;
}

.sasp-mcd-icon-btn.is-danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.25); }

.sasp-mcd-empty-card {
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
  text-align: center;
}

.sasp-mcd-report-snippet {
  margin: 0.35rem 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
}

.sasp-btn--danger {
  border-color: rgba(248, 113, 113, 0.28) !important;
  color: #fca5a5 !important;
}

/* Overlays tablette intégrés */
.sasp-tablet-overlays {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

.sasp-tablet-overlays.is-active { pointer-events: auto; }

.sasp-mdt-main { position: relative; }

.sasp-tablet-modal,
.sasp-tablet-context,
.sasp-tablet-toast {
  pointer-events: auto;
}

.sasp-tablet-modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  z-index: 50;
}

.sasp-tablet-modal[hidden] { display: none !important; }

.sasp-tablet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
}

.sasp-tablet-modal-dialog {
  position: relative;
  width: min(420px, 92%);
  max-height: 88%;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: linear-gradient(180deg, #0c1a32 0%, #081224 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.sasp-tablet-modal-dialog.is-wide { width: min(760px, 96%); }
.sasp-tablet-modal-dialog.is-report { width: min(860px, 98%); }

.sasp-tablet-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
}

.sasp-tablet-modal-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.sasp-tablet-modal-x {
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.55);
  font-size: 1.2rem;
  cursor: pointer;
}

.sasp-tablet-modal-body { padding: 0.85rem 0.9rem; }

.sasp-tablet-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0 0.9rem 0.85rem;
}

.sasp-tablet-msg {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.5;
}

.sasp-tablet-field { display: block; margin-bottom: 0.65rem; }
.sasp-tablet-field span,
.sasp-tablet-field-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.sasp-tablet-input,
.sasp-tablet-textarea,
.sasp-tablet-field input,
.sasp-tablet-field select,
.sasp-tablet-field textarea,
.sasp-mcd-report-form input,
.sasp-mcd-report-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  padding: 0.55rem 0.65rem;
  font-size: 0.84rem;
}

.sasp-tablet-textarea { resize: vertical; min-height: 88px; }

.sasp-tablet-btn {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.sasp-tablet-btn--primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: rgba(59, 130, 246, 0.5);
  color: #fff;
}

.sasp-tablet-btn--danger {
  background: rgba(127, 29, 29, 0.35);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.sasp-tablet-context {
  position: absolute;
  z-index: 12001;
  min-width: 190px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #161618;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 0.35rem;
  margin: 0;
}

.sasp-tablet-context[hidden] { display: none !important; }

.sasp-tablet-ctx-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #e5e5e5;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
}

.sasp-tablet-ctx-item:hover { background: rgba(255, 255, 255, 0.06); }
.sasp-tablet-ctx-item.is-danger { color: #fca5a5; }
.sasp-tablet-ctx-sep { height: 1px; margin: 0.25rem 0; background: rgba(255, 255, 255, 0.08); }

.sasp-tablet-toast {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #e2e8f0;
  font-size: 0.78rem;
  z-index: 60;
  max-width: 90%;
  text-align: center;
}

.sasp-tablet-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.sasp-tablet-toast.is-error { border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }
.sasp-tablet-toast[hidden] { display: none !important; }

.sasp-mcd-member-form .sasp-mcd-form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.sasp-mcd-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.sasp-mcd-report-full { grid-column: 1 / -1; }

.sasp-mcd-richtext-block { margin-bottom: 0.75rem; }

.sasp-mcd-richtoolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: rgba(15, 23, 42, 0.55);
}

.sasp-mcd-richtoolbar button {
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.72rem;
}

.sasp-mcd-richtoolbar button.is-blue { background: #2563eb; }
.sasp-mcd-richtoolbar button.is-cyan { background: #0d9488; }
.sasp-mcd-richtoolbar button.is-red { background: #dc2626; }
.sasp-mcd-richtoolbar button.is-purple { background: #7c3aed; }

.sasp-mcd-richeditor {
  min-height: 120px;
  max-height: 180px;
  overflow: auto;
  padding: 0.65rem;
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 0.84rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sasp-mcd-richeditor:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

.sasp-mcd-richtext-block:focus-within .sasp-mcd-richtoolbar {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(15, 23, 42, 0.72);
}

.sasp-mcd-richtext-block:focus-within .sasp-tablet-field-label {
  color: #93c5fd;
}

.sasp-mcd-report-form .sasp-tablet-field:focus-within span {
  color: #93c5fd;
}

.sasp-mcd-report-form .sasp-tablet-field:focus-within input,
.sasp-mcd-report-form .sasp-tablet-field:focus-within select {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

.sasp-mcd-report-photos { margin-top: 0.5rem; }
.sasp-mcd-photo-actions { margin-bottom: 0.45rem; }

.sasp-mcd-report-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sasp-mcd-report-photo {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.sasp-mcd-report-photo img { width: 100%; height: 100%; object-fit: cover; }

.sasp-mcd-report-photo button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
}

.sasp-mcd-photo-drop {
  border: 1px dashed rgba(96, 165, 250, 0.35);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.82rem;
}

.sasp-mcd-photo-preview img {
  max-width: 100%;
  max-height: 180px;
  margin-top: 0.5rem;
  border-radius: 8px;
}

.sasp-mcd-empty {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.88rem;
}

.sasp-mcd-view--deploy {
  display: grid;
  place-items: center;
  min-height: min(50vh, 480px);
}

.sasp-mcd-deploy-box {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.sasp-mcd-deploy-box h2 {
  margin: 0.35rem 0;
  color: #f5f5f5;
}

.sasp-mcd-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sasp-mcd-modal[hidden] { display: none !important; }

.sasp-mcd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.sasp-mcd-modal-dialog {
  position: relative;
  width: min(920px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #161618;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.sasp-mcd-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sasp-mcd-modal-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #fafafa;
}

.sasp-mcd-modal-head button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.25rem;
  cursor: pointer;
}

.sasp-mcd-report-form {
  padding: 1rem;
}

.sasp-mcd-modal-foot {
  padding: 0 1rem 1rem;
  display: flex;
  justify-content: flex-end;
}

.sasp-mcd-richtoolbar button.is-active {
  background: rgba(96, 165, 250, 0.35);
  border-color: rgba(96, 165, 250, 0.55);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.4);
}

.sasp-mcd-richtoolbar button.is-last-color.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.sasp-mcd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
}

.sasp-mcd-bc-item {
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.9);
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.sasp-mcd-bc-item.is-current { color: #e2e8f0; font-weight: 600; }
.sasp-mcd-bc-sep { color: rgba(148, 163, 184, 0.45); }

.sasp-mcd-case-summary {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.sasp-mcd-explorer-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.22);
}

.sasp-mcd-explorer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.sasp-mcd-explorer-table th,
.sasp-mcd-explorer-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sasp-mcd-explorer-table th {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
  background: rgba(255, 255, 255, 0.03);
}

.sasp-mcd-xrow { cursor: pointer; }
.sasp-mcd-xrow:hover { background: rgba(96, 165, 250, 0.08); }
.sasp-mcd-xicon { margin-right: 0.35rem; }

.sasp-mcd-source-pick,
.sasp-mcd-radio {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.sasp-mcd-proofs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.sasp-mcd-proof-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.sasp-mcd-proof-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.sasp-mcd-proof-card figcaption {
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  color: #e2e8f0;
}

.sasp-mcd-proof-view {
  text-align: center;
}

.sasp-mcd-proof-view img {
  max-width: 100%;
  max-height: min(62vh, 520px);
  border-radius: 10px;
  object-fit: contain;
}

.sasp-mcd-paper {
  background: #f8f6f0;
  color: #1a1a1a;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.sasp-mcd-paper-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 0.85rem;
}

.sasp-mcd-paper-dept {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #525252;
}

.sasp-mcd-paper-head h4 {
  margin: 0.15rem 0 0;
  font-size: 1rem;
}

.sasp-mcd-paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin-bottom: 0.85rem;
}

.sasp-mcd-paper-grid span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #737373;
}

.sasp-mcd-paper-block {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sasp-mcd-paper-block h5 {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #404040;
}

.sasp-mcd-paper-rich {
  font-size: 0.86rem;
  line-height: 1.55;
}

.sasp-mcd-paper-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.sasp-mcd-paper-photos img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.sasp-mcd-paper-foot {
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.72rem;
  color: #525252;
}

@media (max-width: 980px) {
  .sasp-mcd-members-grid,
  .sasp-mcd-form-row {
    grid-template-columns: 1fr;
  }
}

