﻿/* =========================================================
   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;
}

/* ---------- Image de fond UNIQUEMENT sur la page Accueil ---------- */
/* Couche fixe composée (GPU) au lieu de background-attachment: fixed,
   qui forçait un repaint de tout le fond à chaque frame de scroll. */
body.flora-home-bg {
  background: #100510;
}
body.flora-home-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 4, 10, 0.06) 0%, rgba(8, 4, 10, 0.12) 55%, rgba(8, 4, 10, 0.22) 100%),
    url("https://i.imgur.com/vQqowjf.png") center top / cover no-repeat;
}

/* Grille décorative (uniquement sur l'accueil pour ne pas alourdir le noir) */
body.flora-home-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  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;
  z-index: 0;
  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: 1.1rem;                                 /* texte détaché du logo */
  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 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 0.9;
  color: var(--accent-pink);
  text-shadow: 0 0 12px rgba(255, 184, 236, 0.7);
  opacity: 0.9;
}

.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);
}

/* =========================================================
   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 calée en bas sur le fond */
.flora-welcome--home {
  justify-content: flex-end;
  gap: 0;
  padding-top: calc(var(--nav-height) + 1rem);
  padding-bottom: clamp(1.75rem, 4.5vh, 3rem);
}

.flora-join-card--bottom-bar {
  width: fit-content;
  max-width: min(720px, 94vw);
  padding: 0.85rem 1rem 0.75rem;
  margin: 0 auto;
  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-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(1.25rem, 3.5vh, 2.25rem);
  }
}

/* =========================================================
   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: 250px;

  /* 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);
}

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);
}

/* Sur la page règlement : on masque le logo de la navbar (déjà dans la sidebar)
   et on garde le groupe d'onglets/actions calé à DROITE de la navbar. */
body.rules-page-body .flora-nav-logo {
  display: none;
}

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

.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 fixée à gauche, pleine hauteur ---------- */
.rules-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rules-sidebar-width);
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(30, 22, 36, 0.96) 0%,
    rgba(20, 14, 26, 0.96) 35%,
    rgba(14, 10, 20, 0.97) 100%
  );
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  z-index: 110;
  box-shadow:
    4px 0 48px -18px rgba(0, 0, 0, 0.55),
    inset -1px 0 0 rgba(255, 184, 236, 0.14);
}

.rules-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 184, 236, 0.06) 0%,
    transparent 28%,
    transparent 72%,
    rgba(201, 49, 104, 0.04) 100%
  );
  pointer-events: none;
  z-index: 0;
}

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

/* Zone "logo" de la sidebar : exactement à la hauteur de la navbar */
.rules-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: var(--nav-height);
  padding: 0 1.1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: background 0.25s ease;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rules-sidebar-logo:hover {
  background: rgba(255, 184, 236, 0.06);
}

.rules-sidebar-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 184, 236, 0.55));
  flex-shrink: 0;
}

.rules-sidebar-logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rules-sidebar-logo-title {
  color: #fff;
  font-size: 1.05rem;
}

.rules-sidebar-logo-sep {
  color: var(--accent-pink);
  font-weight: 400;
  opacity: 0.7;
}

.rules-sidebar-logo-sub {
  color: var(--accent-pink);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* L'ancienne ligne décorative n'est plus nécessaire (la zone logo a déjà sa border-bottom) */
.rules-sidebar-divider {
  display: none;
}

/* ---------- Sommaire vertical ---------- */
.rules-toc {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 0.75rem 1.5rem;
  background: transparent;
  border: none;
  margin: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* Groupe de catégorie - panneau glass */
.rules-toc-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--rules-glass-inset);
}

.rules-toc-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.45rem 0.35rem;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 184, 236, 0.92);
  text-shadow: 0 0 12px rgba(255, 184, 236, 0.35);
}

.rules-toc-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 184, 236, 0.35), rgba(255, 184, 236, 0.15));
  order: 1;
}

/* Mini-logo Flora à droite du trait */
.rules-toc-group-title::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("https://i.imgur.com/Uzxlzj3.png") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 184, 236, 0.7));
  order: 2;
  margin-left: 0.15rem;
  opacity: 0.95;
}

.rules-toc-link {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(247, 240, 244, 0.78);
  text-decoration: none;
  padding: 0.58rem 0.7rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 184, 236, 0.04) 100%
  );
  border: 1px solid var(--rules-glass-border);
  border-radius: 11px;
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  box-shadow: var(--rules-glass-inset), var(--rules-glass-shadow);
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-align: left;
}

.rules-toc-link:hover {
  color: #fff;
  border-color: var(--rules-glass-border-hover);
  background: linear-gradient(
    135deg,
    rgba(255, 184, 236, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  transform: translateX(2px);
  box-shadow:
    var(--rules-glass-inset),
    0 10px 26px -12px rgba(255, 184, 236, 0.28);
}

/* Catégorie active - glass rose lumineux */
.rules-toc-link.is-active {
  color: #fff;
  background: var(--rules-glass-bg-active);
  border-color: rgba(255, 184, 236, 0.55);
  backdrop-filter: blur(11px) saturate(1.3);
  -webkit-backdrop-filter: blur(11px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(201, 49, 104, 0.18),
    0 12px 32px -10px rgba(255, 184, 236, 0.42);
  transform: translateX(2px);
  text-shadow: 0 0 18px rgba(255, 184, 236, 0.35);
}

/* Scrollbar discrète dans la sidebar */
.rules-toc::-webkit-scrollbar { width: 6px; }
.rules-toc::-webkit-scrollbar-track { background: transparent; }
.rules-toc::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 236, 0.25);
  border-radius: 6px;
}

/* 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 haut, navbar redevient normale ---------- */
@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-sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(22, 16, 28, 0.32) 100%
    );
    backdrop-filter: var(--rules-glass-blur);
    -webkit-backdrop-filter: var(--rules-glass-blur);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: var(--rules-glass-shadow), var(--rules-glass-inset);
  }
  .rules-sidebar-logo {
    display: none;
  }
  .rules-toc {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem;
  }
  .rules-toc-link {
    flex: 0 0 auto;
  }
  .rules-page {
    padding: calc(var(--nav-height) + 2rem) clamp(1rem, 4vw, 3rem) 4rem;
  }
}

/* ---------- 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);
}

/* Pill "Accueil" mise en avant dans la sidebar */
.rules-toc-link--home {
  background: linear-gradient(
    135deg,
    rgba(255, 184, 236, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-color: rgba(255, 184, 236, 0.38);
  color: var(--accent-pink);
}

/* ---------- 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;
}

.rules-transition.is-playing {
  opacity: 1;
  visibility: visible;
}

.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.96s 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.92s cubic-bezier(0.22, 0.9, 0.25, 1) forwards;
}

.rules-transition.is-playing .rules-transition-logo--main {
  animation: rulesLogoPulse 0.92s 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.55s cubic-bezier(0.22, 0.9, 0.25, 1) both;
}

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

@keyframes rulesPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(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: 1.4rem;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
  background:
    linear-gradient(110deg, rgba(255, 184, 236, 0.14) 0%, rgba(20, 12, 22, 0.35) 60%);
  border: 1px solid rgba(255, 184, 236, 0.3);
  border-radius: 14px;
  overflow: hidden;
}

/* Barre rose lumineuse à gauche du header */
.rules-important-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent-pink), var(--accent-rose));
  box-shadow: 0 0 16px rgba(255, 184, 236, 0.7);
}

.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: 1rem;
  padding: 1.15rem 1.25rem 1.15rem 1.4rem;
  background: linear-gradient(155deg, rgba(255, 184, 236, 0.06), rgba(14, 10, 18, 0.55));
  border: 1px solid rgba(255, 184, 236, 0.18);
  border-radius: 12px;
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 0.93rem;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

/* Coin rose lumineux en haut à gauche */
.rules-important-list li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at top left, rgba(255, 184, 236, 0.4), transparent 70%);
  pointer-events: none;
}

/* 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, 184, 236, 0.5);
  background: linear-gradient(155deg, rgba(255, 184, 236, 0.1), rgba(20, 14, 24, 0.7));
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -16px rgba(255, 184, 236, 0.55);
}

/* ---------- 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: 1.1rem;
  margin-bottom: 1.4rem;
  padding: 1.3rem 1.6rem;
  background:
    linear-gradient(140deg, rgba(255, 184, 236, 0.14), rgba(20, 16, 24, 0.4));
  border: 1px solid rgba(255, 184, 236, 0.32);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.rules-section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-pink), var(--accent-rose));
}

.rules-section-emoji {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 184, 236, 0.5));
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.rules-section:hover .rules-section-emoji {
  transform: scale(1.15) rotate(-8deg);
}

.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: 2.4rem 0 1.1rem;
  padding: 0.85rem 1.1rem 0.85rem 1.2rem;
  background: linear-gradient(
    100deg,
    rgba(255, 184, 236, 0.16) 0%,
    rgba(255, 184, 236, 0.06) 35%,
    rgba(20, 14, 24, 0.45) 100%
  );
  border: 1px solid rgba(255, 184, 236, 0.32);
  border-left: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 184, 236, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Barre lumineuse à gauche */
.rules-subsection-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  box-shadow:
    0 0 14px rgba(255, 184, 236, 0.7),
    0 0 4px rgba(255, 184, 236, 1);
}

/* Petit halo en haut à droite */
.rules-subsection-title::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255, 184, 236, 0.14), transparent 70%);
  pointer-events: 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: 3px solid var(--accent-pink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-pink);
  text-shadow: 0 0 8px rgba(255, 184, 236, 0.35);
}

.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 (style "barre lumineuse" épuré) ---------- */
.rules-item {
  position: relative;
  padding: 1rem 1.3rem 1rem 1.4rem;
  background:
    linear-gradient(135deg, rgba(28, 18, 32, 0.55) 0%, rgba(14, 10, 18, 0.45) 100%);
  border: none;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.28s ease, transform 0.22s ease, box-shadow 0.28s ease, padding-left 0.22s ease;
}

/* Barre verticale lumineuse à gauche */
.rules-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-pink), var(--accent-rose));
  box-shadow: 0 0 10px rgba(255, 184, 236, 0.45);
  transition: width 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Halo subtil qui apparaît au survol */
.rules-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left center, rgba(255, 184, 236, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: -1;
}

.rules-item:hover {
  background:
    linear-gradient(135deg, rgba(40, 22, 42, 0.7) 0%, rgba(20, 12, 22, 0.55) 100%);
  transform: translateX(4px);
  padding-left: 1.6rem;
  box-shadow:
    0 8px 22px -12px rgba(255, 184, 236, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rules-item:hover::before {
  width: 5px;
  box-shadow: 0 0 18px rgba(255, 184, 236, 0.75),
              0 0 4px rgba(255, 184, 236, 1);
}

.rules-item:hover::after {
  opacity: 1;
}

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

.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); }

/* ---------- Règlement illégal : accordéons ---------- */
.rules-note--intro {
  margin-bottom: 1.5rem;
}

.rules-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.rules-accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 184, 236, 0.04) 100%
  );
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: var(--rules-glass-inset), var(--rules-glass-shadow);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}

.rules-accordion-item:hover {
  border-color: rgba(255, 184, 236, 0.38);
  box-shadow:
    var(--rules-glass-inset),
    0 12px 32px -14px rgba(255, 184, 236, 0.22);
}

.rules-accordion-item.is-open {
  border-color: rgba(255, 184, 236, 0.45);
  background: linear-gradient(
    135deg,
    rgba(255, 184, 236, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 36px -12px rgba(255, 184, 236, 0.28);
}

.rules-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.18s ease;
}

.rules-accordion-trigger:hover {
  background: rgba(255, 184, 236, 0.06);
}

.rules-accordion-item.is-open .rules-accordion-trigger {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 184, 236, 0.04);
}

.rules-accordion-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.rules-accordion-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rules-accordion-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.rules-accordion-item.is-open .rules-accordion-chevron {
  transform: rotate(180deg);
}

.rules-accordion-panel {
  display: none;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rules-accordion-item.is-open .rules-accordion-panel {
  display: block;
}

.rules-law-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.45rem 0.55rem;
}

.rules-law-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rules-law-item:last-child {
  margin-bottom: 0;
}

.rules-law-item:hover {
  background: rgba(255, 184, 236, 0.06);
  border-color: rgba(255, 184, 236, 0.2);
}

.rules-law-id {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-pink);
  min-width: 2.5rem;
  padding-top: 0.15rem;
}

.rules-law-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

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

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

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

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

/* ---------- Règlement illégal dynamique (dans section sidebar) ---------- */
.rules-section--illegal-dynamic .rules-illegal-dynamic-header {
  margin-bottom: 1.4rem;
}

.rules-section--illegal-dynamic .rules-dynamic-title {
  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--illegal-dynamic .rules-dynamic-sub {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}

.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-item {
  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: 1rem 1.2rem 1.1rem;
  background: linear-gradient(155deg, rgba(28, 18, 32, 0.55) 0%, rgba(14, 10, 18, 0.4) 100%);
  border: none;
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.22s ease, box-shadow 0.25s ease;
}

.rules-def::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-pink), var(--accent-rose));
  box-shadow: 0 0 10px rgba(255, 184, 236, 0.4);
  transition: width 0.25s ease, box-shadow 0.25s ease;
}

.rules-def:hover {
  transform: translateY(-3px);
  background: linear-gradient(155deg, rgba(40, 22, 42, 0.7) 0%, rgba(20, 12, 22, 0.55) 100%);
  box-shadow: 0 12px 26px -16px rgba(255, 184, 236, 0.55);
}

.rules-def:hover::before {
  width: 5px;
  box-shadow: 0 0 18px rgba(255, 184, 236, 0.7);
}

.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 {
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, rgba(40, 18, 32, 0.55), rgba(20, 12, 22, 0.45));
  border: 1px solid rgba(255, 184, 236, 0.25);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: border-color 0.22s ease, transform 0.2s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.rules-pills li:hover {
  border-color: var(--accent-pink);
  background: linear-gradient(135deg, rgba(60, 22, 44, 0.7), rgba(30, 14, 26, 0.55));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px rgba(255, 184, 236, 0.5);
}

/* ---------- 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-item {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.5s ease, transform 0.5s 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-item {
  opacity: 1;
  transform: translateX(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);
}

@media (max-width: 720px) {
  .rules-toc {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .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: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
  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 - Grille roster (flora-team.js)
   ========================================================= */

body.team-page-body {
  background: var(--bg-page);
}

.team-roster {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) clamp(1rem, 4vw, 2rem) 5rem;
}

.team-roster-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
  max-width: 52rem;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.35rem, 5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 184, 236, 0.05) 38%,
    rgba(255, 255, 255, 0.025) 100%
  );
  border: 1px solid var(--rules-glass-border);
  box-shadow:
    var(--rules-glass-inset),
    var(--rules-glass-shadow),
    0 28px 56px -32px rgba(0, 0, 0, 0.65);
  backdrop-filter: var(--rules-glass-blur);
  -webkit-backdrop-filter: var(--rules-glass-blur);
}

.team-roster-header > * {
  position: relative;
  z-index: 1;
}

.team-roster-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 85% 55% at 50% -8%, rgba(255, 184, 236, 0.22), transparent 62%),
    radial-gradient(ellipse 45% 70% at 8% 18%, rgba(255, 255, 255, 0.14), transparent 68%);
  pointer-events: none;
}

.team-roster-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55) 18%,
    rgba(255, 184, 236, 0.9) 50%,
    rgba(255, 255, 255, 0.55) 82%,
    transparent
  );
  box-shadow: 0 0 18px rgba(255, 184, 236, 0.35);
  pointer-events: none;
}

.team-roster-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.team-roster-title {
  margin: 0 0 0.85rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  color: var(--text-primary);
}

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

.team-roster-lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.team-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.2rem);
}

.team-roster-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(16, 14, 22, 0.66);
  border: 1px solid rgba(255, 184, 236, 0.18);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.85);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  animation: teamRosterIn 0.55s ease both;
  animation-delay: var(--card-delay, 0s);
}

.team-roster-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(180deg, rgba(255, 184, 236, 0.95), rgba(201, 49, 104, 0.65));
  opacity: 0.75;
}

.team-roster-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 236, 0.36);
  box-shadow:
    0 22px 48px -22px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(255, 184, 236, 0.06);
}

@keyframes teamRosterIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-roster-visual {
  position: relative;
  width: 84px;
  min-width: 84px;
  height: 84px;
  overflow: hidden;
  background: rgba(8, 6, 12, 0.55);
  border-radius: 999px;
  margin: 1rem 0 1rem 1rem;
}

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

.team-roster-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.25rem);
  font-weight: 700;
  color: rgba(10, 8, 14, 0.9);
  background: linear-gradient(145deg, var(--accent-pink), var(--accent-rose));
}

.team-roster-watermark {
  display: none;
}

.team-roster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(8, 6, 12, 0.34);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

body.news-is-editing .team-roster-overlay {
  opacity: 1;
  pointer-events: auto;
}

.team-roster-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  background: rgba(255, 184, 236, 0.16);
  border: 1px solid rgba(255, 184, 236, 0.42);
  color: var(--accent-pink);
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.team-roster-upload svg {
  width: 18px;
  height: 18px;
}

.team-roster-upload span {
  display: none;
}

.team-roster-body {
  padding: 1.15rem 1.25rem 1.15rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 auto;
}

.team-roster-index {
  display: none;
}

.team-roster-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.team-roster-role {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-pink);
  background: rgba(255, 184, 236, 0.10);
  border: 1px solid rgba(255, 184, 236, 0.28);
}

.team-roster-description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.team-roster-delete {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(226, 60, 60, 0.92);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

body.news-is-editing .team-roster-delete {
  display: flex;
}

.team-roster-empty {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-family: var(--font-tech);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

@media (max-width: 520px) {
  .team-roster-grid {
    grid-template-columns: 1fr;
  }

  .team-roster-card {
    gap: 0.85rem;
  }

  .team-roster-visual {
    margin-left: 0.95rem;
  }
}

/* =========================================================
   PAGE ÉQUIPE - Grille de cartes simple et légère
   équipe admin : flora-team.js (upload + contenteditable)
   ========================================================= */

.team-options-page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) clamp(1rem, 4vw, 2rem) 5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(28, 18, 32, 0.9), rgba(16, 12, 22, 0.9));
  border: 1px solid rgba(255, 184, 236, 0.16);
  box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 236, 0.4);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.85);
}

.team-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: rgba(255, 184, 236, 0.06);
  background-image: var(--optionBackground);
  background-size: cover;
  background-position: center;
}

.team-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.team-card-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 700;
  color: rgba(10, 8, 14, 0.92);
  background: linear-gradient(145deg, var(--accent-pink), var(--accent-rose));
}
.team-card:not(.is-empty) .team-card-empty { display: none; }

.team-card-body {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem 1rem;
}

.team-card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 236, 0.1);
  border: 1px solid rgba(255, 184, 236, 0.28);
}
.team-card-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 184, 236, 0.45));
}

.team-card-info { min-width: 0; }

.team-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card-role {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-top: 0.2rem;
}

.team-card-name[contenteditable="true"],
.team-card-role[contenteditable="true"] {
  outline: 1px dashed rgba(255, 184, 236, 0.5);
  border-radius: 5px;
  padding: 0 3px;
  white-space: normal;
  cursor: text;
}

.team-card-upload,
.team-card-delete {
  position: absolute;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
body.news-is-editing .team-card-upload,
body.news-is-editing .team-card-delete { display: inline-flex; }

.team-card-upload {
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 236, 0.42);
  background: rgba(10, 8, 14, 0.6);
  color: var(--accent-pink);
}
.team-card-upload svg { width: 16px; height: 16px; }

.team-card-delete {
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(226, 60, 60, 0.92);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
  }
}

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

.flora-footer {
  position: relative;
  z-index: 1;
  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;
}

/* =========================================================
   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
   ========================================================= */

@media (max-width: 960px) {
  .flora-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.65rem 1rem;
    gap: 0.6rem;
  }

  .flora-nav-group {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .flora-nav-tab {
    padding: 0.55rem 0.85rem;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .flora-main {
    padding-top: calc(var(--nav-height) + 5rem);
  }
}

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

  .flora-hero-title {
    font-size: 2.2rem;
  }
}

/* =========================================================
   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: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: 0.02em;
  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: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  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: rgba(20, 14, 22, 0.45);
  border: 1px solid rgba(255, 184, 236, 0.14);
  border-radius: 10px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.news-section[data-kind="new"]    { border-left: 3px solid #7be3a3; }
.news-section[data-kind="change"] { border-left: 3px solid var(--accent-pink); }
.news-section[data-kind="fix"]    { border-left: 3px solid #ffb277; }
.news-section[data-kind="warn"]   { border-left: 3px solid #ffd166; }
.news-section[data-kind="info"]   { border-left: 3px solid var(--accent-coral); }

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

.news-section-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.news-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  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: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-article-signature em { font-style: italic; color: var(--accent-pink); }

.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;
}

.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; }

/* =========================================================
   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;
  /* fond semi-transparent léger : on ne veut pas tout focus dessus */
  background: rgba(8, 6, 12, 0.38);
  opacity: 0;
  transition: opacity 0.24s ease;
}

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

.flora-tablet {
  position: relative;
  width: min(940px, 100%);
  max-height: min(86vh, 620px);
  border-radius: 26px;
  /* cadre quasi transparent sur les bords */
  padding: clamp(8px, 1.2vw, 13px);
  background:
    linear-gradient(155deg, rgba(46, 38, 56, 0.3) 0%, rgba(24, 20, 30, 0.22) 100%);
  border: 1px solid rgba(255, 184, 236, 0.1);
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.flora-tablet-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 30% -10%, rgba(255, 184, 236, 0.16), transparent 60%);
  z-index: 0;
}

.flora-tablet-screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  max-height: inherit;
  border-radius: 18px;
  /* écran : semi-transparent au lieu du noir plein */
  background: linear-gradient(150deg, rgba(20, 16, 26, 0.62) 0%, rgba(12, 10, 16, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  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: linear-gradient(165deg, rgba(255, 184, 236, 0.08), rgba(201, 49, 104, 0.05));
  border-right: 1px solid rgba(255, 184, 236, 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.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(10, 8, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  opacity: 0.7;
  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);
}

.flora-tablet-title {
  margin: 0;
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.1;
  color: var(--text-primary);
}

.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: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}
.flora-tablet-close:hover {
  border-color: var(--accent-magenta);
  color: #ffd0e0;
  background: rgba(255, 61, 127, 0.14);
}
.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.75rem 0.9rem;
  border-radius: 11px;
  background: rgba(10, 8, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.flora-tablet-field input::placeholder { color: rgba(255, 255, 255, 0.32); }
.flora-tablet-field input:focus {
  outline: none;
  border-color: rgba(255, 184, 236, 0.55);
  background: rgba(20, 14, 24, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 184, 236, 0.12);
}
.flora-tablet-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.flora-tablet-hint {
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.flora-tablet-field--guard input {
  border-color: rgba(255, 61, 127, 0.3);
  background: rgba(40, 14, 24, 0.4);
}

.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, 184, 236, 0.25), 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.72rem 1.4rem;
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
}
.flora-tablet-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}
.flora-tablet-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}
.flora-tablet-btn--primary {
  background: linear-gradient(135deg, var(--accent-pink, #ffb8ec), var(--accent-magenta, #ff3d7f));
  border: 1px solid rgba(255, 184, 236, 0.5);
  color: #2a0d18;
}
.flora-tablet-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(255, 61, 127, 0.6);
}
.flora-tablet-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

body.flora-tablet-open { overflow: hidden; }

@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, 184, 236, 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.52) 0%,
    rgba(28, 24, 32, 0.48) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  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(3, minmax(0, 1fr));
  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: var(--admin-showcase-cut);
  border-radius: 1.25rem;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.admin-showcase-card__box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(36, 32, 42, 0.35);
  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(52, 46, 58, 0.55) 0%,
    rgba(38, 34, 44, 0.62) 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--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.375rem;
  right: -0.375rem;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--admin-showcase-cut);
  border-top-left-radius: 50%;
  z-index: 2;
}

.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%
  );
}

.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 {
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-user-card.is-owner {
  border-color: var(--admin-blush-border);
  background: var(--admin-blush-dim);
}

.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-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: 1100px) {
  .admin-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    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-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; }

.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;
  }
}

